├── .DS_Store
├── .classpath
├── .gitignore
├── .project
├── README.md
├── careconnect-to-ukcore
├── README.md
├── allergyintolerance
│ ├── expected
│ │ ├── .placeholder
│ │ ├── AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_000.json
│ │ ├── AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_001.json
│ │ ├── AllergyIntoleranceEncounter-associatedEncounter-Extension-3to4_000.json
│ │ └── AllergyIntoleranceEvidence-Extension-3to4_000.json
│ ├── input
│ │ ├── AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_000.json
│ │ ├── AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_001.json
│ │ ├── AllergyIntoleranceEncounter-associatedEncounter-Extension-3to4_000.json
│ │ └── AllergyIntoleranceEvidence-Extension-3to4_000.json
│ └── maps
│ │ ├── AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4.map
│ │ ├── AllergyIntoleranceEncounter-associatedEncounter-Extension-3to4.map
│ │ └── AllergyIntoleranceEvidence-Extension-3to4.map
├── medicationrequest
│ ├── expected
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_000.json
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_001.json
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_002.json
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_003.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_001.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_002.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_003.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_004.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_005.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_006.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_007.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_008.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_009.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_010.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_011.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_012.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_013.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_014.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_015.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_016.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_017.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_018.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_019.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_020.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_021.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_022.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_023.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_024.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_025.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_026.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_027.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_028.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_029.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_030.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_031.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_032.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_033.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_034.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_035.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_036.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_037.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_038.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_039.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_040.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_041.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_042.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_043.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_000.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_001.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_002.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_003.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_004.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_005.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_006.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_007.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_008.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_009.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_010.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_011.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_012.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_013.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_014.json
│ │ └── MedicationRequestStatusReason-Extension-3to4_015.json
│ ├── input
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_000.json
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_001.json
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_002.json
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4_003.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_001.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_002.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_003.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_004.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_005.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_006.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_007.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_008.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_009.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_010.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_011.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_012.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_013.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_014.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_015.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_016.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_017.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_018.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_019.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_020.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_021.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_022.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_023.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_024.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_025.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_026.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_027.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_028.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_029.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_030.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_031.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_032.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_033.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_034.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_035.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_036.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_037.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_038.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_039.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_040.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_041.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_042.json
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4_043.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_000.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_001.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_002.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_003.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_004.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_005.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_006.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_007.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_008.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_009.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_010.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_011.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_012.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_013.json
│ │ ├── MedicationRequestStatusReason-Extension-3to4_014.json
│ │ └── MedicationRequestStatusReason-Extension-3to4_015.json
│ └── maps
│ │ ├── MedicationRequestPrescriptionType-Extension-3to4.map
│ │ ├── MedicationRequestRepeatInformation-Extension-3to4.map
│ │ └── MedicationRequestStatusReason-Extension-3to4.map
└── medicationstatement
│ ├── expected
│ ├── MedicationStatementLastIssueDate-Extension-3to4_000.json
│ ├── MedicationStatementLastIssueDate-Extension-3to4_001.json
│ ├── MedicationStatementLastIssueDate-Extension-3to4_002.json
│ ├── MedicationStatementLastIssueDate-Extension-3to4_003.json
│ ├── MedicationStatementPrescribingAgency-Extension-3to4_000.json
│ ├── MedicationStatementPrescribingAgency-Extension-3to4_001.json
│ ├── MedicationStatementPrescribingAgency-Extension-3to4_002.json
│ └── MedicationStatementPrescribingAgency-Extension-3to4_003.json
│ ├── input
│ ├── MedicationStatementLastIssueDate-Extension-3to4_000.json
│ ├── MedicationStatementLastIssueDate-Extension-3to4_001.json
│ ├── MedicationStatementLastIssueDate-Extension-3to4_002.json
│ ├── MedicationStatementLastIssueDate-Extension-3to4_003.json
│ ├── MedicationStatementPrescribingAgency-Extension-3to4_000.json
│ ├── MedicationStatementPrescribingAgency-Extension-3to4_001.json
│ ├── MedicationStatementPrescribingAgency-Extension-3to4_002.json
│ └── MedicationStatementPrescribingAgency-Extension-3to4_003.json
│ └── maps
│ ├── MedicationStatementLastIssueDate-Extension-3to4.map
│ └── MedicationStatementPrescribingAgency-Extension-3to4.map
├── condition
├── condition.map
├── source.json
└── test.ahdis.ch.http
├── csv
├── 10320-bundle.xml
├── 10320.csv
├── 10320.json
├── 10320.map
└── readme.md
├── format_xml.sh
├── hciqr
├── hciqr.json
└── tests.http
├── java.md
├── maptutorial
├── step1
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step1.json
│ │ ├── step1.map
│ │ ├── step1.xml
│ │ ├── step1b-6.3.30.xml
│ │ ├── step1b.json
│ │ ├── step1b.map
│ │ └── step1b.xml
│ ├── result
│ │ ├── step1.source1.json
│ │ └── step1.source1.xml
│ ├── source
│ │ ├── source1.json
│ │ └── source1.xml
│ └── test.ahdis.ch.http
├── step10
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tleftinner.json
│ │ ├── structuredefinition-tleftinner.xml
│ │ ├── structuredefinition-tright.json
│ │ ├── structuredefinition-tright.xml
│ │ ├── structuredefinition-trightinner.json
│ │ └── structuredefinition-trightinner.xml
│ ├── map
│ │ ├── step10.json
│ │ ├── step10.map
│ │ └── step10.xml
│ ├── result
│ │ ├── step10.source10.json
│ │ └── step10.source10.xml
│ ├── source
│ │ ├── source10.json
│ │ └── source10.xml
│ └── test.ahdis.ch.http
├── step11
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step11.json
│ │ ├── step11.map
│ │ └── step11.xml
│ ├── result
│ │ ├── step11.source11.json
│ │ └── step11.source11.xml
│ ├── source
│ │ ├── source11.json
│ │ └── source11.xml
│ ├── step11.xml
│ └── test.ahdis.ch.http
├── step12
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step12.json
│ │ ├── step12.map
│ │ └── step12.xml
│ ├── result
│ │ ├── step12.source12.json
│ │ └── step12.source12.xml
│ ├── source
│ │ ├── source12.json
│ │ └── source12.xml
│ └── test.ahdis.ch.http
├── step13
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step13.json
│ │ ├── step13.map
│ │ └── step13.xml
│ ├── result
│ │ ├── step13.source13.json
│ │ └── step13.source13.xml
│ ├── source
│ │ ├── source13.json
│ │ └── source13.xml
│ └── test.ahdis.ch.http
├── step2
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step2.json
│ │ ├── step2.map
│ │ └── step2.xml
│ ├── result
│ │ ├── step2.source2.json
│ │ └── step2.source2.xml
│ ├── source
│ │ ├── source2.json
│ │ └── source2.xml
│ └── test.ahdis.ch.http
├── step3
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step3a.json
│ │ ├── step3a.map
│ │ ├── step3a.xml
│ │ ├── step3b.json
│ │ ├── step3b.map
│ │ ├── step3b.xml
│ │ ├── step3c.json
│ │ ├── step3c.map
│ │ └── step3c.xml
│ ├── result
│ │ ├── step3a.source3.json
│ │ ├── step3a.source3.xml
│ │ ├── step3a.source3min.json
│ │ ├── step3a.source3min.xml
│ │ ├── step3b.source3.json
│ │ ├── step3b.source3.xml
│ │ ├── step3b.source3min.json
│ │ ├── step3b.source3min.xml
│ │ ├── step3c.source3.json
│ │ ├── step3c.source3.xml
│ │ ├── step3c.source3min.json
│ │ └── step3c.source3min.xml
│ ├── source
│ │ ├── source3.json
│ │ ├── source3.xml
│ │ ├── source3min.json
│ │ └── source3min.xml
│ └── test.ahdis.ch.http
├── step4
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step4a.json
│ │ ├── step4a.map
│ │ ├── step4a.xml
│ │ ├── step4b.map
│ │ ├── step4b2.json
│ │ ├── step4b2.map
│ │ ├── step4b2.xml
│ │ ├── step4b3.json
│ │ ├── step4b3.map
│ │ ├── step4b3.xml
│ │ ├── step4c.json
│ │ ├── step4c.map
│ │ └── step4c.xml
│ ├── result
│ │ ├── step4a.source4.json
│ │ ├── step4a.source4.xml
│ │ ├── step4a.source4b.json
│ │ ├── step4a.source4b.xml
│ │ ├── step4b2.source4.json
│ │ ├── step4b2.source4.xml
│ │ ├── step4b2.source4b.json
│ │ ├── step4b2.source4b.xml
│ │ ├── step4b3.source4.json
│ │ ├── step4b3.source4.xml
│ │ ├── step4b3.source4b.json
│ │ ├── step4b3.source4b.xml
│ │ ├── step4c.source4.json
│ │ ├── step4c.source4.xml
│ │ ├── step4c.source4b.json
│ │ └── step4c.source4b.xml
│ ├── source
│ │ ├── source4.json
│ │ ├── source4.xml
│ │ ├── source4b.json
│ │ └── source4b.xml
│ └── test.ahdis.ch.http
├── step5
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step5.json
│ │ ├── step5.map
│ │ └── step5.xml
│ ├── result
│ │ ├── step5.source5.json
│ │ ├── step5.source5.xml
│ │ ├── step5.source5b.json
│ │ └── step5.source5b.xml
│ ├── source
│ │ ├── source5.json
│ │ ├── source5.xml
│ │ ├── source5b.json
│ │ └── source5b.xml
│ └── test.ahdis.ch.http
├── step6
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step6a.json
│ │ ├── step6a.map
│ │ ├── step6a.xml
│ │ ├── step6b.json
│ │ ├── step6b.map
│ │ ├── step6b.xml
│ │ ├── step6c.json
│ │ ├── step6c.map
│ │ ├── step6c.xml
│ │ ├── step6d.json
│ │ ├── step6d.map
│ │ └── step6d.xml
│ ├── result
│ │ ├── step6a.source6.json
│ │ ├── step6a.source6.xml
│ │ ├── step6a.source6b.json
│ │ ├── step6a.source6b.xml
│ │ ├── step6b.source6.json
│ │ ├── step6b.source6.xml
│ │ ├── step6b.source6b.json
│ │ ├── step6b.source6b.xml
│ │ ├── step6c.source6.json
│ │ ├── step6c.source6.xml
│ │ ├── step6c.source6b.json
│ │ ├── step6c.source6b.xml
│ │ ├── step6d.source6.json
│ │ ├── step6d.source6.xml
│ │ ├── step6d.source6b.json
│ │ └── step6d.source6b.xml
│ ├── source
│ │ ├── source6.json
│ │ ├── source6.xml
│ │ ├── source6b.json
│ │ └── source6b.xml
│ └── test.ahdis.ch.http
├── step7
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step7.json
│ │ ├── step7.map
│ │ ├── step7.xml
│ │ ├── step7b.json
│ │ ├── step7b.map
│ │ └── step7b.xml
│ ├── result
│ │ ├── step7.source7.json
│ │ └── step7.source7.xml
│ ├── source
│ │ ├── source7.json
│ │ └── source7.xml
│ └── test.ahdis.ch.http
├── step8
│ ├── java.md
│ ├── logical
│ │ ├── structuredefinition-tleft.json
│ │ ├── structuredefinition-tleft.xml
│ │ ├── structuredefinition-tright.json
│ │ └── structuredefinition-tright.xml
│ ├── map
│ │ ├── step8.json
│ │ ├── step8.map
│ │ └── step8.xml
│ ├── result
│ │ ├── step8.source8.json
│ │ └── step8.source8.xml
│ ├── source
│ │ ├── source8.json
│ │ └── source8.xml
│ └── test.ahdis.ch.http
└── step9
│ ├── java.md
│ ├── logical
│ ├── structuredefinition-tleft.json
│ ├── structuredefinition-tleft.xml
│ ├── structuredefinition-tright.json
│ └── structuredefinition-tright.xml
│ ├── map
│ ├── step9.json
│ ├── step9.map
│ ├── step9.xml
│ ├── step9check.json
│ ├── step9check.map
│ └── step9check.xml
│ ├── result
│ ├── step9.source9.json
│ ├── step9.source9.xml
│ ├── step9.source9b.json
│ ├── step9.source9b.xml
│ ├── step9check.source9.json
│ ├── step9check.source9.xml
│ ├── step9check.source9b.json
│ └── step9check.source9b.xml
│ ├── source
│ ├── source9.json
│ ├── source9.xml
│ ├── source9b.json
│ └── source9b.xml
│ └── test.ahdis.ch.http
├── medicationrequest
├── extension.map
├── source.json
└── test.ahdis.ch.http
├── qrextract
├── extract-demo-smap.map
├── qr.json
└── test.ahdis.ch.http
├── qrtoobservation
├── sdc-questionnaire-response-weighttracking-oberservation.json
├── sdc-questionnaire-response-weighttracking.json
└── sdc-questionnaire-weighttracking.json
├── qrtopat
├── java.md
├── map
│ └── qr2patgender.map
├── output.json
├── qr.json
├── qrext.json
└── test.ahdis.ch.http
├── rum-example
├── StructureDefinition-RssIn.json
├── StructureMap-rum2Claim.map
├── test.ahdis.ch.http
└── testRum.json
├── tests
├── cast.map
├── memberof.map
├── quantity.map
├── stringtocoding.map
├── stringtocodingwithcc.map
└── test.ahdis.ch.http
├── unioncollection
├── logical
│ ├── structuredefinition-tleft.xml
│ └── structuredefinition-tright.xml
├── map
│ └── unioncollection.map
└── source
│ └── source.xml
└── xml
├── logical
├── structuredefinition-tleft.xml
└── structuredefinition-tright.xml
├── map
└── step1.map
├── source
└── source1.xml
└── test.ahdis.ch.http
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahdis/fhir-mapping-tutorial/195aa52ecfe81f2a43d379cdd850e01aac8c2fc7/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 | /validator/
3 | **/target/
4 | **/output.xml
5 | test.txt
6 | validator_cli.jar
7 | qrtopat/validator_cli.jar
8 | maptutorial/step1/validator_cli.jar
9 | .project
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | fhir-mapping-tutorial
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
19 | 1677510970289
20 |
21 | 30
22 |
23 | org.eclipse.core.resources.regexFilterMatcher
24 | node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/expected/.placeholder:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahdis/fhir-mapping-tutorial/195aa52ecfe81f2a43d379cdd850e01aac8c2fc7/careconnect-to-ukcore/allergyintolerance/expected/.placeholder
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/expected/AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "endDate",
8 | "valueDateTime": "2016-11-01T00:00:00+00:00"
9 | },
10 | {
11 | "url": "reasonEnded",
12 | "valueString": "Desensitised to Peanuts"
13 | }
14 | ],
15 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AllergyIntoleranceEnd"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/expected/AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "endDate",
8 | "valueDateTime": "2022-01-15"
9 | },
10 | {
11 | "url": "reasonEnded",
12 | "valueString": "Allergy resolved by prescribed medication"
13 | }
14 | ],
15 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AllergyIntoleranceEnd"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/expected/AllergyIntoleranceEncounter-associatedEncounter-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "encounter": {
4 | "reference": "Encounter/7D179839-BECC-49FB-B58D-97627930D360"
5 | }
6 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/expected/AllergyIntoleranceEvidence-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-Evidence",
6 | "valueReference": {
7 | "reference": "DiagnosticReport/3BF93498-ABCF-4326-B5F4-071EDB142D60"
8 | }
9 | }
10 | ]
11 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/input/AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1",
6 | "extension": [
7 | {
8 | "url": "endDate",
9 | "valueDateTime": "2016-11-01T00:00:00+00:00"
10 | },
11 | {
12 | "url": "reasonEnded",
13 | "valueString": "Desensitised to Peanuts"
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/input/AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1",
6 | "extension": [
7 | {
8 | "url": "endDate",
9 | "valueDateTime": "2022-01-15"
10 | },
11 | {
12 | "url": "reasonEnded",
13 | "valueString": "Allergy resolved by prescribed medication"
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/input/AllergyIntoleranceEncounter-associatedEncounter-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "extension": [
4 | {
5 | "url": "http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter",
6 | "valueReference": {
7 | "reference": "Encounter/7D179839-BECC-49FB-B58D-97627930D360"
8 | }
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/input/AllergyIntoleranceEvidence-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "AllergyIntolerance",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1",
6 | "valueReference": {
7 | "reference": "DiagnosticReport/3BF93498-ABCF-4326-B5F4-071EDB142D60"
8 | }
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/maps/AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4.map:
--------------------------------------------------------------------------------
1 | map "http://fhir.nhs.uk/StructureMap/AllergyIntoleranceAllergyIntoleranceEnd-Extension-3to4" = "R3 to R4 conversion for CareConnect AllergyIntolerance AllergyIntoleranceEnd extension"
2 | uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as source
3 | uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as target
4 |
5 | group AllergyIntolerance(source src : AllergyIntolerance, target tgt : AllergyIntolerance) {
6 | src.extension as ext where $this.url='https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1'
7 | -> tgt.extension = create('Extension') as tgtext, tgtext.url = 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AllergyIntoleranceEnd' then {
8 | ext.extension as vs -> tgtext as vt, vt.extension = vs;
9 | };
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/maps/AllergyIntoleranceEncounter-associatedEncounter-Extension-3to4.map:
--------------------------------------------------------------------------------
1 | map "http://fhir.nhs.uk/StructureMap/AllergyIntoleranceEncounter-associatedEncounter-Extension-3to4" = "R3 to R4 conversion for CareConnect AllergyIntolerance_encounter-associatedEncounter extension"
2 | uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as source
3 | uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as target
4 |
5 | group AllergyIntolerance(source src : AllergyIntolerance, target tgt : AllergyIntolerance) {
6 | src.extension as ext where $this.url='http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter'
7 | -> tgt.encounter as vt then {
8 | ext.value: Reference as vs -> vt as vt1, tgt.encounter = vs;
9 | };
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/allergyintolerance/maps/AllergyIntoleranceEvidence-Extension-3to4.map:
--------------------------------------------------------------------------------
1 | map "http://fhir.nhs.uk/StructureMap/AllergyIntoleranceEvidence-Extension-3to4" = "R3 to R4 conversion for CareConnect AllergyIntolerance Evidence extension"
2 | uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as source
3 | uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as target
4 |
5 | group AllergyIntolerance(source src : AllergyIntolerance, target tgt : AllergyIntolerance) {
6 | src.extension as ext where $this.url='https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1'
7 | -> tgt.extension = create('Extension') as tgtext, tgtext.url = 'https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-Evidence' then {
8 | ext.value: Reference as vs -> tgtext.value = create('Reference') as vt, tgtext.value = vs;
9 | };
10 | }
11 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestPrescriptionType-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "courseOfTherapyType": {
4 | "coding": [
5 | {
6 | "system": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy",
7 | "code": "acute",
8 | "display": "Acute"
9 | }
10 | ]
11 | }
12 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestPrescriptionType-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "courseOfTherapyType": {
4 | "coding": [
5 | {
6 | "system": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy",
7 | "code": "delayed-prescribing",
8 | "display": "Delayed prescribing"
9 | }
10 | ]
11 | }
12 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestPrescriptionType-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "courseOfTherapyType": {
4 | "coding": [
5 | {
6 | "system": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy",
7 | "code": "repeat",
8 | "display": "Repeat"
9 | }
10 | ]
11 | }
12 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestPrescriptionType-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "courseOfTherapyType": {
4 | "coding": [
5 | {
6 | "system": "http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy",
7 | "code": "repeat-dispensing",
8 | "display": "Repeat dispensing"
9 | }
10 | ]
11 | }
12 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-08-10"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 6
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-08-25"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 6
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 6
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-07-28"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 6
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_004.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 6
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-08-25"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 6
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_005.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-08-10"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 7
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_006.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 7
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-08-10"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 7
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_007.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-11-01"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 12
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_008.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 12
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_009.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 1
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_010.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 2
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_011.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 2
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_012.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 2
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_013.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 3
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_014.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 3
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_015.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 3
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 3
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_016.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 4
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_017.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 4
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_018.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 5
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_019.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 5
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_020.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 6
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_021.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 6
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_022.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 6
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 6
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_023.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 7
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_024.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 7
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 7
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_025.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 9
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_026.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 10
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_027.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 11
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_028.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 12
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_029.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 12
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_030.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 12
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_031.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 3
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 12
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_032.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 50
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_033.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 0
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_034.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_035.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2019-12-31"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_036.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_037.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-07-28"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_038.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 4
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_039.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 5
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_040.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 6
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_041.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 10
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_042.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 2
9 | }
10 | ],
11 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
12 | }
13 | ],
14 | "dispenseRequest": {
15 | "numberOfRepeatsAllowed": 2
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestRepeatInformation-Extension-3to4_043.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "numberOfRepeatPrescriptionsIssued",
8 | "valueUnsignedInt": 1
9 | },
10 | {
11 | "url": "authorisationExpiryDate",
12 | "valueDateTime": "2020-08-10"
13 | }
14 | ],
15 | "url": "https://fhir.nhs.uk/StructureDefinition/Extension-UKCore-MedicationRepeatInformation"
16 | }
17 | ],
18 | "dispenseRequest": {
19 | "numberOfRepeatsAllowed": 6
20 | }
21 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "statusReason": {
4 | "coding": [
5 | {
6 | "system": "https://fhir.hl7.org.uk/Id/egton-codes",
7 | "code": "ALLERGY1364",
8 | "display": "Adverse reaction to Prednisolone",
9 | "userSelected": true
10 | },
11 | {
12 | "extension": [
13 | {
14 | "extension": [
15 | {
16 | "url": "descriptionId",
17 | "valueId": "1030121000006113"
18 | },
19 | {
20 | "url": "descriptionDisplay",
21 | "valueString": "Adverse reaction to Prednisolone"
22 | }
23 | ],
24 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CodingSCTDescId"
25 | }
26 | ],
27 | "system": "http://snomed.info/sct",
28 | "code": "1030121000006109",
29 | "display": "Adverse reaction to Prednisolone"
30 | }
31 | ],
32 | "text": "Adverse reaction to Prednisolone (Fat, John said)"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "statusReason": {
4 | "coding": [
5 | {
6 | "system": "https://fhir.hl7.org.uk/Id/egton-codes",
7 | "code": "ALLERGY4",
8 | "display": "Adverse reaction to Central Nervous System Drugs",
9 | "userSelected": true
10 | },
11 | {
12 | "extension": [
13 | {
14 | "extension": [
15 | {
16 | "url": "descriptionId",
17 | "valueId": "1012851000006115"
18 | },
19 | {
20 | "url": "descriptionDisplay",
21 | "valueString": "Adverse reaction to Central Nervous System Drugs"
22 | }
23 | ],
24 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CodingSCTDescId"
25 | }
26 | ],
27 | "system": "http://snomed.info/sct",
28 | "code": "1012851000006104",
29 | "display": "Adverse reaction to Central Nervous System Drugs"
30 | }
31 | ],
32 | "text": "Adverse reaction to Central Nervous System Drugs (allergy)"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-08-09T14:27:43.233+01:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Alergy"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2011-01-20T14:38:23.933+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "some reason"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_004.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-10-01T12:08:19.107+01:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Change to Medication Treatment Regime"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_005.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-01-18T14:33:16.397+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Clinical Contra-indication"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_006.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-08-17T00:00:00+01:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Clinical Grounds"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_007.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2011-11-15T15:02:50.72+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "End course for acute post G -> T switch for 22047"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_008.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2020-02-10"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Patient Preference (Switch back to Atorvastatin)"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_009.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2020-03-02T15:52:15.397+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Patient Preference - Switch back to Atorvastatin"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_010.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-01-15T09:58:37.497+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Patient no longer requires these"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_011.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-01-14T10:38:27.007+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Prescribing Error"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_012.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-02-10T13:15:26.913+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "zzzzzss"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_013.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2020-05-19"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Re-Authorised"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_014.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2011-11-15T14:52:00.197+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "Recreate 22047"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/expected/MedicationRequestStatusReason-Extension-3to4_015.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "extension": [
6 | {
7 | "url": "statusChangeDate",
8 | "valueDateTime": "2010-03-23T16:41:06.69+00:00"
9 | }
10 | ],
11 | "url": "http://fhir.nhs.uk/fhir/3.0/StructureDefinition/extension-statusChangeDate"
12 | }
13 | ],
14 | "statusReason": {
15 | "text": "kjhkjkjhjkjkj"
16 | }
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestPrescriptionType-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescriptionType-1","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescriptionType-1","code":"acute","display":"Acute"}]}}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestPrescriptionType-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescriptionType-1","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescriptionType-1","code":"delayed-prescribing","display":"Delayed prescribing"}]}}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestPrescriptionType-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescriptionType-1","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescriptionType-1","code":"repeat","display":"Repeat"}]}}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestPrescriptionType-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationRequest","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescriptionType-1","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescriptionType-1","code":"repeat-dispensing","display":"Repeat dispensing"}]}}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-08-10"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-08-25"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 6
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-07-28"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_004.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 6
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-08-25"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_005.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 7
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 2
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-08-10"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_006.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 7
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 7
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-08-10"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_007.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 12
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-11-01"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_008.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 12
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_009.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 1
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_010.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 2
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_011.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 2
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_012.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 2
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 2
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_013.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 3
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_014.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 3
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 2
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_015.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 3
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 3
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_016.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 4
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_017.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 4
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_018.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 5
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_019.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 5
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_020.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_021.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_022.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 6
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_023.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 7
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 2
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_024.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 7
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 7
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_025.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 9
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_026.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 10
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_027.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 11
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_028.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 12
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 0
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_029.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 12
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_030.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 12
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 2
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_031.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 12
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 3
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_032.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valueUnsignedInt": 50
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 2
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_033.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 0
10 | }
11 | ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_034.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 1
10 | }
11 | ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_035.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 1
10 | },
11 | {
12 | "url": "authorisationExpiryDate",
13 | "valueDateTime": "2019-12-31"
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_036.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 2
10 | }
11 | ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_037.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 2
10 | },
11 | {
12 | "url": "authorisationExpiryDate",
13 | "valueDateTime": "2020-07-28"
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_038.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 4
10 | }
11 | ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_039.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 5
10 | }
11 | ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_040.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 6
10 | }
11 | ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_041.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsIssued",
9 | "valueUnsignedInt": 10
10 | }
11 | ]
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_042.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 2
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 2
14 | }
15 | ]
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestRepeatInformation-Extension-3to4_043.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationRepeatInformation-1",
6 | "extension": [
7 | {
8 | "url": "numberOfRepeatPrescriptionsAllowed",
9 | "valuePositiveInt": 6
10 | },
11 | {
12 | "url": "numberOfRepeatPrescriptionsIssued",
13 | "valueUnsignedInt": 1
14 | },
15 | {
16 | "url": "authorisationExpiryDate",
17 | "valueDateTime": "2020-08-10"
18 | }
19 | ]
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Alergy"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-08-09T14:27:43.233+01:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "some reason"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2011-01-20T14:38:23.933+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_004.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Change to Medication Treatment Regime"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-10-01T12:08:19.107+01:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_005.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Clinical Contra-indication"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-01-18T14:33:16.397+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_006.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Clinical Grounds"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-08-17T00:00:00+01:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_007.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "End course for acute post G -> T switch for 22047"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2011-11-15T15:02:50.72+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_008.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Patient Preference (Switch back to Atorvastatin)"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2020-02-10"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_009.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Patient Preference - Switch back to Atorvastatin"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2020-03-02T15:52:15.397+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_010.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Patient no longer requires these"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-01-15T09:58:37.497+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_011.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Prescribing Error"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-01-14T10:38:27.007+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_012.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "zzzzzss"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-02-10T13:15:26.913+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_013.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Re-Authorised"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2020-05-19"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_014.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "Recreate 22047"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2011-11-15T14:52:00.197+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationrequest/input/MedicationRequestStatusReason-Extension-3to4_015.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
6 | "extension": [
7 | {
8 | "url": "statusReason",
9 | "valueCodeableConcept": {
10 | "text": "kjhkjkjhjkjkj"
11 | }
12 | },
13 | {
14 | "url": "statusChangeDate",
15 | "valueDateTime": "2010-03-23T16:41:06.69+00:00"
16 | }
17 | ]
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementLastIssueDate-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationStatementLastIssueDate",
6 | "valueDateTime": "2006-09-06"
7 | }
8 | ]
9 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementLastIssueDate-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationStatementLastIssueDate",
6 | "valueDateTime": "2010-01-14T00:00:00+00:00"
7 | }
8 | ]
9 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementLastIssueDate-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationStatementLastIssueDate",
6 | "valueDateTime": "2010-10-01T00:00:00+01:00"
7 | }
8 | ]
9 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementLastIssueDate-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationStatementLastIssueDate",
6 | "valueDateTime": "2020-01-24"
7 | }
8 | ]
9 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementPrescribingAgency-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationPrescribingOrganization",
6 | "valueCodeableConcept": {
7 | "coding": [
8 | {
9 | "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-MedicationPrescribingOrganization",
10 | "code": "prescribed-at-gp-practice",
11 | "display": "Prescribed at GP practice"
12 | }
13 | ]
14 | }
15 | }
16 | ]
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementPrescribingAgency-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationPrescribingOrganization",
6 | "valueCodeableConcept": {
7 | "coding": [
8 | {
9 | "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-MedicationPrescribingOrganization",
10 | "code": "prescribed-by-another-organisation",
11 | "display": "Prescribed by another organisation"
12 | }
13 | ]
14 | }
15 | }
16 | ]
17 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementPrescribingAgency-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationPrescribingOrganization",
6 | "valueCodeableConcept": {
7 | "coding": [
8 | {
9 | "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-MedicationPrescribingOrganization",
10 | "code": "prescribed-by-another-organisation",
11 | "display": "Prescribed by another organisation"
12 | }
13 | ],
14 | "text": "Hospital"
15 | }
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/expected/MedicationStatementPrescribingAgency-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": [
4 | {
5 | "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationPrescribingOrganization",
6 | "valueCodeableConcept": {
7 | "coding": [
8 | {
9 | "code": "prescribed-at-gp-practice",
10 | "display": "Prescribed at GP practice"
11 | }
12 | ]
13 | }
14 | }
15 | ]
16 | }
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementLastIssueDate-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationStatement","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatementLastIssueDate-1","valueDateTime":"2006-09-06"}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementLastIssueDate-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationStatement","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatementLastIssueDate-1","valueDateTime":"2010-01-14T00:00:00+00:00"}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementLastIssueDate-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationStatement","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatementLastIssueDate-1","valueDateTime":"2010-10-01T00:00:00+01:00"}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementLastIssueDate-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationStatement","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatementLastIssueDate-1","valueDateTime":"2020-01-24"}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementPrescribingAgency-Extension-3to4_000.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationStatement","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescribingAgency-1","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescribingAgency-1","code":"prescribed-at-gp-practice","display":"Prescribed at GP practice"}]}}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementPrescribingAgency-Extension-3to4_001.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationStatement","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescribingAgency-1","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescribingAgency-1","code":"prescribed-by-another-organisation","display":"Prescribed by another organisation"}]}}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementPrescribingAgency-Extension-3to4_002.json:
--------------------------------------------------------------------------------
1 | {"resourceType":"MedicationStatement","extension":[{"url":"https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescribingAgency-1","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescribingAgency-1","code":"prescribed-by-another-organisation","display":"Prescribed by another organisation"}],"text":"Hospital"}}]}
2 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/input/MedicationStatementPrescribingAgency-Extension-3to4_003.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationStatement",
3 | "extension": {
4 | "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationPrescribingAgency-1",
5 | "valueCodeableConcept": {
6 | "coding": {
7 | "code": "prescribed-at-gp-practice",
8 | "display": "Prescribed at GP practice"
9 | }
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/careconnect-to-ukcore/medicationstatement/maps/MedicationStatementLastIssueDate-Extension-3to4.map:
--------------------------------------------------------------------------------
1 | map "http://fhir.nhs.uk/StructureMap/MedicationStatementLastIssueDate-Extension-3to4" = "R3 to R4 conversion for CareConnect MedicationStatementLastIssueDate extension"
2 | uses "http://hl7.org/fhir/StructureDefinition/MedicationStatement" alias MedicationStatement as source
3 | uses "http://hl7.org/fhir/StructureDefinition/MedicationStatement" alias MedicationStatement as target
4 |
5 | group MedicationStatement(source src : MedicationStatement, target tgt : MedicationStatement) {
6 | src.extension as ext where $this.url='https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationStatementLastIssueDate-1' or
7 | $this.url='https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatementLastIssueDate-1'
8 | -> tgt.extension as tgtext, tgtext.url='https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-MedicationStatementLastIssueDate' then {
9 | ext.value: dateTime as vs -> tgtext.value = create('dateTime') as vt, vt.value = vs;
10 | };
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/condition/test.ahdis.ch.http:
--------------------------------------------------------------------------------
1 | @host = https://test.ahdis.ch
2 | ### @host = http://localhost:8080
3 |
4 |
5 | ### Post the StructureMap with transform included
6 | POST {{host}}/matchbox/fhir/StructureMap HTTP/1.1
7 | Accept: application/fhir+xml
8 | Content-Type: text/fhir-mapping
9 |
10 | < ./condition.map
11 |
12 | ### FHIR Tutorial do the transform
13 | POST {{host}}/matchbox/fhir/StructureMap/$transform?source=http://example.org/fhir/CDS-Condition_to_IPS-ProblemList
14 | Accept: application/fhir+json
15 | Content-Type: application/fhir+json
16 |
17 | < ./source.json
18 |
19 |
--------------------------------------------------------------------------------
/format_xml.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Directory to search (maptutorial)
4 | base_directory="maptutorial"
5 |
6 | # Find and format all XML files
7 | find "$base_directory" -type f -name "*.xml" | while read -r file; do
8 | echo "Formatting $file"
9 | xmllint --format "$file" --output "$file"
10 | done
11 |
12 | echo "All XML files have been formatted."
13 |
--------------------------------------------------------------------------------
/hciqr/tests.http:
--------------------------------------------------------------------------------
1 | POST https://test.ahdis.ch/matchbox/fhir/StructureMap/$transform?source=http://hcisolutions.ch/ig/ig-hci-vacd/StructureMap/HciCdsQrToCdsRequest
2 | Content-Type: application/fhir+json
3 | Accept: application/fhir+json
4 |
5 | < hciqr.json
--------------------------------------------------------------------------------
/maptutorial/step1/java.md:
--------------------------------------------------------------------------------
1 | ## [step1](http://hl7.org/fhir/mapping-tutorial.html#step1)
2 |
3 | The mapping infrastructure runs internally on r5, meaning that you have to specify the version 5.0.0 that the right "StructureMapUtilities" are used. However note, that this will also generate then a R5 StructureMapResource:
4 |
5 | ```
6 | java -jar ../../validator_cli.jar -ig logical -ig map/step1.map -compile http://hl7.org/fhir/StructureMap/tutorial-step1 -version 5.0.0 -output map/step1.xml
7 | ```
8 |
9 | afterwards you can run the transform with
10 |
11 | ```
12 | java -jar ../../validator_cli.jar ./source/source1.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step1 -version 5.0.0 -ig ./logical -ig ./map -output ./output.xml
13 | ```
14 |
15 | TLeft --> TRight
16 |
17 | ```xml
18 |
20 |
21 |
22 | ```
--------------------------------------------------------------------------------
/maptutorial/step1/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-1",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "definition": "TLeft definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TLeft.a",
30 | "path": "TLeft.a",
31 | "definition": "TLeft definition",
32 | "min": 1,
33 | "max": "1",
34 | "type": [
35 | {
36 | "code": "string"
37 | }
38 | ]
39 | }
40 | ]
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/maptutorial/step1/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/maptutorial/step1/logical/structuredefinition-tright.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRight",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-right-1",
11 | "name": "TRight",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRight",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRight",
23 | "path": "TRight",
24 | "definition": "TRight definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TRight.a",
30 | "path": "TRight.a",
31 | "definition": "TRight definition",
32 | "min": 1,
33 | "max": "1",
34 | "type": [
35 | {
36 | "code": "string"
37 | }
38 | ]
39 | }
40 | ]
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/maptutorial/step1/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/maptutorial/step1/map/step1.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step1'
2 | /// name = 'tutorial-step1'
3 | /// title = 'Tutorial Step 1'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-1" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-1" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a as a -> tgt.a = a "rule_a";
10 | }
--------------------------------------------------------------------------------
/maptutorial/step1/map/step1b.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step1b'
2 | /// name = 'tutorial-step1b'
3 | /// title = 'Tutorial Step 1b'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-1" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-1" alias TRight as target
7 |
8 | // uses "http://hl7.org/fhir/StructureDefinition/string" alias string as source
9 | // uses "http://hl7.org/fhir/StructureDefinition/string" alias string as target
10 |
11 | group tutorial(source src : TLeft, target tgt : TRight) <> {
12 | src.a -> tgt.a "rule_a_short";
13 | }
14 |
15 | group string(source src : string, target tgt : string) <> {
16 | src.value as v -> tgt.value = v "stringValue";
17 | }
--------------------------------------------------------------------------------
/maptutorial/step1/result/step1.source1.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a": "step1-demo"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step1/result/step1.source1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step1/source/source1.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a": "step1-demo"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step1/source/source1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step10/java.md:
--------------------------------------------------------------------------------
1 | ## [step10](http://hl10.org/fhir/mapping-tutorial.html#step10)
2 |
3 | ```bash
4 | java -jar ../../validator_cli.jar -ig logical -ig map/step10.map -compile http://hl7.org/fhir/StructureMap/tutorial-step10 -version 5.0.0 -output map/step10.xml
5 | java -jar ../../validator_cli.jar ./source/source10.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step10 -version 5.0.0 -ig ./logical -ig ./map/step10.xml -output ./output.xml
6 | ```
7 |
8 | gives:
9 |
10 | ```xml
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | ```
20 |
--------------------------------------------------------------------------------
/maptutorial/step10/logical/structuredefinition-tleftinner.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeftInner",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-leftinner-10",
11 | "name": "TLeftInner",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeftInner",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeftInner",
23 | "path": "TLeftInner",
24 | "definition": "TLeftInner definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TLeftInner.ab",
30 | "path": "TLeftInner.ab",
31 | "min": 1,
32 | "max": "1",
33 | "type": [
34 | {
35 | "code": "string"
36 | }
37 | ]
38 | }
39 | ]
40 | }
41 | }
--------------------------------------------------------------------------------
/maptutorial/step10/logical/structuredefinition-tleftinner.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/maptutorial/step10/logical/structuredefinition-trightinner.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRightInner",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-rightinner-10",
11 | "name": "TRightInner",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRightInner",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRightInner",
23 | "path": "TRightInner",
24 | "definition": "TRightInner definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TRightInner.ab",
30 | "path": "TRightInner.ab",
31 | "min": 1,
32 | "max": "1",
33 | "type": [
34 | {
35 | "code": "string"
36 | }
37 | ]
38 | }
39 | ]
40 | }
41 | }
--------------------------------------------------------------------------------
/maptutorial/step10/logical/structuredefinition-trightinner.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/maptutorial/step10/map/step10.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step10" = "tutorial-step10"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-10" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-leftinner-10" alias TLeftInner as source
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-10" alias TRight as target
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-rightinner-10" alias TRightInner as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.aa as a -> tgt.aa = a;
10 | }
11 |
12 | group ab_content(source src : TLeftInner, target tgt : TRightInner) <> {
13 | src.ab as b -> tgt.ab = b;
14 | }
--------------------------------------------------------------------------------
/maptutorial/step10/result/step10.source10.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "aa": [
4 | {
5 | "ab": "test"
6 | },
7 | {
8 | "ab": "test2"
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/maptutorial/step10/result/step10.source10.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/maptutorial/step10/source/source10.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "aa": [
4 | {
5 | "ab": "test"
6 | },
7 | {
8 | "ab": "test2"
9 | }
10 | ]
11 | }
--------------------------------------------------------------------------------
/maptutorial/step10/source/source10.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/maptutorial/step11/map/step11.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step11" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-11" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-11" alias TRight as target
5 |
6 | group tutorial(source src : TLeft, target tgt : TRight) {
7 |
8 | src.e as s_e -> tgt.e as t_e then {
9 | s_e -> t_e.f = s_e, t_e.g = 'g1' "rule_se_teg";
10 | } "rule_se";
11 |
12 | src.f as s_f -> tgt.e as t_e first then {
13 | s_f -> t_e.f = s_f, t_e.g = 'g2' "rule_sf_teg";
14 | } "rule_sf";
15 | }
16 |
--------------------------------------------------------------------------------
/maptutorial/step11/result/step11.source11.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "e": [
4 | {
5 | "f": "12345",
6 | "g": "g1"
7 | },
8 | {
9 | "f": "67890",
10 | "g": "g2"
11 | }
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/maptutorial/step11/result/step11.source11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/maptutorial/step11/source/source11.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "e": [ "12345" ],
4 | "f": "67890"
5 | }
--------------------------------------------------------------------------------
/maptutorial/step11/source/source11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/maptutorial/step12/map/step12.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step12" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-12" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-12" alias TRight as target
5 |
6 | group tutorial(source src : TLeft, target tgt : TRight) {
7 |
8 | // setting up a variable for the parent
9 | src.az1 as s_az1 then {
10 |
11 | // one tgt.az1 for each az3
12 | s_az1.az3 as s_az3 -> tgt.az1 as t_az1 then {
13 | // value for az2. Note that this refers to a previous context in the source
14 | s_az1.az2 as az2 -> t_az1.az2 = az2 "rule_az2";
15 |
16 | // value for az3
17 | s_az3 -> t_az1.az3 = s_az3 "rule_az3";
18 | } "rule_taz1";
19 | } "rule_saz1";
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/maptutorial/step12/result/step12.source12.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "az1": [
4 | {
5 | "az2": "FHIR",
6 | "az3": "Fast"
7 | },
8 | {
9 | "az2": "FHIR",
10 | "az3": "Resource"
11 | }
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/maptutorial/step12/result/step12.source12.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/maptutorial/step12/source/source12.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "az1": {
4 | "az2": "FHIR",
5 | "az3": [
6 | "Fast",
7 | "Resource"
8 | ]
9 | }
10 | }
--------------------------------------------------------------------------------
/maptutorial/step12/source/source12.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/maptutorial/step13/java.md:
--------------------------------------------------------------------------------
1 | ## [step13](http://hl7.org/fhir/mapping-tutorial.html#step13)
2 |
3 | The mapping infrastructure runs internally on r5, meaning that you have to specify the version 5.0.0 that the right "StructureMapUtilities" are used. However note, that this will also generate then a R5 StructureMapResource:
4 |
5 | ```
6 | java -jar ../../validator_cli.jar -ig logical -ig map/step13.map -compile http://hl7.org/fhir/StructureMap/tutorial-step13 -version 5.0.0 -output map/step13.xml
7 | ```
8 |
9 | afterwards you can run the transform with
10 |
11 | ```
12 | java -jar ../../validator_cli.jar ./source/source13.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step13 -version 5.0.0 -ig ./logical -ig ./map -output ./output.xml
13 | ```
14 |
15 | TLeft --> TRight
16 |
17 | ```xml
18 |
20 |
21 |
22 | ```
--------------------------------------------------------------------------------
/maptutorial/step13/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-13",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "definition": "TLeft definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TLeft.f1",
30 | "path": "TLeft.f1",
31 | "definition": "TLeft definition",
32 | "min": 0,
33 | "max": "*",
34 | "type": [
35 | {
36 | "code": "string"
37 | }
38 | ]
39 | }
40 | ]
41 | }
42 | }
--------------------------------------------------------------------------------
/maptutorial/step13/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/maptutorial/step13/map/step13.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step13" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-13" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-13" alias TRight as target
5 | uses "http://hl7.org/fhir/StructureDefinition/Basic" alias Basic as target
6 |
7 | group tutorial(source src : TLeft, target tgt : TRight) {
8 | // setting id to one is not necessary, this is just to compare the output
9 | src.f1 as s_f1 -> tgt.f2 = create("Basic") as rr, rr.id = "1", tgt.ptr = reference(rr) then {
10 | s_f1 -> rr.code as code, code.text = s_f1 "rule_s_f1";
11 | } "rule_ptr";
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/maptutorial/step13/result/step13.source13.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "ptr": [
4 | "Basic/1"
5 | ],
6 | "f2": [
7 | {
8 | "resourceType": "Basic",
9 | "id": "1",
10 | "code": {
11 | "text": "test"
12 | }
13 | }
14 | ]
15 | }
--------------------------------------------------------------------------------
/maptutorial/step13/result/step13.source13.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/maptutorial/step13/source/source13.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "f1": [
4 | "test"
5 | ]
6 | }
--------------------------------------------------------------------------------
/maptutorial/step13/source/source13.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step2/java.md:
--------------------------------------------------------------------------------
1 | ## [step2](http://hl7.org/fhir/mapping-tutorial.html#step2)
2 |
3 | The mapping infrastructure runs internally on r5, meaning that you have to specify the version 5.0.0 that the right "StructureMapUtilities" are used. However note, that this will also generate then a R5 StructureMapResource:
4 |
5 | ```
6 | java -jar ../../validator_cli.jar -ig logical -ig map/step2.map -compile http://hl7.org/fhir/StructureMap/tutorial-step2 -version 5.0.0 -output map/step2.xml
7 | ```
8 |
9 | afterwards you can run the transform with
10 |
11 | ```
12 | java -jar ../../validator_cli.jar ./source/source2.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step2 -version 5.0.0 -ig ./logical -ig ./map -output ./output.xml
13 | ```
14 |
15 |
16 | TLeft --> TRight
17 |
18 | ```xml
19 |
21 |
22 |
23 | ```
24 |
--------------------------------------------------------------------------------
/maptutorial/step2/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-2",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "definition": "TLeft definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TLeft.a1",
30 | "path": "TLeft.a1",
31 | "definition": "TLeft definition",
32 | "min": 1,
33 | "max": "1",
34 | "type": [
35 | {
36 | "code": "string"
37 | }
38 | ]
39 | }
40 | ]
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/maptutorial/step2/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/maptutorial/step2/logical/structuredefinition-tright.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRight",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-right-2",
11 | "name": "TRight",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRight",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRight",
23 | "path": "TRight",
24 | "definition": "TRight definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TRight.a2",
30 | "path": "TRight.a2",
31 | "definition": "TRight definition",
32 | "min": 1,
33 | "max": "1",
34 | "type": [
35 | {
36 | "code": "string"
37 | }
38 | ]
39 | }
40 | ]
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/maptutorial/step2/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/maptutorial/step2/map/step2.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step2'
2 | /// name = 'tutorial-step2'
3 | /// title = 'Tutorial Step 2'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-2" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-2" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a1 as a -> tgt.a2 = a "rule_a";
10 | }
11 |
--------------------------------------------------------------------------------
/maptutorial/step2/result/step2.source2.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a2": "test"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step2/result/step2.source2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step2/source/source2.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a1": "test"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step2/source/source2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-3",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "min": 1,
25 | "max": "1"
26 | },
27 | {
28 | "id": "TLeft.a2",
29 | "path": "TLeft.a2",
30 | "min": 1,
31 | "max": "1",
32 | "type": [
33 | {
34 | "code": "string"
35 | }
36 | ]
37 | }
38 | ]
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/maptutorial/step3/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/maptutorial/step3/logical/structuredefinition-tright.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRight",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-right-3",
11 | "name": "TRight",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRight",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRight",
23 | "path": "TRight",
24 | "min": 1,
25 | "max": "1"
26 | },
27 | {
28 | "id": "TRight.a2",
29 | "path": "TRight.a2",
30 | "min": 1,
31 | "max": "1",
32 | "type": [
33 | {
34 | "code": "string"
35 | }
36 | ]
37 | }
38 | ]
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/maptutorial/step3/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/maptutorial/step3/map/step3a.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step3a'
2 | /// name = 'tutorial-step3a'
3 | /// title = 'Tutorial Step 3s'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-3" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-3" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a2 as a -> tgt.a2 = truncate(a, 20) "rule_a20a";
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/maptutorial/step3/map/step3b.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step3b'
2 | /// name = 'tutorial-step3b'
3 | /// title = 'Tutorial Step 3b'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-3" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-3" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | // src.a2 as a where a2.length <= 20 -> tgt.a2 = a "rule_a20b"; see https://github.com/hapifhir/org.hl7.fhir.core/issues/1748
10 | src.a2 as a where (a.length() <= 20) -> tgt.a2 = a "rule_a20b";
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/maptutorial/step3/map/step3c.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step3c'
2 | /// name = 'tutorial-step3c'
3 | /// title = 'Tutorial Step 3c'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-3" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-3" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | // src.a2 as a check a2.length <= 20 -> tgt.a2 = a "rule_a20c"; see https://github.com/hapifhir/org.hl7.fhir.core/issues/1748
10 | src.a2 as a check (a.length() <= 20) -> tgt.a2 = a "rule_a20c";
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3a.source3.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a2": "01234567890123456789"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3a.source3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3a.source3min.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a2": "0123456789"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3a.source3min.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3b.source3.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight"
3 | }
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3b.source3.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3b.source3min.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a2": "0123456789"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3b.source3min.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3c.source3.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "OperationOutcome",
3 | "issue": [
4 | {
5 | "severity": "error",
6 | "code": "processing",
7 | "diagnostics": "Rule 'rule_a20c', Check condition failed, a2.length() <= 20"
8 | }
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3c.source3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3c.source3min.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a2": "0123456789"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/result/step3c.source3min.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/source/source3.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a2": "012345678901234567890012345678901234567890012345678901234567890"
4 | }
--------------------------------------------------------------------------------
/maptutorial/step3/source/source3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step3/source/source3min.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a2": "0123456789"
4 | }
--------------------------------------------------------------------------------
/maptutorial/step3/source/source3min.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step4/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-4",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "min": 1,
25 | "max": "1"
26 | },
27 | {
28 | "id": "TLeft.a21",
29 | "path": "TLeft.a21",
30 | "min": 1,
31 | "max": "1",
32 | "type": [
33 | {
34 | "code": "string"
35 | }
36 | ]
37 | }
38 | ]
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/maptutorial/step4/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/maptutorial/step4/logical/structuredefinition-tright.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRight",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-right-4",
11 | "name": "TRight",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRight",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRight",
23 | "path": "TRight",
24 | "min": 1,
25 | "max": "1"
26 | },
27 | {
28 | "id": "TRight.a21",
29 | "path": "TRight.a21",
30 | "min": 1,
31 | "max": "1",
32 | "type": [
33 | {
34 | "code": "integer"
35 | }
36 | ]
37 | }
38 | ]
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/maptutorial/step4/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/maptutorial/step4/map/step4a.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step4a'
2 | /// name = 'tutorial-step4a'
3 | /// title = 'Tutorial Step 4a'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-4" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-4" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a21 as a -> tgt.a21 = cast(a, "integer") "rule_a21a";
10 | }
--------------------------------------------------------------------------------
/maptutorial/step4/map/step4b.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step4b'
2 | /// name = 'tutorial-step4b'
3 | /// title = 'Tutorial Step 4b'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-4" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-4" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | // note: this will not work, is not a isInteger is not a FHIRPath function
10 | src.a21 as a where a.isInteger() -> tgt.a21 = a "rule_a21b";
11 | }
--------------------------------------------------------------------------------
/maptutorial/step4/map/step4b2.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step4b2'
2 | /// name = 'tutorial-step4b2'
3 | /// title = 'Tutorial Step 4b2'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-4" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-4" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a21 as a where a.matches('[0-9]+') -> tgt.a21 = a "rule_a21b";
10 | }
--------------------------------------------------------------------------------
/maptutorial/step4/map/step4b3.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step4b3'
2 | /// name = 'tutorial-step4b3'
3 | /// title = 'Tutorial Step 4b3'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-4" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-4" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a21 as a where a.matches('\\d+') -> tgt.a21 = a "rule_a21b";
10 | }
11 |
--------------------------------------------------------------------------------
/maptutorial/step4/map/step4c.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step4c'
2 | /// name = 'tutorial-step4c'
3 | /// title = 'Tutorial Step 4c'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-4" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-4" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a21 as a where a.matches('[0-9]+') -> tgt.a21 = cast(a, 'integer') "rule_a21b";
10 | src.a21 as a where a.matches('[0-9]+').not() -> tgt.a21 = 0 "rule_a21c";
11 | }
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4a.source4.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a21": 12345
4 | }
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4a.source4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4a.source4b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "OperationOutcome",
3 | "issue": [
4 | {
5 | "severity": "error",
6 | "code": "processing",
7 | "diagnostics": "Rule 'rule_a21a': Failed to cast 'notanumber' to type 'integer'. Rule 'rule_a21a': Failed to cast 'notanumber' to type 'integer'. Invalid number format."
8 | }
9 | ]
10 | }
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4a.source4b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b2.source4.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a21": 12345
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b2.source4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b2.source4b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight"
3 | }
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b2.source4b.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b3.source4.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a21": 12345
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b3.source4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b3.source4b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight"
3 | }
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4b3.source4b.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4c.source4.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a21": 12345
4 | }
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4c.source4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4c.source4b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a21": 0
4 | }
--------------------------------------------------------------------------------
/maptutorial/step4/result/step4c.source4b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step4/source/source4.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a21": "12345"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step4/source/source4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step4/source/source4b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a21": "notanumber"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step4/source/source4b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step5/java.md:
--------------------------------------------------------------------------------
1 | ## [step5](http://hl7.org/fhir/mapping-tutorial.html#step5)
2 |
3 |
4 | ```bash
5 | java -jar ../../validator_cli.jar -ig logical -ig map/step5.map -compile http://hl7.org/fhir/StructureMap/tutorial-step5 -version 5.0.0 -output map/step5.xml
6 | java -jar ../../validator_cli.jar ./source/source5.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step5 -version 5.0.0 -ig ./logical -ig ./map -output ./output.xml
7 | ```
8 |
9 | gives:
10 |
11 | ```xml
12 |
13 |
14 |
15 | ```
16 |
--------------------------------------------------------------------------------
/maptutorial/step5/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-5",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "min": 1,
25 | "max": "1"
26 | },
27 | {
28 | "id": "TLeft.a22",
29 | "path": "TLeft.a22",
30 | "min": 0,
31 | "max": "*",
32 | "type": [
33 | {
34 | "code": "string"
35 | }
36 | ]
37 | }
38 | ]
39 | }
40 | }
--------------------------------------------------------------------------------
/maptutorial/step5/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/maptutorial/step5/logical/structuredefinition-tright.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRight",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-right-5",
11 | "name": "TRight",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRight",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRight",
23 | "path": "TRight",
24 | "min": 1,
25 | "max": "1"
26 | },
27 | {
28 | "id": "TRight.a22",
29 | "path": "TRight.a22",
30 | "min": 0,
31 | "max": "*",
32 | "type": [
33 | {
34 | "code": "string"
35 | }
36 | ]
37 | }
38 | ]
39 | }
40 | }
--------------------------------------------------------------------------------
/maptutorial/step5/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/maptutorial/step5/map/step5.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step5'
2 | /// name = 'tutorial-step5'
3 | /// title = 'Tutorial Step 5'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-5" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-5" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a22 as a -> tgt.a22 = a "rule_a22";
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/maptutorial/step5/result/step5.source5.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a22": [
4 | "12345"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/maptutorial/step5/result/step5.source5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step5/result/step5.source5b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a22": [
4 | "12345",
5 | "67890"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/maptutorial/step5/result/step5.source5b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/maptutorial/step5/source/source5.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a22": [
4 | "12345"
5 | ]
6 | }
--------------------------------------------------------------------------------
/maptutorial/step5/source/source5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step5/source/source5b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a22": [
4 | "12345",
5 | "67890"
6 | ]
7 | }
--------------------------------------------------------------------------------
/maptutorial/step5/source/source5b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/maptutorial/step6/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-6",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "definition": "TLeft definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TLeft.a23",
30 | "path": "TLeft.a23",
31 | "min": 0,
32 | "max": "*",
33 | "type": [
34 | {
35 | "code": "string"
36 | }
37 | ]
38 | }
39 | ]
40 | }
41 | }
--------------------------------------------------------------------------------
/maptutorial/step6/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/maptutorial/step6/logical/structuredefinition-tright.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRight",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-right-6",
11 | "name": "TRight",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRight",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRight",
23 | "path": "TRight",
24 | "definition": "TRight definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TRight.a23",
30 | "path": "TRight.a23",
31 | "definition": "TRight definition",
32 | "min": 0,
33 | "max": "1",
34 | "type": [
35 | {
36 | "code": "integer"
37 | }
38 | ]
39 | }
40 | ]
41 | }
42 | }
--------------------------------------------------------------------------------
/maptutorial/step6/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/maptutorial/step6/map/step6a.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step6a'
2 | /// name = 'tutorial-step6a'
3 | /// title = 'Tutorial Step 6a'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-6" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-6" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a23 as a -> tgt.a23 = a "rule_a23a";
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/maptutorial/step6/map/step6b.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step6b'
2 | /// name = 'tutorial-step6b'
3 | /// title = 'Tutorial Step 6b'
4 |
5 |
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-6" alias TLeft as source
7 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-6" alias TRight as target
8 |
9 | group tutorial(source src : TLeft, target tgt : TRight) {
10 | src.a23 only_one as a -> tgt.a23 = a "rule_a23b"; // leave error to lower layer; less informative
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/maptutorial/step6/map/step6c.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step6c'
2 | /// name = 'tutorial-step6c'
3 | /// title = 'Tutorial Step 6c'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-6" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-6" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a23 first as a -> tgt.a23 = a "rule_a23c_1"; // only use the first item in the list
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/maptutorial/step6/map/step6d.map:
--------------------------------------------------------------------------------
1 | /// url = 'http://hl7.org/fhir/StructureMap/tutorial-step6d'
2 | /// name = 'tutorial-step6d'
3 | /// title = 'Tutorial Step 6d'
4 |
5 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-6" alias TLeft as source
6 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-6" alias TRight as target
7 |
8 | group tutorial(source src : TLeft, target tgt : TRight) {
9 | src.a23 last as a -> tgt.a23 = a "rule_a23d_1"; // only use the last item in the list
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6a.source6.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 12345
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6a.source6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6a.source6b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 67890
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6a.source6b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6b.source6.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 12345
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6b.source6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6b.source6b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 67890
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6b.source6b.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6c.source6.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 12345
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6c.source6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6c.source6b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 12345
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6c.source6b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6d.source6.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 12345
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6d.source6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6d.source6b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "a23": 67890
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/result/step6d.source6b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step6/source/source6.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a23": [
4 | "12345"
5 | ]
6 | }
--------------------------------------------------------------------------------
/maptutorial/step6/source/source6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step6/source/source6b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "a23": [
4 | "12345",
5 | "67890"
6 | ]
7 | }
--------------------------------------------------------------------------------
/maptutorial/step6/source/source6b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/maptutorial/step7/java.md:
--------------------------------------------------------------------------------
1 | ## [step7](http://hl7.org/fhir/mapping-tutorial.html#step7)
2 |
3 | ```bash
4 | java -jar ../../validator_cli.jar -ig logical -ig map/step7.map -compile http://hl7.org/fhir/StructureMap/tutorial-step7 -version 5.0.0 -output map/step7a.xml
5 | java -jar ../../validator_cli.jar ./source/source7.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step7 -version 5.0.0 -ig ./logical -ig ./map/step7a.xml -output ./output.xml
6 | ```
7 |
8 | and
9 |
10 | ```bash
11 | java -jar ../../validator_cli.jar -ig logical -ig map/step7b.map -compile http://hl7.org/fhir/StructureMap/tutorial-step7b -version 5.0.0 -output map/step7b.xml
12 | java -jar ../../validator_cli.jar ./source/source7.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step7b -version 5.0.0 -ig ./logical -ig ./map/step7b.xml -output ./output.xml
13 | ```
14 |
15 | both give:
16 |
17 | ```xml
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | ```
27 |
--------------------------------------------------------------------------------
/maptutorial/step7/map/step7.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step7" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-7" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-7" alias TRight as target
5 |
6 | group tutorial(source src : TLeft, target tgt : TRight) {
7 | src.aa as s_aa -> tgt.aa as t_aa then {
8 | s_aa.ab as ab -> t_aa.ab = ab "rule_ab"; // copy ab inside aa
9 | } "rule_aa";
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/maptutorial/step7/map/step7b.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step7b" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-7" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-7" alias TRight as target
5 |
6 | group tutorial(source src : TLeft, target tgt : TRight) {
7 | src.aa as s_aa -> tgt.aa as t_aa then ab_content(s_aa, t_aa) "rule_aa";
8 | }
9 |
10 | group ab_content(source src, target tgt) {
11 | src.ab as ab -> tgt.ab = ab "rule_ab"; // copy ab inside aa
12 | }
--------------------------------------------------------------------------------
/maptutorial/step7/result/step7.source7.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "aa": [
4 | {
5 | "ab": "12345"
6 | },
7 | {
8 | "ab": "6789"
9 | }
10 | ]
11 | }
--------------------------------------------------------------------------------
/maptutorial/step7/result/step7.source7.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/maptutorial/step7/source/source7.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "aa": [
4 | {
5 | "ab": "12345"
6 | },
7 | {
8 | "ab": "6789"
9 | }
10 | ]
11 | }
--------------------------------------------------------------------------------
/maptutorial/step7/source/source7.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/maptutorial/step8/java.md:
--------------------------------------------------------------------------------
1 | ## [step8](http://hl8.org/fhir/mapping-tutorial.html#step8)
2 |
3 | ```bash
4 | java -jar ../../validator_cli.jar -ig logical -ig map/step8.map -compile http://hl7.org/fhir/StructureMap/tutorial-step8 -version 5.0.0 -output map/step8.xml
5 | java -jar ../../validator_cli.jar ./source/source8.xml -transform http://hl7.org/fhir/StructureMap/tutorial-step8 -version 5.0.0 -ig ./logical -ig ./map/step8.xml -output ./output.xml
6 | ```
7 |
8 | gives:
9 |
10 | ```xml
11 |
12 |
13 |
14 | ```
15 |
--------------------------------------------------------------------------------
/maptutorial/step8/logical/structuredefinition-tleft.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TLeft",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-left-8",
11 | "name": "TLeft",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TLeft",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TLeft",
23 | "path": "TLeft",
24 | "definition": "TLeft definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TLeft.d",
30 | "path": "TLeft.d",
31 | "min": 1,
32 | "max": "1",
33 | "type": [
34 | {
35 | "code": "code"
36 | }
37 | ]
38 | }
39 | ]
40 | }
41 | }
--------------------------------------------------------------------------------
/maptutorial/step8/logical/structuredefinition-tleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/maptutorial/step8/logical/structuredefinition-tright.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "StructureDefinition",
3 | "id": "TRight",
4 | "extension": [
5 | {
6 | "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace",
7 | "valueUri": "http://hl7.org/fhir/tutorial"
8 | }
9 | ],
10 | "url": "http://hl7.org/fhir/StructureDefinition/tutorial-right-8",
11 | "name": "TRight",
12 | "status": "draft",
13 | "fhirVersion": "4.0.1",
14 | "kind": "logical",
15 | "abstract": true,
16 | "type": "TRight",
17 | "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
18 | "derivation": "specialization",
19 | "differential": {
20 | "element": [
21 | {
22 | "id": "TRight",
23 | "path": "TRight",
24 | "definition": "TRight definition",
25 | "min": 1,
26 | "max": "1"
27 | },
28 | {
29 | "id": "TRight.d",
30 | "path": "TRight.d",
31 | "min": 1,
32 | "max": "1",
33 | "type": [
34 | {
35 | "code": "code"
36 | }
37 | ]
38 | }
39 | ]
40 | }
41 | }
--------------------------------------------------------------------------------
/maptutorial/step8/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/maptutorial/step8/map/step8.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step8" = "tutorial"
2 |
3 | conceptmap "tutorialmap" {
4 | prefix s = "http://hl7.org/fhir/tutorial8/codeleft"
5 | prefix t = "http://hl7.org/fhir/tutorial8/coderight"
6 |
7 | s:vonhier == t:"nach-da"
8 | s:test == t:test
9 | }
10 |
11 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-8" alias TLeft as source
12 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-8" alias TRight as target
13 |
14 | group tutorial(source src : TLeft, target tgt : TRight) {
15 | src.d as d -> tgt.d = translate(d, '#tutorialmap', 'code') "rule_d";
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/maptutorial/step8/result/step8.source8.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "d": "nach-da"
4 | }
5 |
--------------------------------------------------------------------------------
/maptutorial/step8/result/step8.source8.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step8/source/source8.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "d": "vonhier"
4 | }
--------------------------------------------------------------------------------
/maptutorial/step8/source/source8.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/maptutorial/step8/test.ahdis.ch.http:
--------------------------------------------------------------------------------
1 | @host = https://test.ahdis.ch
2 | ### @host = http://localhost:8080
3 |
4 |
5 | ### FHIR Tutorial Step 8
6 |
7 | ### FHIR Tutorial send StructureDefinition TLeft
8 | POST {{host}}/matchbox/fhir/StructureDefinition HTTP/1.1
9 | Accept: application/fhir+xml
10 | Content-Type: application/fhir+xml
11 |
12 | < ./logical/structuredefinition-tleft.xml
13 |
14 | ### FHIR Tutorial send StructureDefinition TRight
15 | POST {{host}}/matchbox/fhir/StructureDefinition HTTP/1.1
16 | Accept: application/fhir+xml
17 | Content-Type: application/fhir+xml
18 |
19 | < ./logical/structuredefinition-tright.xml
20 |
21 | ### Post the StructureMap with transform included
22 | POST {{host}}/matchbox/fhir/StructureMap HTTP/1.1
23 | Accept: application/fhir+xml
24 | Content-Type: text/fhir-mapping
25 |
26 | < ./map/step8.map
27 |
28 | ### FHIR Tutorial do the transform
29 | POST {{host}}/matchbox/fhir/StructureMap/$transform?source=http://hl7.org/fhir/StructureMap/tutorial-step8
30 | Accept: application/fhir+xml
31 | Content-Type: application/fhir+xml
32 |
33 | < ./source/source8.xml
--------------------------------------------------------------------------------
/maptutorial/step9/java.md:
--------------------------------------------------------------------------------
1 | ## [step9](http://hl9.org/fhir/mapping-tutorial.html#step9)
2 |
3 | ```bash
4 | java -jar ../../validator_cli.jar -ig logical -ig map/step9.map -compile http://hl7.org/fhir/StructureMap/tutorial9 -version 5.0.0 -output map/step9.xml
5 | java -jar ../../validator_cli.jar ./source/source9.xml -transform http://hl7.org/fhir/StructureMap/tutorial9 -version 5.0.0 -ig ./logical -ig ./map/step9.xml -output ./output.xml
6 | ```
7 |
8 | gives:
9 |
10 | ```xml
11 |
12 |
13 |
14 | ```
15 |
--------------------------------------------------------------------------------
/maptutorial/step9/map/step9.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial-step9" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-9" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-9" alias TRight as target
5 |
6 | group tutorial(source src : TLeft, target tgt : TRight) {
7 | src.i as i where src.m < 2 -> tgt.j = i;
8 | src.i as i where src.m >= 2 -> tgt.k = i;
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/maptutorial/step9/map/step9check.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial9check" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left-9" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right-9" alias TRight as target
5 |
6 | group tutorial(source src : TLeft, target tgt : TRight) {
7 | src.i as i check src.m < 2 -> tgt.j = i;
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9.source9.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "j": "mkleiner2maptoj"
4 | }
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9.source9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9.source9b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "k": "mgroesser2maptok"
4 | }
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9.source9b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9check.source9.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TRight",
3 | "j": "mkleiner2maptoj"
4 | }
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9check.source9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9check.source9b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "OperationOutcome",
3 | "issue": [
4 | {
5 | "severity": "error",
6 | "code": "processing",
7 | "diagnostics": "Rule \"i\", Check condition failed, src.m < 2"
8 | }
9 | ]
10 | }
--------------------------------------------------------------------------------
/maptutorial/step9/result/step9check.source9b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/maptutorial/step9/source/source9.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "i": "mkleiner2maptoj",
4 | "m": 1
5 | }
--------------------------------------------------------------------------------
/maptutorial/step9/source/source9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/maptutorial/step9/source/source9b.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "TLeft",
3 | "i": "mgroesser2maptok",
4 | "m": 3
5 | }
--------------------------------------------------------------------------------
/maptutorial/step9/source/source9b.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/medicationrequest/source.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "MedicationRequest",
3 | "extension": [
4 | {
5 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescriptionType-1",
6 | "valueCodeableConcept": {
7 | "coding": [
8 | {
9 | "code": "acute",
10 | "display": "Acute",
11 | "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-PrescriptionType-1"
12 | }
13 | ]
14 | }
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/medicationrequest/test.ahdis.ch.http:
--------------------------------------------------------------------------------
1 | @host = https://test.ahdis.ch
2 | ### @host = http://localhost:8080
3 |
4 |
5 | ### Post the StructureMap with transform included
6 | POST {{host}}/matchbox/fhir/StructureMap HTTP/1.1
7 | Accept: application/fhir+xml
8 | Content-Type: text/fhir-mapping
9 |
10 | < ./extension.map
11 |
12 | ### FHIR Tutorial do the transform
13 | POST {{host}}/matchbox/fhir/StructureMap/$transform?source=http://basic.test/medication-request
14 | Accept: application/fhir+json
15 | Content-Type: application/fhir+json
16 |
17 | < ./source.json
18 |
19 |
--------------------------------------------------------------------------------
/qrextract/qr.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "QuestionnaireResponse",
3 | "status": "in-progress",
4 | "questionnaire": "http://fhir.forms-lab.com/Questionnaire/extract-demo-smap",
5 | "item": [
6 | {
7 | "linkId": "complication",
8 | "text": "Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example)",
9 | "answer": [
10 | {
11 | "valueBoolean": true
12 | }
13 | ]
14 | }
15 | ],
16 | "meta": {
17 | "tag": [
18 | {
19 | "code": "csiro:generated"
20 | }
21 | ]
22 | },
23 | "subject": {
24 | "reference": "Patient/45086382"
25 | },
26 | "author": {
27 | "reference": "Practitioner/example",
28 | "display": "Dr Adam Careful"
29 | },
30 | "authored": "2024-11-04T07:09:20.967Z"
31 | }
--------------------------------------------------------------------------------
/qrextract/test.ahdis.ch.http:
--------------------------------------------------------------------------------
1 | @host = https://test.ahdis.ch
2 | ###@host = http://localhost:8080
3 |
4 |
5 | ### Post the StructureMap with transform included
6 | POST {{host}}/matchbox/fhir/StructureMap HTTP/1.1
7 | Accept: application/fhir+xml
8 | Content-Type: text/fhir-mapping
9 |
10 | < ./extract-demo-smap.map
11 |
12 | ### FHIR Tutorial do the transform
13 | POST {{host}}/matchbox/fhir/StructureMap/$transform?source=http://fhir.forms-lab.com/StructureMap/extract-demo-smap
14 | Accept: application/fhir+json
15 | Content-Type: application/fhir+json
16 |
17 | < ./qr.json
18 |
19 |
--------------------------------------------------------------------------------
/qrtopat/java.md:
--------------------------------------------------------------------------------
1 | # Java Validator Transform example with the Java Validator
2 |
3 | ## Adjust the path for the validator_cli.jar
4 |
5 | ```
6 | java -jar validator_cli.jar ./qr.json -transform http://ahdis.ch/matchbox/fml/qr2patgender -version 4.0.1 -ig ./map -output ./output.xml
7 |
8 | cat output.xml
9 | ```
10 |
11 |
--------------------------------------------------------------------------------
/qrtopat/map/qr2patgender.map:
--------------------------------------------------------------------------------
1 | map "http://ahdis.ch/matchbox/fml/qr2patgender" = "qr2patgender"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source
4 | uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target
5 |
6 | group QuestionnaireResponse(source src : QuestionnaireResponse, target tgt : Patient) {
7 | src.item as item -> tgt as patient then item(item, patient);
8 | }
9 |
10 | group item(source src, target tgt: Patient) {
11 | src.item as item where linkId in ('patient.sex') -> tgt.gender = (%item.answer.value);
12 | }
13 |
--------------------------------------------------------------------------------
/qrtopat/output.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "Patient",
3 | "gender": "female"
4 | }
--------------------------------------------------------------------------------
/qrtopat/qrext.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "QuestionnaireResponse",
3 | "extension": [
4 | {
5 | "url": "urn:implicitstring",
6 | "valueString": "implicit"
7 | },
8 | {
9 | "url": "urn:explicitstring",
10 | "valueString": "explicit"
11 | },
12 | {
13 | "url": "urn:positiveIntString",
14 | "valueString": "2147483647"
15 | },
16 | {
17 | "url": "urn:positiveInt",
18 | "valuePositiveInt": "2147483647"
19 | }
20 | ],
21 | "id": "qrpatientsexeresponse"
22 | }
--------------------------------------------------------------------------------
/qrtopat/test.ahdis.ch.http:
--------------------------------------------------------------------------------
1 | @host = https://test.ahdis.ch
2 | ###@host = http://localhost:8080
3 |
4 |
5 | ### Post the StructureMap with transform included
6 | POST {{host}}/matchbox/fhir/StructureMap HTTP/1.1
7 | Accept: application/fhir+xml
8 | Content-Type: text/fhir-mapping
9 |
10 | < ./map/qr2patgender.map
11 |
12 | ### FHIR Tutorial do the transform
13 | POST {{host}}/matchbox/fhir/StructureMap/$transform?source=http://ahdis.ch/matchbox/fml/qr2patgender
14 | Accept: application/fhir+json
15 | Content-Type: application/fhir+json
16 |
17 | < ./qr.json
18 |
19 |
--------------------------------------------------------------------------------
/rum-example/StructureMap-rum2Claim.map:
--------------------------------------------------------------------------------
1 | map "https://id.fr/ig/fhir/eds/StructureMap/AREMMCOPhysical2Business" = "AREMMCOPhysical2Business"
2 |
3 | uses "https://id.fr/ig/fhir/eds/StructureDefinition/RssIn" alias rssin as source
4 | uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias LogicQR as target
5 |
6 | // group rssin2logicQR(source srcRss : rssin, target tgtQR : LogicQR ) {
7 | // srcRss.rum as srcRum-> tgtQR.item as tgtItem,
8 | // tgtItem.text as tgtText,
9 | // tgtText = evaluate(srcRum, substring(2,6)) "test";
10 | // }
11 |
12 | group rssin2logicQR(source srcRss : rssin, target tgtQR : LogicQR ) {
13 | // srcRss.rum as srcRum-> tgtQR.item as tgtItem,
14 | // tgtItem.text = (%srcRum.substring(2,6)) "test";
15 | srcRss.rum as srcRum-> tgtQR.item as tgtItem,
16 | tgtItem.text = evaluate(srcRum, substring(2,6)) "test";
17 | }
--------------------------------------------------------------------------------
/rum-example/test.ahdis.ch.http:
--------------------------------------------------------------------------------
1 | @host = https://test.ahdis.ch
2 | ### @host = http://localhost:8080
3 |
4 | ### Post the Logical Model
5 | POST {{host}}/matchbox/fhir/StructureDefinition HTTP/1.1
6 | Accept: application/fhir+json
7 | Content-Type: application/fhir+json
8 |
9 | < ./StructureDefinition-RssIn.json
10 |
11 |
12 | ### Post the StructureMap with transform included
13 | POST {{host}}/matchbox/fhir/StructureMap HTTP/1.1
14 | Accept: application/fhir+xml
15 | Content-Type: text/fhir-mapping
16 |
17 | < ./StructureMap-rum2Claim.map
18 |
19 | ### FHIR Tutorial do the transform
20 | POST {{host}}/matchbox/fhir/StructureMap/$transform?source=https://id.fr/ig/fhir/eds/StructureMap/AREMMCOPhysical2Business
21 | Accept: application/fhir+json
22 | Content-Type: application/fhir+json
23 |
24 | {
25 | "resourceType": "https://id.fr/ig/fhir/eds/StructureDefinition/RssIn",
26 | "rum": "9909C3349999999"
27 | }
28 |
29 |
30 |
--------------------------------------------------------------------------------
/rum-example/testRum.json:
--------------------------------------------------------------------------------
1 | {
2 | "resourceType": "https://id.fr/ig/fhir/eds/StructureDefinition/RssIn",
3 | "rum": "9909C3349999999"
4 | }
--------------------------------------------------------------------------------
/tests/cast.map:
--------------------------------------------------------------------------------
1 | map "http://ahdis.ch/matchbox/fml/cast" = "cast"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source
4 | uses "http://hl7.org/fhir/StructureDefinition/Observation" alias Observation as target
5 |
6 | group qrtocobs(source src : QuestionnaireResponse, target tgt : Observation) {
7 | src.extension as ext where (url = 'urn:implicitstring') then {
8 | ext.value as value -> tgt.extension as ext, ext.url="urn:implicitstring", ext.value = value "item";
9 | } "implictstring";
10 | src.extension as ext where (url = 'urn:explicitstring') then {
11 | ext.value as value -> tgt.extension as ext, ext.url="urn:explicitstring", ext.value = cast(value,'string') "item";
12 | } "implictstring";
13 | src.extension as ext where (url = 'urn:positiveInt') then {
14 | ext.value as value -> tgt.extension as ext, ext.url="urn:positiveInt", ext.value = value "item";
15 | } "positiveInt";
16 | src.extension as ext where (url = 'urn:positiveIntString') then {
17 | ext.value as value -> tgt.extension as ext, ext.url="urn:positiveIntString", ext.value = cast(value,'positiveInt') "item";
18 | } "positiveInt";
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/tests/memberof.map:
--------------------------------------------------------------------------------
1 | map "http://ahdis.ch/matchbox/fml/memberof" = "memberof"
2 | uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as source
3 | uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target
4 |
5 | group MemberOf(source src : Patient, target tgt : Patient) {
6 | // src where gender.memberOf("http://hl7.org/fhir/ValueSet/administrative-gender") -> tgt.gender = 'male' "memberof";
7 | src where maritalStatus.memberOf("http://hl7.org/fhir/ValueSet/marital-status") -> tgt.gender = 'male' "memberof";
8 | }
--------------------------------------------------------------------------------
/tests/quantity.map:
--------------------------------------------------------------------------------
1 | map "http://ahdis.ch/matchbox/fml/qty" = "qty"
2 | uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source
3 | uses "http://hl7.org/fhir/StructureDefinition/Observation" alias Observation as target
4 |
5 | group stringtocoding(source src : QuestionnaireResponse, target tgt : Observation) {
6 | src.item as item -> tgt as obs then ExtractBloodPressure(item, obs);
7 | }
8 |
9 | group ExtractBloodPressure(source src, target tgt : Observation){
10 | src.item as systolic_bp where (linkId = 'systolic-bp_1.2') then {
11 | systolic_bp.answer as ans then {
12 | // ans.value as value -> tgt.value = create('Quantity') as qty, qty.value = value "qty";
13 | ans.value as value -> tgt.value = qty(value,'kg','http://unit.org') "qty";
14 | } "qty";
15 | };
16 | }
17 |
--------------------------------------------------------------------------------
/tests/stringtocoding.map:
--------------------------------------------------------------------------------
1 | map "http://ahdis.ch/matchbox/fml/stringtocoding" = "stringtocoding"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source
4 | uses "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit" alias ExplanationOfBenefit as target
5 |
6 | group stringtocoding(source src : QuestionnaireResponse, target tgt : ExplanationOfBenefit) {
7 | src.item as item -> tgt as eob then item(item, eob);
8 | }
9 |
10 | group item(source src, target tgt: ExplanationOfBenefit) {
11 | src.item as item where linkId in ('patient.claim-type') ->
12 | tgt.type as code, code.coding as coding, coding.system='http://terminology.hl7.org/CodeSystem/claim-type',
13 | coding.code=(%item.answer.value) "code2coding";
14 | }
15 |
--------------------------------------------------------------------------------
/tests/stringtocodingwithcc.map:
--------------------------------------------------------------------------------
1 | map "http://ahdis.ch/matchbox/fml/stringtocodingwithcc" = "stringtocodingwithcc"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source
4 | uses "http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit" alias ExplanationOfBenefit as target
5 |
6 | group stringtocoding(source src : QuestionnaireResponse, target tgt : ExplanationOfBenefit) {
7 | src.item as item -> tgt as eob then item(item, eob);
8 | }
9 |
10 | group item(source src, target tgt: ExplanationOfBenefit) {
11 | src.item as item where linkId in ('patient.claim-type') ->
12 | tgt.type = cc('http://terminology.hl7.org/CodeSystem/communication-category', 'notification') "code2coding";
13 | }
14 |
--------------------------------------------------------------------------------
/unioncollection/logical/structuredefinition-tright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/unioncollection/map/unioncollection.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/unioncollection" = "unioncollection"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right" alias TRight as target
5 |
6 | group combine(source source : TLeft, target target : TRight) {
7 | source.a first as a -> target.c = (%source.a[0]+%source.b[0]) "concatenated";
8 | // source.a as a -> target.c as c, c = (%source.a.item($index) + %source.b.item($index)) "concatenate";
9 | }
10 |
--------------------------------------------------------------------------------
/unioncollection/source/source.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/xml/map/step1.map:
--------------------------------------------------------------------------------
1 | map "http://hl7.org/fhir/StructureMap/tutorial" = "tutorial"
2 |
3 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-left" alias TLeft as source
4 | uses "http://hl7.org/fhir/StructureDefinition/tutorial-right" alias TRight as target
5 |
6 | group tutorial(source src : TLeft, target tgt : TRight) {
7 | src.a as a -> tgt.a as switch then {
8 | a.txt as txt -> switch.b = txt "element";
9 | a.b as attr -> switch.txt = attr "attr";
10 | };
11 | }
12 |
--------------------------------------------------------------------------------
/xml/source/source1.xml:
--------------------------------------------------------------------------------
1 |
2 | element
3 |
--------------------------------------------------------------------------------
/xml/test.ahdis.ch.http:
--------------------------------------------------------------------------------
1 | @host = http://test.ahdis.ch
2 |
3 | ### FHIR Tutorial Step 1
4 |
5 | ### FHIR Tutorial send StructureDefinition TLeft
6 | POST {{host}}/matchbox/fhir/StructureDefinition HTTP/1.1
7 | Accept: application/fhir+xml
8 | Content-Type: application/fhir+xml
9 |
10 | < ./logical/structuredefinition-tleft.xml
11 |
12 | ### FHIR Tutorial send StructureDefinition TRight
13 | POST {{host}}/matchbox/fhir/StructureDefinition HTTP/1.1
14 | Accept: application/fhir+xml
15 | Content-Type: application/fhir+xml
16 |
17 | < ./logical/structuredefinition-tright.xml
18 |
19 | ### Post the StructureMap
20 | POST {{host}}/matchbox/fhir/StructureMap HTTP/1.1
21 | Accept: application/fhir+xml
22 | Content-Type: text/fhir-mapping
23 |
24 | < ./map/step1.map
25 |
26 | ### FHIR Tutorial do the transform
27 | POST {{host}}/matchbox/fhir/StructureMap/$transform?source=http://hl7.org/fhir/StructureMap/tutorial
28 | Accept: application/fhir+xml
29 | Content-Type: application/fhir+xml
30 |
31 | < ./source/source1.xml
32 |
--------------------------------------------------------------------------------