@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/uv/dap/Bundle/example-bundle-ex-residual> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-bundle-ex-residual"] ; # 
  fhir:meta [
     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:extension ( [
         fhir:url [
           fhir:v "http://hl7.org/fhir/StructureDefinition/permission-imposed-on-bundle"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/permission-imposed-on-bundle>
         ] ;
         fhir:value [
           a fhir:Reference ;
           fhir:l <https://example.org/fhir/Permission/ex-permission-redisclose-forbidden-without-consent> ;
           fhir:reference [ fhir:v "https://example.org/fhir/Permission/ex-permission-redisclose-forbidden-without-consent" ]
         ]
       ] ) ;
       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 "CPLYPOL" ]
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:timestamp [ fhir:v "2023-11-22T09:32:24Z"^^xsd:dateTime] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "https://example.org/fhir/Observation?patient=example&status=current"^^xsd:anyURI ;
       fhir:l <https://example.org/fhir/Observation?patient=example&status=current>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "https://example.org/fhir/Observation/in-Observation"^^xsd:anyURI ;
       fhir:l <https://example.org/fhir/Observation/in-Observation>
     ] ;
     fhir:resource ( <https://example.org/fhir/Observation/in-Observation> ) ;
     fhir:search [
       fhir:mode [ fhir:v "match" ]
     ]
  ] ) . # 

<https://example.org/fhir/Observation/in-Observation> a fhir:Observation ;
  fhir:id [ fhir:v "in-Observation"] ; # 
  fhir:meta [
     fhir:security ( [
       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 "ETH" ]
     ] [
       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 "R" ]
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_in-Observation\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation in-Observation</b></p><a name=\"in-Observation\"> </a><a name=\"hcin-Observation\"> </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\">Security Labels: <a href=\"http://terminology.hl7.org/7.4.0/CodeSystem-v3-ActCode.html\">substance abuse information sensitivity (Details: ActCode code ETH = 'substance abuse information sensitivity')</a>, <a href=\"http://terminology.hl7.org/7.4.0/CodeSystem-v3-Confidentiality.html\">restricted (Details: Confidentiality code R = 'restricted')</a></p></div><p><b>status</b>: Final</p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 74013-4}\">Alcoholic drinks per day</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><p><b>effective</b>: 2022-06-13</p><p><b>performer</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><p><b>value</b>: 5 wine glasses per day<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code/d = '/d')</span></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:code [
     a loinc:74013-4 ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "74013-4" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/uv/dap/Patient/ex-patient> ;
     fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ; # 
  fhir:effective [
     a fhir:DateTime ;
     fhir:v "2022-06-13"^^xsd:date
  ] ; # 
  fhir:performer ( [
     fhir:l <http://hl7.org/fhir/uv/dap/Patient/ex-patient> ;
     fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ) ; # 
  fhir:value [
     a fhir:Quantity ;
     fhir:value [ fhir:v "5"^^xsd:decimal ] ;
     fhir:unit [ fhir:v "wine glasses per day" ] ;
     fhir:system [
       fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
       fhir:l <http://unitsofmeasure.org>
     ] ;
     fhir:code [ fhir:v "/d" ]
  ] . # 

<http://hl7.org/fhir/uv/dap/Patient/ex-patient> a fhir:Uv .

# -------------------------------------------------------------------------------------

