Datasets:
Add pinned source: smart-anc
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +29 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.github/workflows/fhirbuild.yml +23 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.github/workflows/ghbuild.yml +23 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.github/workflows/release.yml +35 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.gitignore +7 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/anc-cds.iml +9 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/libraries/org_hl7_fhir_publisher.xml +9 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/misc.xml +6 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/modules.xml +8 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/vcs.xml +6 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/workspace.xml +164 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/LICENSE.md +33 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/README.md +42 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_autoPublish.bat +32 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_gencontinuous.bat +2 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_gencontinuous.sh +2 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_genonce.bat +27 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_genonce.sh +30 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_processDataDictionary.bat +22 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_processDataDictionary.sh +22 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_processDecisionTables.bat +1 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_processDecisionTables.sh +21 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_refresh.bat +30 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_refresh.sh +32 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_updateCQFTooling.bat +86 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_updateCQFTooling.sh +61 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_updatePublisher.bat +232 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/_updatePublisher.sh +144 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/anc-cds-rec-a2.postman_collection.json +0 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/example-first-contact-bundle.json +1244 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/appointment-charity-second-contact.xml +67 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/careplan-charity-pregnancy-plan.xml +264 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/careteam-anc-team.xml +18 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/condition-charity-iron-side-effects.xml +39 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/condition-charity-pregnancy.xml +39 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/encounter-charity-first-contact.xml +56 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/episodeofcare-charity-pregnancy-episode.xml +39 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/goal-charity-pregnancy-goal.xml +14 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/medicationrequest-charity-daily-elemental-iron-prescription.xml +65 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/medicationrequest-charity-daily-elemental-iron-recommendation.xml +60 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/observation-charity-gest-age-method.xml +42 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/observation-charity-hb.xml +72 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/observation-charity-lmp.xml +36 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/patient-charity.xml +28 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/practitioner-midwife.xml +24 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/practitionerrole-midwife.xml +55 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/questionnaire-anc-recommendation-a2.xml +50 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/servicerequest-charity-second-contact.xml +93 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/pagecontent/examples-first-contact.md +17 -0
- source_data/pinned/smart-anc/commit-301a6b8b9043/archived/quick-start-bundles/example-first-contact-bundle.json +1244 -0
.gitattributes
CHANGED
|
@@ -224,3 +224,32 @@ source_data/pinned/behavior-1k-bddl/v3.9.3-post2/asset_pipeline/render_presets/s
|
|
| 224 |
source_data/pinned/apis-guru/commit-f04b8d0bcd39/APIs/loket.nl/V2/openapi.yaml filter=lfs diff=lfs merge=lfs -text
|
| 225 |
source_data/pinned/apis-guru/commit-f04b8d0bcd39/APIs/microsoft.com/graph/1.0.1/openapi.yaml filter=lfs diff=lfs merge=lfs -text
|
| 226 |
source_data/pinned/apis-guru/commit-f04b8d0bcd39/APIs/microsoft.com/graph-beta/1.0.1/openapi.yaml filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
source_data/pinned/apis-guru/commit-f04b8d0bcd39/APIs/loket.nl/V2/openapi.yaml filter=lfs diff=lfs merge=lfs -text
|
| 225 |
source_data/pinned/apis-guru/commit-f04b8d0bcd39/APIs/microsoft.com/graph/1.0.1/openapi.yaml filter=lfs diff=lfs merge=lfs -text
|
| 226 |
source_data/pinned/apis-guru/commit-f04b8d0bcd39/APIs/microsoft.com/graph-beta/1.0.1/openapi.yaml filter=lfs diff=lfs merge=lfs -text
|
| 227 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND01/ANCIND01-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 228 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND01/ANCIND01-files/library-deps-ANCIND01-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 229 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND02/ANCIND02-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 230 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND02/ANCIND02-files/library-deps-ANCIND02-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 231 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND03/ANCIND03-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 232 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND03/ANCIND03-files/library-deps-ANCIND03-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 233 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND04/ANCIND04-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 234 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND04/ANCIND04-files/library-deps-ANCIND04-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 235 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND05/ANCIND05-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 236 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND05/ANCIND05-files/library-deps-ANCIND05-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 237 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND06/ANCIND06-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 238 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND06/ANCIND06-files/library-deps-ANCIND06-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 239 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND07/ANCIND07-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 240 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND07/ANCIND07-files/library-deps-ANCIND07-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 241 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND08/ANCIND08-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 242 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND08/ANCIND08-files/library-deps-ANCIND08-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 243 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND09/ANCIND09-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 244 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND09/ANCIND09-files/library-deps-ANCIND09-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 245 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND10/ANCIND10-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 246 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND10/ANCIND10-files/library-deps-ANCIND10-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 247 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND11/ANCIND11-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 248 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND11/ANCIND11-files/library-deps-ANCIND11-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 249 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND12/ANCIND12-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 250 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND12/ANCIND12-files/library-deps-ANCIND12-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 251 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND13/ANCIND13-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 252 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/measure/ANCIND13/ANCIND13-files/library-deps-ANCIND13-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 253 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/plandefinition/ANCDT01/ANCDT01-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 254 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/plandefinition/ANCDT01/ANCDT01-files/library-deps-ANCDT01-bundle.json filter=lfs diff=lfs merge=lfs -text
|
| 255 |
+
source_data/pinned/smart-anc/commit-301a6b8b9043/bundles/plandefinition/ANCDT02/ANCDT02-bundle.json filter=lfs diff=lfs merge=lfs -text
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.github/workflows/fhirbuild.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This workflow reuses the openHIE GitHub action for building IGs
|
| 2 |
+
# Initial idea by Carl Leitner, developed by Elliot Silver, available from: https://www.argentixinfo.com/archives/156
|
| 3 |
+
# Change log:
|
| 4 |
+
# v0.1.0
|
| 5 |
+
# 2021-06-18: publish default branches to / , other branches branches/<branch>
|
| 6 |
+
# 2021-11-26: reusable workflow
|
| 7 |
+
|
| 8 |
+
name: CI
|
| 9 |
+
|
| 10 |
+
# Controls when the action will run.
|
| 11 |
+
on:
|
| 12 |
+
# Triggers the workflow on push or pull request events for any main branch
|
| 13 |
+
push:
|
| 14 |
+
branches-ignore:
|
| 15 |
+
- 'gh-pages'
|
| 16 |
+
pull_request:
|
| 17 |
+
|
| 18 |
+
workflow_dispatch:
|
| 19 |
+
|
| 20 |
+
jobs:
|
| 21 |
+
# This workflow contains a single job called "build"
|
| 22 |
+
call_build:
|
| 23 |
+
uses: WorldHealthOrganization/smart-base/.github/workflows/fhirbuild.yml@main
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.github/workflows/ghbuild.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This workflow reuses the World Health Organization GitHub action for building IGs
|
| 2 |
+
# Initial idea by Carl Leitner
|
| 3 |
+
# Change log:
|
| 4 |
+
# v0.1.0
|
| 5 |
+
# 2021-06-18: publish default branches to / , other branches branches/<branch>
|
| 6 |
+
# 2021-11-26: reusable workflow
|
| 7 |
+
|
| 8 |
+
name: ghbuild
|
| 9 |
+
|
| 10 |
+
# Controls when the action will run.
|
| 11 |
+
on:
|
| 12 |
+
# Triggers the workflow on push or pull request events for any main branch
|
| 13 |
+
push:
|
| 14 |
+
branches-ignore:
|
| 15 |
+
- 'gh-pages'
|
| 16 |
+
pull_request:
|
| 17 |
+
|
| 18 |
+
workflow_dispatch:
|
| 19 |
+
|
| 20 |
+
jobs:
|
| 21 |
+
# This workflow contains a single job called "build"
|
| 22 |
+
call_build:
|
| 23 |
+
uses: WorldHealthOrganization/smart-base/.github/workflows/ghbuild.yml@main
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.github/workflows/release.yml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This workflow calls a remote workflow for setting up a release publication,
|
| 2 |
+
# This workflow is triggered by the creation of a GitHub release and requires a file called publication-request.json in the branch.
|
| 3 |
+
|
| 4 |
+
name: Release build
|
| 5 |
+
|
| 6 |
+
on:
|
| 7 |
+
release:
|
| 8 |
+
types: [created]
|
| 9 |
+
workflow_dispatch:
|
| 10 |
+
|
| 11 |
+
jobs:
|
| 12 |
+
check:
|
| 13 |
+
runs-on: ubuntu-latest
|
| 14 |
+
outputs:
|
| 15 |
+
file_exists: ${{ steps.checkfile.outputs.exists }}
|
| 16 |
+
steps:
|
| 17 |
+
- name: Checkout code
|
| 18 |
+
uses: actions/checkout@v3
|
| 19 |
+
with:
|
| 20 |
+
ref: ${{ github.event.release.tag_name }}
|
| 21 |
+
|
| 22 |
+
- name: Check for publication-request.json
|
| 23 |
+
id: checkfile
|
| 24 |
+
run: |
|
| 25 |
+
if [[ -f "publication-request.json" ]]; then
|
| 26 |
+
echo "::set-output name=exists::true"
|
| 27 |
+
else
|
| 28 |
+
echo "::set-output name=exists::false"
|
| 29 |
+
fi
|
| 30 |
+
|
| 31 |
+
trigger:
|
| 32 |
+
needs: check
|
| 33 |
+
if: needs.check.outputs.file_exists == 'true'
|
| 34 |
+
uses: WorldHealthOrganization/smart-html/.github/workflows/release.yml@main
|
| 35 |
+
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.gitignore
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
output/
|
| 3 |
+
temp/
|
| 4 |
+
template/
|
| 5 |
+
/qa
|
| 6 |
+
/input-cache
|
| 7 |
+
input/l2/Temp Archive/*
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/anc-cds.iml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<module type="JAVA_MODULE" version="4">
|
| 3 |
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
| 4 |
+
<exclude-output />
|
| 5 |
+
<content url="file://$MODULE_DIR$" />
|
| 6 |
+
<orderEntry type="inheritedJdk" />
|
| 7 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
| 8 |
+
</component>
|
| 9 |
+
</module>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/libraries/org_hl7_fhir_publisher.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<component name="libraryTable">
|
| 2 |
+
<library name="org.hl7.fhir.publisher">
|
| 3 |
+
<CLASSES>
|
| 4 |
+
<root url="jar://$PROJECT_DIR$/org.hl7.fhir.publisher.jar!/" />
|
| 5 |
+
</CLASSES>
|
| 6 |
+
<JAVADOC />
|
| 7 |
+
<SOURCES />
|
| 8 |
+
</library>
|
| 9 |
+
</component>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/misc.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
| 4 |
+
<output url="file://$PROJECT_DIR$/out" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/modules.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ProjectModuleManager">
|
| 4 |
+
<modules>
|
| 5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/anc-cds.iml" filepath="$PROJECT_DIR$/.idea/anc-cds.iml" />
|
| 6 |
+
</modules>
|
| 7 |
+
</component>
|
| 8 |
+
</project>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="VcsDirectoryMappings">
|
| 4 |
+
<mapping directory="" vcs="Git" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="BranchesTreeState">
|
| 4 |
+
<expand>
|
| 5 |
+
<path>
|
| 6 |
+
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
| 7 |
+
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
| 8 |
+
</path>
|
| 9 |
+
<path>
|
| 10 |
+
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
| 11 |
+
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
| 12 |
+
</path>
|
| 13 |
+
<path>
|
| 14 |
+
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
| 15 |
+
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
| 16 |
+
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
| 17 |
+
</path>
|
| 18 |
+
</expand>
|
| 19 |
+
<select />
|
| 20 |
+
</component>
|
| 21 |
+
<component name="ChangeListManager">
|
| 22 |
+
<list default="true" id="208e14f2-2c5c-471b-b904-faaf1c0551db" name="Default Changelist" comment="">
|
| 23 |
+
<change beforePath="$PROJECT_DIR$/_gencontinuous.bat" beforeDir="false" afterPath="$PROJECT_DIR$/_gencontinuous.bat" afterDir="false" />
|
| 24 |
+
<change beforePath="$PROJECT_DIR$/_gencontinuous.sh" beforeDir="false" afterPath="$PROJECT_DIR$/_gencontinuous.sh" afterDir="false" />
|
| 25 |
+
<change beforePath="$PROJECT_DIR$/_genonce.bat" beforeDir="false" afterPath="$PROJECT_DIR$/_genonce.bat" afterDir="false" />
|
| 26 |
+
<change beforePath="$PROJECT_DIR$/_genonce.sh" beforeDir="false" afterPath="$PROJECT_DIR$/_genonce.sh" afterDir="false" />
|
| 27 |
+
<change beforePath="$PROJECT_DIR$/_updateCQFTooling.bat" beforeDir="false" afterPath="$PROJECT_DIR$/_updateCQFTooling.bat" afterDir="false" />
|
| 28 |
+
<change beforePath="$PROJECT_DIR$/_updatePublisher.bat" beforeDir="false" afterPath="$PROJECT_DIR$/_updatePublisher.bat" afterDir="false" />
|
| 29 |
+
<change beforePath="$PROJECT_DIR$/_updatePublisher.sh" beforeDir="false" afterPath="$PROJECT_DIR$/_updatePublisher.sh" afterDir="false" />
|
| 30 |
+
<change beforePath="$PROJECT_DIR$/input/resources/device/cqf-tooling.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/device/cqf-tooling.json" afterDir="false" />
|
| 31 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCCommon.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCCommon.json" afterDir="false" />
|
| 32 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCCommonConfig.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCCommonConfig.json" afterDir="false" />
|
| 33 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCDummy.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCDummy.json" afterDir="false" />
|
| 34 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCFHIRDummy.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCFHIRDummy.json" afterDir="false" />
|
| 35 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCFHIRTerminologyDummy.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCFHIRTerminologyDummy.json" afterDir="false" />
|
| 36 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationA2.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationA2.json" afterDir="false" />
|
| 37 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationB11.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationB11.json" afterDir="false" />
|
| 38 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationB1_7.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationB1_7.json" afterDir="false" />
|
| 39 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationB2_4.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationB2_4.json" afterDir="false" />
|
| 40 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationC6.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationC6.json" afterDir="false" />
|
| 41 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationC6Tests.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-ANCRecommendationC6Tests.json" afterDir="false" />
|
| 42 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-FHIRCommon.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-FHIRCommon.json" afterDir="false" />
|
| 43 |
+
<change beforePath="$PROJECT_DIR$/input/resources/library/library-FHIRHelpers.json" beforeDir="false" afterPath="$PROJECT_DIR$/input/resources/library/library-FHIRHelpers.json" afterDir="false" />
|
| 44 |
+
</list>
|
| 45 |
+
<option name="SHOW_DIALOG" value="false" />
|
| 46 |
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
| 47 |
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
| 48 |
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
| 49 |
+
</component>
|
| 50 |
+
<component name="Git.Settings">
|
| 51 |
+
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
| 52 |
+
<map>
|
| 53 |
+
<entry key="$PROJECT_DIR$" value="develop" />
|
| 54 |
+
</map>
|
| 55 |
+
</option>
|
| 56 |
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
| 57 |
+
</component>
|
| 58 |
+
<component name="MavenImportPreferences">
|
| 59 |
+
<option name="generalSettings">
|
| 60 |
+
<MavenGeneralSettings>
|
| 61 |
+
<option name="mavenHome" value="D:\Program Files\JetBrains\IntelliJ IDEA 2020.2\plugins\maven\lib\maven3" />
|
| 62 |
+
</MavenGeneralSettings>
|
| 63 |
+
</option>
|
| 64 |
+
</component>
|
| 65 |
+
<component name="ProjectId" id="1k78DAaDsVq0HLZBaCbTNkhSk6L" />
|
| 66 |
+
<component name="ProjectViewState">
|
| 67 |
+
<option name="hideEmptyMiddlePackages" value="true" />
|
| 68 |
+
<option name="showLibraryContents" value="true" />
|
| 69 |
+
<option name="showMembers" value="true" />
|
| 70 |
+
</component>
|
| 71 |
+
<component name="PropertiesComponent">
|
| 72 |
+
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
| 73 |
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
| 74 |
+
<property name="aspect.path.notification.shown" value="true" />
|
| 75 |
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
| 76 |
+
<property name="nodejs_package_manager_path" value="npm" />
|
| 77 |
+
<property name="settings.editor.selected.configurable" value="spring" />
|
| 78 |
+
<property name="two.files.diff.last.used.file" value="$PROJECT_DIR$/_genonce.bat" />
|
| 79 |
+
</component>
|
| 80 |
+
<component name="RecentsManager">
|
| 81 |
+
<key name="CopyFile.RECENT_KEYS">
|
| 82 |
+
<recent name="D:\Projects\_who\anc-cds" />
|
| 83 |
+
<recent name="D:\Projects\anc-cds\input-cache" />
|
| 84 |
+
</key>
|
| 85 |
+
</component>
|
| 86 |
+
<component name="RunManager">
|
| 87 |
+
<configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true">
|
| 88 |
+
<option name="arquillianRunConfiguration">
|
| 89 |
+
<value>
|
| 90 |
+
<option name="containerStateName" value="" />
|
| 91 |
+
</value>
|
| 92 |
+
</option>
|
| 93 |
+
<option name="TEST_OBJECT" value="class" />
|
| 94 |
+
<method v="2">
|
| 95 |
+
<option name="Make" enabled="true" />
|
| 96 |
+
</method>
|
| 97 |
+
</configuration>
|
| 98 |
+
</component>
|
| 99 |
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
| 100 |
+
<component name="TaskManager">
|
| 101 |
+
<task active="true" id="Default" summary="Default task">
|
| 102 |
+
<changelist id="208e14f2-2c5c-471b-b904-faaf1c0551db" name="Default Changelist" comment="" />
|
| 103 |
+
<created>1605040146482</created>
|
| 104 |
+
<option name="number" value="Default" />
|
| 105 |
+
<option name="presentableId" value="Default" />
|
| 106 |
+
<updated>1605040146482</updated>
|
| 107 |
+
<workItem from="1605040147625" duration="1844000" />
|
| 108 |
+
<workItem from="1605102538392" duration="5252000" />
|
| 109 |
+
<workItem from="1605110251215" duration="3883000" />
|
| 110 |
+
<workItem from="1605193755259" duration="9504000" />
|
| 111 |
+
<workItem from="1605204398041" duration="3424000" />
|
| 112 |
+
<workItem from="1605209224691" duration="109000" />
|
| 113 |
+
<workItem from="1605210427603" duration="5740000" />
|
| 114 |
+
<workItem from="1605620894717" duration="1180000" />
|
| 115 |
+
<workItem from="1605707614514" duration="587000" />
|
| 116 |
+
<workItem from="1605742643246" duration="587000" />
|
| 117 |
+
<workItem from="1605793231496" duration="1004000" />
|
| 118 |
+
<workItem from="1605796061647" duration="3882000" />
|
| 119 |
+
<workItem from="1605803438526" duration="9674000" />
|
| 120 |
+
</task>
|
| 121 |
+
<servers />
|
| 122 |
+
</component>
|
| 123 |
+
<component name="TypeScriptGeneratedFilesManager">
|
| 124 |
+
<option name="version" value="3" />
|
| 125 |
+
</component>
|
| 126 |
+
<component name="Vcs.Log.Tabs.Properties">
|
| 127 |
+
<option name="TAB_STATES">
|
| 128 |
+
<map>
|
| 129 |
+
<entry key="MAIN">
|
| 130 |
+
<value>
|
| 131 |
+
<State />
|
| 132 |
+
</value>
|
| 133 |
+
</entry>
|
| 134 |
+
</map>
|
| 135 |
+
</option>
|
| 136 |
+
<option name="oldMeFiltersMigrated" value="true" />
|
| 137 |
+
</component>
|
| 138 |
+
<component name="WindowStateProjectService">
|
| 139 |
+
<state x="92" y="92" width="1736" height="856" key="DiffContextDialog" timestamp="1605813898321">
|
| 140 |
+
<screen x="0" y="0" width="1920" height="1040" />
|
| 141 |
+
</state>
|
| 142 |
+
<state x="92" y="92" width="1736" height="856" key="DiffContextDialog/-1922.-1072.1536.832/0.0.1920.1040/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605215724540" />
|
| 143 |
+
<state x="92" y="92" width="1736" height="856" key="DiffContextDialog/0.0.1920.1040/-1920.-1072.1536.824/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605813898321" />
|
| 144 |
+
<state x="689" y="255" key="FileChooserDialogImpl" timestamp="1605796119594">
|
| 145 |
+
<screen x="0" y="0" width="1920" height="1040" />
|
| 146 |
+
</state>
|
| 147 |
+
<state x="-1231" y="263" key="FileChooserDialogImpl/-1922.-1072.1536.832/0.0.1920.1040/-1920.8.1920.1040@-1920.8.1920.1040" timestamp="1605042416816" />
|
| 148 |
+
<state x="689" y="255" key="FileChooserDialogImpl/-1922.-1072.1536.832/0.0.1920.1040/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605110280783" />
|
| 149 |
+
<state x="689" y="255" key="FileChooserDialogImpl/0.0.1920.1040/-1920.-1072.1536.824/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605796119594" />
|
| 150 |
+
<state x="1" y="11" width="1736" height="856" key="com.intellij.history.integration.ui.views.FileHistoryDialog" timestamp="1605811070048">
|
| 151 |
+
<screen x="0" y="0" width="1920" height="1040" />
|
| 152 |
+
</state>
|
| 153 |
+
<state x="1" y="11" width="1736" height="856" key="com.intellij.history.integration.ui.views.FileHistoryDialog/0.0.1920.1040/-1920.-1072.1536.824/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605811070048" />
|
| 154 |
+
<state x="667" y="253" width="1002" height="534" key="find.popup" timestamp="1605814845091">
|
| 155 |
+
<screen x="0" y="0" width="1920" height="1040" />
|
| 156 |
+
</state>
|
| 157 |
+
<state x="667" y="253" width="1002" height="534" key="find.popup/-1922.-1072.1536.832/0.0.1920.1040/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605196142408" />
|
| 158 |
+
<state x="667" y="253" width="1002" height="534" key="find.popup/0.0.1920.1040/-1920.-1072.1536.824/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605814845091" />
|
| 159 |
+
<state x="739" y="233" key="git4idea.branch.GitSmartOperationDialog" timestamp="1605110569726">
|
| 160 |
+
<screen x="0" y="0" width="1920" height="1040" />
|
| 161 |
+
</state>
|
| 162 |
+
<state x="739" y="233" key="git4idea.branch.GitSmartOperationDialog/-1922.-1072.1536.832/0.0.1920.1040/-1920.8.1920.1040@0.0.1920.1040" timestamp="1605110569726" />
|
| 163 |
+
</component>
|
| 164 |
+
</project>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/LICENSE.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
> CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
----------
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
### <em>Statement of Purpose</em>
|
| 8 |
+
The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
|
| 9 |
+
|
| 10 |
+
Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
|
| 11 |
+
|
| 12 |
+
For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
|
| 13 |
+
|
| 14 |
+
**1. Copyright and Related Rights**. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
|
| 15 |
+
<ol type="i"><li>the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; </li>
|
| 16 |
+
<li>moral rights retained by the original author(s) and/or performer(s); </li>
|
| 17 |
+
<li>publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;</li>
|
| 18 |
+
<li>rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;</li>
|
| 19 |
+
<li>rights protecting the extraction, dissemination, use and reuse of data in a Work;</li>
|
| 20 |
+
<li>database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and </li>
|
| 21 |
+
<li>other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.</li>
|
| 22 |
+
</ol>
|
| 23 |
+
|
| 24 |
+
**2. Waiver**. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
|
| 25 |
+
|
| 26 |
+
**3. Public License Fallback**. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
|
| 27 |
+
|
| 28 |
+
**4. Limitations and Disclaimers**.
|
| 29 |
+
<ol type="a"><li>No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document</li>
|
| 30 |
+
<li>Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.</li>
|
| 31 |
+
<li> Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.</li>
|
| 32 |
+
<li>Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.</li>
|
| 33 |
+
</ol>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WHO Antenatal Care Guideline Implementation Guide (FHIR R4 (4.0.1))
|
| 2 |
+
|
| 3 |
+
This project is sponsored by the World Health Organization (WHO) to create shareable and computable clinical knowledge artifacts to support digital implementation of the [WHO recommendations on antenatal care for a positive pregnancy experience](https://www.who.int/reproductivehealth/publications/maternal_perinatal_health/anc-positive-pregnancy-experience/en/) (WHO Antenatal Care Guidelines (ANC)).
|
| 4 |
+
|
| 5 |
+
The current draft of the implementation guide is available [here](http://build.fhir.org/ig/WorldHealthOrganization/smart-anc/).
|
| 6 |
+
|
| 7 |
+
The guide is published under a Creative Commons [license](LICENSE.md).
|
| 8 |
+
|
| 9 |
+
## Change Management and Roadmap
|
| 10 |
+
|
| 11 |
+
This guide is in active development, currently version 0.3.0 as a release candidate soon to be released as version 1.0.0. The content for the overall pathway (8-visit contact schedule), routine contact, and all associated decision support and reporting indicators is complete and ready for trial-use and implementation testing.
|
| 12 |
+
|
| 13 |
+
Feedback and issues can be submitted via the [issues](issues) page, and will be incorporated into subsequent releases as time and resources allow.
|
| 14 |
+
|
| 15 |
+
## Repository and Build Information
|
| 16 |
+
|
| 17 |
+
This repository contains the source for the WHO Antenatal Care Guideline Implementation Guide, and uses the [FHIR Implementation Guide publisher](http://wiki.hl7.org/index.php?title=IG_Publisher_Documentation) to produce a FHIR Implementation Guide.
|
| 18 |
+
|
| 19 |
+
Commits to this repository will automatically trigger a new build of the IG, which will then be published to the following location:
|
| 20 |
+
|
| 21 |
+
[http://build.fhir.org/ig/WorldHealthOrganization/smart-anc/](http://build.fhir.org/ig/WorldHealthOrganization/smart-anc/)
|
| 22 |
+
|
| 23 |
+
Build log is available here:
|
| 24 |
+
|
| 25 |
+
[http://build.fhir.org.s3-website-us-east-1.amazonaws.com/logs/WorldHealthOrganization/smart-anc](http://build.fhir.org.s3-website-us-east-1.amazonaws.com/logs/WorldHealthOrganization/smart-anc)
|
| 26 |
+
|
| 27 |
+
Debugging information is available here:
|
| 28 |
+
|
| 29 |
+
[http://build.fhir.org/ig/WorldHealthOrganization/smart-anc/debug.tgz](http://build.fhir.org/ig/WorldHealthOrganization/smart-anc/debug.tgz)
|
| 30 |
+
|
| 31 |
+
### Local Build
|
| 32 |
+
|
| 33 |
+
The HL7 IG Publisher can be downloaded locally to make building as easy as possible. To build locally, download the publisher tooling locally using the _updatePublisher script:
|
| 34 |
+
|
| 35 |
+
_updatePublisher
|
| 36 |
+
|
| 37 |
+
Once the publication tooling is cached locally, use the _genOnce script to build locally:
|
| 38 |
+
|
| 39 |
+
_genOnce
|
| 40 |
+
|
| 41 |
+
The output will be available in the `output` folder.
|
| 42 |
+
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_autoPublish.bat
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO off
|
| 2 |
+
SET tooling_jar=tooling-1.3.1-SNAPSHOT-jar-with-dependencies.jar
|
| 3 |
+
SET input_cache_path=%~dp0input-cache
|
| 4 |
+
SET resources_path=%~dp0input/resources
|
| 5 |
+
SET ig_resource_path=input/anc-cds.xml
|
| 6 |
+
SET fsoption=http://localhost:8080/cqf-ruler-r4/fhir/
|
| 7 |
+
SET publisher_jar=publisher.jar
|
| 8 |
+
SET test_path=%~dp0input/tests
|
| 9 |
+
SET fhir_version=4.0.1
|
| 10 |
+
SET ini_file=ig.ini
|
| 11 |
+
|
| 12 |
+
cmd /c _updatePublisher.bat /f
|
| 13 |
+
ECHO Done with updatePublisher
|
| 14 |
+
|
| 15 |
+
cmd /c _updateCQFTooling.bat /f
|
| 16 |
+
ECHO Done with updateCQFTooling
|
| 17 |
+
|
| 18 |
+
cmd /c _processDataDictionary.bat
|
| 19 |
+
ECHO Done with ProcessAcceleratorKit
|
| 20 |
+
|
| 21 |
+
JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -root-dir=%~dp0 -rp=%resources_path% -ip=%ig_resource_path% -t -d -p -fs=%fsoption%
|
| 22 |
+
ECHO Done with -RefreshIG
|
| 23 |
+
|
| 24 |
+
JAVA -jar "%input_cache_path%\%tooling_jar%" -TestIG -ini=%ini_file% -root-dir=%~dp0 -fv=%fhir_version% -tcp=%test_path% -fs=%fsoption%
|
| 25 |
+
ECHO Done with -TestIGOperation
|
| 26 |
+
|
| 27 |
+
REM from _genonce.bat
|
| 28 |
+
JAVA -jar "%input_cache_path%\%publisher_jar%" -ig . %txoption%
|
| 29 |
+
|
| 30 |
+
REM TODO - PUBLISH to "web site" copy output dir to another location
|
| 31 |
+
ECHO [94m Done with publish to web site
|
| 32 |
+
ECHO [0m
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_gencontinuous.bat
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO OFF
|
| 2 |
+
CALL ./_genonce.bat -watch
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_gencontinuous.sh
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
./_genonce.sh -watch
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_genonce.bat
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO OFF
|
| 2 |
+
SET publisher_jar=publisher.jar
|
| 3 |
+
SET input_cache_path=%CD%\input-cache
|
| 4 |
+
|
| 5 |
+
ECHO Checking internet connection...
|
| 6 |
+
PING tx.fhir.org -4 -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
|
| 7 |
+
ECHO We're offline...
|
| 8 |
+
SET txoption=-tx n/a
|
| 9 |
+
GOTO igpublish
|
| 10 |
+
|
| 11 |
+
:isonline
|
| 12 |
+
ECHO We're online
|
| 13 |
+
SET txoption=
|
| 14 |
+
|
| 15 |
+
:igpublish
|
| 16 |
+
|
| 17 |
+
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
|
| 18 |
+
|
| 19 |
+
IF EXIST "%input_cache_path%\%publisher_jar%" (
|
| 20 |
+
JAVA -jar "%input_cache_path%\%publisher_jar%" -ig . %txoption% %*
|
| 21 |
+
) ELSE If exist "..\%publisher_jar%" (
|
| 22 |
+
JAVA -jar "..\%publisher_jar%" -ig . %txoption% %*
|
| 23 |
+
) ELSE (
|
| 24 |
+
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
PAUSE
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_genonce.sh
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
publisher_jar=publisher.jar
|
| 3 |
+
input_cache_path=./input-cache/
|
| 4 |
+
echo Checking internet connection...
|
| 5 |
+
curl -sSf tx.fhir.org > /dev/null
|
| 6 |
+
|
| 7 |
+
if [ $? -eq 0 ]; then
|
| 8 |
+
echo "Online"
|
| 9 |
+
txoption=""
|
| 10 |
+
else
|
| 11 |
+
echo "Offline"
|
| 12 |
+
txoption="-tx n/a"
|
| 13 |
+
fi
|
| 14 |
+
|
| 15 |
+
echo "$txoption"
|
| 16 |
+
|
| 17 |
+
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dfile.encoding=UTF-8"
|
| 18 |
+
|
| 19 |
+
publisher=$input_cache_path/$publisher_jar
|
| 20 |
+
if test -f "$publisher"; then
|
| 21 |
+
java -jar $publisher -ig . $txoption $*
|
| 22 |
+
|
| 23 |
+
else
|
| 24 |
+
publisher=../$publisher_jar
|
| 25 |
+
if test -f "$publisher"; then
|
| 26 |
+
java -jar $publisher -ig . $txoption $*
|
| 27 |
+
else
|
| 28 |
+
echo IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
|
| 29 |
+
fi
|
| 30 |
+
fi
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_processDataDictionary.bat
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO off
|
| 2 |
+
SET tooling_jar=tooling-1.3.1-SNAPSHOT-jar-with-dependencies.jar
|
| 3 |
+
SET input_cache_path=%~dp0input-cache
|
| 4 |
+
SET datadictionary_directory=input/l2/
|
| 5 |
+
REM the next 3 lines need to be edited for ANC
|
| 6 |
+
SET datadictionary_filename=%datadictionary_directory%\WHO-ANC.xlsx
|
| 7 |
+
SET datadictionary_sheetname="ANC.A. Registration,ANC.B5 Quick check,ANC.B6 Profile,ANC.B7 Symptoms & Follow-up,ANC.B8 Physical exam,ANC.B9 Lab tests & imaging,ANC.B10 Counselling & treatment,ANC.C. Referral,ANC.End End"
|
| 8 |
+
SET scope=ANC
|
| 9 |
+
SET tooling=%input_cache_path%\%tooling_jar%
|
| 10 |
+
SET upper_path=%%~dpx
|
| 11 |
+
|
| 12 |
+
if EXIST "%tooling%" (
|
| 13 |
+
JAVA -jar "%tooling%" -ProcessAcceleratorKit -s="%scope%" -pts="%datadictionary_filename%" -dep="%datadictionary_sheetname%" -op=.
|
| 14 |
+
) ELSE (
|
| 15 |
+
ECHO "%tooling%"
|
| 16 |
+
if EXIST "%tooling%" (
|
| 17 |
+
JAVA -jar $tooling -ProcessAcceleratorKit -s=$scope -pts=./input/l2/"$datadictionary_filename" -dep="$datadictionary_sheetname" -op=.
|
| 18 |
+
) ELSE (
|
| 19 |
+
ECHO [91m ProcessAcceloratorKit NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
|
| 20 |
+
ECHO [0m
|
| 21 |
+
)
|
| 22 |
+
)
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_processDataDictionary.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#DO NOT EDIT WITH WINDOWS
|
| 3 |
+
tooling_jar=tooling-1.3.1-SNAPSHOT-jar-with-dependencies.jar
|
| 4 |
+
input_cache_path=./input-cache
|
| 5 |
+
datadictionary_filename="WHO-ANC.xlsx"
|
| 6 |
+
datadictionary_sheetname="ANC.A. Registration,ANC.B5 Quick check,ANC.B6 Profile,ANC.B7 Symptoms & Follow-up,ANC.B8 Physical exam,ANC.B9 Lab tests & imaging,ANC.B10 Counselling & treatment,ANC.C. Referral,ANC.End End"
|
| 7 |
+
scope="ANC"
|
| 8 |
+
|
| 9 |
+
set -e
|
| 10 |
+
|
| 11 |
+
tooling=$input_cache_path/$tooling_jar
|
| 12 |
+
if test -f "$tooling"; then
|
| 13 |
+
JAVA -jar $tooling -ProcessAcceleratorKit -s=$scope -pts=./input/l2/"$datadictionary_filename" -dep="$datadictionary_sheetname" -op=.
|
| 14 |
+
else
|
| 15 |
+
tooling=../$tooling_jar
|
| 16 |
+
echo $tooling
|
| 17 |
+
if test -f "$tooling"; then
|
| 18 |
+
JAVA -jar $tooling -ProcessAcceleratorKit -s=$scope -pts=./input/l2/"$datadictionary_filename" -dep="$datadictionary_sheetname" -op=.
|
| 19 |
+
else
|
| 20 |
+
echo ProcessAcceloratorKit NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
|
| 21 |
+
fi
|
| 22 |
+
fi
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_processDecisionTables.bat
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
-ProcessDecisionTables -pts="C:\Users\Bryn\Documents\Src\WHO\ANC\ANC-2020-12-23\4 ANC Decision logic_23 Dec_CLEAN.xlsx" -dtpf="ANC.DT."
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_processDecisionTables.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#DO NOT EDIT WITH WINDOWS
|
| 3 |
+
tooling_jar=tooling-1.3.1-SNAPSHOT-jar-with-dependencies.jar
|
| 4 |
+
input_cache_path=./input-cache
|
| 5 |
+
decisiontables_filename="WHO-SRH-21.2-eng.xlsx"
|
| 6 |
+
decisiontables_sheetname="ANC.DT.01 Danger signs,ANC.DT.02 HEADSS assessment,ANC.DT.03 Check symptoms,ANC.DT.04-05 Physical exam,ANC.DT.06 Physical exam refer,ANC.DT.07–14 Laboratory&imaging,ANC.DT.15 Behaviour counselling,ANC.DT.16 Dietary counselling,ANC.DT.17–24 Diagnosis & treat,ANC.DT.25 Anaemia IFA,ANC.DT.26 Nutrition–Ca+VitA,ANC.DT.27–30 Risk counselling,ANC.DT.31–32 Immunizations,ANC.DT.33–35General counselling,ANC.DT.36-37 IPV ,ANC.DT.38 Deworming & malaria"
|
| 7 |
+
|
| 8 |
+
set -e
|
| 9 |
+
|
| 10 |
+
tooling=$input_cache_path/$tooling_jar
|
| 11 |
+
if test -f "$tooling"; then
|
| 12 |
+
JAVA -jar $tooling -ProcessDecisionTables -pts=./input/l2/"$decisiontables_filename" -dtpf="ANC.DT." -op=.
|
| 13 |
+
else
|
| 14 |
+
tooling=../$tooling_jar
|
| 15 |
+
echo $tooling
|
| 16 |
+
if test -f "$tooling"; then
|
| 17 |
+
JAVA -jar $tooling -ProcessDecisionTables -pts=./input/l2/"$decisiontables_filename" -dtpf="ANC.DT." -op=.
|
| 18 |
+
else
|
| 19 |
+
echo ProcessDecisionTables NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
|
| 20 |
+
fi
|
| 21 |
+
fi
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_refresh.bat
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO OFF
|
| 2 |
+
SET tooling_jar=tooling-cli-3.8.0.jar
|
| 3 |
+
SET input_cache_path=%~dp0input-cache
|
| 4 |
+
SET ig_ini_path=%~dp0ig.ini
|
| 5 |
+
|
| 6 |
+
ECHO Checking internet connection...
|
| 7 |
+
PING tx.fhir.org -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
|
| 8 |
+
ECHO We're offline...
|
| 9 |
+
SET fsoption=
|
| 10 |
+
GOTO igpublish
|
| 11 |
+
|
| 12 |
+
:isonline
|
| 13 |
+
ECHO We're online, setting publish to local sandbox FHIR server
|
| 14 |
+
SET fsoption=
|
| 15 |
+
|
| 16 |
+
:igpublish
|
| 17 |
+
|
| 18 |
+
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
|
| 19 |
+
|
| 20 |
+
IF EXIST "%input_cache_path%\%tooling_jar%" (
|
| 21 |
+
ECHO running: JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -ini="%ig_ini_path%" -t -d -p %fsoption%
|
| 22 |
+
JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -ini="%ig_ini_path%" -t -d -p %fsoption%
|
| 23 |
+
) ELSE If exist "..\%tooling_jar%" (
|
| 24 |
+
ECHO running: JAVA -jar "..\%tooling_jar%" -RefreshIG -ini="%ig_ini_path%" -t -d -p %fsoption%
|
| 25 |
+
JAVA -jar "..\%tooling_jar%" -RefreshIG -ini="%ig_ini_path%" -t -d -p %fsoption%
|
| 26 |
+
) ELSE (
|
| 27 |
+
ECHO IG Refresh NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
PAUSE
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_refresh.sh
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#DO NOT EDIT WITH WINDOWS
|
| 3 |
+
tooling_jar=tooling-cli-3.8.0.jar
|
| 4 |
+
input_cache_path=./input-cache
|
| 5 |
+
ig_ini_path=$PWD/ig.ini
|
| 6 |
+
|
| 7 |
+
set -e
|
| 8 |
+
echo Checking internet connection...
|
| 9 |
+
wget -q --spider tx.fhir.org
|
| 10 |
+
|
| 11 |
+
if [ $? -eq 0 ]; then
|
| 12 |
+
echo "Online"
|
| 13 |
+
fsoption=""
|
| 14 |
+
else
|
| 15 |
+
echo "Offline"
|
| 16 |
+
fsoption=""
|
| 17 |
+
fi
|
| 18 |
+
|
| 19 |
+
echo "$fsoption"
|
| 20 |
+
|
| 21 |
+
tooling=$input_cache_path/$tooling_jar
|
| 22 |
+
if test -f "$tooling"; then
|
| 23 |
+
java -jar $tooling -RefreshIG -ini="$ig_ini_path" -d -p -t $fsoption
|
| 24 |
+
else
|
| 25 |
+
tooling=../$tooling_jar
|
| 26 |
+
echo $tooling
|
| 27 |
+
if test -f "$tooling"; then
|
| 28 |
+
java -jar $tooling -RefreshIG -ini="$ig_ini_path" -d -p -t $fsoption
|
| 29 |
+
else
|
| 30 |
+
echo IG Refresh NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
|
| 31 |
+
fi
|
| 32 |
+
fi
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_updateCQFTooling.bat
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO OFF
|
| 2 |
+
|
| 3 |
+
SET "dlurl=https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=org.opencds.cqf&a=tooling-cli&v=3.8.0"
|
| 4 |
+
SET tooling_jar=tooling-cli-3.8.0.jar
|
| 5 |
+
SET input_cache_path=%~dp0input-cache\
|
| 6 |
+
SET skipPrompts=false
|
| 7 |
+
IF "%~1"=="/f" SET skipPrompts=true
|
| 8 |
+
|
| 9 |
+
FOR %%x IN ("%CD%") DO SET upper_path=%%~dpx
|
| 10 |
+
|
| 11 |
+
IF NOT EXIST "%input_cache_path%%tooling_jar%" (
|
| 12 |
+
IF NOT EXIST "%upper_path%%tooling_jar%" (
|
| 13 |
+
SET jarlocation=%input_cache_path%%tooling_jar%
|
| 14 |
+
SET jarlocationname=Input Cache
|
| 15 |
+
ECHO IG Refresh is not yet in input-cache or parent folder.
|
| 16 |
+
REM we don't use jarlocation below because it will be empty because we're in a bracketed if statement
|
| 17 |
+
GOTO create
|
| 18 |
+
) ELSE (
|
| 19 |
+
ECHO IG RefreshFOUND in parent folder
|
| 20 |
+
SET jarlocation=%upper_path%%tooling_jar%
|
| 21 |
+
SET jarlocationname=Parent folder
|
| 22 |
+
GOTO:upgrade
|
| 23 |
+
)
|
| 24 |
+
) ELSE (
|
| 25 |
+
ECHO IG Refresh FOUND in input-cache
|
| 26 |
+
SET jarlocation=%input_cache_path%%tooling_jar%
|
| 27 |
+
SET jarlocationname=Input Cache
|
| 28 |
+
GOTO:upgrade
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
+
:create
|
| 32 |
+
ECHO Will place refresh jar here: %input_cache_path%%tooling_jar%
|
| 33 |
+
IF "%skipPrompts%"=="false" (
|
| 34 |
+
SET /p create="Ok? [Y/N] "
|
| 35 |
+
IF /I "%create%"=="Y" goto:mkdir
|
| 36 |
+
) ELSE goto:mkdir
|
| 37 |
+
|
| 38 |
+
GOTO:done
|
| 39 |
+
:mkdir
|
| 40 |
+
mkdir "%input_cache_path%" 2> NUL
|
| 41 |
+
GOTO:download
|
| 42 |
+
|
| 43 |
+
:upgrade
|
| 44 |
+
IF "%skipPrompts%"=="false" (
|
| 45 |
+
SET /p overwrite="Overwrite %jarlocation%? (Y/N) "
|
| 46 |
+
IF /I "%overwrite%"=="Y" (
|
| 47 |
+
GOTO:download
|
| 48 |
+
)
|
| 49 |
+
) ELSE (
|
| 50 |
+
GOTO:download
|
| 51 |
+
)
|
| 52 |
+
GOTO:done
|
| 53 |
+
|
| 54 |
+
:download
|
| 55 |
+
ECHO Downloading most recent refresh to %jarlocationname% - it's ~110 MB, so this may take a bit
|
| 56 |
+
|
| 57 |
+
FOR /f "tokens=4-5 delims=. " %%i IN ('ver') DO SET VERSION=%%i.%%j
|
| 58 |
+
IF "%version%" == "10.0" GOTO win10
|
| 59 |
+
IF "%version%" == "6.3" GOTO win8.1
|
| 60 |
+
IF "%version%" == "6.2" GOTO win8
|
| 61 |
+
IF "%version%" == "6.1" GOTO win7
|
| 62 |
+
IF "%version%" == "6.0" GOTO vista
|
| 63 |
+
|
| 64 |
+
ECHO Unrecognized version: %version%
|
| 65 |
+
GOTO done
|
| 66 |
+
|
| 67 |
+
:win10
|
| 68 |
+
POWERSHELL -command "if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile('%dlurl%','%jarlocation%') } else { Invoke-WebRequest -Uri '%dlurl%' -Outfile '%jarlocation%' }"
|
| 69 |
+
ECHO Download complete.
|
| 70 |
+
GOTO done
|
| 71 |
+
|
| 72 |
+
:win7
|
| 73 |
+
bitsadmin /transfer GetRefresh /download /priority normal "%dlurl%" "%jarlocation%"
|
| 74 |
+
ECHO Download complete.
|
| 75 |
+
GOTO done
|
| 76 |
+
|
| 77 |
+
:win8.1
|
| 78 |
+
:win8
|
| 79 |
+
:vista
|
| 80 |
+
ECHO This script does not yet support Windows %winver%. Please ask for help on https://chat.fhir.org/#narrow/stream/179207-connectathon-mgmt/topic/Clinical.20Reasoning.20Track
|
| 81 |
+
GOTO done
|
| 82 |
+
|
| 83 |
+
:done
|
| 84 |
+
IF "%skipPrompts%"=="false" (
|
| 85 |
+
PAUSE
|
| 86 |
+
)
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_updateCQFTooling.sh
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#DO NOT EDIT WITH WINDOWS
|
| 3 |
+
#exit 1
|
| 4 |
+
|
| 5 |
+
r=releases
|
| 6 |
+
g=org.opencds.cqf
|
| 7 |
+
a=tooling-cli
|
| 8 |
+
v=3.8.0
|
| 9 |
+
|
| 10 |
+
dlurl='https://oss.sonatype.org/service/local/artifact/maven/redirect?r='${r}'&g='${g}'&a='${a}'&v='${v}''
|
| 11 |
+
|
| 12 |
+
echo ${dlurl}
|
| 13 |
+
|
| 14 |
+
input_cache_path=./input-cache/
|
| 15 |
+
tooling_jar=tooling-cli-3.8.0.jar
|
| 16 |
+
|
| 17 |
+
set -e
|
| 18 |
+
if ! type "curl" > /dev/null; then
|
| 19 |
+
echo "ERROR: Script needs curl to download latest IG Tooling. Please install curl."
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
|
| 23 |
+
tooling="$input_cache_path$tooling_jar"
|
| 24 |
+
if test -f "$tooling"; then
|
| 25 |
+
echo "IG Tooling FOUND in input-cache"
|
| 26 |
+
jarlocation="$tooling"
|
| 27 |
+
jarlocationname="Input Cache"
|
| 28 |
+
upgrade=true
|
| 29 |
+
else
|
| 30 |
+
tooling="../$tooling_jar"
|
| 31 |
+
upgrade=true
|
| 32 |
+
if test -f "$tooling"; then
|
| 33 |
+
echo "IG Tooling FOUND in parent folder"
|
| 34 |
+
jarlocation="$tooling"
|
| 35 |
+
jarlocationname="Parent Folder"
|
| 36 |
+
upgrade=true
|
| 37 |
+
else
|
| 38 |
+
echo IG Tooling NOT FOUND in input-cache or parent folder...
|
| 39 |
+
jarlocation="$input_cache_path$tooling_jar"
|
| 40 |
+
jarlocationname="Input Cache"
|
| 41 |
+
upgrade=false
|
| 42 |
+
fi
|
| 43 |
+
fi
|
| 44 |
+
|
| 45 |
+
if $upgrade ; then
|
| 46 |
+
message="Overwrite $jarlocation? [Y/N] "
|
| 47 |
+
else
|
| 48 |
+
#echo Will place tooling jar here: $input_cache_path$tooling_jar
|
| 49 |
+
echo Will place tooling jar here: $jarlocation
|
| 50 |
+
message="Ok? [Y/N]"
|
| 51 |
+
fi
|
| 52 |
+
|
| 53 |
+
read -r -p "$message" response
|
| 54 |
+
if [[ "$response" =~ ^([yY])$ ]]; then
|
| 55 |
+
echo "Downloading most recent tooling to $jarlocationname - it's ~110 MB, so this may take a bit"
|
| 56 |
+
# wget "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/opencds/cqf/tooling/1.0-SNAPSHOT/tooling-1.0-20200107.163002-6-jar-with-dependencies.jar" -O "$jarlocation"
|
| 57 |
+
curl $dlurl -L -o "$jarlocation" --create-dirs
|
| 58 |
+
echo "Download complete."
|
| 59 |
+
else
|
| 60 |
+
echo cancel...
|
| 61 |
+
fi
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_updatePublisher.bat
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar
|
| 6 |
+
SET publisher_jar=publisher.jar
|
| 7 |
+
SET input_cache_path=%CD%\input-cache\
|
| 8 |
+
SET skipPrompts=false
|
| 9 |
+
|
| 10 |
+
SET scriptdlroot=https://raw.githubusercontent.com/HL7/ig-publisher-scripts/main
|
| 11 |
+
SET build_bat_url=%scriptdlroot%/_build.bat
|
| 12 |
+
SET build_sh_url=%scriptdlroot%/_build.sh
|
| 13 |
+
SET update_bat_url=%scriptdlroot%/_updatePublisher.bat
|
| 14 |
+
SET gen_bat_url=%scriptdlroot%/_genonce.bat
|
| 15 |
+
SET gencont_bat_url=%scriptdlroot%/_gencontinuous.bat
|
| 16 |
+
SET gencont_sh_url=%scriptdlroot%/_gencontinuous.sh
|
| 17 |
+
SET gen_sh_url=%scriptdlroot%/_genonce.sh
|
| 18 |
+
SET update_sh_url=%scriptdlroot%/_updatePublisher.sh
|
| 19 |
+
|
| 20 |
+
IF "%~1"=="/f" SET skipPrompts=y
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
ECHO.
|
| 24 |
+
ECHO Checking internet connection...
|
| 25 |
+
PING tx.fhir.org -4 -n 1 -w 4000 | FINDSTR TTL && GOTO isonline
|
| 26 |
+
ECHO We're offline, nothing to do...
|
| 27 |
+
GOTO end
|
| 28 |
+
|
| 29 |
+
:isonline
|
| 30 |
+
ECHO We're online
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
:processflags
|
| 34 |
+
SET ARG=%1
|
| 35 |
+
IF DEFINED ARG (
|
| 36 |
+
IF "%ARG%"=="-f" SET FORCE=true
|
| 37 |
+
IF "%ARG%"=="--force" SET FORCE=true
|
| 38 |
+
SHIFT
|
| 39 |
+
GOTO processflags
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
FOR %%x IN ("%CD%") DO SET upper_path=%%~dpx
|
| 43 |
+
|
| 44 |
+
ECHO.
|
| 45 |
+
IF NOT EXIST "%input_cache_path%%publisher_jar%" (
|
| 46 |
+
IF NOT EXIST "%upper_path%%publisher_jar%" (
|
| 47 |
+
SET jarlocation="%input_cache_path%%publisher_jar%"
|
| 48 |
+
SET jarlocationname=Input Cache
|
| 49 |
+
ECHO IG Publisher is not yet in input-cache or parent folder.
|
| 50 |
+
REM we don't use jarlocation below because it will be empty because we're in a bracketed if statement
|
| 51 |
+
GOTO create
|
| 52 |
+
) ELSE (
|
| 53 |
+
ECHO IG Publisher FOUND in parent folder
|
| 54 |
+
SET jarlocation="%upper_path%%publisher_jar%"
|
| 55 |
+
SET jarlocationname=Parent folder
|
| 56 |
+
GOTO upgrade
|
| 57 |
+
)
|
| 58 |
+
) ELSE (
|
| 59 |
+
ECHO IG Publisher FOUND in input-cache
|
| 60 |
+
SET jarlocation="%input_cache_path%%publisher_jar%"
|
| 61 |
+
SET jarlocationname=Input Cache
|
| 62 |
+
GOTO upgrade
|
| 63 |
+
)
|
| 64 |
+
|
| 65 |
+
:create
|
| 66 |
+
IF DEFINED FORCE (
|
| 67 |
+
MKDIR "%input_cache_path%" 2> NUL
|
| 68 |
+
GOTO download
|
| 69 |
+
)
|
| 70 |
+
|
| 71 |
+
IF "%skipPrompts%"=="y" (
|
| 72 |
+
SET create=Y
|
| 73 |
+
) ELSE (
|
| 74 |
+
ECHO Will place publisher jar here: %input_cache_path%%publisher_jar%
|
| 75 |
+
SET /p create="Ok? (Y/N) "
|
| 76 |
+
)
|
| 77 |
+
IF /I "%create%"=="Y" (
|
| 78 |
+
ECHO Will place publisher jar here: %input_cache_path%%publisher_jar%
|
| 79 |
+
MKDIR "%input_cache_path%" 2> NUL
|
| 80 |
+
GOTO download
|
| 81 |
+
)
|
| 82 |
+
GOTO done
|
| 83 |
+
|
| 84 |
+
:upgrade
|
| 85 |
+
IF "%skipPrompts%"=="y" (
|
| 86 |
+
SET overwrite=Y
|
| 87 |
+
) ELSE (
|
| 88 |
+
SET /p overwrite="Overwrite %jarlocation%? (Y/N) "
|
| 89 |
+
)
|
| 90 |
+
|
| 91 |
+
IF /I "%overwrite%"=="Y" (
|
| 92 |
+
GOTO download
|
| 93 |
+
)
|
| 94 |
+
GOTO done
|
| 95 |
+
|
| 96 |
+
:download
|
| 97 |
+
ECHO Downloading most recent publisher to %jarlocationname% - it's ~100 MB, so this may take a bit
|
| 98 |
+
|
| 99 |
+
FOR /f "tokens=4-5 delims=. " %%i IN ('ver') DO SET VERSION=%%i.%%j
|
| 100 |
+
IF "%version%" == "10.0" GOTO win10
|
| 101 |
+
IF "%version%" == "6.3" GOTO win8.1
|
| 102 |
+
IF "%version%" == "6.2" GOTO win8
|
| 103 |
+
IF "%version%" == "6.1" GOTO win7
|
| 104 |
+
IF "%version%" == "6.0" GOTO vista
|
| 105 |
+
|
| 106 |
+
ECHO Unrecognized version: %version%
|
| 107 |
+
GOTO done
|
| 108 |
+
|
| 109 |
+
:win10
|
| 110 |
+
CALL POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%dlurl%\",\"%jarlocation%\") } else { Invoke-WebRequest -Uri "%dlurl%" -Outfile "%jarlocation%" }
|
| 111 |
+
|
| 112 |
+
GOTO done
|
| 113 |
+
|
| 114 |
+
:win7
|
| 115 |
+
rem this may be triggering the antivirus - bitsadmin.exe is a known threat
|
| 116 |
+
rem CALL bitsadmin /transfer GetPublisher /download /priority normal "%dlurl%" "%jarlocation%"
|
| 117 |
+
|
| 118 |
+
rem this didn't work in win 10
|
| 119 |
+
rem CALL Start-BitsTransfer /priority normal "%dlurl%" "%jarlocation%"
|
| 120 |
+
|
| 121 |
+
rem this should work - untested
|
| 122 |
+
call (New-Object Net.WebClient).DownloadFile('%dlurl%', '%jarlocation%')
|
| 123 |
+
GOTO done
|
| 124 |
+
|
| 125 |
+
:win8.1
|
| 126 |
+
:win8
|
| 127 |
+
:vista
|
| 128 |
+
GOTO done
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
:done
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
ECHO.
|
| 138 |
+
ECHO Updating scripts
|
| 139 |
+
IF "%skipPrompts%"=="y" (
|
| 140 |
+
SET updateScripts=Y
|
| 141 |
+
) ELSE (
|
| 142 |
+
SET /p updateScripts="Update scripts? (Y/N) "
|
| 143 |
+
)
|
| 144 |
+
IF /I "%updateScripts%"=="Y" (
|
| 145 |
+
GOTO scripts
|
| 146 |
+
)
|
| 147 |
+
GOTO end
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
:scripts
|
| 151 |
+
|
| 152 |
+
REM Download all batch files (and this one with a new name)
|
| 153 |
+
|
| 154 |
+
SETLOCAL DisableDelayedExpansion
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
:dl_script_1
|
| 159 |
+
ECHO Updating _updatePublisher.sh
|
| 160 |
+
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%update_sh_url%\",\"_updatePublisher.new.sh\") } else { Invoke-WebRequest -Uri "%update_sh_url%" -Outfile "_updatePublisher.new.sh" }
|
| 161 |
+
if %ERRORLEVEL% == 0 goto upd_script_1
|
| 162 |
+
echo "Errors encountered during download: %errorlevel%"
|
| 163 |
+
goto dl_script_2
|
| 164 |
+
:upd_script_1
|
| 165 |
+
start copy /y "_updatePublisher.new.sh" "_updatePublisher.sh" ^&^& del "_updatePublisher.new.sh" ^&^& exit
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
:dl_script_2
|
| 169 |
+
ECHO Updating _genonce.bat
|
| 170 |
+
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%gen_bat_url%\",\"_genonce.new.bat\") } else { Invoke-WebRequest -Uri "%gen_bat_url%" -Outfile "_genonce.bat" }
|
| 171 |
+
if %ERRORLEVEL% == 0 goto upd_script_2
|
| 172 |
+
echo "Errors encountered during download: %errorlevel%"
|
| 173 |
+
goto dl_script_3
|
| 174 |
+
:upd_script_2
|
| 175 |
+
start copy /y "_genonce.new.bat" "_genonce.bat" ^&^& del "_genonce.new.bat" ^&^& exit
|
| 176 |
+
|
| 177 |
+
:dl_script_3
|
| 178 |
+
ECHO Updating _gencontinuous.bat
|
| 179 |
+
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%gencont_bat_url%\",\"_gencontinuous.new.bat\") } else { Invoke-WebRequest -Uri "%gencont_bat_url%" -Outfile "_gencontinuous.bat" }
|
| 180 |
+
if %ERRORLEVEL% == 0 goto upd_script_3
|
| 181 |
+
echo "Errors encountered during download: %errorlevel%"
|
| 182 |
+
goto dl_script_4
|
| 183 |
+
:upd_script_3
|
| 184 |
+
start copy /y "_gencontinuous.new.bat" "_gencontinuous.bat" ^&^& del "_gencontinuous.new.bat" ^&^& exit
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
:dl_script_4
|
| 188 |
+
ECHO Updating _genonce.sh
|
| 189 |
+
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%gen_sh_url%\",\"_genonce.new.sh\") } else { Invoke-WebRequest -Uri "%gen_sh_url%" -Outfile "_genonce.sh" }
|
| 190 |
+
if %ERRORLEVEL% == 0 goto upd_script_4
|
| 191 |
+
echo "Errors encountered during download: %errorlevel%"
|
| 192 |
+
goto dl_script_5
|
| 193 |
+
:upd_script_4
|
| 194 |
+
start copy /y "_genonce.new.sh" "_genonce.sh" ^&^& del "_genonce.new.sh" ^&^& exit
|
| 195 |
+
|
| 196 |
+
:dl_script_5
|
| 197 |
+
ECHO Updating _gencontinuous.sh
|
| 198 |
+
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%gencont_sh_url%\",\"_gencontinuous.new.sh\") } else { Invoke-WebRequest -Uri "%gencont_sh_url%" -Outfile "_gencontinuous.sh" }
|
| 199 |
+
if %ERRORLEVEL% == 0 goto upd_script_5
|
| 200 |
+
echo "Errors encountered during download: %errorlevel%"
|
| 201 |
+
goto dl_script_6
|
| 202 |
+
:upd_script_5
|
| 203 |
+
start copy /y "_gencontinuous.new.sh" "_gencontinuous.sh" ^&^& del "_gencontinuous.new.sh" ^&^& exit
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
:dl_script_6
|
| 208 |
+
ECHO Updating _updatePublisher.bat
|
| 209 |
+
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%update_bat_url%\",\"_updatePublisher.new.bat\") } else { Invoke-WebRequest -Uri "%update_bat_url%" -Outfile "_updatePublisher.new.bat" }
|
| 210 |
+
if %ERRORLEVEL% == 0 goto upd_script_6
|
| 211 |
+
echo "Errors encountered during download: %errorlevel%"
|
| 212 |
+
goto end
|
| 213 |
+
:upd_script_6
|
| 214 |
+
start copy /y "_updatePublisher.new.bat" "_updatePublisher.bat" ^&^& del "_updatePublisher.new.bat" ^&^& exit
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
:dl_script_7
|
| 218 |
+
ECHO Updating _build.bat
|
| 219 |
+
call POWERSHELL -command if ('System.Net.WebClient' -as [type]) {(new-object System.Net.WebClient).DownloadFile(\"%build_bat_url%\",\"_build.new.bat\") } else { Invoke-WebRequest -Uri "%update_bat_url%" -Outfile "_build.new.bat" }
|
| 220 |
+
if %ERRORLEVEL% == 0 goto upd_script_6
|
| 221 |
+
echo "Errors encountered during download: %errorlevel%"
|
| 222 |
+
goto end
|
| 223 |
+
:upd_script_6
|
| 224 |
+
start copy /y "_build.new.bat" "_build.bat" ^&^& del "_build.new.bat" ^&^& exit
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
:end
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
IF "%skipPrompts%"=="true" (
|
| 231 |
+
PAUSE
|
| 232 |
+
)
|
source_data/pinned/smart-anc/commit-301a6b8b9043/_updatePublisher.sh
ADDED
|
@@ -0,0 +1,144 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ache/
|
| 7 |
+
|
| 8 |
+
scriptdlroot=https://raw.githubusercontent.com/HL7/ig-publisher-scripts/main
|
| 9 |
+
update_bat_url=$scriptdlroot/_updatePublisher.bat
|
| 10 |
+
gen_bat_url=$scriptdlroot/_genonce.bat
|
| 11 |
+
gencont_bat_url=$scriptdlroot/_gencontinuous.bat
|
| 12 |
+
gencont_sh_url=$scriptdlroot/_gencontinuous.sh
|
| 13 |
+
gen_sh_url=$scriptdlroot/_genonce.sh
|
| 14 |
+
update_sh_url=$scriptdlroot/_updatePublisher.sh
|
| 15 |
+
build_sh_url=$scriptdlroot/_build.sh
|
| 16 |
+
build_bat_url=$scriptdlroot/_build.bat
|
| 17 |
+
|
| 18 |
+
skipPrompts=false
|
| 19 |
+
FORCE=false
|
| 20 |
+
|
| 21 |
+
if ! type "curl" > /dev/null; then
|
| 22 |
+
echo "ERROR: Script needs curl to download latest IG Publisher. Please install curl."
|
| 23 |
+
exit 1
|
| 24 |
+
fi
|
| 25 |
+
|
| 26 |
+
while [ "$#" -gt 0 ]; do
|
| 27 |
+
case $1 in
|
| 28 |
+
-f|--force) FORCE=true ;;
|
| 29 |
+
-y|--yes) skipPrompts=true ; FORCE=true ;;
|
| 30 |
+
*) echo "Unknown parameter passed: $1. Exiting"; exit 1 ;;
|
| 31 |
+
esac
|
| 32 |
+
shift
|
| 33 |
+
done
|
| 34 |
+
|
| 35 |
+
echo "Checking internet connection"
|
| 36 |
+
curl -sSf tx.fhir.org > /dev/null
|
| 37 |
+
|
| 38 |
+
if [ $? -ne 0 ] ; then
|
| 39 |
+
echo "Offline (or the terminology server is down), unable to update. Exiting"
|
| 40 |
+
exit 1
|
| 41 |
+
fi
|
| 42 |
+
|
| 43 |
+
if [ ! -d "$input_cache_path" ] ; then
|
| 44 |
+
if [ $FORCE != true ]; then
|
| 45 |
+
echo "$input_cache_path does not exist"
|
| 46 |
+
message="create it?"
|
| 47 |
+
read -r -p "$message" response
|
| 48 |
+
else
|
| 49 |
+
response=y
|
| 50 |
+
fi
|
| 51 |
+
fi
|
| 52 |
+
|
| 53 |
+
if [[ $response =~ ^[yY].*$ ]] ; then
|
| 54 |
+
mkdir ./input-cache
|
| 55 |
+
fi
|
| 56 |
+
|
| 57 |
+
publisher="$input_cache_path$publisher_jar"
|
| 58 |
+
|
| 59 |
+
if test -f "$publisher" ; then
|
| 60 |
+
echo "IG Publisher FOUND in input-cache"
|
| 61 |
+
jarlocation="$publisher"
|
| 62 |
+
jarlocationname="Input Cache"
|
| 63 |
+
upgrade=true
|
| 64 |
+
else
|
| 65 |
+
publisher="../$publisher_jar"
|
| 66 |
+
upgrade=true
|
| 67 |
+
if test -f "$publisher"; then
|
| 68 |
+
echo "IG Publisher FOUND in parent folder"
|
| 69 |
+
jarlocation="$publisher"
|
| 70 |
+
jarlocationname="Parent Folder"
|
| 71 |
+
upgrade=true
|
| 72 |
+
else
|
| 73 |
+
echo "IG Publisher NOT FOUND in input-cache or parent folder"
|
| 74 |
+
jarlocation=$input_cache_path$publisher_jar
|
| 75 |
+
jarlocationname="Input Cache"
|
| 76 |
+
upgrade=false
|
| 77 |
+
fi
|
| 78 |
+
fi
|
| 79 |
+
|
| 80 |
+
if [[ $skipPrompts == false ]]; then
|
| 81 |
+
|
| 82 |
+
if [[ $upgrade == true ]]; then
|
| 83 |
+
message="Overwrite $jarlocation? (Y/N) "
|
| 84 |
+
else
|
| 85 |
+
echo Will place publisher jar here: "$jarlocation"
|
| 86 |
+
message="Ok (enter 'y' or 'Y' to continue, any other key to cancel)?"
|
| 87 |
+
fi
|
| 88 |
+
read -r -p "$message" response
|
| 89 |
+
else
|
| 90 |
+
response=y
|
| 91 |
+
fi
|
| 92 |
+
if [[ $skipPrompts == true ]] || [[ $response =~ ^[yY].*$ ]]; then
|
| 93 |
+
|
| 94 |
+
echo "Downloading most recent publisher to $jarlocationname - it's ~100 MB, so this may take a bit"
|
| 95 |
+
curl -L $dlurl -o "$jarlocation" --create-dirs
|
| 96 |
+
else
|
| 97 |
+
echo cancelled publisher update
|
| 98 |
+
fi
|
| 99 |
+
|
| 100 |
+
if [[ $skipPrompts != true ]]; then
|
| 101 |
+
message="Update scripts? (enter 'y' or 'Y' to continue, any other key to cancel)?"
|
| 102 |
+
read -r -p "$message" response
|
| 103 |
+
fi
|
| 104 |
+
|
| 105 |
+
if [[ $skipPrompts == true ]] || [[ $response =~ ^[yY].*$ ]]; then
|
| 106 |
+
echo "Downloading most recent scripts "
|
| 107 |
+
|
| 108 |
+
curl -L $build_bat_url -o /tmp/_build.new
|
| 109 |
+
cp /tmp/_build.new _build.bat
|
| 110 |
+
rm /tmp/_build.new
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
curl -L $build_sh_url -o /tmp/_build.new
|
| 114 |
+
cp /tmp/_build.new _build.sh
|
| 115 |
+
chmod +x _build.sh
|
| 116 |
+
rm /tmp/_build.new
|
| 117 |
+
|
| 118 |
+
curl -L $update_bat_url -o /tmp/_updatePublisher.new
|
| 119 |
+
cp /tmp/_updatePublisher.new _updatePublisher.bat
|
| 120 |
+
rm /tmp/_updatePublisher.new
|
| 121 |
+
|
| 122 |
+
curl -L $gen_bat_url -o /tmp/_genonce.new
|
| 123 |
+
cp /tmp/_genonce.new _genonce.bat
|
| 124 |
+
rm /tmp/_genonce.new
|
| 125 |
+
|
| 126 |
+
curl -L $gencont_bat_url -o /tmp/_gencontinuous.new
|
| 127 |
+
cp /tmp/_gencontinuous.new _gencontinuous.bat
|
| 128 |
+
rm /tmp/_gencontinuous.new
|
| 129 |
+
|
| 130 |
+
curl -L $gencont_sh_url -o /tmp/_gencontinuous.new
|
| 131 |
+
cp /tmp/_gencontinuous.new _gencontinuous.sh
|
| 132 |
+
chmod +x _gencontinuous.sh
|
| 133 |
+
rm /tmp/_gencontinuous.new
|
| 134 |
+
|
| 135 |
+
curl -L $gen_sh_url -o /tmp/_genonce.new
|
| 136 |
+
cp /tmp/_genonce.new _genonce.sh
|
| 137 |
+
chmod +x _genonce.sh
|
| 138 |
+
rm /tmp/_genonce.new
|
| 139 |
+
|
| 140 |
+
curl -L $update_sh_url -o /tmp/_updatePublisher.new
|
| 141 |
+
cp /tmp/_updatePublisher.new _updatePublisher.sh
|
| 142 |
+
chmod +x _updatePublisher.sh
|
| 143 |
+
rm /tmp/_updatePublisher.new
|
| 144 |
+
fi
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/anc-cds-rec-a2.postman_collection.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/example-first-contact-bundle.json
ADDED
|
@@ -0,0 +1,1244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"resourceType": "Bundle",
|
| 3 |
+
"type": "transaction",
|
| 4 |
+
"entry": [
|
| 5 |
+
{
|
| 6 |
+
"resource": {
|
| 7 |
+
"resourceType": "Encounter",
|
| 8 |
+
"id": "mom-first-contact",
|
| 9 |
+
"status": "in-progress",
|
| 10 |
+
"class": {
|
| 11 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
|
| 12 |
+
"code": "AMB",
|
| 13 |
+
"display": "ambulatory"
|
| 14 |
+
},
|
| 15 |
+
"type": [
|
| 16 |
+
{
|
| 17 |
+
"coding": [
|
| 18 |
+
{
|
| 19 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 20 |
+
"code": "anc-contact",
|
| 21 |
+
"display": "Antenatal care contact"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"text": "Antenatal care contact"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"subject": {
|
| 28 |
+
"reference": "Patient/mom"
|
| 29 |
+
},
|
| 30 |
+
"episodeOfCare": [
|
| 31 |
+
{
|
| 32 |
+
"reference": "EpisodeOfCare/mom-pregnancy-episode"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"participant": [
|
| 36 |
+
{
|
| 37 |
+
"type": [
|
| 38 |
+
{
|
| 39 |
+
"coding": [
|
| 40 |
+
{
|
| 41 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
|
| 42 |
+
"code": "PPRF",
|
| 43 |
+
"display": "primary performer"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"individual": {
|
| 49 |
+
"reference": "Practitioner/midwife"
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"period": {
|
| 54 |
+
"fhir_comments": [
|
| 55 |
+
" TODO: appointment "
|
| 56 |
+
],
|
| 57 |
+
"start": "2019-05-24"
|
| 58 |
+
},
|
| 59 |
+
"diagnosis": [
|
| 60 |
+
{
|
| 61 |
+
"fhir_comments": [
|
| 62 |
+
" TODO: account ",
|
| 63 |
+
" TODO: location ",
|
| 64 |
+
" TODO: serviceProvider "
|
| 65 |
+
],
|
| 66 |
+
"condition": {
|
| 67 |
+
"reference": "Condition/mom-pregnancy"
|
| 68 |
+
},
|
| 69 |
+
"rank": 1
|
| 70 |
+
}
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
"request": {
|
| 74 |
+
"method": "PUT",
|
| 75 |
+
"url": "Encounter/mom-first-contact"
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"resource": {
|
| 80 |
+
"resourceType": "Goal",
|
| 81 |
+
"id": "mom-pregnancy-goal",
|
| 82 |
+
"lifecycleStatus": "active",
|
| 83 |
+
"description": {
|
| 84 |
+
"fhir_comments": [
|
| 85 |
+
" TODO: Category? "
|
| 86 |
+
],
|
| 87 |
+
"text": "Maintain patient's health throughout pregnancy and ensure a healthy child"
|
| 88 |
+
},
|
| 89 |
+
"subject": {
|
| 90 |
+
"reference": "Patient/mom",
|
| 91 |
+
"display": "Eve Everywoman"
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"request": {
|
| 95 |
+
"method": "PUT",
|
| 96 |
+
"url": "Goal/mom-pregnancy-goal"
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"resource": {
|
| 101 |
+
"resourceType": "Practitioner",
|
| 102 |
+
"id": "midwife",
|
| 103 |
+
"meta": {
|
| 104 |
+
"profile": [
|
| 105 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/ancpractitioner"
|
| 106 |
+
]
|
| 107 |
+
},
|
| 108 |
+
"active": true,
|
| 109 |
+
"_active": {
|
| 110 |
+
"fhir_comments": [
|
| 111 |
+
" TODO: identifier "
|
| 112 |
+
]
|
| 113 |
+
},
|
| 114 |
+
"name": [
|
| 115 |
+
{
|
| 116 |
+
"family": "Midwife",
|
| 117 |
+
"given": [
|
| 118 |
+
"Mabel"
|
| 119 |
+
]
|
| 120 |
+
}
|
| 121 |
+
],
|
| 122 |
+
"address": [
|
| 123 |
+
{
|
| 124 |
+
"fhir_comments": [
|
| 125 |
+
" TODO: telecom "
|
| 126 |
+
],
|
| 127 |
+
"use": "home",
|
| 128 |
+
"line": [
|
| 129 |
+
"534 Erewhon St"
|
| 130 |
+
],
|
| 131 |
+
"city": "PleasantVille",
|
| 132 |
+
"state": "Vic",
|
| 133 |
+
"postalCode": "3999"
|
| 134 |
+
}
|
| 135 |
+
],
|
| 136 |
+
"gender": "female"
|
| 137 |
+
},
|
| 138 |
+
"request": {
|
| 139 |
+
"method": "PUT",
|
| 140 |
+
"url": "Practitioner/midwife"
|
| 141 |
+
}
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"resource": {
|
| 145 |
+
"resourceType": "PractitionerRole",
|
| 146 |
+
"id": "example",
|
| 147 |
+
"meta": {
|
| 148 |
+
"profile": [
|
| 149 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/ancmidwifepractitionerrole"
|
| 150 |
+
]
|
| 151 |
+
},
|
| 152 |
+
"active": true,
|
| 153 |
+
"_active": {
|
| 154 |
+
"fhir_comments": [
|
| 155 |
+
" TODO: identifier "
|
| 156 |
+
]
|
| 157 |
+
},
|
| 158 |
+
"practitioner": {
|
| 159 |
+
"reference": "Practitioner/midwife",
|
| 160 |
+
"display": "Mabel Midwife"
|
| 161 |
+
},
|
| 162 |
+
"code": [
|
| 163 |
+
{
|
| 164 |
+
"fhir_comments": [
|
| 165 |
+
" TODO: organization "
|
| 166 |
+
],
|
| 167 |
+
"coding": [
|
| 168 |
+
{
|
| 169 |
+
"system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona",
|
| 170 |
+
"code": "2222",
|
| 171 |
+
"display": "Midwifery professional"
|
| 172 |
+
}
|
| 173 |
+
],
|
| 174 |
+
"text": "Midwifery professional"
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
"telecom": [
|
| 178 |
+
{
|
| 179 |
+
"fhir_comments": [
|
| 180 |
+
" TODO: specialty ",
|
| 181 |
+
" TODO: location ",
|
| 182 |
+
" TODO: healthcareService "
|
| 183 |
+
],
|
| 184 |
+
"system": "phone",
|
| 185 |
+
"value": "(03) 5555 6473",
|
| 186 |
+
"use": "work"
|
| 187 |
+
}
|
| 188 |
+
],
|
| 189 |
+
"availableTime": [
|
| 190 |
+
{
|
| 191 |
+
"daysOfWeek": [
|
| 192 |
+
"mon",
|
| 193 |
+
"tue",
|
| 194 |
+
"wed"
|
| 195 |
+
],
|
| 196 |
+
"availableStartTime": "09:00:00",
|
| 197 |
+
"availableEndTime": "16:30:00"
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"daysOfWeek": [
|
| 201 |
+
"thu",
|
| 202 |
+
"fri"
|
| 203 |
+
],
|
| 204 |
+
"availableStartTime": "09:00:00",
|
| 205 |
+
"availableEndTime": "12:00:00"
|
| 206 |
+
}
|
| 207 |
+
],
|
| 208 |
+
"notAvailable": [
|
| 209 |
+
{
|
| 210 |
+
"description": "Mabel will be on extended leave during May 2017",
|
| 211 |
+
"during": {
|
| 212 |
+
"start": "2017-05-01",
|
| 213 |
+
"end": "2017-05-20"
|
| 214 |
+
}
|
| 215 |
+
}
|
| 216 |
+
],
|
| 217 |
+
"availabilityExceptions": "Mabel is generally unavailable on public holidays and during the Christmas/New Year break"
|
| 218 |
+
},
|
| 219 |
+
"request": {
|
| 220 |
+
"method": "PUT",
|
| 221 |
+
"url": "PractitionerRole/example"
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"resource": {
|
| 226 |
+
"resourceType": "EpisodeOfCare",
|
| 227 |
+
"id": "mom-pregnancy-episode",
|
| 228 |
+
"identifier": [
|
| 229 |
+
{
|
| 230 |
+
"system": "http://example.org/sampleepisodeofcare-identifier",
|
| 231 |
+
"value": "123"
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"status": "active",
|
| 235 |
+
"type": [
|
| 236 |
+
{
|
| 237 |
+
"coding": [
|
| 238 |
+
{
|
| 239 |
+
"system": "http://terminology.hl7.org/CodeSystem/episodeofcare-type",
|
| 240 |
+
"code": "hacc",
|
| 241 |
+
"display": "Home and Community Care"
|
| 242 |
+
}
|
| 243 |
+
]
|
| 244 |
+
}
|
| 245 |
+
],
|
| 246 |
+
"diagnosis": [
|
| 247 |
+
{
|
| 248 |
+
"condition": {
|
| 249 |
+
"reference": "Condition/mom-pregnancy"
|
| 250 |
+
},
|
| 251 |
+
"role": {
|
| 252 |
+
"coding": [
|
| 253 |
+
{
|
| 254 |
+
"system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
|
| 255 |
+
"code": "CC",
|
| 256 |
+
"display": "Chief complaint"
|
| 257 |
+
}
|
| 258 |
+
]
|
| 259 |
+
},
|
| 260 |
+
"rank": 1
|
| 261 |
+
}
|
| 262 |
+
],
|
| 263 |
+
"patient": {
|
| 264 |
+
"reference": "Patient/mom"
|
| 265 |
+
},
|
| 266 |
+
"period": {
|
| 267 |
+
"fhir_comments": [
|
| 268 |
+
" TODO: managingOrganization ",
|
| 269 |
+
" TODO: careManager ",
|
| 270 |
+
" TODO: team ",
|
| 271 |
+
" TODO: account "
|
| 272 |
+
],
|
| 273 |
+
"start": "2019-05-22"
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"request": {
|
| 277 |
+
"method": "PUT",
|
| 278 |
+
"url": "EpisodeOfCare/mom-pregnancy-episode"
|
| 279 |
+
}
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"resource": {
|
| 283 |
+
"resourceType": "MedicationRequest",
|
| 284 |
+
"id": "mom-daily-elemental-iron-recommendation",
|
| 285 |
+
"meta": {
|
| 286 |
+
"profile": [
|
| 287 |
+
"http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"
|
| 288 |
+
]
|
| 289 |
+
},
|
| 290 |
+
"status": "active",
|
| 291 |
+
"intent": "proposal",
|
| 292 |
+
"subject": {
|
| 293 |
+
"reference": "Patient/mom",
|
| 294 |
+
"display": "Eve Everywoman"
|
| 295 |
+
},
|
| 296 |
+
"encounter": {
|
| 297 |
+
"reference": "Encounter/mom-first-contact"
|
| 298 |
+
},
|
| 299 |
+
"authoredOn": "2019-05-24",
|
| 300 |
+
"reasonCode": [
|
| 301 |
+
{
|
| 302 |
+
"coding": [
|
| 303 |
+
{
|
| 304 |
+
"system": "http://snomed.info/sct",
|
| 305 |
+
"code": "271737000",
|
| 306 |
+
"display": "Anemia (disorder)"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"system": "http://openmrs.org/concepts",
|
| 310 |
+
"code": "121629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 311 |
+
"display": "Anaemia"
|
| 312 |
+
}
|
| 313 |
+
]
|
| 314 |
+
}
|
| 315 |
+
],
|
| 316 |
+
"instantiatesCanonical": [
|
| 317 |
+
"http://fhir.org/guides/who/anc-cds/ActivityDefinition/anc-daily-elemental-iron"
|
| 318 |
+
],
|
| 319 |
+
"dosageInstruction": [
|
| 320 |
+
{
|
| 321 |
+
"text": "120mg daily",
|
| 322 |
+
"timing": {
|
| 323 |
+
"repeat": {
|
| 324 |
+
"frequency": 1,
|
| 325 |
+
"period": 1,
|
| 326 |
+
"periodUnit": "d"
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
"route": {
|
| 330 |
+
"coding": [
|
| 331 |
+
{
|
| 332 |
+
"code": "26643006",
|
| 333 |
+
"display": "Oral route (qualifier value)"
|
| 334 |
+
}
|
| 335 |
+
],
|
| 336 |
+
"text": "Oral route (qualifier value)"
|
| 337 |
+
},
|
| 338 |
+
"doseAndRate": [
|
| 339 |
+
{
|
| 340 |
+
"type": {
|
| 341 |
+
"coding": [
|
| 342 |
+
{
|
| 343 |
+
"system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
|
| 344 |
+
"code": "ordered",
|
| 345 |
+
"display": "Ordered"
|
| 346 |
+
}
|
| 347 |
+
]
|
| 348 |
+
},
|
| 349 |
+
"doseQuantity": {
|
| 350 |
+
"value": 120,
|
| 351 |
+
"unit": "mg"
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
]
|
| 355 |
+
}
|
| 356 |
+
]
|
| 357 |
+
},
|
| 358 |
+
"request": {
|
| 359 |
+
"method": "PUT",
|
| 360 |
+
"url": "MedicationRequest/mom-daily-elemental-iron-recommendation"
|
| 361 |
+
}
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"resource": {
|
| 365 |
+
"resourceType": "CarePlan",
|
| 366 |
+
"id": "mom-pregnancy-plan",
|
| 367 |
+
"extension": [
|
| 368 |
+
{
|
| 369 |
+
"url": "http://fhir.org/guides/who/anc-cds/StructureDefinition/careplan-episodeOfCare",
|
| 370 |
+
"valueReference": {
|
| 371 |
+
"reference": "EpisodeOfCare/mom-pregnancy-episode"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
],
|
| 375 |
+
"instantiatesCanonical": [
|
| 376 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact-schedule"
|
| 377 |
+
],
|
| 378 |
+
"status": "active",
|
| 379 |
+
"intent": "plan",
|
| 380 |
+
"subject": {
|
| 381 |
+
"reference": "Patient/mom",
|
| 382 |
+
"display": "Eve Everywoman"
|
| 383 |
+
},
|
| 384 |
+
"period": {
|
| 385 |
+
"start": "2019-05-24",
|
| 386 |
+
"_start": {
|
| 387 |
+
"fhir_comments": [
|
| 388 |
+
" The likely duration of the pregnancy "
|
| 389 |
+
]
|
| 390 |
+
},
|
| 391 |
+
"end": "2020-02-24"
|
| 392 |
+
},
|
| 393 |
+
"careTeam": [
|
| 394 |
+
{
|
| 395 |
+
"reference": "CareTeam/anc-team"
|
| 396 |
+
}
|
| 397 |
+
],
|
| 398 |
+
"addresses": [
|
| 399 |
+
{
|
| 400 |
+
"reference": "Condition/mom-pregnancy",
|
| 401 |
+
"display": "pregnancy"
|
| 402 |
+
}
|
| 403 |
+
],
|
| 404 |
+
"goal": [
|
| 405 |
+
{
|
| 406 |
+
"reference": "Goal/mom-pregnancy-goal"
|
| 407 |
+
}
|
| 408 |
+
],
|
| 409 |
+
"activity": [
|
| 410 |
+
{
|
| 411 |
+
"fhir_comments": [
|
| 412 |
+
" First contact, occurred at about 12 weeks based on gestational age from LMP of 2019-03-01 "
|
| 413 |
+
],
|
| 414 |
+
"outcomeReference": [
|
| 415 |
+
{
|
| 416 |
+
"reference": "Encounter/mom-first-contact"
|
| 417 |
+
}
|
| 418 |
+
],
|
| 419 |
+
"detail": {
|
| 420 |
+
"kind": "Appointment",
|
| 421 |
+
"instantiatesCanonical": [
|
| 422 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 423 |
+
],
|
| 424 |
+
"code": {
|
| 425 |
+
"coding": [
|
| 426 |
+
{
|
| 427 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 428 |
+
"code": "anc-contact",
|
| 429 |
+
"display": "Antenatal care contact"
|
| 430 |
+
}
|
| 431 |
+
],
|
| 432 |
+
"text": "Antenatal care contact"
|
| 433 |
+
},
|
| 434 |
+
"status": "in-progress",
|
| 435 |
+
"performer": [
|
| 436 |
+
{
|
| 437 |
+
"reference": "Practitioner/midwife",
|
| 438 |
+
"display": "Mabel Midwife"
|
| 439 |
+
}
|
| 440 |
+
],
|
| 441 |
+
"description": "First antenatal care contact"
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"fhir_comments": [
|
| 446 |
+
" Second contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 447 |
+
],
|
| 448 |
+
"detail": {
|
| 449 |
+
"kind": "Appointment",
|
| 450 |
+
"instantiatesCanonical": [
|
| 451 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 452 |
+
],
|
| 453 |
+
"code": {
|
| 454 |
+
"coding": [
|
| 455 |
+
{
|
| 456 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 457 |
+
"code": "anc-contact",
|
| 458 |
+
"display": "Antenatal care contact"
|
| 459 |
+
}
|
| 460 |
+
],
|
| 461 |
+
"text": "Antenatal care contact"
|
| 462 |
+
},
|
| 463 |
+
"status": "scheduled",
|
| 464 |
+
"scheduledPeriod": {
|
| 465 |
+
"fhir_comments": [
|
| 466 |
+
" Scheduled based on gestational age calculation "
|
| 467 |
+
],
|
| 468 |
+
"start": "2019-07-26"
|
| 469 |
+
},
|
| 470 |
+
"performer": [
|
| 471 |
+
{
|
| 472 |
+
"reference": "Practitioner/midwife",
|
| 473 |
+
"display": "Mabel Midwife"
|
| 474 |
+
}
|
| 475 |
+
],
|
| 476 |
+
"description": "Second contact to occur at 20 weeks of gestational age"
|
| 477 |
+
}
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"fhir_comments": [
|
| 481 |
+
" Third contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 482 |
+
],
|
| 483 |
+
"detail": {
|
| 484 |
+
"kind": "Appointment",
|
| 485 |
+
"instantiatesCanonical": [
|
| 486 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 487 |
+
],
|
| 488 |
+
"code": {
|
| 489 |
+
"coding": [
|
| 490 |
+
{
|
| 491 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 492 |
+
"code": "anc-contact",
|
| 493 |
+
"display": "Antenatal care contact"
|
| 494 |
+
}
|
| 495 |
+
],
|
| 496 |
+
"text": "Antenatal care contact"
|
| 497 |
+
},
|
| 498 |
+
"status": "not-started",
|
| 499 |
+
"scheduledPeriod": {
|
| 500 |
+
"fhir_comments": [
|
| 501 |
+
" Scheduled based on gestational age calculation "
|
| 502 |
+
],
|
| 503 |
+
"start": "2019-09-06"
|
| 504 |
+
},
|
| 505 |
+
"performer": [
|
| 506 |
+
{
|
| 507 |
+
"reference": "Practitioner/midwife",
|
| 508 |
+
"display": "Mabel Midwife"
|
| 509 |
+
}
|
| 510 |
+
],
|
| 511 |
+
"description": "Third contact to occur at 26 weeks of gestational age"
|
| 512 |
+
}
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"fhir_comments": [
|
| 516 |
+
" Fourth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 517 |
+
],
|
| 518 |
+
"detail": {
|
| 519 |
+
"kind": "Appointment",
|
| 520 |
+
"instantiatesCanonical": [
|
| 521 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 522 |
+
],
|
| 523 |
+
"code": {
|
| 524 |
+
"coding": [
|
| 525 |
+
{
|
| 526 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 527 |
+
"code": "anc-contact",
|
| 528 |
+
"display": "Antenatal care contact"
|
| 529 |
+
}
|
| 530 |
+
],
|
| 531 |
+
"text": "Antenatal care contact"
|
| 532 |
+
},
|
| 533 |
+
"status": "not-started",
|
| 534 |
+
"scheduledPeriod": {
|
| 535 |
+
"fhir_comments": [
|
| 536 |
+
" Scheduled based on gestational age calculation "
|
| 537 |
+
],
|
| 538 |
+
"start": "2019-10-04"
|
| 539 |
+
},
|
| 540 |
+
"performer": [
|
| 541 |
+
{
|
| 542 |
+
"reference": "Practitioner/midwife",
|
| 543 |
+
"display": "Mabel Midwife"
|
| 544 |
+
}
|
| 545 |
+
],
|
| 546 |
+
"description": "Fourth contact to occur at 30 weeks of gestational age"
|
| 547 |
+
}
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"fhir_comments": [
|
| 551 |
+
" Fifth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 552 |
+
],
|
| 553 |
+
"detail": {
|
| 554 |
+
"kind": "Appointment",
|
| 555 |
+
"instantiatesCanonical": [
|
| 556 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 557 |
+
],
|
| 558 |
+
"code": {
|
| 559 |
+
"coding": [
|
| 560 |
+
{
|
| 561 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 562 |
+
"code": "anc-contact",
|
| 563 |
+
"display": "Antenatal care contact"
|
| 564 |
+
}
|
| 565 |
+
],
|
| 566 |
+
"text": "Antenatal care contact"
|
| 567 |
+
},
|
| 568 |
+
"status": "not-started",
|
| 569 |
+
"scheduledPeriod": {
|
| 570 |
+
"fhir_comments": [
|
| 571 |
+
" Scheduled based on gestational age calculation "
|
| 572 |
+
],
|
| 573 |
+
"start": "2019-11-01"
|
| 574 |
+
},
|
| 575 |
+
"performer": [
|
| 576 |
+
{
|
| 577 |
+
"reference": "Practitioner/midwife",
|
| 578 |
+
"display": "Mabel Midwife"
|
| 579 |
+
}
|
| 580 |
+
],
|
| 581 |
+
"description": "Fifth contact to occur at 34 weeks of gestational age"
|
| 582 |
+
}
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"fhir_comments": [
|
| 586 |
+
" Sixth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 587 |
+
],
|
| 588 |
+
"detail": {
|
| 589 |
+
"kind": "Appointment",
|
| 590 |
+
"instantiatesCanonical": [
|
| 591 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 592 |
+
],
|
| 593 |
+
"code": {
|
| 594 |
+
"coding": [
|
| 595 |
+
{
|
| 596 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 597 |
+
"code": "anc-contact",
|
| 598 |
+
"display": "Antenatal care contact"
|
| 599 |
+
}
|
| 600 |
+
],
|
| 601 |
+
"text": "Antenatal care contact"
|
| 602 |
+
},
|
| 603 |
+
"status": "not-started",
|
| 604 |
+
"scheduledPeriod": {
|
| 605 |
+
"fhir_comments": [
|
| 606 |
+
" Scheduled based on gestational age calculation "
|
| 607 |
+
],
|
| 608 |
+
"start": "2019-11-15"
|
| 609 |
+
},
|
| 610 |
+
"performer": [
|
| 611 |
+
{
|
| 612 |
+
"reference": "Practitioner/midwife",
|
| 613 |
+
"display": "Mabel Midwife"
|
| 614 |
+
}
|
| 615 |
+
],
|
| 616 |
+
"description": "Sixth contact to occur at 36 weeks of gestational age"
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"fhir_comments": [
|
| 621 |
+
" Seventh contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 622 |
+
],
|
| 623 |
+
"detail": {
|
| 624 |
+
"kind": "Appointment",
|
| 625 |
+
"instantiatesCanonical": [
|
| 626 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 627 |
+
],
|
| 628 |
+
"code": {
|
| 629 |
+
"coding": [
|
| 630 |
+
{
|
| 631 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 632 |
+
"code": "anc-contact",
|
| 633 |
+
"display": "Antenatal care contact"
|
| 634 |
+
}
|
| 635 |
+
],
|
| 636 |
+
"text": "Antenatal care contact"
|
| 637 |
+
},
|
| 638 |
+
"status": "not-started",
|
| 639 |
+
"scheduledPeriod": {
|
| 640 |
+
"fhir_comments": [
|
| 641 |
+
" Scheduled based on gestational age calculation "
|
| 642 |
+
],
|
| 643 |
+
"start": "2019-11-29"
|
| 644 |
+
},
|
| 645 |
+
"performer": [
|
| 646 |
+
{
|
| 647 |
+
"reference": "Practitioner/midwife",
|
| 648 |
+
"display": "Mabel Midwife"
|
| 649 |
+
}
|
| 650 |
+
],
|
| 651 |
+
"description": "Seventh contact to occur at 38 weeks of gestational age"
|
| 652 |
+
}
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"fhir_comments": [
|
| 656 |
+
" Eighth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 657 |
+
],
|
| 658 |
+
"detail": {
|
| 659 |
+
"kind": "Appointment",
|
| 660 |
+
"instantiatesCanonical": [
|
| 661 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 662 |
+
],
|
| 663 |
+
"code": {
|
| 664 |
+
"coding": [
|
| 665 |
+
{
|
| 666 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 667 |
+
"code": "anc-contact",
|
| 668 |
+
"display": "Antenatal care contact"
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"text": "Antenatal care contact"
|
| 672 |
+
},
|
| 673 |
+
"status": "not-started",
|
| 674 |
+
"scheduledPeriod": {
|
| 675 |
+
"fhir_comments": [
|
| 676 |
+
" Scheduled based on gestational age calculation "
|
| 677 |
+
],
|
| 678 |
+
"start": "2019-12-13"
|
| 679 |
+
},
|
| 680 |
+
"performer": [
|
| 681 |
+
{
|
| 682 |
+
"reference": "Practitioner/midwife",
|
| 683 |
+
"display": "Mabel Midwife"
|
| 684 |
+
}
|
| 685 |
+
],
|
| 686 |
+
"description": "Eighth contact to occur at 40 weeks of gestational age"
|
| 687 |
+
}
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"detail": {
|
| 691 |
+
"kind": "Appointment",
|
| 692 |
+
"_kind": {
|
| 693 |
+
"fhir_comments": [
|
| 694 |
+
" This will be the delivery. It is not yet scheduled. "
|
| 695 |
+
]
|
| 696 |
+
},
|
| 697 |
+
"code": {
|
| 698 |
+
"coding": [
|
| 699 |
+
{
|
| 700 |
+
"system": "http://example.org/mySystem",
|
| 701 |
+
"code": "del"
|
| 702 |
+
}
|
| 703 |
+
],
|
| 704 |
+
"text": "Delivery"
|
| 705 |
+
},
|
| 706 |
+
"status": "not-started",
|
| 707 |
+
"scheduledPeriod": {
|
| 708 |
+
"start": "2019-12-13",
|
| 709 |
+
"end": "2019-12-27"
|
| 710 |
+
},
|
| 711 |
+
"performer": [
|
| 712 |
+
{
|
| 713 |
+
"fhir_comments": [
|
| 714 |
+
" TODO: location "
|
| 715 |
+
],
|
| 716 |
+
"reference": "Practitioner/midwife",
|
| 717 |
+
"display": "Mabel Midwife"
|
| 718 |
+
}
|
| 719 |
+
],
|
| 720 |
+
"description": "Delivery"
|
| 721 |
+
}
|
| 722 |
+
}
|
| 723 |
+
]
|
| 724 |
+
},
|
| 725 |
+
"request": {
|
| 726 |
+
"method": "PUT",
|
| 727 |
+
"url": "CarePlan/mom-pregnancy-plan"
|
| 728 |
+
}
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"resource": {
|
| 732 |
+
"resourceType": "CareTeam",
|
| 733 |
+
"id": "anc-team",
|
| 734 |
+
"participant": [
|
| 735 |
+
{
|
| 736 |
+
"role": [
|
| 737 |
+
{
|
| 738 |
+
"coding": [
|
| 739 |
+
{
|
| 740 |
+
"system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona",
|
| 741 |
+
"code": "2222",
|
| 742 |
+
"display": "Midwifery professional"
|
| 743 |
+
}
|
| 744 |
+
],
|
| 745 |
+
"text": "Midwifery professional"
|
| 746 |
+
}
|
| 747 |
+
],
|
| 748 |
+
"member": {
|
| 749 |
+
"reference": "Practitioner/midwife",
|
| 750 |
+
"display": "Mabel Midwife"
|
| 751 |
+
}
|
| 752 |
+
}
|
| 753 |
+
]
|
| 754 |
+
},
|
| 755 |
+
"request": {
|
| 756 |
+
"method": "PUT",
|
| 757 |
+
"url": "CareTeam/anc-team"
|
| 758 |
+
}
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"resource": {
|
| 762 |
+
"resourceType": "Appointment",
|
| 763 |
+
"id": "mom-second-contact",
|
| 764 |
+
"status": "booked",
|
| 765 |
+
"serviceCategory": [
|
| 766 |
+
{
|
| 767 |
+
"fhir_comments": [
|
| 768 |
+
" TODO: serviceCategory "
|
| 769 |
+
],
|
| 770 |
+
"coding": [
|
| 771 |
+
{
|
| 772 |
+
"system": "http://example.org/service-category",
|
| 773 |
+
"code": "gp",
|
| 774 |
+
"display": "General Practice"
|
| 775 |
+
}
|
| 776 |
+
]
|
| 777 |
+
}
|
| 778 |
+
],
|
| 779 |
+
"serviceType": [
|
| 780 |
+
{
|
| 781 |
+
"fhir_comments": [
|
| 782 |
+
" TODO: serviceType "
|
| 783 |
+
],
|
| 784 |
+
"coding": [
|
| 785 |
+
{
|
| 786 |
+
"code": "52",
|
| 787 |
+
"display": "General Discussion"
|
| 788 |
+
}
|
| 789 |
+
]
|
| 790 |
+
}
|
| 791 |
+
],
|
| 792 |
+
"specialty": [
|
| 793 |
+
{
|
| 794 |
+
"fhir_comments": [
|
| 795 |
+
" TODO: specialty "
|
| 796 |
+
],
|
| 797 |
+
"coding": [
|
| 798 |
+
{
|
| 799 |
+
"system": "http://snomed.info/sct",
|
| 800 |
+
"code": "394814009",
|
| 801 |
+
"display": "General practice"
|
| 802 |
+
}
|
| 803 |
+
]
|
| 804 |
+
}
|
| 805 |
+
],
|
| 806 |
+
"appointmentType": {
|
| 807 |
+
"coding": [
|
| 808 |
+
{
|
| 809 |
+
"system": "http://terminology.hl7.org/CodeSystem/v2-0276",
|
| 810 |
+
"code": "FOLLOWUP",
|
| 811 |
+
"display": "A follow up visit from a previous appointment"
|
| 812 |
+
}
|
| 813 |
+
]
|
| 814 |
+
},
|
| 815 |
+
"reasonReference": [
|
| 816 |
+
{
|
| 817 |
+
"reference": "Condition/mom-pregnancy"
|
| 818 |
+
}
|
| 819 |
+
],
|
| 820 |
+
"description": "Antenatal care first contact",
|
| 821 |
+
"start": "2019-07-26T15:00:00Z",
|
| 822 |
+
"minutesDuration": 30,
|
| 823 |
+
"created": "2019-05-24",
|
| 824 |
+
"participant": [
|
| 825 |
+
{
|
| 826 |
+
"actor": {
|
| 827 |
+
"reference": "Patient/mom",
|
| 828 |
+
"display": "Eve Everywoman"
|
| 829 |
+
},
|
| 830 |
+
"required": "required",
|
| 831 |
+
"status": "accepted"
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": [
|
| 835 |
+
{
|
| 836 |
+
"coding": [
|
| 837 |
+
{
|
| 838 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
|
| 839 |
+
"code": "ATND"
|
| 840 |
+
}
|
| 841 |
+
]
|
| 842 |
+
}
|
| 843 |
+
],
|
| 844 |
+
"actor": {
|
| 845 |
+
"reference": "Practitioner/midwife",
|
| 846 |
+
"display": "Mabel Midwife"
|
| 847 |
+
},
|
| 848 |
+
"required": "required",
|
| 849 |
+
"status": "accepted"
|
| 850 |
+
}
|
| 851 |
+
]
|
| 852 |
+
},
|
| 853 |
+
"request": {
|
| 854 |
+
"method": "PUT",
|
| 855 |
+
"url": "Appointment/mom-second-contact"
|
| 856 |
+
}
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"resource": {
|
| 860 |
+
"resourceType": "Observation",
|
| 861 |
+
"id": "mom-lmp",
|
| 862 |
+
"meta": {
|
| 863 |
+
"profile": [
|
| 864 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/lmpobservation"
|
| 865 |
+
]
|
| 866 |
+
},
|
| 867 |
+
"status": "final",
|
| 868 |
+
"category": [
|
| 869 |
+
{
|
| 870 |
+
"coding": [
|
| 871 |
+
{
|
| 872 |
+
"system": "http://hl7.org/fhir/observation-category",
|
| 873 |
+
"code": "exam"
|
| 874 |
+
}
|
| 875 |
+
]
|
| 876 |
+
}
|
| 877 |
+
],
|
| 878 |
+
"code": {
|
| 879 |
+
"coding": [
|
| 880 |
+
{
|
| 881 |
+
"system": "http://openmrs.org/concepts",
|
| 882 |
+
"code": "1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 883 |
+
"display": "LMP"
|
| 884 |
+
}
|
| 885 |
+
],
|
| 886 |
+
"text": "Date of last menstrual period"
|
| 887 |
+
},
|
| 888 |
+
"subject": {
|
| 889 |
+
"reference": "Patient/mom",
|
| 890 |
+
"display": "Eve Everywoman"
|
| 891 |
+
},
|
| 892 |
+
"encounter": {
|
| 893 |
+
"reference": "Encounter/mom-first-contact"
|
| 894 |
+
},
|
| 895 |
+
"effectiveDateTime": "2019-05-24T15:30:00Z",
|
| 896 |
+
"issued": "2019-05-24T15:30:00Z",
|
| 897 |
+
"performer": [
|
| 898 |
+
{
|
| 899 |
+
"reference": "Practitioner/midwife",
|
| 900 |
+
"display": "Mabel Midwife"
|
| 901 |
+
}
|
| 902 |
+
],
|
| 903 |
+
"valueDateTime": "2019-03-01"
|
| 904 |
+
},
|
| 905 |
+
"request": {
|
| 906 |
+
"method": "PUT",
|
| 907 |
+
"url": "Observation/mom-lmp"
|
| 908 |
+
}
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"resource": {
|
| 912 |
+
"resourceType": "Observation",
|
| 913 |
+
"id": "mom-gest-age-method",
|
| 914 |
+
"meta": {
|
| 915 |
+
"profile": [
|
| 916 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/lmpobservation"
|
| 917 |
+
]
|
| 918 |
+
},
|
| 919 |
+
"status": "final",
|
| 920 |
+
"category": [
|
| 921 |
+
{
|
| 922 |
+
"coding": [
|
| 923 |
+
{
|
| 924 |
+
"system": "http://hl7.org/fhir/observation-category",
|
| 925 |
+
"code": "exam"
|
| 926 |
+
}
|
| 927 |
+
]
|
| 928 |
+
}
|
| 929 |
+
],
|
| 930 |
+
"code": {
|
| 931 |
+
"coding": [
|
| 932 |
+
{
|
| 933 |
+
"system": "http://openmrs.org/concepts",
|
| 934 |
+
"code": "GestAgeMethod",
|
| 935 |
+
"display": "Selected Gestational Age Determination Method"
|
| 936 |
+
}
|
| 937 |
+
],
|
| 938 |
+
"text": "Selected Gestational Age Determination Method"
|
| 939 |
+
},
|
| 940 |
+
"subject": {
|
| 941 |
+
"reference": "Patient/mom",
|
| 942 |
+
"display": "Eve Everywoman"
|
| 943 |
+
},
|
| 944 |
+
"encounter": {
|
| 945 |
+
"reference": "Encounter/mom-first-contact"
|
| 946 |
+
},
|
| 947 |
+
"effectiveDateTime": "2019-05-24T15:30:00Z",
|
| 948 |
+
"issued": "2019-05-24T15:30:00Z",
|
| 949 |
+
"performer": [
|
| 950 |
+
{
|
| 951 |
+
"reference": "Practitioner/midwife",
|
| 952 |
+
"display": "Mabel Midwife"
|
| 953 |
+
}
|
| 954 |
+
],
|
| 955 |
+
"valueCodeableConcept": {
|
| 956 |
+
"coding": [
|
| 957 |
+
{
|
| 958 |
+
"system": "http://fhir.org/guides/who/anc-cds/CodeSystem/anc-codes",
|
| 959 |
+
"code": "UseLMP"
|
| 960 |
+
}
|
| 961 |
+
],
|
| 962 |
+
"text": "Last Menstrual Period Date Method"
|
| 963 |
+
}
|
| 964 |
+
},
|
| 965 |
+
"request": {
|
| 966 |
+
"method": "PUT",
|
| 967 |
+
"url": "Observation/mom-gest-age-method"
|
| 968 |
+
}
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"resource": {
|
| 972 |
+
"resourceType": "Condition",
|
| 973 |
+
"id": "mom-pregnancy",
|
| 974 |
+
"clinicalStatus": {
|
| 975 |
+
"coding": [
|
| 976 |
+
{
|
| 977 |
+
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
|
| 978 |
+
"code": "active"
|
| 979 |
+
}
|
| 980 |
+
]
|
| 981 |
+
},
|
| 982 |
+
"verificationStatus": {
|
| 983 |
+
"coding": [
|
| 984 |
+
{
|
| 985 |
+
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
|
| 986 |
+
"code": "confirmed"
|
| 987 |
+
}
|
| 988 |
+
]
|
| 989 |
+
},
|
| 990 |
+
"category": [
|
| 991 |
+
{
|
| 992 |
+
"coding": [
|
| 993 |
+
{
|
| 994 |
+
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
|
| 995 |
+
"code": "problem-list-item",
|
| 996 |
+
"display": "Problem List Item"
|
| 997 |
+
}
|
| 998 |
+
]
|
| 999 |
+
}
|
| 1000 |
+
],
|
| 1001 |
+
"code": {
|
| 1002 |
+
"coding": [
|
| 1003 |
+
{
|
| 1004 |
+
"system": "http://example.org/tbd",
|
| 1005 |
+
"code": "TBD",
|
| 1006 |
+
"display": "Pregnancy"
|
| 1007 |
+
}
|
| 1008 |
+
],
|
| 1009 |
+
"text": "Pregnancy"
|
| 1010 |
+
},
|
| 1011 |
+
"subject": {
|
| 1012 |
+
"reference": "Patient/mom"
|
| 1013 |
+
},
|
| 1014 |
+
"onsetDateTime": "2019-05-22"
|
| 1015 |
+
},
|
| 1016 |
+
"request": {
|
| 1017 |
+
"method": "PUT",
|
| 1018 |
+
"url": "Condition/mom-pregnancy"
|
| 1019 |
+
}
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"resource": {
|
| 1023 |
+
"resourceType": "Observation",
|
| 1024 |
+
"id": "mom-hb",
|
| 1025 |
+
"meta": {
|
| 1026 |
+
"profile": [
|
| 1027 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/hbobservation"
|
| 1028 |
+
]
|
| 1029 |
+
},
|
| 1030 |
+
"status": "final",
|
| 1031 |
+
"category": [
|
| 1032 |
+
{
|
| 1033 |
+
"coding": [
|
| 1034 |
+
{
|
| 1035 |
+
"system": "http://hl7.org/fhir/observation-category",
|
| 1036 |
+
"code": "exam"
|
| 1037 |
+
}
|
| 1038 |
+
]
|
| 1039 |
+
}
|
| 1040 |
+
],
|
| 1041 |
+
"code": {
|
| 1042 |
+
"fhir_comments": [
|
| 1043 |
+
" NOTE: Loinc code here, current CQL still references the OpenMRS concept for this ",
|
| 1044 |
+
" <code>\n\t\t<coding>\n\t\t\t<system value=\"http://loinc.org\"/>\n\t\t\t<code value=\"718-7\"/>\n\t\t\t<display value=\"Hemoglobin [Mass/volume] in Blood\"/>\n\t\t</coding>\n\t</code> "
|
| 1045 |
+
],
|
| 1046 |
+
"coding": [
|
| 1047 |
+
{
|
| 1048 |
+
"system": "http://openmrs.org/concepts",
|
| 1049 |
+
"code": "165395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 1050 |
+
"display": "Haemoglobin measured from haemoglobinometer (g/dl)"
|
| 1051 |
+
}
|
| 1052 |
+
]
|
| 1053 |
+
},
|
| 1054 |
+
"subject": {
|
| 1055 |
+
"reference": "Patient/mom",
|
| 1056 |
+
"display": "Eve Everywoman"
|
| 1057 |
+
},
|
| 1058 |
+
"encounter": {
|
| 1059 |
+
"reference": "Encounter/mom-first-contact"
|
| 1060 |
+
},
|
| 1061 |
+
"effectivePeriod": {
|
| 1062 |
+
"start": "2019-05-24T15:30:00Z",
|
| 1063 |
+
"end": "2019-05-24T15:30:00Z"
|
| 1064 |
+
},
|
| 1065 |
+
"issued": "2019-05-24T15:30:00Z",
|
| 1066 |
+
"performer": [
|
| 1067 |
+
{
|
| 1068 |
+
"reference": "Practitioner/midwife",
|
| 1069 |
+
"display": "Mabel Midwife"
|
| 1070 |
+
}
|
| 1071 |
+
],
|
| 1072 |
+
"valueQuantity": {
|
| 1073 |
+
"value": 7.2,
|
| 1074 |
+
"unit": "g/dl",
|
| 1075 |
+
"system": "http://unitsofmeasure.org",
|
| 1076 |
+
"code": "g/dL"
|
| 1077 |
+
},
|
| 1078 |
+
"interpretation": [
|
| 1079 |
+
{
|
| 1080 |
+
"coding": [
|
| 1081 |
+
{
|
| 1082 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
| 1083 |
+
"code": "L",
|
| 1084 |
+
"display": "Low"
|
| 1085 |
+
}
|
| 1086 |
+
]
|
| 1087 |
+
}
|
| 1088 |
+
],
|
| 1089 |
+
"referenceRange": [
|
| 1090 |
+
{
|
| 1091 |
+
"low": {
|
| 1092 |
+
"value": 7.5,
|
| 1093 |
+
"unit": "g/dl",
|
| 1094 |
+
"system": "http://unitsofmeasure.org",
|
| 1095 |
+
"code": "g/dL"
|
| 1096 |
+
},
|
| 1097 |
+
"high": {
|
| 1098 |
+
"value": 10,
|
| 1099 |
+
"unit": "g/dl",
|
| 1100 |
+
"system": "http://unitsofmeasure.org",
|
| 1101 |
+
"code": "g/dL"
|
| 1102 |
+
}
|
| 1103 |
+
}
|
| 1104 |
+
]
|
| 1105 |
+
},
|
| 1106 |
+
"request": {
|
| 1107 |
+
"method": "PUT",
|
| 1108 |
+
"url": "Observation/mom-hb"
|
| 1109 |
+
}
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"resource": {
|
| 1113 |
+
"resourceType": "Patient",
|
| 1114 |
+
"id": "mom",
|
| 1115 |
+
"meta": {
|
| 1116 |
+
"profile": [
|
| 1117 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/ancpatient"
|
| 1118 |
+
]
|
| 1119 |
+
},
|
| 1120 |
+
"identifier": [
|
| 1121 |
+
{
|
| 1122 |
+
"use": "official",
|
| 1123 |
+
"value": "1000"
|
| 1124 |
+
}
|
| 1125 |
+
],
|
| 1126 |
+
"active": true,
|
| 1127 |
+
"name": [
|
| 1128 |
+
{
|
| 1129 |
+
"use": "official",
|
| 1130 |
+
"family": "Everywoman",
|
| 1131 |
+
"given": [
|
| 1132 |
+
"Eve"
|
| 1133 |
+
]
|
| 1134 |
+
}
|
| 1135 |
+
],
|
| 1136 |
+
"telecom": [
|
| 1137 |
+
{
|
| 1138 |
+
"system": "phone",
|
| 1139 |
+
"value": "555-555-2003",
|
| 1140 |
+
"use": "mobile"
|
| 1141 |
+
}
|
| 1142 |
+
],
|
| 1143 |
+
"gender": "female",
|
| 1144 |
+
"birthDate": "1993-05-31",
|
| 1145 |
+
"address": [
|
| 1146 |
+
{
|
| 1147 |
+
"use": "home",
|
| 1148 |
+
"text": "2222 Home Street"
|
| 1149 |
+
}
|
| 1150 |
+
]
|
| 1151 |
+
},
|
| 1152 |
+
"request": {
|
| 1153 |
+
"method": "PUT",
|
| 1154 |
+
"url": "Patient/mom"
|
| 1155 |
+
}
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"resource": {
|
| 1159 |
+
"resourceType": "MedicationRequest",
|
| 1160 |
+
"id": "mom-daily-elemental-iron-prescription",
|
| 1161 |
+
"meta": {
|
| 1162 |
+
"profile": [
|
| 1163 |
+
"http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"
|
| 1164 |
+
]
|
| 1165 |
+
},
|
| 1166 |
+
"status": "active",
|
| 1167 |
+
"intent": "order",
|
| 1168 |
+
"subject": {
|
| 1169 |
+
"reference": "Patient/mom",
|
| 1170 |
+
"display": "Eve Everywoman"
|
| 1171 |
+
},
|
| 1172 |
+
"encounter": {
|
| 1173 |
+
"reference": "Encounter/mom-first-contact"
|
| 1174 |
+
},
|
| 1175 |
+
"authoredOn": "2019-05-24",
|
| 1176 |
+
"requester": {
|
| 1177 |
+
"reference": "Practitioner/midwife",
|
| 1178 |
+
"display": "Mabel Midwife"
|
| 1179 |
+
},
|
| 1180 |
+
"reasonCode": [
|
| 1181 |
+
{
|
| 1182 |
+
"coding": [
|
| 1183 |
+
{
|
| 1184 |
+
"system": "http://snomed.info/sct",
|
| 1185 |
+
"code": "271737000",
|
| 1186 |
+
"display": "Anemia (disorder)"
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"system": "http://openmrs.org/concepts",
|
| 1190 |
+
"code": "121629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 1191 |
+
"display": "Anaemia"
|
| 1192 |
+
}
|
| 1193 |
+
]
|
| 1194 |
+
}
|
| 1195 |
+
],
|
| 1196 |
+
"instantiatesCanonical": [
|
| 1197 |
+
"http://fhir.org/guides/who/anc-cds/ActivityDefinition/anc-daily-elemental-iron"
|
| 1198 |
+
],
|
| 1199 |
+
"dosageInstruction": [
|
| 1200 |
+
{
|
| 1201 |
+
"text": "120mg daily",
|
| 1202 |
+
"timing": {
|
| 1203 |
+
"repeat": {
|
| 1204 |
+
"frequency": 1,
|
| 1205 |
+
"period": 1,
|
| 1206 |
+
"periodUnit": "d"
|
| 1207 |
+
}
|
| 1208 |
+
},
|
| 1209 |
+
"route": {
|
| 1210 |
+
"coding": [
|
| 1211 |
+
{
|
| 1212 |
+
"code": "26643006",
|
| 1213 |
+
"display": "Oral route (qualifier value)"
|
| 1214 |
+
}
|
| 1215 |
+
],
|
| 1216 |
+
"text": "Oral route (qualifier value)"
|
| 1217 |
+
},
|
| 1218 |
+
"doseAndRate": [
|
| 1219 |
+
{
|
| 1220 |
+
"type": {
|
| 1221 |
+
"coding": [
|
| 1222 |
+
{
|
| 1223 |
+
"system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
|
| 1224 |
+
"code": "ordered",
|
| 1225 |
+
"display": "Ordered"
|
| 1226 |
+
}
|
| 1227 |
+
]
|
| 1228 |
+
},
|
| 1229 |
+
"doseQuantity": {
|
| 1230 |
+
"value": 120,
|
| 1231 |
+
"unit": "mg"
|
| 1232 |
+
}
|
| 1233 |
+
}
|
| 1234 |
+
]
|
| 1235 |
+
}
|
| 1236 |
+
]
|
| 1237 |
+
},
|
| 1238 |
+
"request": {
|
| 1239 |
+
"method": "PUT",
|
| 1240 |
+
"url": "MedicationRequest/mom-daily-elemental-iron-prescription"
|
| 1241 |
+
}
|
| 1242 |
+
}
|
| 1243 |
+
]
|
| 1244 |
+
}
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/appointment-charity-second-contact.xml
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Appointment xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-second-contact"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-appointment"/>
|
| 6 |
+
</meta>
|
| 7 |
+
<status value="booked"/>
|
| 8 |
+
<!-- TODO: serviceCategory -->
|
| 9 |
+
<serviceCategory>
|
| 10 |
+
<coding>
|
| 11 |
+
<system value="http://example.org/service-category"/>
|
| 12 |
+
<code value="gp"/>
|
| 13 |
+
<display value="General Practice"/>
|
| 14 |
+
</coding>
|
| 15 |
+
</serviceCategory>
|
| 16 |
+
<!-- TODO: serviceType -->
|
| 17 |
+
<serviceType>
|
| 18 |
+
<coding>
|
| 19 |
+
<code value="52"/>
|
| 20 |
+
<display value="General Discussion"/>
|
| 21 |
+
</coding>
|
| 22 |
+
</serviceType>
|
| 23 |
+
<!-- TODO: specialty -->
|
| 24 |
+
<specialty>
|
| 25 |
+
<coding>
|
| 26 |
+
<system value="http://snomed.info/sct"/>
|
| 27 |
+
<code value="394814009"/>
|
| 28 |
+
<display value="General practice"/>
|
| 29 |
+
</coding>
|
| 30 |
+
</specialty>
|
| 31 |
+
<appointmentType>
|
| 32 |
+
<coding>
|
| 33 |
+
<system value="http://terminology.hl7.org/CodeSystem/v2-0276"/>
|
| 34 |
+
<code value="FOLLOWUP"/>
|
| 35 |
+
<display value="A follow up visit from a previous appointment"/>
|
| 36 |
+
</coding>
|
| 37 |
+
</appointmentType>
|
| 38 |
+
<reasonReference>
|
| 39 |
+
<reference value="Condition/charity-pregnancy"/>
|
| 40 |
+
</reasonReference>
|
| 41 |
+
<description value="Antenatal care first contact"/>
|
| 42 |
+
<start value="2019-07-26T15:00:00Z"/>
|
| 43 |
+
<minutesDuration value="30"/>
|
| 44 |
+
<created value="2019-05-24"/>
|
| 45 |
+
<participant>
|
| 46 |
+
<actor>
|
| 47 |
+
<reference value="Patient/charity"/>
|
| 48 |
+
<display value="Eve Everywoman"/>
|
| 49 |
+
</actor>
|
| 50 |
+
<required value="required"/>
|
| 51 |
+
<status value="accepted"/>
|
| 52 |
+
</participant>
|
| 53 |
+
<participant>
|
| 54 |
+
<type>
|
| 55 |
+
<coding>
|
| 56 |
+
<system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
|
| 57 |
+
<code value="ATND"/>
|
| 58 |
+
</coding>
|
| 59 |
+
</type>
|
| 60 |
+
<actor>
|
| 61 |
+
<reference value="Practitioner/midwife"/>
|
| 62 |
+
<display value="Mabel Midwife"/>
|
| 63 |
+
</actor>
|
| 64 |
+
<required value="required"/>
|
| 65 |
+
<status value="accepted"/>
|
| 66 |
+
</participant>
|
| 67 |
+
</Appointment>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<CarePlan xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-pregnancy-plan"/>
|
| 4 |
+
<extension url="http://fhir.org/guides/who/anc-cds/StructureDefinition/careplan-episodeOfCare">
|
| 5 |
+
<valueReference>
|
| 6 |
+
<reference value="EpisodeOfCare/charity-pregnancy-episode"/>
|
| 7 |
+
</valueReference>
|
| 8 |
+
</extension>
|
| 9 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact-schedule"/>
|
| 10 |
+
<status value="active"/>
|
| 11 |
+
<intent value="plan"/>
|
| 12 |
+
<subject>
|
| 13 |
+
<reference value="Patient/charity"/>
|
| 14 |
+
<display value="Eve Everywoman"/>
|
| 15 |
+
</subject>
|
| 16 |
+
<period>
|
| 17 |
+
<!-- The likely duration of the pregnancy -->
|
| 18 |
+
<start value="2019-05-24"/>
|
| 19 |
+
<end value="2020-02-24"/>
|
| 20 |
+
</period>
|
| 21 |
+
<careTeam>
|
| 22 |
+
<reference value="CareTeam/anc-team"/>
|
| 23 |
+
</careTeam>
|
| 24 |
+
<addresses>
|
| 25 |
+
<reference value="Condition/charity-pregnancy"/>
|
| 26 |
+
<display value="pregnancy"/>
|
| 27 |
+
</addresses>
|
| 28 |
+
<goal>
|
| 29 |
+
<reference value="Goal/charity-pregnancy-goal"/>
|
| 30 |
+
</goal>
|
| 31 |
+
|
| 32 |
+
<!-- First contact, occurred at about 12 weeks based on gestational age from LMP of 2019-03-01 -->
|
| 33 |
+
<activity>
|
| 34 |
+
<outcomeReference>
|
| 35 |
+
<reference value="Encounter/charity-first-contact"/>
|
| 36 |
+
</outcomeReference>
|
| 37 |
+
<detail>
|
| 38 |
+
<kind value="ServiceRequest"/>
|
| 39 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 40 |
+
<code>
|
| 41 |
+
<coding>
|
| 42 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 43 |
+
<code value="anc-contact"/>
|
| 44 |
+
<display value="Antenatal care contact"/>
|
| 45 |
+
</coding>
|
| 46 |
+
<text value="Antenatal care contact"/>
|
| 47 |
+
</code>
|
| 48 |
+
<status value="in-progress"/>
|
| 49 |
+
<performer>
|
| 50 |
+
<reference value="Practitioner/midwife"/>
|
| 51 |
+
<display value="Mabel Midwife"/>
|
| 52 |
+
</performer>
|
| 53 |
+
<description value="First antenatal care contact"/>
|
| 54 |
+
</detail>
|
| 55 |
+
</activity>
|
| 56 |
+
|
| 57 |
+
<!-- Second contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact -->
|
| 58 |
+
<activity>
|
| 59 |
+
<reference value="ServiceRequest/charity-second-contact"/>
|
| 60 |
+
<detail>
|
| 61 |
+
<kind value="ServiceRequest"/>
|
| 62 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 63 |
+
<code>
|
| 64 |
+
<coding>
|
| 65 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 66 |
+
<code value="anc-contact"/>
|
| 67 |
+
<display value="Antenatal care contact"/>
|
| 68 |
+
</coding>
|
| 69 |
+
<text value="Antenatal care contact"/>
|
| 70 |
+
</code>
|
| 71 |
+
<status value="scheduled"/>
|
| 72 |
+
<!-- Scheduled based on gestational age calculation -->
|
| 73 |
+
<scheduledPeriod>
|
| 74 |
+
<start value="2019-07-26"/>
|
| 75 |
+
</scheduledPeriod>
|
| 76 |
+
<performer>
|
| 77 |
+
<reference value="Practitioner/midwife"/>
|
| 78 |
+
<display value="Mabel Midwife"/>
|
| 79 |
+
</performer>
|
| 80 |
+
<description value="Second contact to occur at 20 weeks of gestational age"/>
|
| 81 |
+
</detail>
|
| 82 |
+
</activity>
|
| 83 |
+
|
| 84 |
+
<!-- Third contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact -->
|
| 85 |
+
<activity>
|
| 86 |
+
<detail>
|
| 87 |
+
<kind value="ServiceRequest"/>
|
| 88 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 89 |
+
<code>
|
| 90 |
+
<coding>
|
| 91 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 92 |
+
<code value="anc-contact"/>
|
| 93 |
+
<display value="Antenatal care contact"/>
|
| 94 |
+
</coding>
|
| 95 |
+
<text value="Antenatal care contact"/>
|
| 96 |
+
</code>
|
| 97 |
+
<status value="not-started"/>
|
| 98 |
+
<!-- Scheduled based on gestational age calculation -->
|
| 99 |
+
<scheduledPeriod>
|
| 100 |
+
<start value="2019-09-06"/>
|
| 101 |
+
</scheduledPeriod>
|
| 102 |
+
<performer>
|
| 103 |
+
<reference value="Practitioner/midwife"/>
|
| 104 |
+
<display value="Mabel Midwife"/>
|
| 105 |
+
</performer>
|
| 106 |
+
<description value="Third contact to occur at 26 weeks of gestational age"/>
|
| 107 |
+
</detail>
|
| 108 |
+
</activity>
|
| 109 |
+
|
| 110 |
+
<!-- Fourth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact -->
|
| 111 |
+
<activity>
|
| 112 |
+
<detail>
|
| 113 |
+
<kind value="ServiceRequest"/>
|
| 114 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 115 |
+
<code>
|
| 116 |
+
<coding>
|
| 117 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 118 |
+
<code value="anc-contact"/>
|
| 119 |
+
<display value="Antenatal care contact"/>
|
| 120 |
+
</coding>
|
| 121 |
+
<text value="Antenatal care contact"/>
|
| 122 |
+
</code>
|
| 123 |
+
<status value="not-started"/>
|
| 124 |
+
<!-- Scheduled based on gestational age calculation -->
|
| 125 |
+
<scheduledPeriod>
|
| 126 |
+
<start value="2019-10-04"/>
|
| 127 |
+
</scheduledPeriod>
|
| 128 |
+
<performer>
|
| 129 |
+
<reference value="Practitioner/midwife"/>
|
| 130 |
+
<display value="Mabel Midwife"/>
|
| 131 |
+
</performer>
|
| 132 |
+
<description value="Fourth contact to occur at 30 weeks of gestational age"/>
|
| 133 |
+
</detail>
|
| 134 |
+
</activity>
|
| 135 |
+
|
| 136 |
+
<!-- Fifth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact -->
|
| 137 |
+
<activity>
|
| 138 |
+
<detail>
|
| 139 |
+
<kind value="ServiceRequest"/>
|
| 140 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 141 |
+
<code>
|
| 142 |
+
<coding>
|
| 143 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 144 |
+
<code value="anc-contact"/>
|
| 145 |
+
<display value="Antenatal care contact"/>
|
| 146 |
+
</coding>
|
| 147 |
+
<text value="Antenatal care contact"/>
|
| 148 |
+
</code>
|
| 149 |
+
<status value="not-started"/>
|
| 150 |
+
<!-- Scheduled based on gestational age calculation -->
|
| 151 |
+
<scheduledPeriod>
|
| 152 |
+
<start value="2019-11-01"/>
|
| 153 |
+
</scheduledPeriod>
|
| 154 |
+
<performer>
|
| 155 |
+
<reference value="Practitioner/midwife"/>
|
| 156 |
+
<display value="Mabel Midwife"/>
|
| 157 |
+
</performer>
|
| 158 |
+
<description value="Fifth contact to occur at 34 weeks of gestational age"/>
|
| 159 |
+
</detail>
|
| 160 |
+
</activity>
|
| 161 |
+
|
| 162 |
+
<!-- Sixth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact -->
|
| 163 |
+
<activity>
|
| 164 |
+
<detail>
|
| 165 |
+
<kind value="ServiceRequest"/>
|
| 166 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 167 |
+
<code>
|
| 168 |
+
<coding>
|
| 169 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 170 |
+
<code value="anc-contact"/>
|
| 171 |
+
<display value="Antenatal care contact"/>
|
| 172 |
+
</coding>
|
| 173 |
+
<text value="Antenatal care contact"/>
|
| 174 |
+
</code>
|
| 175 |
+
<status value="not-started"/>
|
| 176 |
+
<!-- Scheduled based on gestational age calculation -->
|
| 177 |
+
<scheduledPeriod>
|
| 178 |
+
<start value="2019-11-15"/>
|
| 179 |
+
</scheduledPeriod>
|
| 180 |
+
<performer>
|
| 181 |
+
<reference value="Practitioner/midwife"/>
|
| 182 |
+
<display value="Mabel Midwife"/>
|
| 183 |
+
</performer>
|
| 184 |
+
<description value="Sixth contact to occur at 36 weeks of gestational age"/>
|
| 185 |
+
</detail>
|
| 186 |
+
</activity>
|
| 187 |
+
|
| 188 |
+
<!-- Seventh contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact -->
|
| 189 |
+
<activity>
|
| 190 |
+
<detail>
|
| 191 |
+
<kind value="ServiceRequest"/>
|
| 192 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 193 |
+
<code>
|
| 194 |
+
<coding>
|
| 195 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 196 |
+
<code value="anc-contact"/>
|
| 197 |
+
<display value="Antenatal care contact"/>
|
| 198 |
+
</coding>
|
| 199 |
+
<text value="Antenatal care contact"/>
|
| 200 |
+
</code>
|
| 201 |
+
<status value="not-started"/>
|
| 202 |
+
<!-- Scheduled based on gestational age calculation -->
|
| 203 |
+
<scheduledPeriod>
|
| 204 |
+
<start value="2019-11-29"/>
|
| 205 |
+
</scheduledPeriod>
|
| 206 |
+
<performer>
|
| 207 |
+
<reference value="Practitioner/midwife"/>
|
| 208 |
+
<display value="Mabel Midwife"/>
|
| 209 |
+
</performer>
|
| 210 |
+
<description value="Seventh contact to occur at 38 weeks of gestational age"/>
|
| 211 |
+
</detail>
|
| 212 |
+
</activity>
|
| 213 |
+
|
| 214 |
+
<!-- Eighth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact -->
|
| 215 |
+
<activity>
|
| 216 |
+
<detail>
|
| 217 |
+
<kind value="ServiceRequest"/>
|
| 218 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"/>
|
| 219 |
+
<code>
|
| 220 |
+
<coding>
|
| 221 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 222 |
+
<code value="anc-contact"/>
|
| 223 |
+
<display value="Antenatal care contact"/>
|
| 224 |
+
</coding>
|
| 225 |
+
<text value="Antenatal care contact"/>
|
| 226 |
+
</code>
|
| 227 |
+
<status value="not-started"/>
|
| 228 |
+
<!-- Scheduled based on gestational age calculation -->
|
| 229 |
+
<scheduledPeriod>
|
| 230 |
+
<start value="2019-12-13"/>
|
| 231 |
+
</scheduledPeriod>
|
| 232 |
+
<performer>
|
| 233 |
+
<reference value="Practitioner/midwife"/>
|
| 234 |
+
<display value="Mabel Midwife"/>
|
| 235 |
+
</performer>
|
| 236 |
+
<description value="Eighth contact to occur at 40 weeks of gestational age"/>
|
| 237 |
+
</detail>
|
| 238 |
+
</activity>
|
| 239 |
+
|
| 240 |
+
<activity>
|
| 241 |
+
<detail>
|
| 242 |
+
<!-- This will be the delivery. It is not yet scheduled. -->
|
| 243 |
+
<kind value="ServiceRequest"/>
|
| 244 |
+
<code>
|
| 245 |
+
<coding>
|
| 246 |
+
<system value="http://example.org/mySystem"/>
|
| 247 |
+
<code value="del"/>
|
| 248 |
+
</coding>
|
| 249 |
+
<text value="Delivery"/>
|
| 250 |
+
</code>
|
| 251 |
+
<status value="not-started"/>
|
| 252 |
+
<scheduledPeriod>
|
| 253 |
+
<start value="2019-12-13"/>
|
| 254 |
+
<end value="2019-12-27"/>
|
| 255 |
+
</scheduledPeriod>
|
| 256 |
+
<!-- TODO: location -->
|
| 257 |
+
<performer>
|
| 258 |
+
<reference value="Practitioner/midwife"/>
|
| 259 |
+
<display value="Mabel Midwife"/>
|
| 260 |
+
</performer>
|
| 261 |
+
<description value="Delivery"/>
|
| 262 |
+
</detail>
|
| 263 |
+
</activity>
|
| 264 |
+
</CarePlan>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/careteam-anc-team.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<CareTeam xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="anc-team"/>
|
| 4 |
+
<participant>
|
| 5 |
+
<role>
|
| 6 |
+
<coding>
|
| 7 |
+
<system value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona"/>
|
| 8 |
+
<code value="2222"/>
|
| 9 |
+
<display value="Midwifery professional"/>
|
| 10 |
+
</coding>
|
| 11 |
+
<text value="Midwifery professional"/>
|
| 12 |
+
</role>
|
| 13 |
+
<member>
|
| 14 |
+
<reference value="Practitioner/midwife"/>
|
| 15 |
+
<display value="Mabel Midwife"/>
|
| 16 |
+
</member>
|
| 17 |
+
</participant>
|
| 18 |
+
</CareTeam>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/condition-charity-iron-side-effects.xml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Condition xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-iron-side-effects"/>
|
| 4 |
+
<clinicalStatus>
|
| 5 |
+
<coding>
|
| 6 |
+
<system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
|
| 7 |
+
<code value="active"/>
|
| 8 |
+
</coding>
|
| 9 |
+
</clinicalStatus>
|
| 10 |
+
|
| 11 |
+
<verificationStatus>
|
| 12 |
+
<coding>
|
| 13 |
+
<system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/>
|
| 14 |
+
<code value="confirmed"/>
|
| 15 |
+
</coding>
|
| 16 |
+
</verificationStatus>
|
| 17 |
+
|
| 18 |
+
<category>
|
| 19 |
+
<coding>
|
| 20 |
+
<system value="http://terminology.hl7.org/CodeSystem/condition-category"/>
|
| 21 |
+
<code value="problem-list-item"/>
|
| 22 |
+
<display value="Problem List Item"/>
|
| 23 |
+
</coding>
|
| 24 |
+
</category>
|
| 25 |
+
|
| 26 |
+
<code>
|
| 27 |
+
<coding>
|
| 28 |
+
<system value="http://openmrs.org/concepts"/>
|
| 29 |
+
<code value="165273AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"/>
|
| 30 |
+
<display value="Iron side effects"/>
|
| 31 |
+
</coding>
|
| 32 |
+
<text value="Iron side effects"/>
|
| 33 |
+
</code>
|
| 34 |
+
|
| 35 |
+
<subject>
|
| 36 |
+
<reference value="Patient/charity"/>
|
| 37 |
+
</subject>
|
| 38 |
+
<onsetDateTime value="2019-05-24"/>
|
| 39 |
+
</Condition>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/condition-charity-pregnancy.xml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Condition xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-pregnancy"/>
|
| 4 |
+
<clinicalStatus>
|
| 5 |
+
<coding>
|
| 6 |
+
<system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
|
| 7 |
+
<code value="active"/>
|
| 8 |
+
</coding>
|
| 9 |
+
</clinicalStatus>
|
| 10 |
+
|
| 11 |
+
<verificationStatus>
|
| 12 |
+
<coding>
|
| 13 |
+
<system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/>
|
| 14 |
+
<code value="confirmed"/>
|
| 15 |
+
</coding>
|
| 16 |
+
</verificationStatus>
|
| 17 |
+
|
| 18 |
+
<category>
|
| 19 |
+
<coding>
|
| 20 |
+
<system value="http://terminology.hl7.org/CodeSystem/condition-category"/>
|
| 21 |
+
<code value="problem-list-item"/>
|
| 22 |
+
<display value="Problem List Item"/>
|
| 23 |
+
</coding>
|
| 24 |
+
</category>
|
| 25 |
+
|
| 26 |
+
<code>
|
| 27 |
+
<coding>
|
| 28 |
+
<system value="http://example.org/tbd"/>
|
| 29 |
+
<code value="TBD"/>
|
| 30 |
+
<display value="Pregnancy"/>
|
| 31 |
+
</coding>
|
| 32 |
+
<text value="Pregnancy"/>
|
| 33 |
+
</code>
|
| 34 |
+
|
| 35 |
+
<subject>
|
| 36 |
+
<reference value="Patient/charity"/>
|
| 37 |
+
</subject>
|
| 38 |
+
<onsetDateTime value="2019-05-22"/>
|
| 39 |
+
</Condition>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/encounter-charity-first-contact.xml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Encounter xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-first-contact"/>
|
| 4 |
+
<status value="in-progress"/>
|
| 5 |
+
<class>
|
| 6 |
+
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
|
| 7 |
+
<code value="AMB"/>
|
| 8 |
+
<display value="ambulatory"/>
|
| 9 |
+
</class>
|
| 10 |
+
<type>
|
| 11 |
+
<coding>
|
| 12 |
+
<system value="http://example.org/CodeSystem/encounter-type"/>
|
| 13 |
+
<code value="anc-contact"/>
|
| 14 |
+
<display value="Antenatal care contact"/>
|
| 15 |
+
</coding>
|
| 16 |
+
<text value="Antenatal care contact"/>
|
| 17 |
+
</type>
|
| 18 |
+
<subject>
|
| 19 |
+
<reference value="Patient/charity"/>
|
| 20 |
+
</subject>
|
| 21 |
+
<episodeOfCare>
|
| 22 |
+
<reference value="EpisodeOfCare/charity-pregnancy-episode"/>
|
| 23 |
+
</episodeOfCare>
|
| 24 |
+
<participant>
|
| 25 |
+
<type>
|
| 26 |
+
<coding>
|
| 27 |
+
<system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
|
| 28 |
+
<code value="PPRF"/>
|
| 29 |
+
<display value="primary performer"/>
|
| 30 |
+
</coding>
|
| 31 |
+
</type>
|
| 32 |
+
<individual>
|
| 33 |
+
<reference value="Practitioner/midwife"/>
|
| 34 |
+
</individual>
|
| 35 |
+
</participant>
|
| 36 |
+
<!-- TODO: ServiceRequest -->
|
| 37 |
+
<period>
|
| 38 |
+
<start value="2019-05-24"/>
|
| 39 |
+
</period>
|
| 40 |
+
<diagnosis>
|
| 41 |
+
<condition>
|
| 42 |
+
<reference value="Condition/charity-pregnancy"/>
|
| 43 |
+
</condition>
|
| 44 |
+
<role>
|
| 45 |
+
<coding>
|
| 46 |
+
<system value="http://terminology.hl7.org/CodeSystem/diagnosis-role"/>
|
| 47 |
+
<code value="CC"/>
|
| 48 |
+
<display value="Chief complaint"/>
|
| 49 |
+
</coding>
|
| 50 |
+
</role>
|
| 51 |
+
<rank value="1"/>
|
| 52 |
+
</diagnosis>
|
| 53 |
+
<!-- TODO: account -->
|
| 54 |
+
<!-- TODO: location -->
|
| 55 |
+
<!-- TODO: serviceProvider -->
|
| 56 |
+
</Encounter>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/episodeofcare-charity-pregnancy-episode.xml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<EpisodeOfCare xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-pregnancy-episode"/>
|
| 4 |
+
<identifier>
|
| 5 |
+
<system value="http://example.org/sampleepisodeofcare-identifier"/>
|
| 6 |
+
<value value="123"/>
|
| 7 |
+
</identifier>
|
| 8 |
+
<status value="active"/>
|
| 9 |
+
<type>
|
| 10 |
+
<coding>
|
| 11 |
+
<system value="http://terminology.hl7.org/CodeSystem/episodeofcare-type"/>
|
| 12 |
+
<code value="hacc"/>
|
| 13 |
+
<display value="Home and Community Care"/>
|
| 14 |
+
</coding>
|
| 15 |
+
</type>
|
| 16 |
+
<diagnosis>
|
| 17 |
+
<condition>
|
| 18 |
+
<reference value="Condition/charity-pregnancy"/>
|
| 19 |
+
</condition>
|
| 20 |
+
<role>
|
| 21 |
+
<coding>
|
| 22 |
+
<system value="http://terminology.hl7.org/CodeSystem/diagnosis-role"/>
|
| 23 |
+
<code value="CC"/>
|
| 24 |
+
<display value="Chief complaint"/>
|
| 25 |
+
</coding>
|
| 26 |
+
</role>
|
| 27 |
+
<rank value="1"/>
|
| 28 |
+
</diagnosis>
|
| 29 |
+
<patient>
|
| 30 |
+
<reference value="Patient/charity"/>
|
| 31 |
+
</patient>
|
| 32 |
+
<!-- TODO: managingOrganization -->
|
| 33 |
+
<period>
|
| 34 |
+
<start value="2019-05-22"/>
|
| 35 |
+
</period>
|
| 36 |
+
<!-- TODO: careManager -->
|
| 37 |
+
<!-- TODO: team -->
|
| 38 |
+
<!-- TODO: account -->
|
| 39 |
+
</EpisodeOfCare>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/goal-charity-pregnancy-goal.xml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Goal xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-pregnancy-goal"/>
|
| 4 |
+
<lifecycleStatus value="active"/>
|
| 5 |
+
<!-- TODO: Category? -->
|
| 6 |
+
<!-- TODO: Temporarily commented description due to bug in publisher -->
|
| 7 |
+
<!-- <description>
|
| 8 |
+
<text value="Maintain patient's health throughout pregnancy and ensure a healthy child"/>
|
| 9 |
+
</description> -->
|
| 10 |
+
<subject>
|
| 11 |
+
<reference value="Patient/charity"/>
|
| 12 |
+
<display value="Eve Everywoman"/>
|
| 13 |
+
</subject>
|
| 14 |
+
</Goal>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/medicationrequest-charity-daily-elemental-iron-prescription.xml
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<MedicationRequest xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-daily-elemental-iron-prescription"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"/>
|
| 6 |
+
</meta>
|
| 7 |
+
<status value="active"/>
|
| 8 |
+
<intent value="order"/>
|
| 9 |
+
<subject>
|
| 10 |
+
<reference value="Patient/charity"/>
|
| 11 |
+
<display value="Eve Everywoman"/>
|
| 12 |
+
</subject>
|
| 13 |
+
<encounter>
|
| 14 |
+
<reference value="Encounter/charity-first-contact"/>
|
| 15 |
+
</encounter>
|
| 16 |
+
<authoredOn value="2019-05-24"/>
|
| 17 |
+
<requester>
|
| 18 |
+
<reference value="Practitioner/midwife"/>
|
| 19 |
+
<display value="Mabel Midwife"/>
|
| 20 |
+
</requester>
|
| 21 |
+
<reasonCode>
|
| 22 |
+
<coding>
|
| 23 |
+
<system value="http://snomed.info/sct"/>
|
| 24 |
+
<code value="271737000"/>
|
| 25 |
+
<display value="Anemia (disorder)"/>
|
| 26 |
+
</coding>
|
| 27 |
+
<coding>
|
| 28 |
+
<system value="http://openmrs.org/concepts"/>
|
| 29 |
+
<code value="121629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"/>
|
| 30 |
+
<display value="Anaemia"/>
|
| 31 |
+
</coding>
|
| 32 |
+
</reasonCode>
|
| 33 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/ActivityDefinition/anc-120mg-daily-elemental-iron"/>
|
| 34 |
+
<basedOn value="MedicationRequest/charity-daily-elemental-iron-recommendation"/>
|
| 35 |
+
<dosageInstruction>
|
| 36 |
+
<text value="120mg daily"/>
|
| 37 |
+
<timing>
|
| 38 |
+
<repeat>
|
| 39 |
+
<frequency value="1"/>
|
| 40 |
+
<period value="1"/>
|
| 41 |
+
<periodUnit value="d"/>
|
| 42 |
+
</repeat>
|
| 43 |
+
</timing>
|
| 44 |
+
<route>
|
| 45 |
+
<coding>
|
| 46 |
+
<code value="26643006"/>
|
| 47 |
+
<display value="Oral route (qualifier value)"/>
|
| 48 |
+
</coding>
|
| 49 |
+
<text value="Oral route (qualifier value)"/>
|
| 50 |
+
</route>
|
| 51 |
+
<doseAndRate>
|
| 52 |
+
<type>
|
| 53 |
+
<coding>
|
| 54 |
+
<system value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/>
|
| 55 |
+
<code value="ordered"/>
|
| 56 |
+
<display value="Ordered"/>
|
| 57 |
+
</coding>
|
| 58 |
+
</type>
|
| 59 |
+
<doseQuantity>
|
| 60 |
+
<value value="120"/>
|
| 61 |
+
<unit value="mg"/>
|
| 62 |
+
</doseQuantity>
|
| 63 |
+
</doseAndRate>
|
| 64 |
+
</dosageInstruction>
|
| 65 |
+
</MedicationRequest>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/medicationrequest-charity-daily-elemental-iron-recommendation.xml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<MedicationRequest xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-daily-elemental-iron-recommendation"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"/>
|
| 6 |
+
</meta>
|
| 7 |
+
<status value="active"/>
|
| 8 |
+
<intent value="proposal"/>
|
| 9 |
+
<subject>
|
| 10 |
+
<reference value="Patient/charity"/>
|
| 11 |
+
<display value="Eve Everywoman"/>
|
| 12 |
+
</subject>
|
| 13 |
+
<encounter>
|
| 14 |
+
<reference value="Encounter/charity-first-contact"/>
|
| 15 |
+
</encounter>
|
| 16 |
+
<authoredOn value="2019-05-24"/>
|
| 17 |
+
<reasonCode>
|
| 18 |
+
<coding>
|
| 19 |
+
<system value="http://snomed.info/sct"/>
|
| 20 |
+
<code value="271737000"/>
|
| 21 |
+
<display value="Anemia (disorder)"/>
|
| 22 |
+
</coding>
|
| 23 |
+
<coding>
|
| 24 |
+
<system value="http://openmrs.org/concepts"/>
|
| 25 |
+
<code value="121629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"/>
|
| 26 |
+
<display value="Anaemia"/>
|
| 27 |
+
</coding>
|
| 28 |
+
</reasonCode>
|
| 29 |
+
<instantiatesCanonical value="http://fhir.org/guides/who/anc-cds/ActivityDefinition/anc-120mg-daily-elemental-iron"/>
|
| 30 |
+
<dosageInstruction>
|
| 31 |
+
<text value="120mg daily"/>
|
| 32 |
+
<timing>
|
| 33 |
+
<repeat>
|
| 34 |
+
<frequency value="1"/>
|
| 35 |
+
<period value="1"/>
|
| 36 |
+
<periodUnit value="d"/>
|
| 37 |
+
</repeat>
|
| 38 |
+
</timing>
|
| 39 |
+
<route>
|
| 40 |
+
<coding>
|
| 41 |
+
<code value="26643006"/>
|
| 42 |
+
<display value="Oral route (qualifier value)"/>
|
| 43 |
+
</coding>
|
| 44 |
+
<text value="Oral route (qualifier value)"/>
|
| 45 |
+
</route>
|
| 46 |
+
<doseAndRate>
|
| 47 |
+
<type>
|
| 48 |
+
<coding>
|
| 49 |
+
<system value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/>
|
| 50 |
+
<code value="ordered"/>
|
| 51 |
+
<display value="Ordered"/>
|
| 52 |
+
</coding>
|
| 53 |
+
</type>
|
| 54 |
+
<doseQuantity>
|
| 55 |
+
<value value="120"/>
|
| 56 |
+
<unit value="mg"/>
|
| 57 |
+
</doseQuantity>
|
| 58 |
+
</doseAndRate>
|
| 59 |
+
</dosageInstruction>
|
| 60 |
+
</MedicationRequest>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/observation-charity-gest-age-method.xml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Observation xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-gest-age-method"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://fhir.org/guides/who/anc-cds/StructureDefinition/lmpobservation"/>
|
| 6 |
+
</meta>
|
| 7 |
+
<status value="final"/>
|
| 8 |
+
<category>
|
| 9 |
+
<coding>
|
| 10 |
+
<system value="http://hl7.org/fhir/observation-category"/>
|
| 11 |
+
<code value="exam"/>
|
| 12 |
+
</coding>
|
| 13 |
+
</category>
|
| 14 |
+
<code>
|
| 15 |
+
<coding>
|
| 16 |
+
<system value="http://openmrs.org/concepts"/>
|
| 17 |
+
<code value="GestAgeMethod"/>
|
| 18 |
+
<display value="Selected Gestational Age Determination Method"/>
|
| 19 |
+
</coding>
|
| 20 |
+
<text value="Selected Gestational Age Determination Method"/>
|
| 21 |
+
</code>
|
| 22 |
+
<subject>
|
| 23 |
+
<reference value="Patient/charity"/>
|
| 24 |
+
<display value="Eve Everywoman"/>
|
| 25 |
+
</subject>
|
| 26 |
+
<encounter>
|
| 27 |
+
<reference value="Encounter/charity-first-contact"/>
|
| 28 |
+
</encounter>
|
| 29 |
+
<effectiveDateTime value="2019-05-24T15:30:00Z"/>
|
| 30 |
+
<issued value="2019-05-24T15:30:00Z"/>
|
| 31 |
+
<performer>
|
| 32 |
+
<reference value="Practitioner/midwife"/>
|
| 33 |
+
<display value="Mabel Midwife"/>
|
| 34 |
+
</performer>
|
| 35 |
+
<valueCodeableConcept>
|
| 36 |
+
<coding>
|
| 37 |
+
<system value="http://fhir.org/guides/who/anc-cds/CodeSystem/anc-codes"/>
|
| 38 |
+
<code value="UseLMP"/>
|
| 39 |
+
</coding>
|
| 40 |
+
<text value="Last Menstrual Period Date Method"/>
|
| 41 |
+
</valueCodeableConcept>
|
| 42 |
+
</Observation>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/observation-charity-hb.xml
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Observation xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-hb"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://fhir.org/guides/who/anc-cds/StructureDefinition/hbobservation"/>
|
| 6 |
+
</meta>
|
| 7 |
+
<status value="final"/>
|
| 8 |
+
<category>
|
| 9 |
+
<coding>
|
| 10 |
+
<system value="http://hl7.org/fhir/observation-category"/>
|
| 11 |
+
<code value="exam"/>
|
| 12 |
+
</coding>
|
| 13 |
+
</category>
|
| 14 |
+
<!-- NOTE: Loinc code here, current CQL still references the OpenMRS concept for this -->
|
| 15 |
+
<!-- <code>
|
| 16 |
+
<coding>
|
| 17 |
+
<system value="http://loinc.org"/>
|
| 18 |
+
<code value="718-7"/>
|
| 19 |
+
<display value="Hemoglobin [Mass/volume] in Blood"/>
|
| 20 |
+
</coding>
|
| 21 |
+
</code> -->
|
| 22 |
+
<code>
|
| 23 |
+
<coding>
|
| 24 |
+
<system value="http://openmrs.org/concepts"/>
|
| 25 |
+
<code value="165395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"/>
|
| 26 |
+
<display value="Haemoglobin measured from haemoglobinometer (g/dl)"/>
|
| 27 |
+
</coding>
|
| 28 |
+
</code>
|
| 29 |
+
<subject>
|
| 30 |
+
<reference value="Patient/charity"/>
|
| 31 |
+
<display value="Eve Everywoman"/>
|
| 32 |
+
</subject>
|
| 33 |
+
<encounter>
|
| 34 |
+
<reference value="Encounter/charity-first-contact"/>
|
| 35 |
+
</encounter>
|
| 36 |
+
<effectivePeriod>
|
| 37 |
+
<start value="2019-05-24T15:30:00Z"/>
|
| 38 |
+
<end value="2019-05-24T15:30:00Z"/>
|
| 39 |
+
</effectivePeriod>
|
| 40 |
+
<issued value="2019-05-24T15:30:00Z"/>
|
| 41 |
+
<performer>
|
| 42 |
+
<reference value="Practitioner/midwife"/>
|
| 43 |
+
<display value="Mabel Midwife"/>
|
| 44 |
+
</performer>
|
| 45 |
+
<valueQuantity>
|
| 46 |
+
<value value="7.2"/>
|
| 47 |
+
<unit value="g/dl"/>
|
| 48 |
+
<system value="http://unitsofmeasure.org"/>
|
| 49 |
+
<code value="g/dL"/>
|
| 50 |
+
</valueQuantity>
|
| 51 |
+
<interpretation>
|
| 52 |
+
<coding>
|
| 53 |
+
<system value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"/>
|
| 54 |
+
<code value="L"/>
|
| 55 |
+
<display value="Low"/>
|
| 56 |
+
</coding>
|
| 57 |
+
</interpretation>
|
| 58 |
+
<referenceRange>
|
| 59 |
+
<low>
|
| 60 |
+
<value value="7.5"/>
|
| 61 |
+
<unit value="g/dl"/>
|
| 62 |
+
<system value="http://unitsofmeasure.org"/>
|
| 63 |
+
<code value="g/dL"/>
|
| 64 |
+
</low>
|
| 65 |
+
<high>
|
| 66 |
+
<value value="10"/>
|
| 67 |
+
<unit value="g/dl"/>
|
| 68 |
+
<system value="http://unitsofmeasure.org"/>
|
| 69 |
+
<code value="g/dL"/>
|
| 70 |
+
</high>
|
| 71 |
+
</referenceRange>
|
| 72 |
+
</Observation>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/observation-charity-lmp.xml
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Observation xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-lmp"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://fhir.org/guides/who/anc-cds/StructureDefinition/lmpobservation"/>
|
| 6 |
+
</meta>
|
| 7 |
+
<status value="final"/>
|
| 8 |
+
<category>
|
| 9 |
+
<coding>
|
| 10 |
+
<system value="http://hl7.org/fhir/observation-category"/>
|
| 11 |
+
<code value="exam"/>
|
| 12 |
+
</coding>
|
| 13 |
+
</category>
|
| 14 |
+
<code>
|
| 15 |
+
<coding>
|
| 16 |
+
<system value="http://openmrs.org/concepts"/>
|
| 17 |
+
<code value="1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"/>
|
| 18 |
+
<display value="LMP"/>
|
| 19 |
+
</coding>
|
| 20 |
+
<text value="Date of last menstrual period"/>
|
| 21 |
+
</code>
|
| 22 |
+
<subject>
|
| 23 |
+
<reference value="Patient/charity"/>
|
| 24 |
+
<display value="Eve Everywoman"/>
|
| 25 |
+
</subject>
|
| 26 |
+
<encounter>
|
| 27 |
+
<reference value="Encounter/charity-first-contact"/>
|
| 28 |
+
</encounter>
|
| 29 |
+
<effectiveDateTime value="2019-05-24T15:30:00Z"/>
|
| 30 |
+
<issued value="2019-05-24T15:30:00Z"/>
|
| 31 |
+
<performer>
|
| 32 |
+
<reference value="Practitioner/midwife"/>
|
| 33 |
+
<display value="Mabel Midwife"/>
|
| 34 |
+
</performer>
|
| 35 |
+
<valueDateTime value="2019-03-01"/>
|
| 36 |
+
</Observation>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/patient-charity.xml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Patient xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://fhir.org/guides/who/anc-cds/StructureDefinition/ancpatient"/>
|
| 6 |
+
</meta>
|
| 7 |
+
<identifier>
|
| 8 |
+
<use value="official"/>
|
| 9 |
+
<value value="1000"/>
|
| 10 |
+
</identifier>
|
| 11 |
+
<active value="true"/>
|
| 12 |
+
<name>
|
| 13 |
+
<use value="official"/>
|
| 14 |
+
<family value="Everywoman"/>
|
| 15 |
+
<given value="Eve"/>
|
| 16 |
+
</name>
|
| 17 |
+
<telecom>
|
| 18 |
+
<system value="phone"/>
|
| 19 |
+
<value value="555-555-2003"/>
|
| 20 |
+
<use value="mobile"/>
|
| 21 |
+
</telecom>
|
| 22 |
+
<gender value="female"/>
|
| 23 |
+
<birthDate value="1993-05-31"/>
|
| 24 |
+
<address>
|
| 25 |
+
<use value="home"/>
|
| 26 |
+
<text value="2222 Home Street"/>
|
| 27 |
+
</address>
|
| 28 |
+
</Patient>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/practitioner-midwife.xml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Practitioner xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="midwife"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://fhir.org/guides/who/anc-cds/StructureDefinition/ancpractitioner"/>
|
| 6 |
+
</meta>
|
| 7 |
+
|
| 8 |
+
<!-- TODO: identifier -->
|
| 9 |
+
|
| 10 |
+
<active value="true"/>
|
| 11 |
+
<name>
|
| 12 |
+
<family value="Midwife"/>
|
| 13 |
+
<given value="Mabel"/>
|
| 14 |
+
</name>
|
| 15 |
+
<!-- TODO: telecom -->
|
| 16 |
+
<address>
|
| 17 |
+
<use value="home"/>
|
| 18 |
+
<line value="534 Erewhon St"/>
|
| 19 |
+
<city value="PleasantVille"/>
|
| 20 |
+
<state value="Vic"/>
|
| 21 |
+
<postalCode value="3999"/>
|
| 22 |
+
</address>
|
| 23 |
+
<gender value="female"/>
|
| 24 |
+
</Practitioner>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/practitionerrole-midwife.xml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<PractitionerRole xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="example"/>
|
| 4 |
+
<meta>
|
| 5 |
+
<profile value="http://fhir.org/guides/who/anc-cds/StructureDefinition/ancmidwifepractitionerrole"/>
|
| 6 |
+
</meta>
|
| 7 |
+
|
| 8 |
+
<!-- TODO: identifier -->
|
| 9 |
+
|
| 10 |
+
<active value="true"/>
|
| 11 |
+
<practitioner>
|
| 12 |
+
<reference value="Practitioner/midwife"/>
|
| 13 |
+
<display value="Mabel Midwife"/>
|
| 14 |
+
</practitioner>
|
| 15 |
+
<!-- TODO: organization -->
|
| 16 |
+
|
| 17 |
+
<code>
|
| 18 |
+
<coding>
|
| 19 |
+
<system value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona"/>
|
| 20 |
+
<code value="2222"/>
|
| 21 |
+
<display value="Midwifery professional"/>
|
| 22 |
+
</coding>
|
| 23 |
+
<text value="Midwifery professional"/>
|
| 24 |
+
</code>
|
| 25 |
+
|
| 26 |
+
<!-- TODO: specialty -->
|
| 27 |
+
<!-- TODO: location -->
|
| 28 |
+
<!-- TODO: healthcareService -->
|
| 29 |
+
<telecom>
|
| 30 |
+
<system value="phone"/>
|
| 31 |
+
<value value="(03) 5555 6473"/>
|
| 32 |
+
<use value="work"/>
|
| 33 |
+
</telecom>
|
| 34 |
+
<availableTime>
|
| 35 |
+
<daysOfWeek value="mon"/>
|
| 36 |
+
<daysOfWeek value="tue"/>
|
| 37 |
+
<daysOfWeek value="wed"/>
|
| 38 |
+
<availableStartTime value="09:00:00"/>
|
| 39 |
+
<availableEndTime value="16:30:00"/>
|
| 40 |
+
</availableTime>
|
| 41 |
+
<availableTime>
|
| 42 |
+
<daysOfWeek value="thu"/>
|
| 43 |
+
<daysOfWeek value="fri"/>
|
| 44 |
+
<availableStartTime value="09:00:00"/>
|
| 45 |
+
<availableEndTime value="12:00:00"/>
|
| 46 |
+
</availableTime>
|
| 47 |
+
<notAvailable>
|
| 48 |
+
<description value="Mabel will be on extended leave during May 2017"/>
|
| 49 |
+
<during>
|
| 50 |
+
<start value="2017-05-01"/>
|
| 51 |
+
<end value="2017-05-20"/>
|
| 52 |
+
</during>
|
| 53 |
+
</notAvailable>
|
| 54 |
+
<availabilityExceptions value="Mabel is generally unavailable on public holidays and during the Christmas/New Year break"/>
|
| 55 |
+
</PractitionerRole>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/questionnaire-anc-recommendation-a2.xml
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<Questionnaire xmlns="http://hl7.org/fhir">
|
| 2 |
+
<id value="anc-recommendation-a2"/>
|
| 3 |
+
<title value="Has Anaemia Questionnaire"/>
|
| 4 |
+
<status value="active"/>
|
| 5 |
+
<item>
|
| 6 |
+
<extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType">
|
| 7 |
+
<valueString value="Observation"/>
|
| 8 |
+
</extension>
|
| 9 |
+
<linkId value="gestational-age-method"/>
|
| 10 |
+
<text value="What method was used to determine gestational age?"/>
|
| 11 |
+
<type value="choice"/>
|
| 12 |
+
<required value="true"/>
|
| 13 |
+
<answerOption>
|
| 14 |
+
<valueCoding>
|
| 15 |
+
<system value="http://fhir.org/guides/who/anc-cds/CodeSystem/anc-codes"/>
|
| 16 |
+
<code value="UseLMP"/>
|
| 17 |
+
</valueCoding>
|
| 18 |
+
</answerOption>
|
| 19 |
+
<answerOption>
|
| 20 |
+
<valueCoding>
|
| 21 |
+
<system value="http://fhir.org/guides/who/anc-cds/CodeSystem/anc-codes"/>
|
| 22 |
+
<code value="UseUltrasound"/>
|
| 23 |
+
</valueCoding>
|
| 24 |
+
</answerOption>
|
| 25 |
+
<answerOption>
|
| 26 |
+
<valueCoding>
|
| 27 |
+
<system value="http://fhir.org/guides/who/anc-cds/CodeSystem/anc-codes"/>
|
| 28 |
+
<code value="UseSFH"/>
|
| 29 |
+
</valueCoding>
|
| 30 |
+
</answerOption>
|
| 31 |
+
</item>
|
| 32 |
+
<item>
|
| 33 |
+
<extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType">
|
| 34 |
+
<valueString value="Observation"/>
|
| 35 |
+
</extension>
|
| 36 |
+
<linkId value="lmp-date"/>
|
| 37 |
+
<text value="What was the date of the Patient's last menstrual period?"/>
|
| 38 |
+
<type value="dateTime"/>
|
| 39 |
+
<required value="true"/>
|
| 40 |
+
</item>
|
| 41 |
+
<item>
|
| 42 |
+
<extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-fhirType">
|
| 43 |
+
<valueString value="Observation"/>
|
| 44 |
+
</extension>
|
| 45 |
+
<linkId value="hb-value"/>
|
| 46 |
+
<text value="What is the Patient's Haemoglobin measured from haemoglobinometer (g/dl)?"/>
|
| 47 |
+
<type value="quantity"/>
|
| 48 |
+
<required value="true"/>
|
| 49 |
+
</item>
|
| 50 |
+
</Questionnaire>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/examples/first-contact/servicerequest-charity-second-contact.xml
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<ServiceRequest xmlns="http://hl7.org/fhir">
|
| 3 |
+
<id value="charity-second-contact"/>
|
| 4 |
+
<contained>
|
| 5 |
+
<Observation>
|
| 6 |
+
<id value="fasting"/>
|
| 7 |
+
<!-- the mandatory quality flag: -->
|
| 8 |
+
<status value="final"/>
|
| 9 |
+
<code>
|
| 10 |
+
<coding>
|
| 11 |
+
<system value="http://loinc.org"/>
|
| 12 |
+
<code value="49541-6"/>
|
| 13 |
+
<display value="Fasting status - Reported"/>
|
| 14 |
+
</coding>
|
| 15 |
+
</code>
|
| 16 |
+
<subject>
|
| 17 |
+
<reference value="Patient/example"/>
|
| 18 |
+
</subject>
|
| 19 |
+
<valueCodeableConcept>
|
| 20 |
+
<coding>
|
| 21 |
+
<system value="http://terminology.hl7.org/CodeSystem/v2-0136"/>
|
| 22 |
+
<code value="Y"/>
|
| 23 |
+
<display value="Yes"/>
|
| 24 |
+
</coding>
|
| 25 |
+
</valueCodeableConcept>
|
| 26 |
+
</Observation>
|
| 27 |
+
</contained>
|
| 28 |
+
<contained>
|
| 29 |
+
<Specimen>
|
| 30 |
+
<id value="serum"/>
|
| 31 |
+
<identifier>
|
| 32 |
+
<system value="http://acme.org/specimens"/>
|
| 33 |
+
<value value="20150107-0012"/>
|
| 34 |
+
</identifier>
|
| 35 |
+
<type>
|
| 36 |
+
<coding>
|
| 37 |
+
<system value="http://snomed.info/sct"/>
|
| 38 |
+
<code value="119364003"/>
|
| 39 |
+
<display value="Serum sample"/>
|
| 40 |
+
</coding>
|
| 41 |
+
</type>
|
| 42 |
+
<subject>
|
| 43 |
+
<reference value="Patient/example"/>
|
| 44 |
+
</subject>
|
| 45 |
+
<collection>
|
| 46 |
+
<collectedDateTime value="2015-08-16T06:40:17Z"/>
|
| 47 |
+
</collection>
|
| 48 |
+
</Specimen>
|
| 49 |
+
</contained>
|
| 50 |
+
<identifier>
|
| 51 |
+
<type>
|
| 52 |
+
<coding>
|
| 53 |
+
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
|
| 54 |
+
<code value="PLAC"/>
|
| 55 |
+
</coding>
|
| 56 |
+
<text value="Placer"/>
|
| 57 |
+
</type>
|
| 58 |
+
<system value="urn:oid:1.3.4.5.6.7"/>
|
| 59 |
+
<value value="2345234234234"/>
|
| 60 |
+
</identifier>
|
| 61 |
+
<status value="active"/>
|
| 62 |
+
<intent value="plan"/>
|
| 63 |
+
<code>
|
| 64 |
+
<coding>
|
| 65 |
+
<system value="http://snomed.info/sct"/>
|
| 66 |
+
<code value="4589007"/>
|
| 67 |
+
</coding>
|
| 68 |
+
<text value="Medical procedure related to reproduction (procedure)"/>
|
| 69 |
+
</code>
|
| 70 |
+
<subject>
|
| 71 |
+
<reference value="Patient/charity"/>
|
| 72 |
+
</subject>
|
| 73 |
+
<encounter>
|
| 74 |
+
<reference value="Encounter/charity-first-contact"/>
|
| 75 |
+
</encounter>
|
| 76 |
+
<occurrenceDateTime value="2019-05-24T16:16:00-07:00"/>
|
| 77 |
+
<requester>
|
| 78 |
+
<reference value="Practitioner/midwife"/>
|
| 79 |
+
</requester>
|
| 80 |
+
<performer>
|
| 81 |
+
<reference value="Practitioner/midwife"/>
|
| 82 |
+
</performer>
|
| 83 |
+
<reasonCode>
|
| 84 |
+
<coding>
|
| 85 |
+
<system value="http://snomed.info/sct"/>
|
| 86 |
+
<code value="4589007"/>
|
| 87 |
+
<display value="Medical procedure related to reproduction (procedure)"/>
|
| 88 |
+
</coding>
|
| 89 |
+
</reasonCode>
|
| 90 |
+
<note>
|
| 91 |
+
<text value="second patient contact"/>
|
| 92 |
+
</note>
|
| 93 |
+
</ServiceRequest>
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/pagecontent/examples-first-contact.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This scenario illustrates the resources involved in application of the guideline at the first contact for a new patient.
|
| 2 |
+
|
| 3 |
+
1. The mother presents at the clinic, resulting in the creation of the [Patient/charity](patient-charity.html)
|
| 4 |
+
2. The mother self-reports pregnancy, resulting in the creation of the [Condition/charity-pregnancy](condition-charity-pregnancy.html)
|
| 5 |
+
3. The pregnancy triggers application of the guideline, resulting in the creation of:
|
| 6 |
+
1. the [EpisodeOfCare/charity-pregnancy-episode](episodeofcare-charity-pregnancy-episode.html)
|
| 7 |
+
2. the [Encounter/charity-first-contact](encounter-charity-first-contact.html)
|
| 8 |
+
3. the [Goal/charity-pregnancy-goal](goal-charity-pregnancy-goal.html)
|
| 9 |
+
4. the [CarePlan/charity-pregnancy-plan](careplan-charity-pregnancy-plan.html)
|
| 10 |
+
4. Filling out the profile results in observation of LMP [Observation/charity-lmp](observation-charity-lmp.html), allowing gestational age to be calculated
|
| 11 |
+
5. Recommendation B.1.1 is triggered to evaluate whether or not an anaemia test is due for the mother. Since this example is for a first contact scenario and no anaemia test (Observation) exists for the mother, a recommendation is triggered to perform an anaemia test - in this case, the recommendation is to perform a Full Blood Count test since that is the preferred method and is configured as the default test method.
|
| 12 |
+
6. Tests result in recording of Hb [Observation/charity-hb](observation-charity-hb.html), indicating anaemia and triggering recommendation #A2
|
| 13 |
+
1. Recommendation A2 evaluates the "Has Anaemia" condition in the common library, resulting in true
|
| 14 |
+
2. The [ActivityDefinition/anc-120mg-daily-elemental-iron](ActivityDefinition-activitydefinition-anc-120mg-daily-elemental-iron.html) is applied, creating
|
| 15 |
+
3. A proposal (or recommendation): [MedicationRequest/charity-daily-elemental-iron-recommendation](medicationrequest-charity-daily-elemental-iron-recommendation.html)
|
| 16 |
+
4. Acting on that recommendation, the provider creates an order: [MedicationRequest/charity-daily-elemental-iron-prescription](medicationrequest-charity-daily-elemental-iron-prescription.html)
|
| 17 |
+
7. Finalizing the encounter involves a service request for a followup visit: [ServiceRequest/charity-second-contact](servicerequest-charity-second-contact.html)
|
source_data/pinned/smart-anc/commit-301a6b8b9043/archived/quick-start-bundles/example-first-contact-bundle.json
ADDED
|
@@ -0,0 +1,1244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"resourceType": "Bundle",
|
| 3 |
+
"type": "transaction",
|
| 4 |
+
"entry": [
|
| 5 |
+
{
|
| 6 |
+
"resource": {
|
| 7 |
+
"resourceType": "Encounter",
|
| 8 |
+
"id": "mom-first-contact",
|
| 9 |
+
"status": "in-progress",
|
| 10 |
+
"class": {
|
| 11 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
|
| 12 |
+
"code": "AMB",
|
| 13 |
+
"display": "ambulatory"
|
| 14 |
+
},
|
| 15 |
+
"type": [
|
| 16 |
+
{
|
| 17 |
+
"coding": [
|
| 18 |
+
{
|
| 19 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 20 |
+
"code": "anc-contact",
|
| 21 |
+
"display": "Antenatal care contact"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"text": "Antenatal care contact"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"subject": {
|
| 28 |
+
"reference": "Patient/mom"
|
| 29 |
+
},
|
| 30 |
+
"episodeOfCare": [
|
| 31 |
+
{
|
| 32 |
+
"reference": "EpisodeOfCare/mom-pregnancy-episode"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"participant": [
|
| 36 |
+
{
|
| 37 |
+
"type": [
|
| 38 |
+
{
|
| 39 |
+
"coding": [
|
| 40 |
+
{
|
| 41 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
|
| 42 |
+
"code": "PPRF",
|
| 43 |
+
"display": "primary performer"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"individual": {
|
| 49 |
+
"reference": "Practitioner/midwife"
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"period": {
|
| 54 |
+
"fhir_comments": [
|
| 55 |
+
" TODO: appointment "
|
| 56 |
+
],
|
| 57 |
+
"start": "2019-05-24"
|
| 58 |
+
},
|
| 59 |
+
"diagnosis": [
|
| 60 |
+
{
|
| 61 |
+
"fhir_comments": [
|
| 62 |
+
" TODO: account ",
|
| 63 |
+
" TODO: location ",
|
| 64 |
+
" TODO: serviceProvider "
|
| 65 |
+
],
|
| 66 |
+
"condition": {
|
| 67 |
+
"reference": "Condition/mom-pregnancy"
|
| 68 |
+
},
|
| 69 |
+
"rank": 1
|
| 70 |
+
}
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
"request": {
|
| 74 |
+
"method": "PUT",
|
| 75 |
+
"url": "Encounter/mom-first-contact"
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"resource": {
|
| 80 |
+
"resourceType": "Goal",
|
| 81 |
+
"id": "mom-pregnancy-goal",
|
| 82 |
+
"lifecycleStatus": "active",
|
| 83 |
+
"description": {
|
| 84 |
+
"fhir_comments": [
|
| 85 |
+
" TODO: Category? "
|
| 86 |
+
],
|
| 87 |
+
"text": "Maintain patient's health throughout pregnancy and ensure a healthy child"
|
| 88 |
+
},
|
| 89 |
+
"subject": {
|
| 90 |
+
"reference": "Patient/mom",
|
| 91 |
+
"display": "Eve Everywoman"
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"request": {
|
| 95 |
+
"method": "PUT",
|
| 96 |
+
"url": "Goal/mom-pregnancy-goal"
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"resource": {
|
| 101 |
+
"resourceType": "Practitioner",
|
| 102 |
+
"id": "midwife",
|
| 103 |
+
"meta": {
|
| 104 |
+
"profile": [
|
| 105 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/ancpractitioner"
|
| 106 |
+
]
|
| 107 |
+
},
|
| 108 |
+
"active": true,
|
| 109 |
+
"_active": {
|
| 110 |
+
"fhir_comments": [
|
| 111 |
+
" TODO: identifier "
|
| 112 |
+
]
|
| 113 |
+
},
|
| 114 |
+
"name": [
|
| 115 |
+
{
|
| 116 |
+
"family": "Midwife",
|
| 117 |
+
"given": [
|
| 118 |
+
"Mabel"
|
| 119 |
+
]
|
| 120 |
+
}
|
| 121 |
+
],
|
| 122 |
+
"address": [
|
| 123 |
+
{
|
| 124 |
+
"fhir_comments": [
|
| 125 |
+
" TODO: telecom "
|
| 126 |
+
],
|
| 127 |
+
"use": "home",
|
| 128 |
+
"line": [
|
| 129 |
+
"534 Erewhon St"
|
| 130 |
+
],
|
| 131 |
+
"city": "PleasantVille",
|
| 132 |
+
"state": "Vic",
|
| 133 |
+
"postalCode": "3999"
|
| 134 |
+
}
|
| 135 |
+
],
|
| 136 |
+
"gender": "female"
|
| 137 |
+
},
|
| 138 |
+
"request": {
|
| 139 |
+
"method": "PUT",
|
| 140 |
+
"url": "Practitioner/midwife"
|
| 141 |
+
}
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"resource": {
|
| 145 |
+
"resourceType": "PractitionerRole",
|
| 146 |
+
"id": "example",
|
| 147 |
+
"meta": {
|
| 148 |
+
"profile": [
|
| 149 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/ancmidwifepractitionerrole"
|
| 150 |
+
]
|
| 151 |
+
},
|
| 152 |
+
"active": true,
|
| 153 |
+
"_active": {
|
| 154 |
+
"fhir_comments": [
|
| 155 |
+
" TODO: identifier "
|
| 156 |
+
]
|
| 157 |
+
},
|
| 158 |
+
"practitioner": {
|
| 159 |
+
"reference": "Practitioner/midwife",
|
| 160 |
+
"display": "Mabel Midwife"
|
| 161 |
+
},
|
| 162 |
+
"code": [
|
| 163 |
+
{
|
| 164 |
+
"fhir_comments": [
|
| 165 |
+
" TODO: organization "
|
| 166 |
+
],
|
| 167 |
+
"coding": [
|
| 168 |
+
{
|
| 169 |
+
"system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona",
|
| 170 |
+
"code": "2222",
|
| 171 |
+
"display": "Midwifery professional"
|
| 172 |
+
}
|
| 173 |
+
],
|
| 174 |
+
"text": "Midwifery professional"
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
"telecom": [
|
| 178 |
+
{
|
| 179 |
+
"fhir_comments": [
|
| 180 |
+
" TODO: specialty ",
|
| 181 |
+
" TODO: location ",
|
| 182 |
+
" TODO: healthcareService "
|
| 183 |
+
],
|
| 184 |
+
"system": "phone",
|
| 185 |
+
"value": "(03) 5555 6473",
|
| 186 |
+
"use": "work"
|
| 187 |
+
}
|
| 188 |
+
],
|
| 189 |
+
"availableTime": [
|
| 190 |
+
{
|
| 191 |
+
"daysOfWeek": [
|
| 192 |
+
"mon",
|
| 193 |
+
"tue",
|
| 194 |
+
"wed"
|
| 195 |
+
],
|
| 196 |
+
"availableStartTime": "09:00:00",
|
| 197 |
+
"availableEndTime": "16:30:00"
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"daysOfWeek": [
|
| 201 |
+
"thu",
|
| 202 |
+
"fri"
|
| 203 |
+
],
|
| 204 |
+
"availableStartTime": "09:00:00",
|
| 205 |
+
"availableEndTime": "12:00:00"
|
| 206 |
+
}
|
| 207 |
+
],
|
| 208 |
+
"notAvailable": [
|
| 209 |
+
{
|
| 210 |
+
"description": "Mabel will be on extended leave during May 2017",
|
| 211 |
+
"during": {
|
| 212 |
+
"start": "2017-05-01",
|
| 213 |
+
"end": "2017-05-20"
|
| 214 |
+
}
|
| 215 |
+
}
|
| 216 |
+
],
|
| 217 |
+
"availabilityExceptions": "Mabel is generally unavailable on public holidays and during the Christmas/New Year break"
|
| 218 |
+
},
|
| 219 |
+
"request": {
|
| 220 |
+
"method": "PUT",
|
| 221 |
+
"url": "PractitionerRole/example"
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"resource": {
|
| 226 |
+
"resourceType": "EpisodeOfCare",
|
| 227 |
+
"id": "mom-pregnancy-episode",
|
| 228 |
+
"identifier": [
|
| 229 |
+
{
|
| 230 |
+
"system": "http://example.org/sampleepisodeofcare-identifier",
|
| 231 |
+
"value": "123"
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"status": "active",
|
| 235 |
+
"type": [
|
| 236 |
+
{
|
| 237 |
+
"coding": [
|
| 238 |
+
{
|
| 239 |
+
"system": "http://terminology.hl7.org/CodeSystem/episodeofcare-type",
|
| 240 |
+
"code": "hacc",
|
| 241 |
+
"display": "Home and Community Care"
|
| 242 |
+
}
|
| 243 |
+
]
|
| 244 |
+
}
|
| 245 |
+
],
|
| 246 |
+
"diagnosis": [
|
| 247 |
+
{
|
| 248 |
+
"condition": {
|
| 249 |
+
"reference": "Condition/mom-pregnancy"
|
| 250 |
+
},
|
| 251 |
+
"role": {
|
| 252 |
+
"coding": [
|
| 253 |
+
{
|
| 254 |
+
"system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
|
| 255 |
+
"code": "CC",
|
| 256 |
+
"display": "Chief complaint"
|
| 257 |
+
}
|
| 258 |
+
]
|
| 259 |
+
},
|
| 260 |
+
"rank": 1
|
| 261 |
+
}
|
| 262 |
+
],
|
| 263 |
+
"patient": {
|
| 264 |
+
"reference": "Patient/mom"
|
| 265 |
+
},
|
| 266 |
+
"period": {
|
| 267 |
+
"fhir_comments": [
|
| 268 |
+
" TODO: managingOrganization ",
|
| 269 |
+
" TODO: careManager ",
|
| 270 |
+
" TODO: team ",
|
| 271 |
+
" TODO: account "
|
| 272 |
+
],
|
| 273 |
+
"start": "2019-05-22"
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"request": {
|
| 277 |
+
"method": "PUT",
|
| 278 |
+
"url": "EpisodeOfCare/mom-pregnancy-episode"
|
| 279 |
+
}
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"resource": {
|
| 283 |
+
"resourceType": "MedicationRequest",
|
| 284 |
+
"id": "mom-daily-elemental-iron-recommendation",
|
| 285 |
+
"meta": {
|
| 286 |
+
"profile": [
|
| 287 |
+
"http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"
|
| 288 |
+
]
|
| 289 |
+
},
|
| 290 |
+
"status": "active",
|
| 291 |
+
"intent": "proposal",
|
| 292 |
+
"subject": {
|
| 293 |
+
"reference": "Patient/mom",
|
| 294 |
+
"display": "Eve Everywoman"
|
| 295 |
+
},
|
| 296 |
+
"encounter": {
|
| 297 |
+
"reference": "Encounter/mom-first-contact"
|
| 298 |
+
},
|
| 299 |
+
"authoredOn": "2019-05-24",
|
| 300 |
+
"reasonCode": [
|
| 301 |
+
{
|
| 302 |
+
"coding": [
|
| 303 |
+
{
|
| 304 |
+
"system": "http://snomed.info/sct",
|
| 305 |
+
"code": "271737000",
|
| 306 |
+
"display": "Anemia (disorder)"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"system": "http://openmrs.org/concepts",
|
| 310 |
+
"code": "121629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 311 |
+
"display": "Anaemia"
|
| 312 |
+
}
|
| 313 |
+
]
|
| 314 |
+
}
|
| 315 |
+
],
|
| 316 |
+
"instantiatesCanonical": [
|
| 317 |
+
"http://fhir.org/guides/who/anc-cds/ActivityDefinition/anc-daily-elemental-iron"
|
| 318 |
+
],
|
| 319 |
+
"dosageInstruction": [
|
| 320 |
+
{
|
| 321 |
+
"text": "120mg daily",
|
| 322 |
+
"timing": {
|
| 323 |
+
"repeat": {
|
| 324 |
+
"frequency": 1,
|
| 325 |
+
"period": 1,
|
| 326 |
+
"periodUnit": "d"
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
"route": {
|
| 330 |
+
"coding": [
|
| 331 |
+
{
|
| 332 |
+
"code": "26643006",
|
| 333 |
+
"display": "Oral route (qualifier value)"
|
| 334 |
+
}
|
| 335 |
+
],
|
| 336 |
+
"text": "Oral route (qualifier value)"
|
| 337 |
+
},
|
| 338 |
+
"doseAndRate": [
|
| 339 |
+
{
|
| 340 |
+
"type": {
|
| 341 |
+
"coding": [
|
| 342 |
+
{
|
| 343 |
+
"system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
|
| 344 |
+
"code": "ordered",
|
| 345 |
+
"display": "Ordered"
|
| 346 |
+
}
|
| 347 |
+
]
|
| 348 |
+
},
|
| 349 |
+
"doseQuantity": {
|
| 350 |
+
"value": 120,
|
| 351 |
+
"unit": "mg"
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
]
|
| 355 |
+
}
|
| 356 |
+
]
|
| 357 |
+
},
|
| 358 |
+
"request": {
|
| 359 |
+
"method": "PUT",
|
| 360 |
+
"url": "MedicationRequest/mom-daily-elemental-iron-recommendation"
|
| 361 |
+
}
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"resource": {
|
| 365 |
+
"resourceType": "CarePlan",
|
| 366 |
+
"id": "mom-pregnancy-plan",
|
| 367 |
+
"extension": [
|
| 368 |
+
{
|
| 369 |
+
"url": "http://fhir.org/guides/who/anc-cds/StructureDefinition/careplan-episodeOfCare",
|
| 370 |
+
"valueReference": {
|
| 371 |
+
"reference": "EpisodeOfCare/mom-pregnancy-episode"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
],
|
| 375 |
+
"instantiatesCanonical": [
|
| 376 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact-schedule"
|
| 377 |
+
],
|
| 378 |
+
"status": "active",
|
| 379 |
+
"intent": "plan",
|
| 380 |
+
"subject": {
|
| 381 |
+
"reference": "Patient/mom",
|
| 382 |
+
"display": "Eve Everywoman"
|
| 383 |
+
},
|
| 384 |
+
"period": {
|
| 385 |
+
"start": "2019-05-24",
|
| 386 |
+
"_start": {
|
| 387 |
+
"fhir_comments": [
|
| 388 |
+
" The likely duration of the pregnancy "
|
| 389 |
+
]
|
| 390 |
+
},
|
| 391 |
+
"end": "2020-02-24"
|
| 392 |
+
},
|
| 393 |
+
"careTeam": [
|
| 394 |
+
{
|
| 395 |
+
"reference": "CareTeam/anc-team"
|
| 396 |
+
}
|
| 397 |
+
],
|
| 398 |
+
"addresses": [
|
| 399 |
+
{
|
| 400 |
+
"reference": "Condition/mom-pregnancy",
|
| 401 |
+
"display": "pregnancy"
|
| 402 |
+
}
|
| 403 |
+
],
|
| 404 |
+
"goal": [
|
| 405 |
+
{
|
| 406 |
+
"reference": "Goal/mom-pregnancy-goal"
|
| 407 |
+
}
|
| 408 |
+
],
|
| 409 |
+
"activity": [
|
| 410 |
+
{
|
| 411 |
+
"fhir_comments": [
|
| 412 |
+
" First contact, occurred at about 12 weeks based on gestational age from LMP of 2019-03-01 "
|
| 413 |
+
],
|
| 414 |
+
"outcomeReference": [
|
| 415 |
+
{
|
| 416 |
+
"reference": "Encounter/mom-first-contact"
|
| 417 |
+
}
|
| 418 |
+
],
|
| 419 |
+
"detail": {
|
| 420 |
+
"kind": "Appointment",
|
| 421 |
+
"instantiatesCanonical": [
|
| 422 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 423 |
+
],
|
| 424 |
+
"code": {
|
| 425 |
+
"coding": [
|
| 426 |
+
{
|
| 427 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 428 |
+
"code": "anc-contact",
|
| 429 |
+
"display": "Antenatal care contact"
|
| 430 |
+
}
|
| 431 |
+
],
|
| 432 |
+
"text": "Antenatal care contact"
|
| 433 |
+
},
|
| 434 |
+
"status": "in-progress",
|
| 435 |
+
"performer": [
|
| 436 |
+
{
|
| 437 |
+
"reference": "Practitioner/midwife",
|
| 438 |
+
"display": "Mabel Midwife"
|
| 439 |
+
}
|
| 440 |
+
],
|
| 441 |
+
"description": "First antenatal care contact"
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"fhir_comments": [
|
| 446 |
+
" Second contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 447 |
+
],
|
| 448 |
+
"detail": {
|
| 449 |
+
"kind": "Appointment",
|
| 450 |
+
"instantiatesCanonical": [
|
| 451 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 452 |
+
],
|
| 453 |
+
"code": {
|
| 454 |
+
"coding": [
|
| 455 |
+
{
|
| 456 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 457 |
+
"code": "anc-contact",
|
| 458 |
+
"display": "Antenatal care contact"
|
| 459 |
+
}
|
| 460 |
+
],
|
| 461 |
+
"text": "Antenatal care contact"
|
| 462 |
+
},
|
| 463 |
+
"status": "scheduled",
|
| 464 |
+
"scheduledPeriod": {
|
| 465 |
+
"fhir_comments": [
|
| 466 |
+
" Scheduled based on gestational age calculation "
|
| 467 |
+
],
|
| 468 |
+
"start": "2019-07-26"
|
| 469 |
+
},
|
| 470 |
+
"performer": [
|
| 471 |
+
{
|
| 472 |
+
"reference": "Practitioner/midwife",
|
| 473 |
+
"display": "Mabel Midwife"
|
| 474 |
+
}
|
| 475 |
+
],
|
| 476 |
+
"description": "Second contact to occur at 20 weeks of gestational age"
|
| 477 |
+
}
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"fhir_comments": [
|
| 481 |
+
" Third contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 482 |
+
],
|
| 483 |
+
"detail": {
|
| 484 |
+
"kind": "Appointment",
|
| 485 |
+
"instantiatesCanonical": [
|
| 486 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 487 |
+
],
|
| 488 |
+
"code": {
|
| 489 |
+
"coding": [
|
| 490 |
+
{
|
| 491 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 492 |
+
"code": "anc-contact",
|
| 493 |
+
"display": "Antenatal care contact"
|
| 494 |
+
}
|
| 495 |
+
],
|
| 496 |
+
"text": "Antenatal care contact"
|
| 497 |
+
},
|
| 498 |
+
"status": "not-started",
|
| 499 |
+
"scheduledPeriod": {
|
| 500 |
+
"fhir_comments": [
|
| 501 |
+
" Scheduled based on gestational age calculation "
|
| 502 |
+
],
|
| 503 |
+
"start": "2019-09-06"
|
| 504 |
+
},
|
| 505 |
+
"performer": [
|
| 506 |
+
{
|
| 507 |
+
"reference": "Practitioner/midwife",
|
| 508 |
+
"display": "Mabel Midwife"
|
| 509 |
+
}
|
| 510 |
+
],
|
| 511 |
+
"description": "Third contact to occur at 26 weeks of gestational age"
|
| 512 |
+
}
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"fhir_comments": [
|
| 516 |
+
" Fourth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 517 |
+
],
|
| 518 |
+
"detail": {
|
| 519 |
+
"kind": "Appointment",
|
| 520 |
+
"instantiatesCanonical": [
|
| 521 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 522 |
+
],
|
| 523 |
+
"code": {
|
| 524 |
+
"coding": [
|
| 525 |
+
{
|
| 526 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 527 |
+
"code": "anc-contact",
|
| 528 |
+
"display": "Antenatal care contact"
|
| 529 |
+
}
|
| 530 |
+
],
|
| 531 |
+
"text": "Antenatal care contact"
|
| 532 |
+
},
|
| 533 |
+
"status": "not-started",
|
| 534 |
+
"scheduledPeriod": {
|
| 535 |
+
"fhir_comments": [
|
| 536 |
+
" Scheduled based on gestational age calculation "
|
| 537 |
+
],
|
| 538 |
+
"start": "2019-10-04"
|
| 539 |
+
},
|
| 540 |
+
"performer": [
|
| 541 |
+
{
|
| 542 |
+
"reference": "Practitioner/midwife",
|
| 543 |
+
"display": "Mabel Midwife"
|
| 544 |
+
}
|
| 545 |
+
],
|
| 546 |
+
"description": "Fourth contact to occur at 30 weeks of gestational age"
|
| 547 |
+
}
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"fhir_comments": [
|
| 551 |
+
" Fifth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 552 |
+
],
|
| 553 |
+
"detail": {
|
| 554 |
+
"kind": "Appointment",
|
| 555 |
+
"instantiatesCanonical": [
|
| 556 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 557 |
+
],
|
| 558 |
+
"code": {
|
| 559 |
+
"coding": [
|
| 560 |
+
{
|
| 561 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 562 |
+
"code": "anc-contact",
|
| 563 |
+
"display": "Antenatal care contact"
|
| 564 |
+
}
|
| 565 |
+
],
|
| 566 |
+
"text": "Antenatal care contact"
|
| 567 |
+
},
|
| 568 |
+
"status": "not-started",
|
| 569 |
+
"scheduledPeriod": {
|
| 570 |
+
"fhir_comments": [
|
| 571 |
+
" Scheduled based on gestational age calculation "
|
| 572 |
+
],
|
| 573 |
+
"start": "2019-11-01"
|
| 574 |
+
},
|
| 575 |
+
"performer": [
|
| 576 |
+
{
|
| 577 |
+
"reference": "Practitioner/midwife",
|
| 578 |
+
"display": "Mabel Midwife"
|
| 579 |
+
}
|
| 580 |
+
],
|
| 581 |
+
"description": "Fifth contact to occur at 34 weeks of gestational age"
|
| 582 |
+
}
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"fhir_comments": [
|
| 586 |
+
" Sixth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 587 |
+
],
|
| 588 |
+
"detail": {
|
| 589 |
+
"kind": "Appointment",
|
| 590 |
+
"instantiatesCanonical": [
|
| 591 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 592 |
+
],
|
| 593 |
+
"code": {
|
| 594 |
+
"coding": [
|
| 595 |
+
{
|
| 596 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 597 |
+
"code": "anc-contact",
|
| 598 |
+
"display": "Antenatal care contact"
|
| 599 |
+
}
|
| 600 |
+
],
|
| 601 |
+
"text": "Antenatal care contact"
|
| 602 |
+
},
|
| 603 |
+
"status": "not-started",
|
| 604 |
+
"scheduledPeriod": {
|
| 605 |
+
"fhir_comments": [
|
| 606 |
+
" Scheduled based on gestational age calculation "
|
| 607 |
+
],
|
| 608 |
+
"start": "2019-11-15"
|
| 609 |
+
},
|
| 610 |
+
"performer": [
|
| 611 |
+
{
|
| 612 |
+
"reference": "Practitioner/midwife",
|
| 613 |
+
"display": "Mabel Midwife"
|
| 614 |
+
}
|
| 615 |
+
],
|
| 616 |
+
"description": "Sixth contact to occur at 36 weeks of gestational age"
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"fhir_comments": [
|
| 621 |
+
" Seventh contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 622 |
+
],
|
| 623 |
+
"detail": {
|
| 624 |
+
"kind": "Appointment",
|
| 625 |
+
"instantiatesCanonical": [
|
| 626 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 627 |
+
],
|
| 628 |
+
"code": {
|
| 629 |
+
"coding": [
|
| 630 |
+
{
|
| 631 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 632 |
+
"code": "anc-contact",
|
| 633 |
+
"display": "Antenatal care contact"
|
| 634 |
+
}
|
| 635 |
+
],
|
| 636 |
+
"text": "Antenatal care contact"
|
| 637 |
+
},
|
| 638 |
+
"status": "not-started",
|
| 639 |
+
"scheduledPeriod": {
|
| 640 |
+
"fhir_comments": [
|
| 641 |
+
" Scheduled based on gestational age calculation "
|
| 642 |
+
],
|
| 643 |
+
"start": "2019-11-29"
|
| 644 |
+
},
|
| 645 |
+
"performer": [
|
| 646 |
+
{
|
| 647 |
+
"reference": "Practitioner/midwife",
|
| 648 |
+
"display": "Mabel Midwife"
|
| 649 |
+
}
|
| 650 |
+
],
|
| 651 |
+
"description": "Seventh contact to occur at 38 weeks of gestational age"
|
| 652 |
+
}
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"fhir_comments": [
|
| 656 |
+
" Eighth contact, scheduled based on gestational age from LMP of 2019-03-01, gathered during the first contact "
|
| 657 |
+
],
|
| 658 |
+
"detail": {
|
| 659 |
+
"kind": "Appointment",
|
| 660 |
+
"instantiatesCanonical": [
|
| 661 |
+
"http://fhir.org/guides/who/anc-cds/PlanDefinition/anc-contact"
|
| 662 |
+
],
|
| 663 |
+
"code": {
|
| 664 |
+
"coding": [
|
| 665 |
+
{
|
| 666 |
+
"system": "http://example.org/CodeSystem/encounter-type",
|
| 667 |
+
"code": "anc-contact",
|
| 668 |
+
"display": "Antenatal care contact"
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"text": "Antenatal care contact"
|
| 672 |
+
},
|
| 673 |
+
"status": "not-started",
|
| 674 |
+
"scheduledPeriod": {
|
| 675 |
+
"fhir_comments": [
|
| 676 |
+
" Scheduled based on gestational age calculation "
|
| 677 |
+
],
|
| 678 |
+
"start": "2019-12-13"
|
| 679 |
+
},
|
| 680 |
+
"performer": [
|
| 681 |
+
{
|
| 682 |
+
"reference": "Practitioner/midwife",
|
| 683 |
+
"display": "Mabel Midwife"
|
| 684 |
+
}
|
| 685 |
+
],
|
| 686 |
+
"description": "Eighth contact to occur at 40 weeks of gestational age"
|
| 687 |
+
}
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"detail": {
|
| 691 |
+
"kind": "Appointment",
|
| 692 |
+
"_kind": {
|
| 693 |
+
"fhir_comments": [
|
| 694 |
+
" This will be the delivery. It is not yet scheduled. "
|
| 695 |
+
]
|
| 696 |
+
},
|
| 697 |
+
"code": {
|
| 698 |
+
"coding": [
|
| 699 |
+
{
|
| 700 |
+
"system": "http://example.org/mySystem",
|
| 701 |
+
"code": "del"
|
| 702 |
+
}
|
| 703 |
+
],
|
| 704 |
+
"text": "Delivery"
|
| 705 |
+
},
|
| 706 |
+
"status": "not-started",
|
| 707 |
+
"scheduledPeriod": {
|
| 708 |
+
"start": "2019-12-13",
|
| 709 |
+
"end": "2019-12-27"
|
| 710 |
+
},
|
| 711 |
+
"performer": [
|
| 712 |
+
{
|
| 713 |
+
"fhir_comments": [
|
| 714 |
+
" TODO: location "
|
| 715 |
+
],
|
| 716 |
+
"reference": "Practitioner/midwife",
|
| 717 |
+
"display": "Mabel Midwife"
|
| 718 |
+
}
|
| 719 |
+
],
|
| 720 |
+
"description": "Delivery"
|
| 721 |
+
}
|
| 722 |
+
}
|
| 723 |
+
]
|
| 724 |
+
},
|
| 725 |
+
"request": {
|
| 726 |
+
"method": "PUT",
|
| 727 |
+
"url": "CarePlan/mom-pregnancy-plan"
|
| 728 |
+
}
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"resource": {
|
| 732 |
+
"resourceType": "CareTeam",
|
| 733 |
+
"id": "anc-team",
|
| 734 |
+
"participant": [
|
| 735 |
+
{
|
| 736 |
+
"role": [
|
| 737 |
+
{
|
| 738 |
+
"coding": [
|
| 739 |
+
{
|
| 740 |
+
"system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona",
|
| 741 |
+
"code": "2222",
|
| 742 |
+
"display": "Midwifery professional"
|
| 743 |
+
}
|
| 744 |
+
],
|
| 745 |
+
"text": "Midwifery professional"
|
| 746 |
+
}
|
| 747 |
+
],
|
| 748 |
+
"member": {
|
| 749 |
+
"reference": "Practitioner/midwife",
|
| 750 |
+
"display": "Mabel Midwife"
|
| 751 |
+
}
|
| 752 |
+
}
|
| 753 |
+
]
|
| 754 |
+
},
|
| 755 |
+
"request": {
|
| 756 |
+
"method": "PUT",
|
| 757 |
+
"url": "CareTeam/anc-team"
|
| 758 |
+
}
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"resource": {
|
| 762 |
+
"resourceType": "Appointment",
|
| 763 |
+
"id": "mom-second-contact",
|
| 764 |
+
"status": "booked",
|
| 765 |
+
"serviceCategory": [
|
| 766 |
+
{
|
| 767 |
+
"fhir_comments": [
|
| 768 |
+
" TODO: serviceCategory "
|
| 769 |
+
],
|
| 770 |
+
"coding": [
|
| 771 |
+
{
|
| 772 |
+
"system": "http://example.org/service-category",
|
| 773 |
+
"code": "gp",
|
| 774 |
+
"display": "General Practice"
|
| 775 |
+
}
|
| 776 |
+
]
|
| 777 |
+
}
|
| 778 |
+
],
|
| 779 |
+
"serviceType": [
|
| 780 |
+
{
|
| 781 |
+
"fhir_comments": [
|
| 782 |
+
" TODO: serviceType "
|
| 783 |
+
],
|
| 784 |
+
"coding": [
|
| 785 |
+
{
|
| 786 |
+
"code": "52",
|
| 787 |
+
"display": "General Discussion"
|
| 788 |
+
}
|
| 789 |
+
]
|
| 790 |
+
}
|
| 791 |
+
],
|
| 792 |
+
"specialty": [
|
| 793 |
+
{
|
| 794 |
+
"fhir_comments": [
|
| 795 |
+
" TODO: specialty "
|
| 796 |
+
],
|
| 797 |
+
"coding": [
|
| 798 |
+
{
|
| 799 |
+
"system": "http://snomed.info/sct",
|
| 800 |
+
"code": "394814009",
|
| 801 |
+
"display": "General practice"
|
| 802 |
+
}
|
| 803 |
+
]
|
| 804 |
+
}
|
| 805 |
+
],
|
| 806 |
+
"appointmentType": {
|
| 807 |
+
"coding": [
|
| 808 |
+
{
|
| 809 |
+
"system": "http://terminology.hl7.org/CodeSystem/v2-0276",
|
| 810 |
+
"code": "FOLLOWUP",
|
| 811 |
+
"display": "A follow up visit from a previous appointment"
|
| 812 |
+
}
|
| 813 |
+
]
|
| 814 |
+
},
|
| 815 |
+
"reasonReference": [
|
| 816 |
+
{
|
| 817 |
+
"reference": "Condition/mom-pregnancy"
|
| 818 |
+
}
|
| 819 |
+
],
|
| 820 |
+
"description": "Antenatal care first contact",
|
| 821 |
+
"start": "2019-07-26T15:00:00Z",
|
| 822 |
+
"minutesDuration": 30,
|
| 823 |
+
"created": "2019-05-24",
|
| 824 |
+
"participant": [
|
| 825 |
+
{
|
| 826 |
+
"actor": {
|
| 827 |
+
"reference": "Patient/mom",
|
| 828 |
+
"display": "Eve Everywoman"
|
| 829 |
+
},
|
| 830 |
+
"required": "required",
|
| 831 |
+
"status": "accepted"
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": [
|
| 835 |
+
{
|
| 836 |
+
"coding": [
|
| 837 |
+
{
|
| 838 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
|
| 839 |
+
"code": "ATND"
|
| 840 |
+
}
|
| 841 |
+
]
|
| 842 |
+
}
|
| 843 |
+
],
|
| 844 |
+
"actor": {
|
| 845 |
+
"reference": "Practitioner/midwife",
|
| 846 |
+
"display": "Mabel Midwife"
|
| 847 |
+
},
|
| 848 |
+
"required": "required",
|
| 849 |
+
"status": "accepted"
|
| 850 |
+
}
|
| 851 |
+
]
|
| 852 |
+
},
|
| 853 |
+
"request": {
|
| 854 |
+
"method": "PUT",
|
| 855 |
+
"url": "Appointment/mom-second-contact"
|
| 856 |
+
}
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"resource": {
|
| 860 |
+
"resourceType": "Observation",
|
| 861 |
+
"id": "mom-lmp",
|
| 862 |
+
"meta": {
|
| 863 |
+
"profile": [
|
| 864 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/lmpobservation"
|
| 865 |
+
]
|
| 866 |
+
},
|
| 867 |
+
"status": "final",
|
| 868 |
+
"category": [
|
| 869 |
+
{
|
| 870 |
+
"coding": [
|
| 871 |
+
{
|
| 872 |
+
"system": "http://hl7.org/fhir/observation-category",
|
| 873 |
+
"code": "exam"
|
| 874 |
+
}
|
| 875 |
+
]
|
| 876 |
+
}
|
| 877 |
+
],
|
| 878 |
+
"code": {
|
| 879 |
+
"coding": [
|
| 880 |
+
{
|
| 881 |
+
"system": "http://openmrs.org/concepts",
|
| 882 |
+
"code": "1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 883 |
+
"display": "LMP"
|
| 884 |
+
}
|
| 885 |
+
],
|
| 886 |
+
"text": "Date of last menstrual period"
|
| 887 |
+
},
|
| 888 |
+
"subject": {
|
| 889 |
+
"reference": "Patient/mom",
|
| 890 |
+
"display": "Eve Everywoman"
|
| 891 |
+
},
|
| 892 |
+
"encounter": {
|
| 893 |
+
"reference": "Encounter/mom-first-contact"
|
| 894 |
+
},
|
| 895 |
+
"effectiveDateTime": "2019-05-24T15:30:00Z",
|
| 896 |
+
"issued": "2019-05-24T15:30:00Z",
|
| 897 |
+
"performer": [
|
| 898 |
+
{
|
| 899 |
+
"reference": "Practitioner/midwife",
|
| 900 |
+
"display": "Mabel Midwife"
|
| 901 |
+
}
|
| 902 |
+
],
|
| 903 |
+
"valueDateTime": "2019-03-01"
|
| 904 |
+
},
|
| 905 |
+
"request": {
|
| 906 |
+
"method": "PUT",
|
| 907 |
+
"url": "Observation/mom-lmp"
|
| 908 |
+
}
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"resource": {
|
| 912 |
+
"resourceType": "Observation",
|
| 913 |
+
"id": "mom-gest-age-method",
|
| 914 |
+
"meta": {
|
| 915 |
+
"profile": [
|
| 916 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/lmpobservation"
|
| 917 |
+
]
|
| 918 |
+
},
|
| 919 |
+
"status": "final",
|
| 920 |
+
"category": [
|
| 921 |
+
{
|
| 922 |
+
"coding": [
|
| 923 |
+
{
|
| 924 |
+
"system": "http://hl7.org/fhir/observation-category",
|
| 925 |
+
"code": "exam"
|
| 926 |
+
}
|
| 927 |
+
]
|
| 928 |
+
}
|
| 929 |
+
],
|
| 930 |
+
"code": {
|
| 931 |
+
"coding": [
|
| 932 |
+
{
|
| 933 |
+
"system": "http://openmrs.org/concepts",
|
| 934 |
+
"code": "GestAgeMethod",
|
| 935 |
+
"display": "Selected Gestational Age Determination Method"
|
| 936 |
+
}
|
| 937 |
+
],
|
| 938 |
+
"text": "Selected Gestational Age Determination Method"
|
| 939 |
+
},
|
| 940 |
+
"subject": {
|
| 941 |
+
"reference": "Patient/mom",
|
| 942 |
+
"display": "Eve Everywoman"
|
| 943 |
+
},
|
| 944 |
+
"encounter": {
|
| 945 |
+
"reference": "Encounter/mom-first-contact"
|
| 946 |
+
},
|
| 947 |
+
"effectiveDateTime": "2019-05-24T15:30:00Z",
|
| 948 |
+
"issued": "2019-05-24T15:30:00Z",
|
| 949 |
+
"performer": [
|
| 950 |
+
{
|
| 951 |
+
"reference": "Practitioner/midwife",
|
| 952 |
+
"display": "Mabel Midwife"
|
| 953 |
+
}
|
| 954 |
+
],
|
| 955 |
+
"valueCodeableConcept": {
|
| 956 |
+
"coding": [
|
| 957 |
+
{
|
| 958 |
+
"system": "http://fhir.org/guides/who/anc-cds/CodeSystem/anc-codes",
|
| 959 |
+
"code": "UseLMP"
|
| 960 |
+
}
|
| 961 |
+
],
|
| 962 |
+
"text": "Last Menstrual Period Date Method"
|
| 963 |
+
}
|
| 964 |
+
},
|
| 965 |
+
"request": {
|
| 966 |
+
"method": "PUT",
|
| 967 |
+
"url": "Observation/mom-gest-age-method"
|
| 968 |
+
}
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"resource": {
|
| 972 |
+
"resourceType": "Condition",
|
| 973 |
+
"id": "mom-pregnancy",
|
| 974 |
+
"clinicalStatus": {
|
| 975 |
+
"coding": [
|
| 976 |
+
{
|
| 977 |
+
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
|
| 978 |
+
"code": "active"
|
| 979 |
+
}
|
| 980 |
+
]
|
| 981 |
+
},
|
| 982 |
+
"verificationStatus": {
|
| 983 |
+
"coding": [
|
| 984 |
+
{
|
| 985 |
+
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
|
| 986 |
+
"code": "confirmed"
|
| 987 |
+
}
|
| 988 |
+
]
|
| 989 |
+
},
|
| 990 |
+
"category": [
|
| 991 |
+
{
|
| 992 |
+
"coding": [
|
| 993 |
+
{
|
| 994 |
+
"system": "http://terminology.hl7.org/CodeSystem/condition-category",
|
| 995 |
+
"code": "problem-list-item",
|
| 996 |
+
"display": "Problem List Item"
|
| 997 |
+
}
|
| 998 |
+
]
|
| 999 |
+
}
|
| 1000 |
+
],
|
| 1001 |
+
"code": {
|
| 1002 |
+
"coding": [
|
| 1003 |
+
{
|
| 1004 |
+
"system": "http://example.org/tbd",
|
| 1005 |
+
"code": "TBD",
|
| 1006 |
+
"display": "Pregnancy"
|
| 1007 |
+
}
|
| 1008 |
+
],
|
| 1009 |
+
"text": "Pregnancy"
|
| 1010 |
+
},
|
| 1011 |
+
"subject": {
|
| 1012 |
+
"reference": "Patient/mom"
|
| 1013 |
+
},
|
| 1014 |
+
"onsetDateTime": "2019-05-22"
|
| 1015 |
+
},
|
| 1016 |
+
"request": {
|
| 1017 |
+
"method": "PUT",
|
| 1018 |
+
"url": "Condition/mom-pregnancy"
|
| 1019 |
+
}
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"resource": {
|
| 1023 |
+
"resourceType": "Observation",
|
| 1024 |
+
"id": "mom-hb",
|
| 1025 |
+
"meta": {
|
| 1026 |
+
"profile": [
|
| 1027 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/hbobservation"
|
| 1028 |
+
]
|
| 1029 |
+
},
|
| 1030 |
+
"status": "final",
|
| 1031 |
+
"category": [
|
| 1032 |
+
{
|
| 1033 |
+
"coding": [
|
| 1034 |
+
{
|
| 1035 |
+
"system": "http://hl7.org/fhir/observation-category",
|
| 1036 |
+
"code": "exam"
|
| 1037 |
+
}
|
| 1038 |
+
]
|
| 1039 |
+
}
|
| 1040 |
+
],
|
| 1041 |
+
"code": {
|
| 1042 |
+
"fhir_comments": [
|
| 1043 |
+
" NOTE: Loinc code here, current CQL still references the OpenMRS concept for this ",
|
| 1044 |
+
" <code>\n\t\t<coding>\n\t\t\t<system value=\"http://loinc.org\"/>\n\t\t\t<code value=\"718-7\"/>\n\t\t\t<display value=\"Hemoglobin [Mass/volume] in Blood\"/>\n\t\t</coding>\n\t</code> "
|
| 1045 |
+
],
|
| 1046 |
+
"coding": [
|
| 1047 |
+
{
|
| 1048 |
+
"system": "http://openmrs.org/concepts",
|
| 1049 |
+
"code": "165395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 1050 |
+
"display": "Haemoglobin measured from haemoglobinometer (g/dl)"
|
| 1051 |
+
}
|
| 1052 |
+
]
|
| 1053 |
+
},
|
| 1054 |
+
"subject": {
|
| 1055 |
+
"reference": "Patient/mom",
|
| 1056 |
+
"display": "Eve Everywoman"
|
| 1057 |
+
},
|
| 1058 |
+
"encounter": {
|
| 1059 |
+
"reference": "Encounter/mom-first-contact"
|
| 1060 |
+
},
|
| 1061 |
+
"effectivePeriod": {
|
| 1062 |
+
"start": "2019-05-24T15:30:00Z",
|
| 1063 |
+
"end": "2019-05-24T15:30:00Z"
|
| 1064 |
+
},
|
| 1065 |
+
"issued": "2019-05-24T15:30:00Z",
|
| 1066 |
+
"performer": [
|
| 1067 |
+
{
|
| 1068 |
+
"reference": "Practitioner/midwife",
|
| 1069 |
+
"display": "Mabel Midwife"
|
| 1070 |
+
}
|
| 1071 |
+
],
|
| 1072 |
+
"valueQuantity": {
|
| 1073 |
+
"value": 7.2,
|
| 1074 |
+
"unit": "g/dl",
|
| 1075 |
+
"system": "http://unitsofmeasure.org",
|
| 1076 |
+
"code": "g/dL"
|
| 1077 |
+
},
|
| 1078 |
+
"interpretation": [
|
| 1079 |
+
{
|
| 1080 |
+
"coding": [
|
| 1081 |
+
{
|
| 1082 |
+
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
| 1083 |
+
"code": "L",
|
| 1084 |
+
"display": "Low"
|
| 1085 |
+
}
|
| 1086 |
+
]
|
| 1087 |
+
}
|
| 1088 |
+
],
|
| 1089 |
+
"referenceRange": [
|
| 1090 |
+
{
|
| 1091 |
+
"low": {
|
| 1092 |
+
"value": 7.5,
|
| 1093 |
+
"unit": "g/dl",
|
| 1094 |
+
"system": "http://unitsofmeasure.org",
|
| 1095 |
+
"code": "g/dL"
|
| 1096 |
+
},
|
| 1097 |
+
"high": {
|
| 1098 |
+
"value": 10,
|
| 1099 |
+
"unit": "g/dl",
|
| 1100 |
+
"system": "http://unitsofmeasure.org",
|
| 1101 |
+
"code": "g/dL"
|
| 1102 |
+
}
|
| 1103 |
+
}
|
| 1104 |
+
]
|
| 1105 |
+
},
|
| 1106 |
+
"request": {
|
| 1107 |
+
"method": "PUT",
|
| 1108 |
+
"url": "Observation/mom-hb"
|
| 1109 |
+
}
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"resource": {
|
| 1113 |
+
"resourceType": "Patient",
|
| 1114 |
+
"id": "mom",
|
| 1115 |
+
"meta": {
|
| 1116 |
+
"profile": [
|
| 1117 |
+
"http://fhir.org/guides/who/anc-cds/StructureDefinition/ancpatient"
|
| 1118 |
+
]
|
| 1119 |
+
},
|
| 1120 |
+
"identifier": [
|
| 1121 |
+
{
|
| 1122 |
+
"use": "official",
|
| 1123 |
+
"value": "1000"
|
| 1124 |
+
}
|
| 1125 |
+
],
|
| 1126 |
+
"active": true,
|
| 1127 |
+
"name": [
|
| 1128 |
+
{
|
| 1129 |
+
"use": "official",
|
| 1130 |
+
"family": "Everywoman",
|
| 1131 |
+
"given": [
|
| 1132 |
+
"Eve"
|
| 1133 |
+
]
|
| 1134 |
+
}
|
| 1135 |
+
],
|
| 1136 |
+
"telecom": [
|
| 1137 |
+
{
|
| 1138 |
+
"system": "phone",
|
| 1139 |
+
"value": "555-555-2003",
|
| 1140 |
+
"use": "mobile"
|
| 1141 |
+
}
|
| 1142 |
+
],
|
| 1143 |
+
"gender": "female",
|
| 1144 |
+
"birthDate": "1993-05-31",
|
| 1145 |
+
"address": [
|
| 1146 |
+
{
|
| 1147 |
+
"use": "home",
|
| 1148 |
+
"text": "2222 Home Street"
|
| 1149 |
+
}
|
| 1150 |
+
]
|
| 1151 |
+
},
|
| 1152 |
+
"request": {
|
| 1153 |
+
"method": "PUT",
|
| 1154 |
+
"url": "Patient/mom"
|
| 1155 |
+
}
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"resource": {
|
| 1159 |
+
"resourceType": "MedicationRequest",
|
| 1160 |
+
"id": "mom-daily-elemental-iron-prescription",
|
| 1161 |
+
"meta": {
|
| 1162 |
+
"profile": [
|
| 1163 |
+
"http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"
|
| 1164 |
+
]
|
| 1165 |
+
},
|
| 1166 |
+
"status": "active",
|
| 1167 |
+
"intent": "order",
|
| 1168 |
+
"subject": {
|
| 1169 |
+
"reference": "Patient/mom",
|
| 1170 |
+
"display": "Eve Everywoman"
|
| 1171 |
+
},
|
| 1172 |
+
"encounter": {
|
| 1173 |
+
"reference": "Encounter/mom-first-contact"
|
| 1174 |
+
},
|
| 1175 |
+
"authoredOn": "2019-05-24",
|
| 1176 |
+
"requester": {
|
| 1177 |
+
"reference": "Practitioner/midwife",
|
| 1178 |
+
"display": "Mabel Midwife"
|
| 1179 |
+
},
|
| 1180 |
+
"reasonCode": [
|
| 1181 |
+
{
|
| 1182 |
+
"coding": [
|
| 1183 |
+
{
|
| 1184 |
+
"system": "http://snomed.info/sct",
|
| 1185 |
+
"code": "271737000",
|
| 1186 |
+
"display": "Anemia (disorder)"
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"system": "http://openmrs.org/concepts",
|
| 1190 |
+
"code": "121629AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
| 1191 |
+
"display": "Anaemia"
|
| 1192 |
+
}
|
| 1193 |
+
]
|
| 1194 |
+
}
|
| 1195 |
+
],
|
| 1196 |
+
"instantiatesCanonical": [
|
| 1197 |
+
"http://fhir.org/guides/who/anc-cds/ActivityDefinition/anc-daily-elemental-iron"
|
| 1198 |
+
],
|
| 1199 |
+
"dosageInstruction": [
|
| 1200 |
+
{
|
| 1201 |
+
"text": "120mg daily",
|
| 1202 |
+
"timing": {
|
| 1203 |
+
"repeat": {
|
| 1204 |
+
"frequency": 1,
|
| 1205 |
+
"period": 1,
|
| 1206 |
+
"periodUnit": "d"
|
| 1207 |
+
}
|
| 1208 |
+
},
|
| 1209 |
+
"route": {
|
| 1210 |
+
"coding": [
|
| 1211 |
+
{
|
| 1212 |
+
"code": "26643006",
|
| 1213 |
+
"display": "Oral route (qualifier value)"
|
| 1214 |
+
}
|
| 1215 |
+
],
|
| 1216 |
+
"text": "Oral route (qualifier value)"
|
| 1217 |
+
},
|
| 1218 |
+
"doseAndRate": [
|
| 1219 |
+
{
|
| 1220 |
+
"type": {
|
| 1221 |
+
"coding": [
|
| 1222 |
+
{
|
| 1223 |
+
"system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
|
| 1224 |
+
"code": "ordered",
|
| 1225 |
+
"display": "Ordered"
|
| 1226 |
+
}
|
| 1227 |
+
]
|
| 1228 |
+
},
|
| 1229 |
+
"doseQuantity": {
|
| 1230 |
+
"value": 120,
|
| 1231 |
+
"unit": "mg"
|
| 1232 |
+
}
|
| 1233 |
+
}
|
| 1234 |
+
]
|
| 1235 |
+
}
|
| 1236 |
+
]
|
| 1237 |
+
},
|
| 1238 |
+
"request": {
|
| 1239 |
+
"method": "PUT",
|
| 1240 |
+
"url": "MedicationRequest/mom-daily-elemental-iron-prescription"
|
| 1241 |
+
}
|
| 1242 |
+
}
|
| 1243 |
+
]
|
| 1244 |
+
}
|