@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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://www.bihealth.org/fhir/enrich-mhealth/Observation/Example-ENRICHKreatinin> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Example-ENRICHKreatinin"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://www.bihealth.org/fhir/enrich-mhealth/StructureDefinition/mii-kreatinin" ;
       fhir:index 0 ;
       fhir:link <https://www.bihealth.org/fhir/enrich-mhealth/StructureDefinition/mii-kreatinin>
     ], [
       fhir:value "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab" ;
       fhir:index 1 ;
       fhir:link <https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Observation Example-ENRICHKreatinin</b></p><a name=\"Example-ENRICHKreatinin\"> </a><a name=\"hcExample-ENRICHKreatinin\"> </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\">Profiles: <a href=\"StructureDefinition-mii-kreatinin.html\">ENRICH-mHealth Laboruntersuchung-Kreatinin</a>, <a href=\"https://simplifier.net/resolve?scope=de.medizininformatikinitiative.kerndatensatz.laborbefund@2025.0.2&amp;canonical=https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab\">MII PR Labor Laboruntersuchung</a></p></div><p><b>identifier</b>: Observation Instance Identifier/59826-8_1234567890</p><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 26436-6}, {http://terminology.hl7.org/CodeSystem/observation-category laboratory}, {http://exmple.org/fhir/sid/Laborgruppe Niere/Elektrolyte}, {http://loinc.org 26436-6}, {http://terminology.hl7.org/CodeSystem/observation-category laboratory}\">Laboratory studies (set)</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 59826-8}\">Kreatinin</span></p><p><b>subject</b>: <a href=\"Patient-enrich-mhealth-patient-2.html\">Anna Müller  Female, DoB: 1985-03-12 ( MR)</a></p><p><b>encounter</b>: <a href=\"Encounter-Example-ENRICH-Encounter-PRtoPR.html\">Encounter: status = in-progress; class = inpatient encounter (ActCode#IMP); type = intensivstationaer; serviceType = Intensivmedizin; period = 2025-01-14 08:00:00+1000 --&gt; (ongoing)</a></p><p><b>effective</b>: 2018-11-20 12:05:00+0100</p><p><b>issued</b>: 2018-03-11 10:28:00+0100</p><p><b>performer</b>: <a href=\"https://simplifier.net/resolve?scope=de.medizininformatikinitiative.kerndatensatz.consent@2025.0.4&amp;canonical=de.medizininformatikinitiative.kerndatensatz.consent/Example-ENRICH-Practitioner-PR1\">Zentrallabor des IKCL</a></p><p><b>value</b>: 72 µmol/l<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codeumol/L = 'umol/L')</span></p><p><b>interpretation</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation N}\">Normal</span></p><h3>ReferenceRanges</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Low</b></td><td><b>High</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>72</td><td>127</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/referencerange-meaning normal}\">Normal Range</span></td></tr></table></div>"
  ] ;
  fhir:Observation.identifier [
     fhir:index 0 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "OBI" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://exmaple.org/fhir/sid/test-lab-results" ] ;
     fhir:Identifier.value [ fhir:value "59826-8_1234567890" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://www.medizininformatik-initiative.de/fhir/core/CodeSystem/core-location-identifier" ] ;
         fhir:Identifier.value [ fhir:value "DIZ-ID" ]
       ]
     ]
  ] ;
  fhir:Observation.status [ fhir:value "final"] ;
  fhir:Observation.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:26436-6 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "26436-6" ] ;
       fhir:Coding.display [ fhir:value "Laboratory studies (set)" ]
     ], [
       fhir:index 1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ] ;
       fhir:Coding.code [ fhir:value "laboratory" ] ;
       fhir:Coding.display [ fhir:value "Laboratory" ]
     ], [
       fhir:index 2 ;
       fhir:Coding.system [ fhir:value "http://exmple.org/fhir/sid/Laborgruppe" ] ;
       fhir:Coding.code [ fhir:value "Niere/Elektrolyte" ]
     ], [
       fhir:index 3 ;
       a loinc:26436-6 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "26436-6" ]
     ], [
       fhir:index 4 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ] ;
       fhir:Coding.code [ fhir:value "laboratory" ]
     ]
  ] ;
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:59826-8 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "59826-8" ] ;
       fhir:Coding.display [ fhir:value "Creatinine [Moles/volume] in Blood" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Kreatinin" ]
  ] ;
  fhir:Observation.subject [
     fhir:link <https://www.bihealth.org/fhir/enrich-mhealth/Patient/enrich-mhealth-patient-2> ;
     fhir:Reference.reference [ fhir:value "Patient/enrich-mhealth-patient-2" ]
  ] ;
  fhir:Observation.encounter [
     fhir:link <https://www.bihealth.org/fhir/enrich-mhealth/Encounter/Example-ENRICH-Encounter-PRtoPR> ;
     fhir:Reference.reference [ fhir:value "Encounter/Example-ENRICH-Encounter-PRtoPR" ]
  ] ;
  fhir:Observation.effectiveDateTime [
     fhir:value "2018-11-20T12:05:00+01:00"^^xsd:dateTime ;
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/QuelleKlinischesBezugsdatum" ] ;
       fhir:Extension.valueCoding [
         a sct:399445004 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/900000000000207008/version/20230731" ] ;
         fhir:Coding.code [ fhir:value "399445004" ] ;
         fhir:Coding.display [ fhir:value "Specimen collection date (observable entity)" ]
       ]
     ]
  ] ;
  fhir:Observation.issued [ fhir:value "2018-03-11T10:28:00+01:00"^^xsd:dateTime] ;
  fhir:Observation.performer [
     fhir:index 0 ;
     fhir:Reference.reference [ fhir:value "Example-ENRICH-Practitioner-PR1" ] ;
     fhir:Reference.display [ fhir:value "Zentrallabor des IKCL" ]
  ] ;
  fhir:Observation.valueQuantity [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/iso21090-PQ-translation" ] ;
       fhir:Extension.valueQuantity [
         fhir:Quantity.value [ fhir:value "0.81"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "mg/dL" ] ;
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
         fhir:Quantity.code [ fhir:value "mg/dL" ]
       ]
     ] ;
     fhir:Quantity.value [
       fhir:value "72"^^xsd:decimal ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/quantity-precision" ] ;
         fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]
       ]
     ] ;
     fhir:Quantity.unit [ fhir:value "µmol/l" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "umol/L" ]
  ] ;
  fhir:Observation.interpretation [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" ] ;
       fhir:Coding.code [ fhir:value "N" ]
     ]
  ] ;
  fhir:Observation.referenceRange [
     fhir:index 0 ;
     fhir:Observation.referenceRange.low [
       fhir:Quantity.value [ fhir:value "72"^^xsd:decimal ]
     ] ;
     fhir:Observation.referenceRange.high [
       fhir:Quantity.value [ fhir:value "127"^^xsd:decimal ]
     ] ;
     fhir:Observation.referenceRange.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/referencerange-meaning" ] ;
         fhir:Coding.code [ fhir:value "normal" ] ;
         fhir:Coding.display [ fhir:value "Normal Range" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://www.bihealth.org/fhir/enrich-mhealth/Observation/Example-ENRICHKreatinin.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

