@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://canshare.co.nz/fhir/Observation/ExObservationWeight> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExObservationWeight"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://canshare.co.nz/fhir/StructureDefinition/an-weight" ;
       fhir:index 0 ;
       fhir:link <http://canshare.co.nz/fhir/StructureDefinition/an-weight>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Weight 80 kg</div>"
  ] ;
  fhir:Observation.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "http://canshare.co.nz/identifiers" ] ;
     fhir:Identifier.value [ fhir:value "weight-1" ]
  ] ;
  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 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct/21000210109" ] ;
       fhir:Coding.code [ fhir:value "27113001" ]
     ], [
       fhir:index 1 ;
       a loinc:29463-7 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "29463-7" ]
     ]
  ] ;
  fhir:Observation.subject [
     fhir:link <http://canshare.co.nz/fhir/Patient/exPatient> ;
     fhir:Reference.reference [ fhir:value "Patient/exPatient" ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2020-01-01"^^xsd:date] ;
  fhir:Observation.valueQuantity [
     fhir:Quantity.value [ fhir:value "80"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "kg" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "kg" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://canshare.co.nz/fhir/Observation/ExObservationWeight.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

