PhdImplementationGuide 0.3.0 - STU 1 (2nd ballot)

This page is part of the Personal Health Device FHIR IG (v0.3.0: STU 1 Ballot 3) based on FHIR R4. The current version which supercedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

Example of coded enumeration - TTL Representation

(back to narrative)

Raw ttl

@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:Resource.id [ fhir:value "glucose-1.0.0.4"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/uv/phd/StructureDefinition/PhdCodedEnumerationObservation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/uv/phd/StructureDefinition/PhdCodedEnumerationObservation>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: glucose-1.0.0.4</p><p><b>meta</b>: </p><p><b>identifier</b>: sisansarahId-urn:oid:1.2.3.4.5.6.7.8.10-00601900010E9234-8417864-20170602150227-8417872</p><p><b>status</b>: final</p><p><b>code</b>: MDC_CTXT_GLU_MEAL: Meal context <span style=\"background: LightGoldenRodYellow\">(Details : {urn:iso:std:iso:11073:10101 code '8417864' = '8417864)</span></p><p><b>subject</b>: <a href=\"glucose-1.0.0.4.html\">Generated Summary: id: sisansarahId.1.2.3.4.5.6.7.8.10; Medical record number = sisansarahId; Sisansarah Lorianthah Piggy </a></p><p><b>effective</b>: 03/06/2017 5:02:35 AM</p><p><b>value</b>: MDC_CTXT_GLU_MEAL_POSTPRANDIAL: After lunch/dinner <span style=\"background: LightGoldenRodYellow\">(Details : {urn:iso:std:iso:11073:10101 code '8417872' = '8417872)</span></p><p><b>device</b>: <a href=\"glucose-1.0.0.4.html\">Generated Summary: id: phd-00601900010E9234.F45EABA80832; IEEE 11073 System Identifier = 00-60-19-00-01-0E-92-34, Bluetooth MAC address = F4-5E-AB-A8-08-32; manufacturer: Diabetes Care; serialNumber: 20130200002A; modelNumber: Gluc-23; <span title=\"Codes: {urn:iso:std:iso:11073:10101 65573}\">MDC_MOC_VMS_MDS_SIMP</span></a></p><p><b>derivedFrom</b>: <a href=\"glucose-1.0.0.4.html\">Generated Summary: id: coin-1234; <span title=\"Codes: {urn:iso:std:iso:11073:10101 67975}\">MDC_ATTR_TIME_ABS: Absolute time</span>; effective: 03/06/2017 8:02:35 AM; value: 03/06/2017 8:02:30 AM</a></p></div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/observation-gatewayDevice" ];
     fhir:Extension.valueReference [
       fhir:Reference.reference [ fhir:value "Device/phg-ecde3d4e58532d31.000000000000" ]     ]
  ];
  fhir:Observation.identifier [
     fhir:index 0;
     fhir:Identifier.value [ fhir:value "sisansarahId-urn:oid:1.2.3.4.5.6.7.8.10-00601900010E9234-8417864-20170602150227-8417872" ]
  ];
  fhir:Observation.status [ fhir:value "final"];
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:11073:10101" ];
       fhir:Coding.code [ fhir:value "8417864" ]     ];
     fhir:CodeableConcept.text [ fhir:value "MDC_CTXT_GLU_MEAL: Meal context" ]
  ];
  fhir:Observation.subject [
     fhir:Reference.reference [ fhir:value "Patient/sisansarahId.1.2.3.4.5.6.7.8.10" ]
  ];
  fhir:Observation.effectiveDateTime [ fhir:value "2017-06-02T15:02:35-04:00"^^xsd:dateTime];
  fhir:Observation.valueCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:11073:10101" ];
       fhir:Coding.code [ fhir:value "8417872" ]     ];
     fhir:CodeableConcept.text [ fhir:value "MDC_CTXT_GLU_MEAL_POSTPRANDIAL: After lunch/dinner" ]
  ];
  fhir:Observation.device [
     fhir:Reference.reference [ fhir:value "Device/phd-00601900010E9234.F45EABA80832" ]
  ];
  fhir:Observation.derivedFrom [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "Observation/coin-1234" ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.