FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example Observation/decimal (Turtle)

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, Patient, Practitioner, RelatedPerson

Raw Turtle (+ also see Turtle/RDF Format Specification)

Explores the edge cases of the decimal data type

@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

[a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "decimal"] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:code [
     fhir:text [ fhir:v "Decimal Testing Observation" ]
  ] ; # 
  fhir:component ( [
     fhir:code [
       fhir:text [ fhir:v "Component" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "1.0"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "g" ]
     ]
  ] [
     fhir:code [
       fhir:text [ fhir:v "Component" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "1.00"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "g" ]
     ]
  ] [
     fhir:code [
       fhir:text [ fhir:v "Component" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "1.0e0"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "g" ]
     ]
  ] [
     fhir:code [
       fhir:text [ fhir:v "Component" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "0.00000000000000001"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "g" ]
     ]
  ] [
     fhir:code [
       fhir:text [ fhir:v "Component" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "10000000000000000"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "g" ]
     ]
  ] [
     fhir:code [
       fhir:text [ fhir:v "Component" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "1.00000000000000000e-24"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "g" ]
     ]
  ] [
     fhir:code [
       fhir:text [ fhir:v "Component" ]
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "-1.00000000000000000e245"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "g" ]
     ]
  ] )] . # 

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.