Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#157 Add Test for Document Addendum - Comprehensive Metadata
- Loading branch information
Bhaskarla
authored and
Bhaskarla
committed
Aug 18, 2021
1 parent
405afa6
commit dfe3771
Showing
5 changed files
with
519 additions
and
0 deletions.
There are no files selected for viewing
160 changes: 160 additions & 0 deletions
160
...TestCollections/MHD_DocumentRecipient_comprehensive/Document_Addendum/Bundle/addendum.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
<Bundle xmlns="http://hl7.org/fhir"> | ||
<id value="xds"/> | ||
<meta> | ||
<lastUpdated value="2013-07-01T13:11:33Z"/> | ||
<profile value="http://ihe.net/fhir/StructureDefinition/IHE_MHD_Provide_Comprehensive_DocumentBundle"/> | ||
</meta> | ||
<type value="transaction"/> | ||
<entry> | ||
<fullUrl value="urn:uuid:1e404af3-077f-4bee-b7a6-a9be97e1ce01"/> | ||
<resource> | ||
<DocumentReference> | ||
<text> | ||
<div xmlns="http://www.w3.org/1999/xhtml">Comment</div> | ||
<status value="empty"/> | ||
</text> | ||
<contained> | ||
<Patient xmlns="http://hl7.org/fhir"> | ||
<id value="sourcePatient"/> | ||
<identifier> | ||
<use value="usual" /> | ||
<type> | ||
<coding> | ||
<system value="urn:ietf:rfc:3986" /> | ||
<code value="urn:ihe:iti:xds:2013:accession" /> | ||
</coding> | ||
</type> | ||
<system value="urn:oid:1.2.214" /> | ||
<value value="myMRN" /> | ||
</identifier> | ||
</Patient> | ||
</contained> | ||
<status value="current"/> | ||
<masterIdentifier> | ||
<system value="urn:ietf:rfc:3986"/> | ||
<value value="urn:oid:1.2.129.6.58.92.88336.4"/> | ||
</masterIdentifier> | ||
<type> | ||
<coding> | ||
<system value="http://loinc.org"/> | ||
<code value="34895-3"/> | ||
<display value="Education Note"/> | ||
</coding> | ||
</type> | ||
<category> | ||
<coding> | ||
<system value="urn:oid:1.3.6.1.4.1.19376.1.2.6.1"/> | ||
<code value="REPORTS"/> | ||
<display value="Reports"/> | ||
</coding> | ||
</category> | ||
<subject> | ||
<reference value="${patientResourceId}"/> | ||
</subject> | ||
<date value="2015-02-07T13:28:17.239+02:00"/> | ||
<securityLabel> | ||
<coding> | ||
<system value="http://terminology.hl7.org/CodeSystem/v3-Confidentiality"/> | ||
<code value="N"/> | ||
<display value="normal"/> | ||
</coding> | ||
</securityLabel> | ||
<context> | ||
<sourcePatientInfo> | ||
<reference value="#sourcePatient"/> | ||
</sourcePatientInfo> | ||
<practiceSetting> | ||
<coding> | ||
<system value="http://snomed.info/sct"/> | ||
<code value="R-300E3"/> | ||
<display value="Accident and Emergency"/> | ||
</coding> | ||
</practiceSetting> | ||
<facilityType> | ||
<coding> | ||
<system value="http://snomed.info/sct"/> | ||
<code value="264372000"/> | ||
<display value="Pharmacy"/> | ||
</coding> | ||
</facilityType> | ||
</context> | ||
<relatesTo> | ||
<code value="appends"/> | ||
<target> | ||
<reference value="${original}"/> | ||
</target> | ||
</relatesTo> | ||
<content> | ||
<attachment> | ||
<contentType value="text/plain"/> | ||
<url value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e03"/> | ||
<language value="en-us"/> | ||
</attachment> | ||
<format> | ||
<system value="http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode"/> | ||
<code value="urn:ihe:pcc:cm:2008"/> | ||
<display value="Care Management (CM)"/> | ||
</format> | ||
</content> | ||
</DocumentReference> | ||
</resource> | ||
<request> | ||
<method value="POST"/> | ||
<url value="urn:uuid:1e404af3-077f-4bee-b7a6-a9be97e1ce01"/> | ||
</request> | ||
</entry> | ||
<entry> | ||
<fullUrl value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e02"/> | ||
<resource> | ||
<DocumentManifest xmlns="http://hl7.org/fhir"> | ||
<text> | ||
<div xmlns="http://www.w3.org/1999/xhtml">Comment</div> | ||
<status value="empty"/> | ||
</text> | ||
|
||
|
||
<masterIdentifier> | ||
<system value="urn:ietf:rfc:3986"/> | ||
<value value="urn:oid:1.2.129.6.58.92.88337.4"/> | ||
</masterIdentifier> | ||
<status value="current"/> | ||
<type> | ||
<coding> | ||
<system value="http://snomed.info/sct"/> | ||
<code value="225728007"/> | ||
<display value="Accident and Emergency department"/> | ||
</coding> | ||
</type> | ||
<subject> | ||
<reference value="${patientResourceId}"/> | ||
</subject> | ||
<created value="2004-12-25T23:50:50-05:00"/> | ||
<source value="urn:oid:1.3.6.1.4.1.21367.2009.1.2.1"/> | ||
<description value="Physical"/> | ||
<content> | ||
<reference value="urn:uuid:1e404af3-077f-4bee-b7a6-a9be97e1ce01"/> | ||
</content> | ||
</DocumentManifest> | ||
</resource> | ||
<request> | ||
<method value="POST"/> | ||
<url value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e02"/> | ||
</request> | ||
</entry> | ||
<entry> | ||
<fullUrl value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e03"/> | ||
<resource> | ||
<Binary> | ||
<meta> | ||
<lastUpdated value="2013-07-01T13:11:33Z"/> | ||
</meta> | ||
<contentType value="text/plain"/> | ||
<data value="Zm9vYmFyLWFwcGVuZHMNCg=="/> | ||
</Binary> | ||
</resource> | ||
<request> | ||
<method value="POST"/> | ||
<url value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e02"/> | ||
</request> | ||
</entry> | ||
</Bundle> |
150 changes: 150 additions & 0 deletions
150
...TestCollections/MHD_DocumentRecipient_comprehensive/Document_Addendum/Bundle/original.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
<Bundle xmlns="http://hl7.org/fhir"> | ||
<id value="xds"/> | ||
<meta> | ||
<lastUpdated value="2013-07-01T13:11:33Z"/> | ||
<profile value="http://ihe.net/fhir/StructureDefinition/IHE_MHD_Provide_Comprehensive_DocumentBundle"/> | ||
</meta> | ||
<type value="transaction"/> | ||
<entry> | ||
<fullUrl value="urn:uuid:1e404af3-077f-4bee-b7a6-a9be97e1ce01"/> | ||
<resource> | ||
<DocumentReference> | ||
<contained> | ||
<Patient xmlns="http://hl7.org/fhir"> | ||
<id value="sourcePatient"/> | ||
<identifier> | ||
<use value="usual" /> | ||
<type> | ||
<coding> | ||
<system value="urn:ietf:rfc:3986" /> | ||
<code value="urn:ihe:iti:xds:2013:accession" /> | ||
</coding> | ||
</type> | ||
<system value="urn:oid:1.2.214" /> | ||
<value value="myMRN" /> | ||
</identifier> | ||
</Patient> | ||
</contained> | ||
<status value="current"/> | ||
<masterIdentifier> | ||
<system value="urn:ietf:rfc:3986"/> | ||
<value value="urn:oid:1.2.129.6.58.92.88336.4"/> | ||
</masterIdentifier> | ||
<type> | ||
<coding> | ||
<system value="http://loinc.org"/> | ||
<code value="34895-3"/> | ||
<display value="Education Note"/> | ||
</coding> | ||
</type> | ||
<category> | ||
<coding> | ||
<system value="urn:oid:1.3.6.1.4.1.19376.1.2.6.1"/> | ||
<code value="REPORTS"/> | ||
<display value="Reports"/> | ||
</coding> | ||
</category> | ||
<subject> | ||
<reference value="${patientResourceId}"/> | ||
</subject> | ||
<date value="2015-02-07T13:28:17.239+02:00"/> | ||
<securityLabel> | ||
<coding> | ||
<system value="http://terminology.hl7.org/CodeSystem/v3-Confidentiality"/> | ||
<code value="N"/> | ||
<display value="normal"/> | ||
</coding> | ||
</securityLabel> | ||
<context> | ||
<sourcePatientInfo> | ||
<reference value="#sourcePatient"/> | ||
</sourcePatientInfo> | ||
<practiceSetting> | ||
<coding> | ||
<system value="http://snomed.info/sct"/> | ||
<code value="R-300E3"/> | ||
<display value="Accident and Emergency"/> | ||
</coding> | ||
</practiceSetting> | ||
<facilityType> | ||
<coding> | ||
<system value="http://snomed.info/sct"/> | ||
<code value="264372000"/> | ||
<display value="Pharmacy"/> | ||
</coding> | ||
</facilityType> | ||
</context> | ||
<content> | ||
<attachment> | ||
<contentType value="text/plain"/> | ||
<url value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e03"/> | ||
<language value="en-us"/> | ||
</attachment> | ||
<format> | ||
<system value="http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode"/> | ||
<code value="urn:ihe:pcc:cm:2008"/> | ||
<display value="Care Management (CM)"/> | ||
</format> | ||
</content> | ||
</DocumentReference> | ||
</resource> | ||
<request> | ||
<method value="POST"/> | ||
<url value="urn:uuid:1e404af3-077f-4bee-b7a6-a9be97e1ce01"/> | ||
</request> | ||
</entry> | ||
<entry> | ||
<fullUrl value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e02"/> | ||
<resource> | ||
<DocumentManifest xmlns="http://hl7.org/fhir"> | ||
<text> | ||
<div xmlns="http://www.w3.org/1999/xhtml">Comment</div> | ||
<status value="empty"/> | ||
</text> | ||
|
||
|
||
<masterIdentifier> | ||
<system value="urn:ietf:rfc:3986"/> | ||
<value value="urn:oid:1.2.129.6.58.92.88337.4"/> | ||
</masterIdentifier> | ||
<status value="current"/> | ||
<type> | ||
<coding> | ||
<system value="http://snomed.info/sct"/> | ||
<code value="225728007"/> | ||
<display value="Accident and Emergency department"/> | ||
</coding> | ||
</type> | ||
<subject> | ||
<reference value="${patientResourceId}"/> | ||
</subject> | ||
<created value="2004-12-25T23:50:50-05:00"/> | ||
<source value="urn:oid:1.3.6.1.4.1.21367.2009.1.2.1"/> | ||
<description value="Physical"/> | ||
<content> | ||
<reference value="urn:uuid:1e404af3-077f-4bee-b7a6-a9be97e1ce01"/> | ||
</content> | ||
</DocumentManifest> | ||
</resource> | ||
<request> | ||
<method value="POST"/> | ||
<url value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e02"/> | ||
</request> | ||
</entry> | ||
<entry> | ||
<fullUrl value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e03"/> | ||
<resource> | ||
<Binary> | ||
<meta> | ||
<lastUpdated value="2013-07-01T13:11:33Z"/> | ||
</meta> | ||
<contentType value="text/plain"/> | ||
<data value="Zm9vYmFy"/> | ||
</Binary> | ||
</resource> | ||
<request> | ||
<method value="POST"/> | ||
<url value="urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e02"/> | ||
</request> | ||
</entry> | ||
</Bundle> |
20 changes: 20 additions & 0 deletions
20
...ections/MHD_DocumentRecipient_comprehensive/Document_Addendum/Patient/patient-example.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Patient xmlns="http://hl7.org/fhir"> | ||
<meta> | ||
<security> | ||
<system value="http://hl7.org/fhir/v3/ActReason"/> | ||
<code value="HTEST"/> | ||
<display value="test health data"/> | ||
</security> | ||
</meta> | ||
<identifier> | ||
<use value="usual" /> | ||
<type> | ||
<coding> | ||
<system value="urn:ietf:rfc:3986" /> | ||
<code value="urn:ihe:iti:xds:2013:accession" /> | ||
</coding> | ||
</type> | ||
<system value="urn:oid:1.2.214" /> | ||
<value value="myMRN" /> | ||
</identifier> | ||
</Patient> |
Oops, something went wrong.