@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 -------------------------------------------------------------------

<http://dips.no/fhir/R4/Observation/dips-body-weight-create> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "dips-body-weight-create"] ;
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "0" ] ;
     fhir:Meta.lastUpdated [ fhir:value "2014-01-30T22:35:23+11:00"^^xsd:dateTime ] ;
     fhir:Meta.source [ fhir:value "META_VISION" ] ;
     fhir:Meta.profile [
       fhir:value "http://dips.no/fhir/StructureDefinition/DIPSVitalSignsObservationBodyWeight" ;
       fhir:index 0 ;
       fhir:link <http://dips.no/fhir/StructureDefinition/DIPSVitalSignsObservationBodyWeight>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Observation dips-body-weight-create</b></p><a name=\"dips-body-weight-create\"> </a><a name=\"hcdips-body-weight-create\"> </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\">version: 0; Last updated: 2014-01-30 22:35:23+1100; </p><p style=\"margin-bottom: 0px\">Information Source: <a href=\"https://simplifier.net/resolve?scope=hl7.fhir.no.basis@2.1.2&amp;canonical=http://fhir.org/packages/hl7.fhir.no.basis/META_VISION\">META_VISION</a></p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-DIPSVitalSignsObservationBodyWeight.html\">DIPS Vital Signs Observation - Body Weight</a></p></div><p><b>DIPSJournalId</b>: <a href=\"DocumentReference-ako124.html\">DocumentReference: status = current; docStatus = final</a></p><p><b>DIPSVitalSignsLocation</b>: <a href=\"CodeSystem-DIPSLocation.html#DIPSLocation-School\">DIPSLocation: School</a> (At School)</p><p><b>NoDomainVitalSignsClothingState-Extension</b>: <a href=\"http://snomed.info/id/8101000202100\">SNOMED CT: 8101000202100</a> (Naken)</p><p><b>NoDomainVitalSignsConfoundingFactor-Extension</b>: <span title=\"Codes:\">sample confounding factor</span></p><p><b>identifier</b>: <code>http://dips.no/fhir/namingsystem/dips-RelativeEhrUri</code>/ehr:compositions/6c41D37f-f173-45d6-8504-17c40454b9ee::default::1/content[openEHR-EHR-OBSERVATION.body_weight.v2 and name/value='Vekt'], <code>http://dips.no/fhir/namingsystem/dips-ObservationId</code>/dips-body-weight-create, <code>http://dips.no/fhir/namingsystem/externalId</code>/testBPexternalId1</p><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category vital-signs}\">Vital Signs</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 29463-7}, {http://snomed.info/sct 27113001}\">Body weight</span></p><p><b>subject</b>: <a href=\"Patient-cdp1000807.html\">Anonymous Patient (no stated gender), DoB Unknown ( http://dips.no/fhir/namingsystem/dips-patientid#1000807)</a></p><p><b>encounter</b>: <a href=\"Encounter-agy100247.html\">Encounter: identifier = http://dips.no/fhir/namingsystem/dips-omsorgsepisodeid#agy100247; status = arrived; class = ambulatory (ActCode#AMB)</a></p><p><b>effective</b>: 2021-05-10</p><p><b>performer</b>: </p><ul><li><a href=\"PractitionerRole-agb27.html\">PractitionerRole: identifier = urn:oid:1.3.6.1.4.1.9038.51.1#27</a></li><li><a href=\"Organization-afa22.html\">Organization: identifier = urn:oid:1.3.6.1.4.1.9038.70.3#22</a></li></ul><p><b>value</b>: 49 kg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codekg = 'kg')</span></p><p><b>note</b>: </p><blockquote><div><p>Demo Body Weight</p>\n</div></blockquote><h3>ReferenceRanges</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Low</b></td><td><b>High</b></td></tr><tr><td style=\"display: none\">*</td><td>45 kg</td><td>60 kg</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://dips.no/fhir/StructureDefinition/DIPSJournalId" ] ;
     fhir:Extension.valueReference [
       fhir:link <http://dips.no/fhir/R4/DocumentReference/ako124> ;
       fhir:Reference.reference [ fhir:value "DocumentReference/ako124" ] ;
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-journalid" ] ;
         fhir:Identifier.value [ fhir:value "4325645" ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "http://dips.no/fhir/StructureDefinition/DIPSLocation" ] ;
     fhir:Extension.valueCoding [
       fhir:Coding.system [ fhir:value "http://dips.no/fhir/R4/CodeSystem/DIPSLocation" ] ;
       fhir:Coding.code [ fhir:value "School" ] ;
       fhir:Coding.display [ fhir:value "At School" ]
     ]
  ], [
     fhir:index 2 ;
     fhir:Extension.url [ fhir:value "http://hl7.no/fhir/no-domain/vitalsigns/StructureDefinition/NoDomainVitalSignsClothingStateExtension" ] ;
     fhir:Extension.valueCoding [
       a sct:8101000202100 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "8101000202100" ] ;
       fhir:Coding.display [ fhir:value "Naken" ]
     ]
  ], [
     fhir:index 3 ;
     fhir:Extension.url [ fhir:value "http://hl7.no/fhir/no-domain/vitalsigns/StructureDefinition/NoDomainVitalSignsConfoundingFactorExtension" ] ;
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.text [ fhir:value "sample confounding factor" ]
     ]
  ] ;
  fhir:Observation.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-RelativeEhrUri" ] ;
     fhir:Identifier.value [ fhir:value "ehr:compositions/6c41D37f-f173-45d6-8504-17c40454b9ee::default::1/content[openEHR-EHR-OBSERVATION.body_weight.v2 and name/value='Vekt']" ]
  ], [
     fhir:index 1 ;
     fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-ObservationId" ] ;
     fhir:Identifier.value [ fhir:value "dips-body-weight-create" ]
  ], [
     fhir:index 2 ;
     fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/externalId" ] ;
     fhir:Identifier.value [ fhir:value "testBPexternalId1" ]
  ] ;
  fhir:Observation.status [ fhir:value "final"] ;
  fhir:Observation.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ] ;
       fhir:Coding.code [ fhir:value "vital-signs" ] ;
       fhir:Coding.display [ fhir:value "Vital Signs" ]
     ]
  ] ;
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:29463-7 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "29463-7" ] ;
       fhir:Coding.display [ fhir:value "Body weight" ]
     ], [
       fhir:index 1 ;
       a sct:27113001 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "27113001" ] ;
       fhir:Coding.display [ fhir:value "Body weight (observable entity)" ]
     ]
  ] ;
  fhir:Observation.subject [
     fhir:link <http://dips.no/fhir/R4/Patient/cdp1000807> ;
     fhir:Reference.reference [ fhir:value "Patient/cdp1000807" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-patientid" ] ;
       fhir:Identifier.value [ fhir:value "1000807" ]
     ]
  ] ;
  fhir:Observation.encounter [
     fhir:link <http://dips.no/fhir/R4/Encounter/agy100247> ;
     fhir:Reference.reference [ fhir:value "Encounter/agy100247" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-omsorgsepisodeid" ] ;
       fhir:Identifier.value [ fhir:value "agy100247" ]
     ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2021-05-10"^^xsd:date] ;
  fhir:Observation.performer [
     fhir:index 0 ;
     fhir:link <http://dips.no/fhir/R4/PractitionerRole/agb27> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/agb27" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "urn:oid:1.3.6.1.4.1.9038.51.1" ] ;
       fhir:Identifier.value [ fhir:value "27" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:link <http://dips.no/fhir/R4/Organization/afa22> ;
     fhir:Reference.reference [ fhir:value "Organization/afa22" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "urn:oid:1.3.6.1.4.1.9038.70.3" ] ;
       fhir:Identifier.value [ fhir:value "22" ]
     ]
  ] ;
  fhir:Observation.valueQuantity [
     fhir:Quantity.value [ fhir:value "49"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "kg" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "kg" ]
  ] ;
  fhir:Observation.note [
     fhir:index 0 ;
     fhir:Annotation.text [ fhir:value "Demo Body Weight" ]
  ] ;
  fhir:Observation.referenceRange [
     fhir:index 0 ;
     fhir:Observation.referenceRange.low [
       fhir:Quantity.value [ fhir:value "45"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "kg" ]
     ] ;
     fhir:Observation.referenceRange.high [
       fhir:Quantity.value [ fhir:value "60"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "kg" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://dips.no/fhir/R4/Observation/dips-body-weight-create.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

