@prefix fhir: <http://hl7.org/fhir/> .
@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/FindDocumentReferences> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "FindDocumentReferences"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2020-10-14T07:56:23.916+00:00"^^xsd:dateTime ] ;
     fhir:profile ( [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage"^^xsd:anyURI ;
       fhir:l <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesComprehensiveResponseMessage>
     ] )
  ] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "http://example.com/DocumentReference?patient.identifier=urn:oid:2.999|11111111&status=current"^^xsd:anyURI ;
       fhir:l <http://example.com/DocumentReference?patient.identifier=urn:oid:2.999&version=11111111&status=current>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "urn:uuid:50383ae5-49e5-4dea-b0e6-660cb9e7b91f"^^xsd:anyURI ;
       fhir:l <urn:uuid:50383ae5-49e5-4dea-b0e6-660cb9e7b91f>
     ] ;
     fhir:resource ( <urn:uuid:50383ae5-49e5-4dea-b0e6-660cb9e7b91f> )
  ] ) . # 

<urn:uuid:50383ae5-49e5-4dea-b0e6-660cb9e7b91f> a fhir:DocumentReference ;
  fhir:id [ fhir:v "50383ae5-49e5-4dea-b0e6-660cb9e7b91f"] ; # 
  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:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DocumentReference_50383ae5-49e5-4dea-b0e6-660cb9e7b91f\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference 50383ae5-49e5-4dea-b0e6-660cb9e7b91f</b></p><a name=\"50383ae5-49e5-4dea-b0e6-660cb9e7b91f\"> </a><a name=\"hc50383ae5-49e5-4dea-b0e6-660cb9e7b91f\"> </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></div><p><b>identifier</b>: Identifier type for XDS UniqueId/urn:oid:1.3.6.1.4.1.12559.11.13.2.1.2951, Identifier type for XDS entryUUID/urn:uuid:50383ae5-49e5-4dea-b0e6-660cb9e7b91f</p><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://snomed.info/sct 721912009}\">Medication summary document (record artifact)</span></p><p><b>category</b>: <span title=\"Codes:{http://snomed.info/sct 422735006}\">Summary clinical document (record artifact)</span></p><p><b>subject</b>: <a href=\"http://example.org/Patient/FranzMusterNeedsAbsoluteUrl\">http://example.org/Patient/FranzMusterNeedsAbsoluteUrl</a></p><p><b>date</b>: 2020-06-29 11:58:00+0000</p><p><b>description</b>: 2-7-MedicationCard</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>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>text/xml</td><td>German (Region=Switzerland)</td><td><a href=\"http://example.com/xdsretrieve?uniqueId=urn:uuid:413eb0f7-aa72-4405-86a4-7793a23fcc27&amp;repositoryUniqueId=2.999.756.42.1\">http://example.com/xdsretrieve?uniqueId=urn:uuid:413eb0f7-aa72-4405-86a4-7793a23fcc27&amp;repositoryUniqueId=2.999.756.42.1</a></td><td>2020-06-29 11:58:00+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.58pharm.58pml.582013\">IHE Format Code set for use with Document Sharing: urn:ihe:pharm:pml:2013</a> (Pharmacy PML)</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>FacilityType</b></td><td><b>PracticeSetting</b></td><td><b>SourcePatientInfo</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 264358009}\">General practice premises (environment)</span></td><td><span title=\"Codes:{http://snomed.info/sct 394802001}\">General medicine (qualifier value)</span></td><td><a href=\"#hc50383ae5-49e5-4dea-b0e6-660cb9e7b91f/findP1\">Anonymous Patient (no stated gender), DoB Unknown ( Medical record number (use: usual, ))</a></td></tr></table><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #findP1</b></p><a name=\"50383ae5-49e5-4dea-b0e6-660cb9e7b91f/findP1\"> </a><a name=\"hc50383ae5-49e5-4dea-b0e6-660cb9e7b91f/findP1\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Anonymous Patient (no stated gender), DoB Unknown ( Medical record number (use: usual, ))</p><hr/></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:Patient ;
     fhir:id [ fhir:v "findP1" ] ;
     fhir:identifier ( [
       fhir:use [ fhir:v "usual" ] ;
       fhir:type [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
           ] ;
           fhir:code [ fhir:v "MR" ]
         ] )
       ] ;
       fhir:system [
         fhir:v "urn:oid:2.16.756.888888.3.1"^^xsd:anyURI ;
         fhir:l <urn:oid:2.16.756.888888.3.1>
       ] ;
       fhir:value [ fhir:v "8734" ]
     ] )
  ] ) ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "https://profiles.ihe.net/ITI/MHD/CodeSystem/IHE.MHD.MHDIdentifierType"^^xsd:anyURI ;
           fhir:l <https://profiles.ihe.net/ITI/MHD/CodeSystem/IHE.MHD.MHDIdentifierType>
         ] ;
         fhir:code [ fhir:v "uniqueId" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:1.3.6.1.4.1.12559.11.13.2.1.2951" ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "https://profiles.ihe.net/ITI/MHD/CodeSystem/IHE.MHD.MHDIdentifierType"^^xsd:anyURI ;
           fhir:l <https://profiles.ihe.net/ITI/MHD/CodeSystem/IHE.MHD.MHDIdentifierType>
         ] ;
         fhir:code [ fhir:v "entryUUID" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:50383ae5-49e5-4dea-b0e6-660cb9e7b91f" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:type [
     fhir:coding ( [
       a sct:721912009 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "721912009" ] ;
       fhir:display [ fhir:v "Medication summary document (record artifact)" ]
     ] )
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       a sct:422735006 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "422735006" ] ;
       fhir:display [ fhir:v "Summary clinical document (record artifact)" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:l <http://example.org/Patient/FranzMusterNeedsAbsoluteUrl> ;
     fhir:reference [ fhir:v "http://example.org/Patient/FranzMusterNeedsAbsoluteUrl" ]
  ] ; # 
  fhir:date [ fhir:v "2020-06-29T11:58:00.000+00:00"^^xsd:dateTime] ; # 
  fhir:description [ fhir:v "2-7-MedicationCard"] ; # 
  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 "text/xml" ] ;
       fhir:language [ fhir:v "de-CH" ] ;
       fhir:url [
         fhir:v "http://example.com/xdsretrieve?uniqueId=urn:uuid:413eb0f7-aa72-4405-86a4-7793a23fcc27&repositoryUniqueId=2.999.756.42.1"^^xsd:anyURI ;
         fhir:l <http://example.com/xdsretrieve?uniqueId=urn:uuid:413eb0f7-aa72-4405-86a4-7793a23fcc27&repositoryUniqueId=2.999.756.42.1>
       ] ;
       fhir:creation [ fhir:v "2020-06-29T11:58:00+00:00"^^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:pharm:pml:2013" ]
     ]
  ] ) ; # 
  fhir:context [
     fhir:facilityType [
       fhir:coding ( [
         a sct:264358009 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "264358009" ] ;
         fhir:display [ fhir:v "General practice premises (environment)" ]
       ] )
     ] ;
     fhir:practiceSetting [
       fhir:coding ( [
         a sct:394802001 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "394802001" ] ;
         fhir:display [ fhir:v "General medicine (qualifier value)" ]
       ] )
     ] ;
     fhir:sourcePatientInfo [
       fhir:l <#findP1> ;
       fhir:reference [ fhir:v "#findP1" ]
     ]
  ] . # 

# -------------------------------------------------------------------------------------

