@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/core/Composition/f2a3b4c5-d6e7-8901-fabc-012345678901> a fhir:Composition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "f2a3b4c5-d6e7-8901-fabc-012345678901"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.ehdsi.eu/core/StructureDefinition/composition-myhealtheu-core"^^xsd:anyURI ;
       fhir:l <http://fhir.ehdsi.eu/core/StructureDefinition/composition-myhealtheu-core>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en-GB"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Patient Summary - John Doe</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier [
     fhir:system [
       fhir:v "http://example.org/composition-ids"^^xsd:anyURI ;
       fhir:l <http://example.org/composition-ids>
     ] ;
     fhir:value [ fhir:v "COMP-2024-001" ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:11502-2 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "11502-2" ] ;
       fhir:display [ fhir:v "Laboratory report" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://fhir.ehdsi.eu/core/Patient/1d4bbc93-63b7-4f2b-8f0f-8380aa138f49> ;
     fhir:reference [ fhir:v "Patient/1d4bbc93-63b7-4f2b-8f0f-8380aa138f49" ]
  ] ; # 
  fhir:date [ fhir:v "2024-01-15"^^xsd:date] ; # 
  fhir:author ( [
     fhir:l <http://fhir.ehdsi.eu/core/PractitionerRole/b975ec26-4ecf-4588-9fa2-afbb0d9fc530> ;
     fhir:reference [ fhir:v "PractitionerRole/b975ec26-4ecf-4588-9fa2-afbb0d9fc530" ]
  ] ) ; # 
  fhir:title [ fhir:v "Patient Summary - John Doe"] ; # 
  fhir:attester ( [
     fhir:mode [ fhir:v "legal" ] ;
     fhir:time [ fhir:v "2024-01-15T10:00:00Z"^^xsd:dateTime ] ;
     fhir:party [
       fhir:l <http://fhir.ehdsi.eu/core/PractitionerRole/b975ec26-4ecf-4588-9fa2-afbb0d9fc530> ;
       fhir:reference [ fhir:v "PractitionerRole/b975ec26-4ecf-4588-9fa2-afbb0d9fc530" ]
     ]
  ] ) ; # 
  fhir:custodian [
     fhir:l <http://fhir.ehdsi.eu/core/Organization/ff4d98d1-69c9-43db-896e-58d11c15662c> ;
     fhir:reference [ fhir:v "Organization/ff4d98d1-69c9-43db-896e-58d11c15662c" ]
  ] ; # 
  fhir:section ( [
     fhir:title [ fhir:v "Active Problems" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:11450-4 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "11450-4" ] ;
         fhir:display [ fhir:v "Problem list - Reported" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "generated" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Type 2 diabetes mellitus</div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://fhir.ehdsi.eu/core/Condition/c3d4e5f6-a7b8-9012-cdef-123456789012> ;
       fhir:reference [ fhir:v "Condition/c3d4e5f6-a7b8-9012-cdef-123456789012" ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

