@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://hl7.org/fhir/Composition/example-context-establishing-clinical-snapshot> a fhir:Composition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-context-establishing-clinical-snapshot"] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:type [
     a loinc:60591-5 ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "60591-5" ] ;
       fhir:display [ fhir:v "Patient summary Document" ]
     ] ) ;
     fhir:text [ fhir:v "Current clinical status snapshot" ]
  ] ; # 
  fhir:subject ( [
     fhir:l <http://hl7.org/fhir/Patient/patient-123> ;
     fhir:reference [ fhir:v "Patient/patient-123" ] ;
     fhir:display [ fhir:v "Example Patient" ]
  ] ) ; # 
  fhir:date [ fhir:v "2026-06-24T11:30:00-07:00"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:l <http://hl7.org/fhir/CareTeam/primary-care-team> ;
     fhir:reference [ fhir:v "CareTeam/primary-care-team" ] ;
     fhir:display [ fhir:v "Example Patient Primary Care Team" ]
  ] ) ; # 
  fhir:title [ fhir:v "Current Clinical Status"] ; # 
  fhir:attester ( [
     fhir:mode [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/composition-attestation-mode"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/composition-attestation-mode>
         ] ;
         fhir:code [ fhir:v "professional" ] ;
         fhir:display [ fhir:v "Professional" ]
       ] )
     ] ;
     fhir:time [ fhir:v "2026-06-24T11:30:00-07:00"^^xsd:dateTime ] ;
     fhir:party [
       fhir:l <http://hl7.org/fhir/Practitioner/practitioner-1> ;
       fhir:reference [ fhir:v "Practitioner/practitioner-1" ] ;
       fhir:display [ fhir:v "Some Doctor, MD" ]
     ]
  ] ) ; # 
  fhir:custodian [
     fhir:l <http://hl7.org/fhir/Organization/example-health-system> ;
     fhir:reference [ fhir:v "Organization/example-health-system" ] ;
     fhir:display [ fhir:v "Example Health System" ]
  ] ; # 
  fhir:section ( [
     fhir:title [ fhir:v "Active Problems" ] ;
     fhir:code [
       a loinc:57852-6 ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "57852-6" ] ;
         fhir:display [ fhir:v "Problem list Narrative - Reported" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "generated" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n				<p>Active problems: type 2 diabetes mellitus and essential hypertension.</p>\n			</div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://hl7.org/fhir/Condition/diabetes> ;
       fhir:reference [ fhir:v "Condition/diabetes" ]
     ] [
       fhir:l <http://hl7.org/fhir/Condition/hypertension> ;
       fhir:reference [ fhir:v "Condition/hypertension" ]
     ] )
  ] [
     fhir:title [ fhir:v "Allergies and Adverse Reactions" ] ;
     fhir:code [
       a loinc:48765-2 ;
       fhir:coding ( [
         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\">\n				<p>Penicillin allergy: urticaria.</p>\n			</div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://hl7.org/fhir/AllergyIntolerance/penicillin> ;
       fhir:reference [ fhir:v "AllergyIntolerance/penicillin" ]
     ] )
  ] [
     fhir:title [ fhir:v "Current Medications" ] ;
     fhir:code [
       a loinc:10160-0 ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "10160-0" ] ;
         fhir:display [ fhir:v "History of Medication use Narrative" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "generated" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n				<p>Current medications: metformin and lisinopril.</p>\n			</div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://hl7.org/fhir/MedicationRequest/metformin> ;
       fhir:reference [ fhir:v "MedicationRequest/metformin" ]
     ] [
       fhir:l <http://hl7.org/fhir/MedicationRequest/lisinopril> ;
       fhir:reference [ fhir:v "MedicationRequest/lisinopril" ]
     ] )
  ] [
     fhir:title [ fhir:v "Plan of Care" ] ;
     fhir:code [
       a loinc:18776-5 ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "18776-5" ] ;
         fhir:display [ fhir:v "Plan of care note" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "generated" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n				<p>Continue current therapy and reassess blood pressure and glycated hemoglobin at the next visit.</p>\n			</div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://hl7.org/fhir/CarePlan/chronic-care-plan> ;
       fhir:reference [ fhir:v "CarePlan/chronic-care-plan" ]
     ] )
  ] ) . # 

<http://hl7.org/fhir/Patient/patient-123> a fhir:Patient .

<http://hl7.org/fhir/CareTeam/primary-care-team> a fhir:CareTeam .

<http://hl7.org/fhir/Practitioner/practitioner-1> a fhir:Practitioner .

<http://hl7.org/fhir/Organization/example-health-system> a fhir:Organization .

<http://hl7.org/fhir/Condition/diabetes> a fhir:Condition .

<http://hl7.org/fhir/Condition/hypertension> a fhir:Condition .

<http://hl7.org/fhir/AllergyIntolerance/penicillin> a fhir:AllergyIntolerance .

<http://hl7.org/fhir/MedicationRequest/metformin> a fhir:MedicationRequest .

<http://hl7.org/fhir/MedicationRequest/lisinopril> a fhir:MedicationRequest .

<http://hl7.org/fhir/CarePlan/chronic-care-plan> a fhir:CarePlan .

# -------------------------------------------------------------------------------------

