@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://profiles.ihe.net/ITI/MHD/Bundle/ex-comprehensiveProvideDocumentBundleDocument> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-comprehensiveProvideDocumentBundleDocument"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle"^^xsd:anyURI ;
       fhir:l <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.ProvideBundle>
     ] ) ;
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
       ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "transaction"] ; # 
  fhir:timestamp [ fhir:v "2004-10-25T23:50:50-05:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800001"^^xsd:anyURI ;
       fhir:l <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800001>
     ] ;
     fhir:resource ( <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800001> ) ;
     fhir:request [
       fhir:method [ fhir:v "POST" ] ;
       fhir:url [
         fhir:v "List"^^xsd:anyURI ;
         fhir:l fhir:List
       ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800002"^^xsd:anyURI ;
       fhir:l <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800002>
     ] ;
     fhir:resource ( <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800002> ) ;
     fhir:request [
       fhir:method [ fhir:v "POST" ] ;
       fhir:url [
         fhir:v "DocumentReference"^^xsd:anyURI ;
         fhir:l fhir:DocumentReference
       ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800003"^^xsd:anyURI ;
       fhir:l <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800003>
     ] ;
     fhir:resource ( <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800003> ) ;
     fhir:request [
       fhir:method [ fhir:v "POST" ] ;
       fhir:url [
         fhir:v "Bundle"^^xsd:anyURI ;
         fhir:l fhir:Bundle
       ]
     ]
  ] ) . # 

<urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800001> a fhir:List ;
  fhir:id [ fhir:v "aaaaaaaa-bbbb-cccc-dddd-e00888800001"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet"^^xsd:anyURI ;
       fhir:l <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.SubmissionSet>
     ] ) ;
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
       ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"List_aaaaaaaa-bbbb-cccc-dddd-e00888800001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: List aaaaaaaa-bbbb-cccc-dddd-e00888800001</b></p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00888800001\"> </a><a name=\"hcaaaaaaaa-bbbb-cccc-dddd-e00888800001\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.MHD.Comprehensive.SubmissionSet.html\">MHD SubmissionSet Comprehensive</a></p><p style=\"margin-bottom: 0px\">Security Label: test health data (Details: ActReason code HTEST = 'test health data')</p></div><table class=\"clstu\"><tr><td>Date: 2004-10-25 23:50:50-0500 </td><td>Mode: Working List </td><td>Status: Current </td><td>Code: SubmissionSet as a FHIR List </td></tr><tr><td>Subject: <a href=\"Bundle-ex-fhir-document-bundle.html#http-//example.org/fhir/Patient/fdoc-patient\">Eve Everywoman Female, DoB: 1955-01-06</a></td></tr></table><table class=\"grid\"><tr style=\"backgound-color: #eeeeee\"><td><b>Items</b></td></tr><tr><td><a href=\"Bundle-ex-comprehensiveProvideDocumentBundleDocument.html#urn-uuid-aaaaaaaa-bbbb-cccc-dddd-e00888800002\">DocumentReference: masterIdentifier = UUID:0c3151bd-1cbf-4d64-b04d-cd9187a4c6e0 (use: usual, ); identifier = UUID:7d5bb8ac-68ee-4926-85e7-b8aac8e1f09d (use: official, ); status = current; type = Attending Discharge summary; category = History of Immunization note; date = 2020-02-01 23:50:50-0500; securityLabel = normal</a></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType"^^xsd:anyURI ;
       fhir:l <https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-designationType>
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:225728007 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "225728007" ]
       ] )
     ]
  ] [
     fhir:url [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId"^^xsd:anyURI ;
       fhir:l <https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-sourceId>
     ] ;
     fhir:value [
       a fhir:Identifier ;
       fhir:value [ fhir:v "urn:oid:1.2.3.4" ]
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:5d3d3a7d-82a6-4fe0-8d87-ee2cb87fa219" ]
  ] [
     fhir:use [ fhir:v "usual" ] ;
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:1.2.129.6.58.92.88337.1" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:mode [ fhir:v "working"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes"^^xsd:anyURI ;
         fhir:l <https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes>
       ] ;
       fhir:code [ fhir:v "submissionset" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://example.org/fhir/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "http://example.org/fhir/Patient/fdoc-patient" ]
  ] ; # 
  fhir:date [ fhir:v "2004-10-25T23:50:50-05:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
     fhir:item [
       fhir:l <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800002> ;
       fhir:reference [ fhir:v "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800002" ]
     ]
  ] ) . # 

<urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800002> a fhir:DocumentReference ;
  fhir:id [ fhir:v "aaaaaaaa-bbbb-cccc-dddd-e00888800002"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference"^^xsd:anyURI ;
       fhir:l <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Comprehensive.DocumentReference>
     ] ) ;
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
       ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DocumentReference_aaaaaaaa-bbbb-cccc-dddd-e00888800002\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference aaaaaaaa-bbbb-cccc-dddd-e00888800002</b></p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00888800002\"> </a><a name=\"hcaaaaaaaa-bbbb-cccc-dddd-e00888800002\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.MHD.Comprehensive.DocumentReference.html\">MHD DocumentReference Comprehensive</a></p><p style=\"margin-bottom: 0px\">Security Label: test health data (Details: ActReason code HTEST = 'test health data')</p></div><p><b>masterIdentifier</b>: <a href=\"http://terminology.hl7.org/6.3.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt #xD;#xA;#xD;#xA;This oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: #xD;#xA;#xD;#xA;Note that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.#xD;#xA;#xD;#xA;This OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:uuid:0c3151bd-1cbf-4d64-b04d-cd9187a4c6e0 (use: usual, )</p><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.3.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt #xD;#xA;#xD;#xA;This oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: #xD;#xA;#xD;#xA;Note that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.#xD;#xA;#xD;#xA;This OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:uuid:7d5bb8ac-68ee-4926-85e7-b8aac8e1f09d (use: official, )</p><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 28655-9}\">Attending Discharge summary</span></p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 11369-6}\">History of Immunization note</span></p><p><b>subject</b>: <a href=\"Bundle-ex-fhir-document-bundle.html#http-//example.org/fhir/Patient/fdoc-patient\">Eve Everywoman Female, DoB: 1955-01-06</a></p><p><b>date</b>: 2020-02-01 23:50:50-0500</p><p><b>author</b>: <a href=\"#hcaaaaaaaa-bbbb-cccc-dddd-e00888800002/fdoc-practitioner\">Practitioner Adam Careful </a></p><p><b>securityLabel</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-Confidentiality N}\">normal</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>application/fhir+json</td><td>English</td><td><a href=\"Bundle-ex-comprehensiveProvideDocumentBundleDocument.html#urn-uuid-aaaaaaaa-bbbb-cccc-dddd-e00888800003\">Bundle: identifier = UUID:0c3151bd-1cbf-4d64-b04d-cd9187a4c6e0; type = document; timestamp = 2013-05-28 22:12:21+0000</a></td><td>Discharge Summary from Responsible Clinician</td><td>2013-05-28 22:12:21+0000</td></tr></table><p><b>format</b>: <a href=\"https://profiles.ihe.net/fhir/ihe.formatcode.fhir/1.4.0/CodeSystem-formatcode.html#formatcode-urn.58ihe.58iti.58xds.582017.58mimeTypeSufficient\">IHE Format Code set for use with Document Sharing: urn:ihe:iti:xds:2017:mimeTypeSufficient</a> (mimeType Sufficient)</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Encounter</b></td><td><b>FacilityType</b></td><td><b>PracticeSetting</b></td><td><b>SourcePatientInfo</b></td></tr><tr><td style=\"display: none\">*</td><td>Identifier: <code>https://www.example.org/encounters</code>/S100</td><td><span title=\"Codes:{http://snomed.info/sct 82242000}\">Children's hospital</span></td><td><span title=\"Codes:{http://snomed.info/sct 408467006}\">Adult mental illness - specialty (qualifier value)</span></td><td><a href=\"#hcaaaaaaaa-bbbb-cccc-dddd-e00888800002/aaaaaaaa-bbbb-cccc-dddd-e00888800004\">Dee Schmidt  (no stated gender), DoB Unknown ( http://example.org/patients#mrn-1234)</a></td></tr></table><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Practitioner #fdoc-practitioner</b></p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00888800002/fdoc-practitioner\"> </a><a name=\"hcaaaaaaaa-bbbb-cccc-dddd-e00888800002/fdoc-practitioner\"> </a><p><b>identifier</b>: <code>http://www.acme.org/practitioners</code>/23</p><p><b>name</b>: Adam Careful </p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #aaaaaaaa-bbbb-cccc-dddd-e00888800004</b></p><a name=\"aaaaaaaa-bbbb-cccc-dddd-e00888800002/aaaaaaaa-bbbb-cccc-dddd-e00888800004\"> </a><a name=\"hcaaaaaaaa-bbbb-cccc-dddd-e00888800002/aaaaaaaa-bbbb-cccc-dddd-e00888800004\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Dee Schmidt  (no stated gender), DoB Unknown ( http://example.org/patients#mrn-1234)</p><hr/></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:Practitioner ;
     fhir:id [ fhir:v "fdoc-practitioner" ] ;
     fhir:identifier ( [
       fhir:system [
         fhir:v "http://www.acme.org/practitioners"^^xsd:anyURI ;
         fhir:l <http://www.acme.org/practitioners>
       ] ;
       fhir:value [ fhir:v "23" ]
     ] ) ;
     fhir:name ( [
       fhir:family [ fhir:v "Careful" ] ;
       fhir:given ( [ fhir:v "Adam" ] ) ;
       fhir:prefix ( [ fhir:v "Dr" ] )
     ] )
  ] [
     a fhir:Patient ;
     fhir:id [ fhir:v "aaaaaaaa-bbbb-cccc-dddd-e00888800004" ] ;
     fhir:identifier ( [
       fhir:system [
         fhir:v "http://example.org/patients"^^xsd:anyURI ;
         fhir:l <http://example.org/patients>
       ] ;
       fhir:value [ fhir:v "mrn-1234" ]
     ] ) ;
     fhir:name ( [
       fhir:family [ fhir:v "Schmidt" ] ;
       fhir:given ( [ fhir:v "Dee" ] )
     ] )
  ] ) ; # 
  fhir:masterIdentifier [
     fhir:use [ fhir:v "usual" ] ;
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:0c3151bd-1cbf-4d64-b04d-cd9187a4c6e0" ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:7d5bb8ac-68ee-4926-85e7-b8aac8e1f09d" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:28655-9 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "28655-9" ]
     ] )
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       a loinc:11369-6 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "11369-6" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:l <http://example.org/fhir/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "http://example.org/fhir/Patient/fdoc-patient" ]
  ] ; # 
  fhir:date [ fhir:v "2020-02-01T23:50:50-05:00"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:l <#fdoc-practitioner> ;
     fhir:reference [ fhir:v "#fdoc-practitioner" ]
  ] ) ; # 
  fhir:securityLabel ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-Confidentiality"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-Confidentiality>
       ] ;
       fhir:code [ fhir:v "N" ] ;
       fhir:display [ fhir:v "normal" ]
     ] )
  ] ) ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:contentType [ fhir:v "application/fhir+json" ] ;
       fhir:language [ fhir:v "en" ] ;
       fhir:url [
         fhir:v "urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800003"^^xsd:anyURI ;
         fhir:l <urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800003>
       ] ;
       fhir:title [ fhir:v "Discharge Summary from Responsible Clinician" ] ;
       fhir:creation [ fhir:v "2013-05-28T22:12:21Z"^^xsd:dateTime ]
     ] ;
     fhir:format [
       fhir:system [
         fhir:v "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode"^^xsd:anyURI ;
         fhir:l <http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode>
       ] ;
       fhir:code [ fhir:v "urn:ihe:iti:xds:2017:mimeTypeSufficient" ]
     ]
  ] ) ; # 
  fhir:context [
     fhir:encounter ( [
       fhir:identifier [
         fhir:system [
           fhir:v "https://www.example.org/encounters"^^xsd:anyURI ;
           fhir:l <https://www.example.org/encounters>
         ] ;
         fhir:value [ fhir:v "S100" ]
       ]
     ] ) ;
     fhir:facilityType [
       fhir:coding ( [
         a sct:82242000 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "82242000" ]
       ] )
     ] ;
     fhir:practiceSetting [
       fhir:coding ( [
         a sct:408467006 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "408467006" ]
       ] )
     ] ;
     fhir:sourcePatientInfo [
       fhir:l <#aaaaaaaa-bbbb-cccc-dddd-e00888800004> ;
       fhir:reference [ fhir:v "#aaaaaaaa-bbbb-cccc-dddd-e00888800004" ]
     ]
  ] . # 

<urn:uuid:aaaaaaaa-bbbb-cccc-dddd-e00888800003> a fhir:Bundle ;
  fhir:id [ fhir:v "ex-fhir-document-bundle"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-28T22:12:21Z"^^xsd:dateTime ]
  ] ; # 
  fhir:identifier [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:0c3151bd-1cbf-4d64-b04d-cd9187a4c6e0" ]
  ] ; # 
  fhir:type [ fhir:v "document"] ; # 
  fhir:timestamp [ fhir:v "2013-05-28T22:12:21Z"^^xsd:dateTime] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57>
     ] ;
     fhir:resource ( <http://example.org/fhir/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57> )
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/Practitioner/fdoc-practitioner"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Practitioner/fdoc-practitioner>
     ] ;
     fhir:resource ( <http://example.org/fhir/Practitioner/fdoc-practitioner> )
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/Patient/fdoc-patient"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Patient/fdoc-patient>
     ] ;
     fhir:resource ( <http://example.org/fhir/Patient/fdoc-patient> )
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/Encounter/fdoc-encounter"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Encounter/fdoc-encounter>
     ] ;
     fhir:resource ( <http://example.org/fhir/Encounter/fdoc-encounter> )
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/Observation/fdoc-observation"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Observation/fdoc-observation>
     ] ;
     fhir:resource ( <http://example.org/fhir/Observation/fdoc-observation> )
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/MedicationRequest/fdoc-medicationrequest"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/MedicationRequest/fdoc-medicationrequest>
     ] ;
     fhir:resource ( <http://example.org/fhir/MedicationRequest/fdoc-medicationrequest> )
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/MedicationStatement/fdoc-medicationstatement"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/MedicationStatement/fdoc-medicationstatement>
     ] ;
     fhir:resource ( <http://example.org/fhir/MedicationStatement/fdoc-medicationstatement> )
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/AllergyIntolerance/fdoc-allergyintolerance"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/AllergyIntolerance/fdoc-allergyintolerance>
     ] ;
     fhir:resource ( <http://example.org/fhir/AllergyIntolerance/fdoc-allergyintolerance> )
  ] ) . # 

<http://example.org/fhir/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57> a fhir:Composition ;
  fhir:id [ fhir:v "180f219f-97a8-486d-99d9-ed631fe4fc57"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-28T22:12:21Z"^^xsd:dateTime ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:28655-9 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "28655-9" ]
     ] ) ;
     fhir:text [ fhir:v "Discharge Summary from Responsible Clinician" ]
  ] ; # 
  fhir:subject [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "Patient/fdoc-patient" ]
  ] ; # 
  fhir:encounter [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Encounter/fdoc-encounter> ;
     fhir:reference [ fhir:v "Encounter/fdoc-encounter" ]
  ] ; # 
  fhir:date [ fhir:v "2013-02-01T12:30:02Z"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Practitioner/fdoc-practitioner> ;
     fhir:reference [ fhir:v "Practitioner/fdoc-practitioner" ]
  ] ) ; # 
  fhir:title [ fhir:v "Discharge Summary"] ; # 
  fhir:section ( [
     fhir:title [ fhir:v "Reason for admission" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:29299-5 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "29299-5" ] ;
         fhir:display [ fhir:v "Reason for visit Narrative" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "additional" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table><thead><tr><td>Details</td><td/></tr></thead><tbody><tr><td>Acute Asthmatic attack. Was wheezing for days prior to admission.</td><td/></tr></tbody></table></div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <https://profiles.ihe.net/ITI/MHD/Observation/fdoc-observation> ;
       fhir:reference [ fhir:v "Observation/fdoc-observation" ]
     ] )
  ] [
     fhir:title [ fhir:v "Medications on Discharge" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:10183-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "10183-2" ] ;
         fhir:display [ fhir:v "Hospital discharge medications Narrative" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "additional" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table><thead><tr><td>Medication</td><td>Last Change</td><td>Last ChangeReason</td></tr></thead><tbody><tr><td>Theophylline 200mg BD after meals</td><td>continued</td></tr><tr><td>Ventolin Inhaler</td><td>stopped</td><td>Getting side effect of tremor</td></tr></tbody></table></div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <https://profiles.ihe.net/ITI/MHD/MedicationRequest/fdoc-medicationrequest> ;
       fhir:reference [ fhir:v "MedicationRequest/fdoc-medicationrequest" ]
     ] [
       fhir:l <https://profiles.ihe.net/ITI/MHD/MedicationStatement/fdoc-medicationstatement> ;
       fhir:reference [ fhir:v "MedicationStatement/fdoc-medicationstatement" ]
     ] )
  ] [
     fhir:title [ fhir:v "Known allergies" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:48765-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "48765-2" ] ;
         fhir:display [ fhir:v "Allergies and adverse reactions Document" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "additional" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table><thead><tr><td>Allergen</td><td>Reaction</td></tr></thead><tbody><tr><td>Doxycycline</td><td>Hives</td></tr></tbody></table></div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <https://profiles.ihe.net/ITI/MHD/AllergyIntolerance/fdoc-allergyintolerance> ;
       fhir:reference [ fhir:v "AllergyIntolerance/fdoc-allergyintolerance" ]
     ] )
  ] ) . # 

<http://example.org/fhir/Practitioner/fdoc-practitioner> a fhir:Practitioner ;
  fhir:id [ fhir:v "fdoc-practitioner"] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://www.acme.org/practitioners"^^xsd:anyURI ;
       fhir:l <http://www.acme.org/practitioners>
     ] ;
     fhir:value [ fhir:v "23" ]
  ] ) ; # 
  fhir:name ( [
     fhir:family [ fhir:v "Careful" ] ;
     fhir:given ( [ fhir:v "Adam" ] ) ;
     fhir:prefix ( [ fhir:v "Dr" ] )
  ] ) . # 

<http://example.org/fhir/Patient/fdoc-patient> a fhir:Patient ;
  fhir:id [ fhir:v "fdoc-patient"] ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:text [ fhir:v "Eve Everywoman" ] ;
     fhir:family [ fhir:v "Everywoman1" ] ;
     fhir:given ( [ fhir:v "Eve" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "555-555-2003" ] ;
     fhir:use [ fhir:v "work" ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:birthDate [ fhir:v "1955-01-06"^^xsd:date] ; # 
  fhir:address ( [
     fhir:use [ fhir:v "home" ] ;
     fhir:line ( [ fhir:v "2222 Home Street" ] )
  ] ) . # 

<http://example.org/fhir/Encounter/fdoc-encounter> a fhir:Encounter ;
  fhir:id [ fhir:v "fdoc-encounter"] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://www.example.org/encounters"^^xsd:anyURI ;
       fhir:l <http://www.example.org/encounters>
     ] ;
     fhir:value [ fhir:v "S100" ]
  ] ) ; # 
  fhir:status [ fhir:v "finished"] ; # 
  fhir:class [
     fhir:system [
       fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
       fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
     ] ;
     fhir:code [ fhir:v "IMP" ] ;
     fhir:display [ fhir:v "inpatient encounter" ]
  ] ; # 
  fhir:type ( [
     fhir:text [ fhir:v "Orthopedic Admission" ]
  ] ) ; # 
  fhir:subject [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "Patient/fdoc-patient" ]
  ] ; # 
  fhir:period [
     fhir:start [ fhir:v "2013-01-20T12:30:02Z"^^xsd:dateTime ] ;
     fhir:end [ fhir:v "2013-02-01T12:30:02Z"^^xsd:dateTime ]
  ] ; # 
  fhir:hospitalization [
     fhir:dischargeDisposition [
       fhir:text [ fhir:v "Discharged to care of GP" ]
     ]
  ] . # 

<http://example.org/fhir/Observation/fdoc-observation> a fhir:Observation ;
  fhir:id [ fhir:v "fdoc-observation"] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:code [
     fhir:coding ( [
       a loinc:46241-6 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "46241-6" ]
     ] ) ;
     fhir:text [ fhir:v "Reason for admission" ]
  ] ; # 
  fhir:subject [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "Patient/fdoc-patient" ]
  ] ; # 
  fhir:encounter [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Encounter/fdoc-encounter> ;
     fhir:reference [ fhir:v "Encounter/fdoc-encounter" ]
  ] ; # 
  fhir:value [
     a fhir:String ;
     fhir:v "Acute Asthmatic attack. Was wheezing for days prior to admission."
  ] . # 

<http://example.org/fhir/MedicationRequest/fdoc-medicationrequest> a fhir:MedicationRequest ;
  fhir:id [ fhir:v "fdoc-medicationrequest"] ; # 
  fhir:status [ fhir:v "unknown"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       a sct:66493003 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "66493003" ]
     ] ) ;
     fhir:text [ fhir:v "Theophylline 200mg" ]
  ] ; # 
  fhir:subject [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "Patient/fdoc-patient" ]
  ] ; # 
  fhir:requester [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Practitioner/fdoc-practitioner> ;
     fhir:reference [ fhir:v "Practitioner/fdoc-practitioner" ]
  ] ; # 
  fhir:reasonCode ( [
     fhir:text [ fhir:v "Management of Asthma" ]
  ] ) ; # 
  fhir:dosageInstruction ( [
     fhir:additionalInstruction ( [
       fhir:text [ fhir:v "Take with Food" ]
     ] ) ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:route [
       fhir:coding ( [
         a sct:394899003 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "394899003" ] ;
         fhir:display [ fhir:v "oral administration of treatment" ]
       ] )
     ] ;
     fhir:doseAndRate ( [
       fhir:type [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/dose-rate-type>
           ] ;
           fhir:code [ fhir:v "ordered" ] ;
           fhir:display [ fhir:v "Ordered" ]
         ] )
       ] ;
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "1"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "tablet" ] ;
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
         ] ;
         fhir:code [ fhir:v "TAB" ]
       ]
     ] )
  ] ) . # 

<http://example.org/fhir/MedicationStatement/fdoc-medicationstatement> a fhir:MedicationStatement ;
  fhir:id [ fhir:v "fdoc-medicationstatement"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:statusReason ( [
     fhir:text [ fhir:v "Management of Asthma" ]
  ] ) ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:text [ fhir:v "Ventolin Inhaler" ]
  ] ; # 
  fhir:subject [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "Patient/fdoc-patient" ]
  ] ; # 
  fhir:dateAsserted [ fhir:v "2013-05-05T16:13:03Z"^^xsd:dateTime] . # 

<http://example.org/fhir/AllergyIntolerance/fdoc-allergyintolerance> a fhir:AllergyIntolerance ;
  fhir:id [ fhir:v "fdoc-allergyintolerance"] ; # 
  fhir:clinicalStatus [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical>
       ] ;
       fhir:code [ fhir:v "active" ] ;
       fhir:display [ fhir:v "Active" ]
     ] )
  ] ; # 
  fhir:verificationStatus [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/allergyintolerance-verification>
       ] ;
       fhir:code [ fhir:v "confirmed" ] ;
       fhir:display [ fhir:v "Confirmed" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "allergy"] ; # 
  fhir:criticality [ fhir:v "high"] ; # 
  fhir:code [
     fhir:text [ fhir:v "Doxycycline" ]
  ] ; # 
  fhir:patient [
     fhir:l <https://profiles.ihe.net/ITI/MHD/Patient/fdoc-patient> ;
     fhir:reference [ fhir:v "Patient/fdoc-patient" ]
  ] ; # 
  fhir:recordedDate [ fhir:v "2012-09-17"^^xsd:date] ; # 
  fhir:reaction ( [
     fhir:manifestation ( [
       fhir:text [ fhir:v "Hives" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

