@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://hl7.fi/fhir/finnish-base-profiles/Observation/bloodglucose-max> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "bloodglucose-max"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"^^xsd:anyURI ;
       fhir:link <http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose>
     ] [
       fhir:v "http://example.org/StructureDefinition/other-bloodglucose-structuredefinition"^^xsd:anyURI ;
       fhir:link <http://example.org/StructureDefinition/other-bloodglucose-structuredefinition>
     ] ) ;
     fhir:security ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-Confidentiality"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "U" ] ;
       fhir:display [ fhir:v "unrestricted" ]
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xml:lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\"><div class=\"hapiHeaderText\"><b>Verensokeri</b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Subject</td><td>Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c</td></tr><tr><td>Code</td><td>ins-short-fast</td></tr><tr><td>Display</td><td>Fast-acting insulin</td></tr><tr><td>Text</td><td>Lyhytvaikutteinen insuliini</td></tr></tbody></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:uuid:206fc986-517a-4054-bc0a-03eb906c9571" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:39862"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38c2" ]
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "vital-signs" ]
     ] [
       fhir:system [ fhir:v "http://example.org/CodeSystem/categories"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "observation" ]
     ] )
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       a loinc:15074-8 ;
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "15074-8" ] ;
       fhir:display [ fhir:v "Glucose (Bld) [Moles/Vol]" ]
     ] [
       a loinc:14743-9 ;
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "14743-9" ] ;
       fhir:display [ fhir:v "Glucose Glucometer (BldC) [Moles/Vol]" ]
     ] [
       a loinc:14745-4 ;
       fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "14745-4" ] ;
       fhir:display [ fhir:v "Glucose (Body fld) [Moles/Vol]" ]
     ] [
       fhir:system [ fhir:v "http://example.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "12345" ] ;
       fhir:display [ fhir:v "Glucose [Moles/Vol]" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:link <https://hl7.fi/fhir/finnish-base-profiles/Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c> ;
     fhir:reference [ fhir:v "Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c" ]
  ] ; # 
  fhir:effective [
     a fhir:dateTime ;
     fhir:v "2020-10-05"^^xsd:date
  ] ; # 
  fhir:issued [ fhir:v "2019-12-05T09:21:37.130+02:00"^^xsd:dateTime] ; # 
  fhir:performer ( [
     fhir:link <https://hl7.fi/fhir/finnish-base-profiles/Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c> ;
     fhir:reference [ fhir:v "Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c" ]
  ] ) ; # 
  fhir:value [
     a fhir:Quantity ;
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/iso21090-PQ-translation"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:Quantity ;
         fhir:value [ fhir:v "2"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mg/dl" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "mg/dL" ]
       ]
     ] ) ;
     fhir:value [ fhir:v 10.0 ] ;
     fhir:comparator [ fhir:v "<" ] ;
     fhir:unit [ fhir:v "mmol/l" ] ;
     fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "mmol/L" ]
  ] ; # 
  fhir:interpretation ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "<" ] ;
       fhir:display [ fhir:v "Off scale low" ]
     ] )
  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "käyttäjän lisäämä kommentti" ]
  ] ) ; # 
  fhir:referenceRange ( [
     fhir:low [
       fhir:value [ fhir:v "16"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "mmol/l" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "mg/dL" ]
     ] ;
     fhir:high [
       fhir:value [ fhir:v "10"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "mmol/l" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "mg/dL" ]
     ] ;
     fhir:appliesTo ( [
       fhir:coding ( [
         a sct:248153007 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "248153007" ] ;
         fhir:display [ fhir:v "Male" ]
       ] ) ;
       fhir:text [ fhir:v "Normal range" ]
     ] ) ;
     fhir:age [
       fhir:low [
         fhir:value [ fhir:v "15"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "years" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "a" ]
       ] ;
       fhir:high [
         fhir:value [ fhir:v "100"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "years" ] ;
         fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "a" ]
       ]
     ] ;
     fhir:text [ fhir:v "Age" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

