@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://fhir.ehdsi.eu/hdr/Composition/ExampleCompositionHdr> a fhir:Composition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleCompositionHdr"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.ehdsi.eu/hdr/StructureDefinition/composition-hdr-myhealtheu"^^xsd:anyURI ;
       fhir:l <http://fhir.ehdsi.eu/hdr/StructureDefinition/composition-hdr-myhealtheu>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en-GB"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xml:lang=\"en-GB\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-GB\">Composition of clinical sections.</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:34105-7 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "34105-7" ] ;
       fhir:display [ fhir:v "Hospital Discharge summary" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <urn:uuid:1d4bbc93-63b7-4f2b-8f0f-8380aa138f49> ;
     fhir:reference [ fhir:v "urn:uuid:1d4bbc93-63b7-4f2b-8f0f-8380aa138f49" ]
  ] ; # 
  fhir:encounter [
     fhir:l <urn:uuid:b49cdbed-299c-4b95-aa9d-273811521147> ;
     fhir:reference [ fhir:v "urn:uuid:b49cdbed-299c-4b95-aa9d-273811521147" ]
  ] ; # 
  fhir:date [ fhir:v "2025-05-05T14:00:00+02:00"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:l <urn:uuid:b975ec26-4ecf-4588-9fa2-afbb0d9fc530> ;
     fhir:reference [ fhir:v "urn:uuid:b975ec26-4ecf-4588-9fa2-afbb0d9fc530" ]
  ] ) ; # 
  fhir:title [ fhir:v "Hospital Discharge Summary"] ; # 
  fhir:section ( [
     fhir:title [ fhir:v "Hospital Course" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:8648-8 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "8648-8" ] ;
         fhir:display [ fhir:v "Hospital course note" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "generated" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Patient was admitted for observation and discharged in stable condition.</div>"^^rdf:XMLLiteral ]
     ]
  ] [
     fhir:title [ fhir:v "Significant Results" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:30954-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "30954-2" ] ;
         fhir:display [ fhir:v "Relevant diagnostic tests/laboratory data note" ]
       ] )
     ] ;
     fhir:entry ( [
       fhir:l <urn:uuid:9c72df9a-c459-45ea-bedf-b89568a8378a> ;
       fhir:reference [ fhir:v "urn:uuid:9c72df9a-c459-45ea-bedf-b89568a8378a" ]
     ] [
       fhir:l <urn:uuid:d532c253-9bd1-433a-a08e-fb6384f4a6b6> ;
       fhir:reference [ fhir:v "urn:uuid:d532c253-9bd1-433a-a08e-fb6384f4a6b6" ]
     ] )
  ] [
     fhir:title [ fhir:v "Clinical Synthesis" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:67781-5 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "67781-5" ] ;
         fhir:display [ fhir:v "Summarization of encounter note" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "generated" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Final diagnosis: Acute bronchitis. Treatment included antibiotics and rest.</div>"^^rdf:XMLLiteral ]
     ]
  ] [
     fhir:title [ fhir:v "Allergies and intolerances" ] ;
     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 "generated" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Textual overview of allergies and intolerances.</div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <urn:uuid:5b87ea1e-01ad-4239-81ec-3a16b5c4f4ec> ;
       fhir:reference [ fhir:v "urn:uuid:5b87ea1e-01ad-4239-81ec-3a16b5c4f4ec" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

