diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 852fa5c76d2..48341df7838 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -23,10 +23,10 @@ jobs:
java-version: ${{ matrix.java }}
- name: Build tools
run: mvn -B install --file fhir-tools -Dmaven.wagon.http.retryHandler.count=3
- - name: Build samples
- run: mvn -B install --file fhir-examples -Dmaven.wagon.http.retryHandler.count=3
- - name: Build parent without tests
- run: mvn -B install --file fhir-parent -DskipTests -P integration -Dmaven.wagon.http.retryHandler.count=3
+ - name: Build samples with condensed json
+ run: mvn -B install --file fhir-examples -P condense-json -Dmaven.wagon.http.retryHandler.count=3
+ - name: Build parent with condensed json
+ run: mvn -B install --file fhir-parent -P integration,condense-json -Dmaven.wagon.http.retryHandler.count=3
- name: Build sample generator
run: mvn -B package --file fhir-examples-generator -Dmaven.wagon.http.retryHandler.count=3
- name: Build benchmark
@@ -48,8 +48,10 @@ jobs:
env:
BASE: ${{ github['base_ref'] }}
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/${BASE}:refs/remotes/origin/${BASE}
- - name: Build samples
- run: mvn -B install --file fhir-examples --no-transfer-progress
+ - name: Build tools and samples
+ run: |
+ mvn -B install --file fhir-tools --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3
+ mvn -B install --file fhir-examples --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3
- name: Build parent with tests
env:
BASE: origin/${{ github['base_ref'] }}
@@ -78,7 +80,7 @@ jobs:
fhir-persistence-schema/src/main
fhir-examples
)
- PROFILES_ARR=(integration)
+ PROFILES_ARR=(integration condense-json)
if [ -n "$(git --no-pager diff --name-only ${BASE} ${GITHUB_SHA} -- ${model_paths[@]})" ]; then
echo "Changes affect fhir-model, running ALL"
@@ -124,8 +126,10 @@ jobs:
uses: joschi/setup-jdk@v2.3.0
with:
java-version: ${{ matrix.java }}
- - name: Build samples
- run: mvn -B install --file fhir-examples --no-transfer-progress
+ - name: Build tools and samples
+ run: |
+ mvn -B install --file fhir-tools --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3
+ mvn -B install --file fhir-examples --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3
- name: Build parent without tests
# As the e2e tests are the fastest, opting to put javadoc:javadoc in fhir-parent
# The profile avoids UML diagram creation
@@ -138,7 +142,7 @@ jobs:
fi
mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline -f fhir-parent --no-transfer-progress -DexcludeReactor=true -Dmaven.wagon.http.retryHandler.count=3
mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:resolve-plugins -f fhir-parent --no-transfer-progress -DexcludeReactor=true -Dmaven.wagon.http.retryHandler.count=3
- mvn -B ${JAVADOC_GOAL} install --file fhir-parent -DskipTests -P include-fhir-igs,integration --no-transfer-progress -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 -Dmaven.wagon.http.retryHandler.count=3
+ mvn -B ${JAVADOC_GOAL} install --file fhir-parent -DskipTests -P include-fhir-igs,integration,condense-json --no-transfer-progress -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 -Dmaven.wagon.http.retryHandler.count=3
- name: free disk space
run: |
# create and remove a 200 MB file to make sure we have the room needed later
diff --git a/.github/workflows/javadocs.yml b/.github/workflows/javadocs.yml
index aa9f1fff852..69d5e951e2b 100644
--- a/.github/workflows/javadocs.yml
+++ b/.github/workflows/javadocs.yml
@@ -2,7 +2,7 @@ name: Javadocs Build for Site
on:
push:
- tags:
+ tags:
- '*'
jobs:
@@ -62,7 +62,7 @@ jobs:
then
rm -rf ./javadocs/latest/
fi
- # Helps debug the situation
+ # Helps debug the situation
ls -al javadocs
echo "Starting the movement of the data around"
mkdir -p javadocs/latest
@@ -75,7 +75,7 @@ jobs:
echo "
Javadocs" > javadocs/index.html
for DIR in `find ./javadocs -type d -maxdepth 1 -mindepth 1 -exec basename {} \; | sort -r | grep -v rc3 `
do
- echo "${DIR}" >> javadocs/index.html
+ echo "${DIR}" >> javadocs/index.html
echo "
" >> javadocs/index.html
done
echo "" >> javadocs/index.html
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index d4871e9637a..67a1bf161cf 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -27,9 +27,11 @@ jobs:
minimum-size: 8GB
maximum-size: 8GB
disk-root: "C:"
- - name: Build samples
+ - name: Build tools and samples
shell: powershell
- run: mvn -B install --file fhir-examples/pom.xml --no-transfer-progress
+ run: |
+ mvn -B install --file fhir-tools --no-transfer-progress
+ mvn -B install --file fhir-examples --no-transfer-progress
- name: Download Dependencies
shell: powershell
run: mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline -f fhir-parent -DexcludeReactor=true
@@ -38,7 +40,7 @@ jobs:
run: mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:resolve-plugins -f fhir-parent -DexcludeReactor=true
- name: Build parent without tests
shell: powershell
- run: mvn -B install --file fhir-parent/pom.xml -P include-fhir-igs --no-transfer-progress
+ run: mvn -B install --file fhir-parent -P include-fhir-igs,condense-json --no-transfer-progress
- name: Server Integration Tests
shell: powershell
run: |
diff --git a/build/release/bin/10_build/0_cache.sh b/build/release/bin/10_build/0_cache.sh
index ae11ff407c2..791b2c942d4 100644
--- a/build/release/bin/10_build/0_cache.sh
+++ b/build/release/bin/10_build/0_cache.sh
@@ -8,9 +8,10 @@ set -eu -o pipefail
# SPDX-License-Identifier: Apache-2.0
###############################################################################
-# Cache all dependencies and plugins used in build to avoid downstream timeouts during
+# Cache all dependencies and plugins used in build to avoid downstream timeouts during
# content fetches
+mvn clean install -f fhir-tools -DskipTests
mvn clean install -f fhir-examples -DskipTests
mvn -T2C org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline -f fhir-examples -DexcludeReactor=true
mvn -T2C org.apache.maven.plugins:maven-dependency-plugin:3.1.2:resolve-plugins -f fhir-examples -DexcludeReactor=true
@@ -22,4 +23,4 @@ mvn clean package install -ntp -B -N -f fhir-parent
mvn -T2C org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline -f fhir-parent -DexcludeReactor=true
mvn -T2C org.apache.maven.plugins:maven-dependency-plugin:3.1.2:resolve-plugins -f fhir-parent -DexcludeReactor=true
-# EOF
\ No newline at end of file
+# EOF
diff --git a/build/release/bin/10_build/1_clean.sh b/build/release/bin/10_build/1_clean.sh
index f4bf8073131..2c8d700d71c 100644
--- a/build/release/bin/10_build/1_clean.sh
+++ b/build/release/bin/10_build/1_clean.sh
@@ -11,8 +11,8 @@ set -eu -o pipefail
# cleans the given projects
# Reference https://maven.apache.org/plugins/maven-clean-plugin/
-mvn -T2C clean -f fhir-examples
mvn -T2C clean -f fhir-tools
+mvn -T2C clean -f fhir-examples
mvn -T2C clean -f fhir-parent
-# EOF
\ No newline at end of file
+# EOF
diff --git a/build/release/bin/10_build/2_version.sh b/build/release/bin/10_build/2_version.sh
index fb25b018453..4d740aedc6c 100644
--- a/build/release/bin/10_build/2_version.sh
+++ b/build/release/bin/10_build/2_version.sh
@@ -10,6 +10,8 @@ set -eu -o pipefail
# Set the version of the variables in fhir-parent.
+mvn org.codehaus.mojo:versions-maven-plugin:2.7:set-property -Dproperty=fhir-tools.version -DnewVersion="${BUILD_VERSION}" -f fhir-parent
+
# Only update the fhir-examples.version variable if it matches the version, usually a SNAPSHOT,
# of the fhir-examples module.
FHIR_PARENT_VERSION=$(cat fhir-parent/pom.xml | xpath -q -e project/properties/fhir-examples.version/text\(\))
@@ -18,15 +20,13 @@ if [[ "${FHIR_PARENT_VERSION}" == "${FHIR_EXAMPLES_VERSION}" ]]
then
mvn org.codehaus.mojo:versions-maven-plugin:2.7:set-property -Dproperty=fhir-examples.version -DnewVersion="${BUILD_VERSION}" -f fhir-parent
fi
-mvn org.codehaus.mojo:versions-maven-plugin:2.7:set-property -Dproperty=fhir-tools.version -DnewVersion="${BUILD_VERSION}" -f fhir-parent
-
# Set the project version in all the poms.
# Reference https://www.mojohaus.org/versions-maven-plugin/set-mojo.html
# use versions:revert - option to revert the change.
-mvn versions:set -f "fhir-examples" -DoldVersion="*" -DnewVersion="${BUILD_VERSION}"
mvn versions:set -f "fhir-tools" -DoldVersion="*" -DnewVersion="${BUILD_VERSION}"
+mvn versions:set -f "fhir-examples" -DoldVersion="*" -DnewVersion="${BUILD_VERSION}"
mvn versions:set -f "fhir-parent" -DoldVersion="*" -DnewVersion="${BUILD_VERSION}"
# EOF
diff --git a/build/release/bin/10_build/3_build.sh b/build/release/bin/10_build/3_build.sh
index e4bf35be787..362737d6063 100644
--- a/build/release/bin/10_build/3_build.sh
+++ b/build/release/bin/10_build/3_build.sh
@@ -10,18 +10,18 @@ set -eu -o pipefail
# Runs the build with all the preconfigured profiles
-# fhir-examples
-export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-examples").profiles | map(.) | join(",")' build/release/config/release.json)"
-mvn -T2C install source:jar source:test-jar javadoc:jar -f fhir-examples \
- -DadditionalJOption=-Xdoclint:none \
- -f fhir-examples -P "${BUILD_PROFILES}" -DskipTests
-
# fhir-tools
export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-tools").profiles | map(.) | join(",")' build/release/config/release.json)"
mvn -T2C install source:jar source:test-jar javadoc:jar -f fhir-tools \
-DadditionalJOption=-Xdoclint:none \
-f fhir-tools -P "${BUILD_PROFILES}" -DskipTests
+# fhir-examples
+export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-examples").profiles | map(.) | join(",")' build/release/config/release.json)"
+mvn -T2C install source:jar source:test-jar javadoc:jar -f fhir-examples \
+ -DadditionalJOption=-Xdoclint:none \
+ -f fhir-examples -P "${BUILD_PROFILES}" -DskipTests
+
# fhir-parent
export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-parent").profiles | map(.) | join(",")' build/release/config/release.json)"
mvn -T2C install -f fhir-parent -DskipTests
@@ -29,4 +29,4 @@ mvn -T2C install source:jar source:test-jar javadoc:jar -f fhir-parent \
-DadditionalJOption=-Xdoclint:none \
-f fhir-parent -P "${BUILD_PROFILES}" -DskipTests
-# EOF
\ No newline at end of file
+# EOF
diff --git a/build/release/bin/20_test/1_code_coverage.sh b/build/release/bin/20_test/1_code_coverage.sh
index 98de730d499..62004e39900 100644
--- a/build/release/bin/20_test/1_code_coverage.sh
+++ b/build/release/bin/20_test/1_code_coverage.sh
@@ -10,16 +10,16 @@ set -eu -o pipefail
# verify and generate code coverage jacoco.exec and xml files
-# fhir-examples
-export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-examples").profiles | map(.) | join(",")' build/release/config/release.json)"
-mvn -T2C test org.jacoco:jacoco-maven-plugin:0.8.6:report-aggregate -f fhir-examples
-
# fhir-tools
export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-tools").profiles | map(.) | join(",")' build/release/config/release.json)"
mvn -T2C test org.jacoco:jacoco-maven-plugin:0.8.6:report-aggregate -f fhir-tools
+# fhir-examples
+export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-examples").profiles | map(.) | join(",")' build/release/config/release.json)"
+mvn -T2C test org.jacoco:jacoco-maven-plugin:0.8.6:report-aggregate -f fhir-examples
+
# fhir-parent
export BUILD_PROFILES=" $(jq -r '.build[] | select(.type == "fhir-parent").profiles | map(.) | join(",")' build/release/config/release.json)"
mvn -T2C test org.jacoco:jacoco-maven-plugin:0.8.6:report-aggregate -f fhir-parent -P "${BUILD_PROFILES}"
-# EOF
\ No newline at end of file
+# EOF
diff --git a/build/release/config/release.json b/build/release/config/release.json
index e8b83769472..c68067adf8b 100644
--- a/build/release/config/release.json
+++ b/build/release/config/release.json
@@ -34,7 +34,7 @@
},
"build": [
{
- "type": "fhir-examples",
+ "type": "fhir-tools",
"profiles": [
"generate-javadoc",
"sign-artifact",
@@ -42,15 +42,16 @@
]
},
{
- "type": "fhir-tools",
+ "type": "fhir-examples",
"profiles": [
"generate-javadoc",
"sign-artifact",
- "build-artifact"
+ "build-artifact",
+ "condense-json"
]
},
{
- "type": "fhir-parent",
+ "type": "fhir-parent",
"profiles": [
"generate-javadoc",
"sign-artifact",
@@ -68,7 +69,8 @@
"model-all-tests",
"validation-all-tests",
"search-all-tests",
- "jdbc-all-tests"
+ "jdbc-all-tests",
+ "condense-json"
]
}
],
@@ -86,4 +88,4 @@
"fhir-install/target/fhir-server-distribution.zip",
"fhir-install/target/fhir-server-distribution.zip.asc"
]
-}
\ No newline at end of file
+}
diff --git a/conformance/fhir-ig-carin-bb/src/main/resources/hl7/fhir/us/carin-bb/100/package/openapi/c4bb.openapi.json b/conformance/fhir-ig-carin-bb/src/main/resources/hl7/fhir/us/carin-bb/100/package/openapi/c4bb.openapi.json
deleted file mode 100644
index 9b20180b69d..00000000000
--- a/conformance/fhir-ig-carin-bb/src/main/resources/hl7/fhir/us/carin-bb/100/package/openapi/c4bb.openapi.json
+++ /dev/null
@@ -1,797 +0,0 @@
-{
- "openapi": "3.0.2",
- "info": {
- "title": "C4BB CapabilityStatement",
- "description": "This Section describes the expected capabilities of the C4BB Server actor which is responsible for providing responses to the queries submitted by the C4BB Requestors. \n\nThe EOB Resource is the focal Consumer-Directed Payer Data Exchange (CDPDE) Resource. Several Reference Resources are defined directly/indirectly from the EOB: Coverage, Patient, Organization (Payer ID), Practioner, and Organization (Facility).\n\nThe Coverage Reference Resource SHALL be returned with data that was effective as of the date of service of the claim; for example, the data will reflect the employer name in effect at that time. However, for other reference resources, payers MAY decide to provide either the data that was in effect as of the date of service or the current data. All reference resources within the EOB will have meta.lastUpdated flagged as must support. Payers SHALL provide the last time the data was updated or the date of creation in the payers system of record, whichever comes last. Apps will use the meta.lastUpdated values to determine if the reference resources are as of the current date or date of service.",
- "license": {
- "name": "Creative Commons Zero v1.0 Universal",
- "url": "http://spdx.org/licenses/CC0-1.0.html"
- },
- "version": "1.0.0",
- "contact": {
- "name": "HL7 Financial Management Working Group",
- "email": "fm@lists.HL7.org",
- "url": "http://www.hl7.org/Special/committees/fm/index.cfm"
- }
- },
- "externalDocs": {
- "url": "http://hl7.org/fhir/us/carin-bb/CapabilityStatement/c4bb",
- "description": "FHIR CapabilityStatement"
- },
- "paths": {
- "/metadata": {
- "summary": "Access to the Server\u0027s Capability Statement",
- "description": "All FHIR Servers return a CapabilityStatement that describes what services they perform",
- "get": {
- "summary": "Return the server\u0027s capability statement",
- "operationId": "metadata",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the capbility statement",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/CapabilityStatement"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/CapabilityStatement.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Coverage/{rid}": {
- "summary": "Read/Write/etc resource instance of type Coverage",
- "description": "Access to services to manage the state of a single resource of type Coverage",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readCoverage",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Coverage"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Coverage.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/ExplanationOfBenefit": {
- "summary": "manage the collection of resources of type ExplanationOfBenefit",
- "description": "Access to services to manage the collection of all resources of type ExplanationOfBenefit",
- "get": {
- "summary": "Search all resources of type ExplanationOfBenefit based on a set of criteria",
- "operationId": "searchExplanationOfBenefit",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "patient",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "The reference to the patient"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "The type of the ExplanationOfBenefit"
- },
- {
- "name": "identifier",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "The business/claim identifier of the Explanation of Benefit"
- },
- {
- "name": "service-date",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "Date of the service for the EOB. The service-date search parameter simplifies search, since a client doesn\u0027t need to know that for inpatient and outpatient institutional EOB dates they need to search by billablePeriod.period.start, for a pharmacy EOB by item.servicedDate, and for a professional and non-clinician EOB - by item.servicedPeriod.period.start."
- }
- ]
- }
- },
- "/ExplanationOfBenefit/{rid}": {
- "summary": "Read/Write/etc resource instance of type ExplanationOfBenefit",
- "description": "Access to services to manage the state of a single resource of type ExplanationOfBenefit",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readExplanationOfBenefit",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/ExplanationOfBenefit"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/ExplanationOfBenefit.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Organization/{rid}": {
- "summary": "Read/Write/etc resource instance of type Organization",
- "description": "Access to services to manage the state of a single resource of type Organization",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readOrganization",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Organization"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Organization.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Organization/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type Organization",
- "description": "Access a to specified previous version of a single resource of type Organization",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadOrganization",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Organization"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Organization.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Patient/{rid}": {
- "summary": "Read/Write/etc resource instance of type Patient",
- "description": "Access to services to manage the state of a single resource of type Patient",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readPatient",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Patient"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Patient.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Patient/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type Patient",
- "description": "Access a to specified previous version of a single resource of type Patient",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadPatient",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Patient"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Patient.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Practitioner/{rid}": {
- "summary": "Read/Write/etc resource instance of type Practitioner",
- "description": "Access to services to manage the state of a single resource of type Practitioner",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readPractitioner",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Practitioner"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Practitioner.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Practitioner/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type Practitioner",
- "description": "Access a to specified previous version of a single resource of type Practitioner",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadPractitioner",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Practitioner"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Practitioner.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- }
- },
- "components": {
- "parameters": {
- "rid": {
- "name": "rid",
- "in": "path",
- "description": "id of the resource (\u003dResource.id)",
- "required": true,
- "allowEmptyValue": false,
- "style": "simple",
- "schema": {
- "type": "string"
- }
- },
- "hid": {
- "name": "hid",
- "in": "path",
- "description": "id of the history entry (\u003dResource.meta.versionId)",
- "required": true,
- "allowEmptyValue": false,
- "style": "simple",
- "schema": {
- "type": "string"
- }
- },
- "summary": {
- "name": "_summary",
- "in": "query",
- "description": "Requests the server to return a designated subset of the resource",
- "allowEmptyValue": true,
- "style": "form",
- "schema": {
- "type": "string",
- "enum": [
- "true",
- "text",
- "data",
- "count",
- "false"
- ]
- }
- },
- "format": {
- "name": "_format",
- "in": "query",
- "description": "Specify alternative response formats by their MIME-types (when a client is unable acccess accept: header)",
- "allowEmptyValue": true,
- "style": "form",
- "schema": {
- "type": "string",
- "format": "mime-type"
- }
- },
- "pretty": {
- "name": "_pretty",
- "in": "query",
- "description": "Ask for a pretty printed response for human convenience",
- "allowEmptyValue": true,
- "style": "form",
- "schema": {
- "type": "boolean"
- }
- },
- "elements": {
- "name": "_elements",
- "in": "query",
- "description": "Requests the server to return a collection of elements from the resource",
- "allowEmptyValue": true,
- "style": "form",
- "explode": false,
- "schema": {
- "type": "array",
- "format": "string",
- "items": {
- "format": "string"
- }
- }
- },
- "count": {
- "name": "_count",
- "in": "query",
- "description": "The maximum number of search results on a page. The server is not bound to return the number requested, but cannot return more",
- "schema": {
- "type": "number"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/conformance/fhir-ig-davinci-pdex-plan-net/src/main/resources/hl7/fhir/us/davinci-pdex-plan-net/package/openapi/plan-net.openapi.json b/conformance/fhir-ig-davinci-pdex-plan-net/src/main/resources/hl7/fhir/us/davinci-pdex-plan-net/package/openapi/plan-net.openapi.json
deleted file mode 100644
index 40e81e40da8..00000000000
--- a/conformance/fhir-ig-davinci-pdex-plan-net/src/main/resources/hl7/fhir/us/davinci-pdex-plan-net/package/openapi/plan-net.openapi.json
+++ /dev/null
@@ -1,2188 +0,0 @@
-{
- "openapi": "3.0.2",
- "info": {
- "title": "Plan-Net CapabilityStatement",
- "description": "This Section describes the expected capabilities of the Plan-Net Server actor which is responsible for providing responses to the queries submitted by the Plan-Net Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by Plan-Net Servers are defined. Systems implementing this capability statement should meet the CMS FInal Rule requirement for provider directory access. Plan-Net Clients can use the required capabilities to access necessary data based on their local use cases and other contextual requirements.",
- "license": {
- "name": "Creative Commons Zero v1.0 Universal",
- "url": "http://spdx.org/licenses/CC0-1.0.html"
- },
- "version": "1.0.0",
- "contact": {
- "name": "HL7 Financial Management Working Group",
- "email": "fm@lists.HL7.org",
- "url": "http://www.hl7.org/Special/committees/fm/index.cfm"
- }
- },
- "externalDocs": {
- "url": "http://hl7.org/fhir/us/davinci-pdex-plan-net/CapabilityStatement/plan-net",
- "description": "FHIR CapabilityStatement"
- },
- "paths": {
- "/metadata": {
- "summary": "Access to the Server\u0027s Capability Statement",
- "description": "All FHIR Servers return a CapabilityStatement that describes what services they perform",
- "get": {
- "summary": "Return the server\u0027s capability statement",
- "operationId": "metadata",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the capbility statement",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/CapabilityStatement"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/CapabilityStatement.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Endpoint": {
- "summary": "manage the collection of resources of type Endpoint",
- "description": "Access to services to manage the collection of all resources of type Endpoint",
- "get": {
- "summary": "Search all resources of type Endpoint based on a set of criteria",
- "operationId": "searchEndpoint",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "organization",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Endpoints managed by the specified organization"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- }
- ]
- }
- },
- "/Endpoint/{rid}": {
- "summary": "Read/Write/etc resource instance of type Endpoint",
- "description": "Access to services to manage the state of a single resource of type Endpoint",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readEndpoint",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Endpoint"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Endpoint.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Endpoint/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type Endpoint",
- "description": "Access a to specified previous version of a single resource of type Endpoint",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadEndpoint",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Endpoint"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Endpoint.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/HealthcareService": {
- "summary": "manage the collection of resources of type HealthcareService",
- "description": "Access to services to manage the collection of all resources of type HealthcareService",
- "get": {
- "summary": "Search all resources of type HealthcareService based on a set of criteria",
- "operationId": "searchHealthcareService",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "location",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select HealthcareServices available at the specified location"
- },
- {
- "name": "coverage-area",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select services available in a region described by the specified location"
- },
- {
- "name": "organization",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select HealthcareServices provided by the specified organization"
- },
- {
- "name": "endpoint",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select HealthcareServices with the specified endpoint"
- },
- {
- "name": "name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select HealthcareServices with the specified name"
- },
- {
- "name": "service-category",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select HealthcareServices providing the specified category of services"
- },
- {
- "name": "service-type",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select HealthcareServices of the specified type"
- },
- {
- "name": "specialty",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select services associated with the specified specialty"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- }
- ]
- }
- },
- "/HealthcareService/{rid}": {
- "summary": "Read/Write/etc resource instance of type HealthcareService",
- "description": "Access to services to manage the state of a single resource of type HealthcareService",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readHealthcareService",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/HealthcareService"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/HealthcareService.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/HealthcareService/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type HealthcareService",
- "description": "Access a to specified previous version of a single resource of type HealthcareService",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadHealthcareService",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/HealthcareService"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/HealthcareService.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/InsurancePlan": {
- "summary": "manage the collection of resources of type InsurancePlan",
- "description": "Access to services to manage the collection of all resources of type InsurancePlan",
- "get": {
- "summary": "Search all resources of type InsurancePlan based on a set of criteria",
- "operationId": "searchInsurancePlan",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "administered-by",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select products that are administered by the specified organization"
- },
- {
- "name": "owned-by",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select products that are owned by the specified organization"
- },
- {
- "name": "coverage-area",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select products that are offered in the specified location"
- },
- {
- "name": "name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select products with the specified name"
- },
- {
- "name": "plan-type",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select plans of the specified type"
- },
- {
- "name": "identifier",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select products with the specified identifier"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select insurance plans of the specified type"
- }
- ]
- }
- },
- "/InsurancePlan/{rid}": {
- "summary": "Read/Write/etc resource instance of type InsurancePlan",
- "description": "Access to services to manage the state of a single resource of type InsurancePlan",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readInsurancePlan",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/InsurancePlan"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/InsurancePlan.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/InsurancePlan/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type InsurancePlan",
- "description": "Access a to specified previous version of a single resource of type InsurancePlan",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadInsurancePlan",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/InsurancePlan"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/InsurancePlan.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Location": {
- "summary": "manage the collection of resources of type Location",
- "description": "Access to services to manage the collection of all resources of type Location",
- "get": {
- "summary": "Search all resources of type Location based on a set of criteria",
- "operationId": "searchLocation",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "partof",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations that are part of the specified location"
- },
- {
- "name": "organization",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations managed by the specified organization"
- },
- {
- "name": "endpoint",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations with the specified endpoint"
- },
- {
- "name": "address-city",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations with the specified address.city"
- },
- {
- "name": "address-state",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations with the specified address.state"
- },
- {
- "name": "address-postalcode",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations with the specified address"
- },
- {
- "name": "address",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations with the specified address"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Locations of the specified type"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- }
- ]
- }
- },
- "/Location/{rid}": {
- "summary": "Read/Write/etc resource instance of type Location",
- "description": "Access to services to manage the state of a single resource of type Location",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readLocation",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Location"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Location.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Location/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type Location",
- "description": "Access a to specified previous version of a single resource of type Location",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadLocation",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Location"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Location.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Organization": {
- "summary": "manage the collection of resources of type Organization",
- "description": "Access to services to manage the collection of all resources of type Organization",
- "get": {
- "summary": "Search all resources of type Organization based on a set of criteria",
- "operationId": "searchOrganization",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "partof",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Organizations that are part of the specified organization"
- },
- {
- "name": "endpoint",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Organizations with the specified endpoint"
- },
- {
- "name": "address",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select organizations with the specified address (matches any of the string elements of an address)"
- },
- {
- "name": "name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Organizations with the specified name"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- },
- {
- "name": "type",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Organizations of the specified type"
- },
- {
- "name": "coverage-area",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select health insurance provider networks available in a region described by the specified location"
- }
- ]
- }
- },
- "/Organization/{rid}": {
- "summary": "Read/Write/etc resource instance of type Organization",
- "description": "Access to services to manage the state of a single resource of type Organization",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readOrganization",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Organization"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Organization.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Organization/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type Organization",
- "description": "Access a to specified previous version of a single resource of type Organization",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadOrganization",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Organization"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Organization.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/OrganizationAffiliation": {
- "summary": "manage the collection of resources of type OrganizationAffiliation",
- "description": "Access to services to manage the collection of all resources of type OrganizationAffiliation",
- "get": {
- "summary": "Search all resources of type OrganizationAffiliation based on a set of criteria",
- "operationId": "searchOrganizationAffiliation",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "primary-organization",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select roles offered by the specified organization"
- },
- {
- "name": "participating-organization",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select roles filled by the specified organization"
- },
- {
- "name": "location",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select OrganizationAffiliations available at the specified location"
- },
- {
- "name": "service",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select OrganizationAffiliations providing the specified service"
- },
- {
- "name": "network",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select roles where the organization is a member of the specified health insurance provider network"
- },
- {
- "name": "endpoint",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select OrganizationAffiliations with the specified endpoint"
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select OrganizationAffiliations with the specified role"
- },
- {
- "name": "specialty",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select OrganizationAffiliations associated with the specified specialty"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- }
- ]
- }
- },
- "/OrganizationAffiliation/{rid}": {
- "summary": "Read/Write/etc resource instance of type OrganizationAffiliation",
- "description": "Access to services to manage the state of a single resource of type OrganizationAffiliation",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readOrganizationAffiliation",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OrganizationAffiliation"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OrganizationAffiliation.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/OrganizationAffiliation/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type OrganizationAffiliation",
- "description": "Access a to specified previous version of a single resource of type OrganizationAffiliation",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadOrganizationAffiliation",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OrganizationAffiliation"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OrganizationAffiliation.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Practitioner": {
- "summary": "manage the collection of resources of type Practitioner",
- "description": "Access to services to manage the collection of all resources of type Practitioner",
- "get": {
- "summary": "Search all resources of type Practitioner based on a set of criteria",
- "operationId": "searchPractitioner",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "name",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Practitioners with the specified name (matches against any of the elements in the HumanName data type)"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- },
- {
- "name": "family",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Practitioners with the specified family name"
- },
- {
- "name": "given",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select Practitioners with the specified given name"
- }
- ]
- }
- },
- "/Practitioner/{rid}": {
- "summary": "Read/Write/etc resource instance of type Practitioner",
- "description": "Access to services to manage the state of a single resource of type Practitioner",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readPractitioner",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Practitioner"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Practitioner.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/Practitioner/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type Practitioner",
- "description": "Access a to specified previous version of a single resource of type Practitioner",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadPractitioner",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Practitioner"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Practitioner.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/PractitionerRole": {
- "summary": "manage the collection of resources of type PractitionerRole",
- "description": "Access to services to manage the collection of all resources of type PractitionerRole",
- "get": {
- "summary": "Search all resources of type PractitionerRole based on a set of criteria",
- "operationId": "searchPractitionerRole",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/Bundle"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/Bundle.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/elements"
- },
- {
- "name": "practitioner",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select roles filled by the specified practitioner"
- },
- {
- "name": "organization",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select PractitionerRoles available at the specified organization"
- },
- {
- "name": "location",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select PractitionerRoles available at the specified location"
- },
- {
- "name": "service",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select PractitionerRoles providing the specified service"
- },
- {
- "name": "network",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select roles where the practitioner is a member of the specified health insurance provider network"
- },
- {
- "name": "endpoint",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select PractitionerRoles with the specified endpoint"
- },
- {
- "name": "role",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select PractitionerRoles with the specified role"
- },
- {
- "name": "specialty",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Select PractitionerRoles associated with the specified specialty"
- },
- {
- "name": "_id",
- "in": "query",
- "schema": {
- "type": "string"
- },
- "description": "Logical id of this artifact"
- },
- {
- "name": "_lastUpdated",
- "in": "query",
- "schema": {
- "type": "string",
- "pattern": "([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
- },
- "description": "When the resource version last changed"
- }
- ]
- }
- },
- "/PractitionerRole/{rid}": {
- "summary": "Read/Write/etc resource instance of type PractitionerRole",
- "description": "Access to services to manage the state of a single resource of type PractitionerRole",
- "get": {
- "summary": "Read the current state of the resource",
- "operationId": "readPractitionerRole",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/PractitionerRole"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/PractitionerRole.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- },
- "/PractitionerRole/{rid}/_history/{hid}": {
- "summary": "Read a past version of resource instance of type PractitionerRole",
- "description": "Access a to specified previous version of a single resource of type PractitionerRole",
- "get": {
- "summary": "Read a past state of the resource",
- "operationId": "vreadPractitionerRole",
- "responses": {
- "default": {
- "description": "Error, with details",
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/OperationOutcome"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/OperationOutcome.xsd"
- }
- }
- }
- },
- "200": {
- "description": "the resource being returned",
- "headers": {
- "ETag": {
- "description": "Version from Resource.meta.version as a weak ETag for that version",
- "schema": {
- "type": "string"
- }
- }
- },
- "content": {
- "application/fhir+json": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/fhir.schema.json#/definitions/PractitionerRole"
- }
- },
- "application/fhir+xml": {
- "schema": {
- "$ref": "https://hl7.org/fhir/R4/PractitionerRole.xsd"
- }
- }
- }
- }
- },
- "parameters": [
- {
- "$ref": "#/components/parameters/rid"
- },
- {
- "$ref": "#/components/parameters/hid"
- },
- {
- "$ref": "#/components/parameters/summary"
- },
- {
- "$ref": "#/components/parameters/format"
- },
- {
- "$ref": "#/components/parameters/pretty"
- },
- {
- "$ref": "#/components/parameters/elements"
- }
- ]
- }
- }
- },
- "components": {
- "parameters": {
- "rid": {
- "name": "rid",
- "in": "path",
- "description": "id of the resource (\u003dResource.id)",
- "required": true,
- "allowEmptyValue": false,
- "style": "simple",
- "schema": {
- "type": "string"
- }
- },
- "hid": {
- "name": "hid",
- "in": "path",
- "description": "id of the history entry (\u003dResource.meta.versionId)",
- "required": true,
- "allowEmptyValue": false,
- "style": "simple",
- "schema": {
- "type": "string"
- }
- },
- "summary": {
- "name": "_summary",
- "in": "query",
- "description": "Requests the server to return a designated subset of the resource",
- "allowEmptyValue": true,
- "style": "form",
- "schema": {
- "type": "string",
- "enum": [
- "true",
- "text",
- "data",
- "count",
- "false"
- ]
- }
- },
- "format": {
- "name": "_format",
- "in": "query",
- "description": "Specify alternative response formats by their MIME-types (when a client is unable acccess accept: header)",
- "allowEmptyValue": true,
- "style": "form",
- "schema": {
- "type": "string",
- "format": "mime-type"
- }
- },
- "pretty": {
- "name": "_pretty",
- "in": "query",
- "description": "Ask for a pretty printed response for human convenience",
- "allowEmptyValue": true,
- "style": "form",
- "schema": {
- "type": "boolean"
- }
- },
- "elements": {
- "name": "_elements",
- "in": "query",
- "description": "Requests the server to return a collection of elements from the resource",
- "allowEmptyValue": true,
- "style": "form",
- "explode": false,
- "schema": {
- "type": "array",
- "format": "string",
- "items": {
- "format": "string"
- }
- }
- },
- "count": {
- "name": "_count",
- "in": "query",
- "description": "The maximum number of search results on a page. The server is not bound to return the number requested, but cannot return more",
- "schema": {
- "type": "number"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/fhir-examples/pom.xml b/fhir-examples/pom.xml
index c3599248f1d..2c50be4c85e 100644
--- a/fhir-examples/pom.xml
+++ b/fhir-examples/pom.xml
@@ -47,6 +47,7 @@
${java.version}
${java.version}
yyyyMMdd-HHmm
+ 4.10.0-SNAPSHOT
@@ -451,6 +452,28 @@
+
+
+
+
+ condense-json
+
+
+
+ ${project.groupId}
+ fhir-tools
+ ${fhir-tools.version}
+
+
+
+ condense-json
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/fhir-parent/pom.xml b/fhir-parent/pom.xml
index 88cb318d235..2b0bd21d71a 100644
--- a/fhir-parent/pom.xml
+++ b/fhir-parent/pom.xml
@@ -982,6 +982,23 @@
+
+
+ com.ibm.fhir
+
+ fhir-tools
+
+
+ [4.10.0-SNAPSHOT,)
+
+
+ condense-json
+
+
+
+
+
+
@@ -1339,6 +1356,28 @@
+
+
+
+
+ condense-json
+
+
+
+ ${project.groupId}
+ fhir-tools
+ ${fhir-tools.version}
+
+
+
+ condense-json
+
+
+
+
+
+
+
diff --git a/fhir-tools/pom.xml b/fhir-tools/pom.xml
index 0b04496f02d..1f00dc976ac 100644
--- a/fhir-tools/pom.xml
+++ b/fhir-tools/pom.xml
@@ -209,9 +209,9 @@
- org.glassfish
+ org.eclipse.parsson
jakarta.json
- 2.0.1
+ 1.0.0
org.skyscreamer
diff --git a/fhir-tools/src/main/java/com/ibm/fhir/condense/plugin/CondenseAndCopyFileVisitor.java b/fhir-tools/src/main/java/com/ibm/fhir/condense/plugin/CondenseAndCopyFileVisitor.java
new file mode 100644
index 00000000000..1611bbca203
--- /dev/null
+++ b/fhir-tools/src/main/java/com/ibm/fhir/condense/plugin/CondenseAndCopyFileVisitor.java
@@ -0,0 +1,68 @@
+/*
+ * (C) Copyright IBM Corp. 2021
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+package com.ibm.fhir.condense.plugin;
+
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.IOException;
+import java.nio.file.FileVisitResult;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.nio.file.SimpleFileVisitor;
+import java.nio.file.attribute.BasicFileAttributes;
+
+import jakarta.json.Json;
+import jakarta.json.JsonObject;
+import jakarta.json.JsonReader;
+import jakarta.json.JsonReaderFactory;
+import jakarta.json.JsonWriter;
+import jakarta.json.JsonWriterFactory;
+
+/**
+ * A FileVisitor that strips non-meaningful whitespace from JSON files as it copies
+ * them to a new directory.
+ */
+public class CondenseAndCopyFileVisitor extends SimpleFileVisitor {
+ final JsonReaderFactory jsonReaderFactory = Json.createReaderFactory(null);
+ final JsonWriterFactory jsonWriterFactory = Json.createWriterFactory(null);
+ final Path resourcesDir;
+ final Path outputDir;
+
+ int count = 0;
+
+ public CondenseAndCopyFileVisitor(Path resourcesDir, Path outputDirectory) {
+ this.resourcesDir = resourcesDir;
+ this.outputDir = outputDirectory;
+ }
+
+ @Override
+ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
+ if (file.toString().endsWith(".json")) {
+ String relativePath = resourcesDir.relativize(file).toString();
+ Path target = Paths.get(outputDir.toString(), relativePath);
+
+ JsonObject jsonObject = null;
+ try (BufferedReader reader = Files.newBufferedReader(file)) {
+ JsonReader jsonReader = jsonReaderFactory.createReader(reader);
+ jsonObject = jsonReader.readObject();
+ }
+ try (BufferedWriter writer = Files.newBufferedWriter(target)) {
+ JsonWriter jsonWriter = jsonWriterFactory.createWriter(writer);
+ jsonWriter.write(jsonObject);
+ }
+ count++;
+ }
+ return FileVisitResult.CONTINUE;
+ }
+
+ /**
+ * @return the number of processed files
+ */
+ public int getCount() {
+ return count;
+ }
+}
diff --git a/fhir-tools/src/main/java/com/ibm/fhir/condense/plugin/CondenserPlugin.java b/fhir-tools/src/main/java/com/ibm/fhir/condense/plugin/CondenserPlugin.java
new file mode 100644
index 00000000000..1ba0d931f83
--- /dev/null
+++ b/fhir-tools/src/main/java/com/ibm/fhir/condense/plugin/CondenserPlugin.java
@@ -0,0 +1,73 @@
+/*
+ * (C) Copyright IBM Corp. 2019, 2021
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+package com.ibm.fhir.condense.plugin;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+
+import org.apache.maven.model.Resource;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Execute;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.plugins.annotations.ResolutionScope;
+
+/**
+ * This class coordinates the calls to the fhir-tool plugin
+ *
+ * The phase is process-resources. To find a list of phases -
+ * https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference
+ *
+ * Run the following to setup the plugin:
+ *
+ * mvn clean install -f fhir-tools/pom.xml
+ *
+ *
+ * @requiresDependencyResolution runtime
+ */
+@Mojo(name = "condense-json", //$NON-NLS-1$
+ requiresProject = true,
+ requiresDependencyResolution = ResolutionScope.RUNTIME_PLUS_SYSTEM,
+ requiresDependencyCollection = ResolutionScope.RUNTIME_PLUS_SYSTEM,
+ defaultPhase = LifecyclePhase.PROCESS_RESOURCES,
+ requiresOnline = false,
+ threadSafe = false)
+@Execute(phase = LifecyclePhase.PROCESS_RESOURCES)
+public class CondenserPlugin extends AbstractMojo {
+
+ @Parameter( defaultValue = "${project.build.outputDirectory}", required = true )
+ private File outputDirectory;
+
+ @Parameter( defaultValue = "${project.resources}", required = true, readonly = true )
+ private List resources;
+
+ @Override
+ public void execute() throws MojoExecutionException, MojoFailureException {
+ for (Resource resource : resources) {
+ try {
+ Path resourcesDir = Paths.get(resource.getDirectory());
+ if (Files.isDirectory(resourcesDir)) {
+ CondenseAndCopyFileVisitor visitor = new CondenseAndCopyFileVisitor(resourcesDir, outputDirectory.toPath());
+ Files.walkFileTree(resourcesDir, visitor);
+
+ getLog().info("processed " + visitor.getCount() + " JSON files");
+ } else {
+ getLog().info("skipping non-directory " + resourcesDir);
+ }
+ } catch (IOException e) {
+ throw new MojoExecutionException("Error while condensing and copying resources", e);
+ }
+ }
+ }
+}
diff --git a/fhir-tools/src/main/java/com/ibm/fhir/model/plugin/ModelPlugin.java b/fhir-tools/src/main/java/com/ibm/fhir/model/plugin/ModelPlugin.java
index ab356a1f662..2b7b78491ac 100644
--- a/fhir-tools/src/main/java/com/ibm/fhir/model/plugin/ModelPlugin.java
+++ b/fhir-tools/src/main/java/com/ibm/fhir/model/plugin/ModelPlugin.java
@@ -1,5 +1,5 @@
/*
- * (C) Copyright IBM Corp. 2019, 2020
+ * (C) Copyright IBM Corp. 2019, 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -26,7 +26,7 @@
/**
* This class coordinates the calls to the fhir-tool plugin
*
- * The phase is initialize. To find a list of phases -
+ * The phase is generate-sources. To find a list of phases -
* https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference
*
* Run the following to setup the plugin: