@prefix fhir: <http://hl7.org/fhir/> .
@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/noimpl-news2-create> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "noimpl-news2-create"] ;
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "0" ] ;
     fhir:Meta.lastUpdated [ fhir:value "2014-01-30T11:35:23+00:00"^^xsd:dateTime ] ;
     fhir:Meta.source [ fhir:value "NoImpl" ] ;
     fhir:Meta.profile [
       fhir:value "http://dips.no/fhir/R4/StructureDefinition/NoImplVitalSignsObservationNews2Score" ;
       fhir:index 0 ;
       fhir:link <http://dips.no/fhir/R4/StructureDefinition/NoImplVitalSignsObservationNews2Score>
     ]
  ] ;
  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.news2.v1 and name/value='NEWS2-Basic-Vitals']" ]
  ], [
     fhir:index 1 ;
     fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-ObservationId" ] ;
     fhir:Identifier.value [ fhir:value "dfdcd132-f0c0-e84a-a9b0-937bcb93c008" ]
  ], [
     fhir:index 2 ;
     fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-VersionIndependentId" ] ;
     fhir:Identifier.value [ fhir:value "bd96cd32-3bdb-f448-9d65-265828cae8c8" ]
  ], [
     fhir:index 3 ;
     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 "survey" ] ;
       fhir:Coding.display [ fhir:value "Survey" ]
     ]
  ] ;
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:1104051000000101 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
       fhir:Coding.code [ fhir:value "1104051000000101" ] ;
       fhir:Coding.display [ fhir:value "Royal College of Physicians National Early Warning Score 2 total score (observable entity)" ]
     ]
  ] ;
  fhir:Observation.subject [
     fhir:link <http://dips.no/fhir/R4/Patient/cdp2007964> ;
     fhir:Reference.reference [ fhir:value "Patient/cdp2007964" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "http://dips.no/fhir/namingsystem/dips-patientid" ] ;
       fhir:Identifier.value [ fhir:value "1002679" ]
     ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2021-10-25T09:30:33+05:30"^^xsd:dateTime] ;
  fhir:Observation.performer [
     fhir:index 0 ;
     fhir:link <http://dips.no/fhir/R4/PractitionerRole/agb1000204> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/agb1000204" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "urn:oid:1.3.6.1.4.1.9038.51.1" ] ;
       fhir:Identifier.value [ fhir:value "1000204" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:link <http://dips.no/fhir/R4/Organization/Organizationaks2> ;
     fhir:Reference.reference [ fhir:value "Organization/Organizationaks2" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "urn:oid:1.3.6.1.4.1.9038.70.1" ] ;
       fhir:Identifier.value [ fhir:value "2" ]
     ]
  ] ;
  fhir:Observation.valueQuantity [
     fhir:Quantity.value [ fhir:value "6"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
  ] ;
  fhir:Observation.derivedFrom [
     fhir:index 0 ;
     fhir:link <http://dips.no/fhir/R4/Observation/noImpl-respiratory-rate-create> ;
     fhir:Reference.reference [ fhir:value "Observation/noImpl-respiratory-rate-create" ]
  ], [
     fhir:index 1 ;
     fhir:link <http://dips.no/fhir/R4/Observation/noimpl-bloodpressure-instance> ;
     fhir:Reference.reference [ fhir:value "Observation/noimpl-bloodpressure-instance" ]
  ], [
     fhir:index 2 ;
     fhir:link <http://dips.no/fhir/R4/Observation/noImpl-consciousness-create> ;
     fhir:Reference.reference [ fhir:value "Observation/noImpl-consciousness-create" ]
  ], [
     fhir:index 3 ;
     fhir:link <http://dips.no/fhir/R4/Observation/noimpl-oxygen-saturation-create> ;
     fhir:Reference.reference [ fhir:value "Observation/noimpl-oxygen-saturation-create" ]
  ], [
     fhir:index 4 ;
     fhir:link <http://dips.no/fhir/R4/Observation/noimpl-body-temperature-create> ;
     fhir:Reference.reference [ fhir:value "Observation/noimpl-body-temperature-create" ]
  ], [
     fhir:index 5 ;
     fhir:link <http://dips.no/fhir/R4/Observation/noimpl-pulse-rate> ;
     fhir:Reference.reference [ fhir:value "Observation/noimpl-pulse-rate" ]
  ] ;
  fhir:Observation.component [
     fhir:index 0 ;
     fhir:Observation.component.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:1104301000000104 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
         fhir:Coding.code [ fhir:value "1104301000000104" ] ;
         fhir:Coding.display [ fhir:value "Royal College of Physicians National Early Warning Score 2 - respiration rate score (observable entity)" ]
       ]
     ] ;
     fhir:Observation.component.valueQuantity [
       fhir:Quantity.value [ fhir:value "2"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
     ] ;
     fhir:Observation.component.interpretation [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "21-24" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Observation.component.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:1104311000000102 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
         fhir:Coding.code [ fhir:value "1104311000000102" ] ;
         fhir:Coding.display [ fhir:value "Royal College of Physicians NEWS2 (National Early Warning Score 2) - SpO2 (oxygen saturation at periphery) scale 1 score" ]
       ]
     ] ;
     fhir:Observation.component.valueQuantity [
       fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
     ] ;
     fhir:Observation.component.interpretation [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "≥96" ]
     ]
  ], [
     fhir:index 2 ;
     fhir:Observation.component.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:1104331000000105 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
         fhir:Coding.code [ fhir:value "1104331000000105" ] ;
         fhir:Coding.display [ fhir:value "Royal College of Physicians National Early Warning Score 2 - air or oxygen score (observable entity)" ]
       ]
     ] ;
     fhir:Observation.component.valueQuantity [
       fhir:Quantity.value [ fhir:value "0"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
     ] ;
     fhir:Observation.component.interpretation [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "Air" ]
     ]
  ], [
     fhir:index 3 ;
     fhir:Observation.component.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:1104341000000101 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
         fhir:Coding.code [ fhir:value "1104341000000101" ] ;
         fhir:Coding.display [ fhir:value "Royal College of Physicians National Early Warning Score 2 - systolic blood pressure score (observable entity)" ]
       ]
     ] ;
     fhir:Observation.component.valueQuantity [
       fhir:Quantity.value [ fhir:value "0"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
     ] ;
     fhir:Observation.component.interpretation [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "111-219" ]
     ]
  ], [
     fhir:index 4 ;
     fhir:Observation.component.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:1104351000000103 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
         fhir:Coding.code [ fhir:value "1104351000000103" ] ;
         fhir:Coding.display [ fhir:value "Royal College of Physicians National Early Warning Score 2 - pulse score (observable entity)" ]
       ]
     ] ;
     fhir:Observation.component.valueQuantity [
       fhir:Quantity.value [ fhir:value "0"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
     ] ;
     fhir:Observation.component.interpretation [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "51-90" ]
     ]
  ], [
     fhir:index 5 ;
     fhir:Observation.component.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:1104361000000100 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
         fhir:Coding.code [ fhir:value "1104361000000100" ] ;
         fhir:Coding.display [ fhir:value "Royal College of Physicians National Early Warning Score 2 - consciousness score (observable entity)" ]
       ]
     ] ;
     fhir:Observation.component.valueQuantity [
       fhir:Quantity.value [ fhir:value "3"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
     ] ;
     fhir:Observation.component.interpretation [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "C, V, P eller U" ]
     ]
  ], [
     fhir:index 6 ;
     fhir:Observation.component.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:1104371000000107 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.version [ fhir:value "http://snomed.info/sct/45991000052106/version/20210531" ] ;
         fhir:Coding.code [ fhir:value "1104371000000107" ] ;
         fhir:Coding.display [ fhir:value "Royal College of Physicians National Early Warning Score 2 - temperature score (observable entity)" ]
       ]
     ] ;
     fhir:Observation.component.valueQuantity [
       fhir:Quantity.value [ fhir:value "0"^^xsd:decimal ] ;
       fhir:Quantity.unit [ fhir:value "ScoreOf" ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "{ScoreOf}" ]
     ] ;
     fhir:Observation.component.interpretation [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "36.1-38.0" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://dips.no/fhir/R4/Observation/noimpl-news2-create.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

