OpenMRS FHIR2 Implementation Guide
0.1.0 - ci-build

OpenMRS FHIR2 Implementation Guide - Local Development build (v0.1.0). See the Directory of published versions

: Location Example - TTL Representation

Raw ttl | Download


@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:Location;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "LocationExample"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.openmrs.org/fhir/StructureDefinition/omrs-location";
       fhir:index 0;
       fhir:link <http://fhir.openmrs.org/fhir/StructureDefinition/omrs-location>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Location</b><a name=\"LocationExample\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Location \"LocationExample\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-omrs-location.html\">OpenMRS Location</a></p></div><p><b>status</b>: active</p><p><b>name</b>: Outpatient Clinic</p><p><b>description</b>: Outpatient Clinic</p><p><b>type</b>: Sleep disorders unit <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-v3-RoleCode.html\">RoleCode</a>#Sleep)</span></p><p><b>telecom</b>: Illegal syntax: Unknown ContactPointSystem code 'Phone', Illegal syntax: Unknown ContactPointSystem code 'Fax', Illegal syntax: Unknown ContactPointSystem code 'Email'</p><p><b>address</b>: Illegal syntax: Unknown Content value @  START_TAG seen ...&lt;line&gt;\\n    &lt;value value=\"3300 Washtenaw Avenue, Suite 227\"/&gt;... @6:54</p><h3>Positions</h3><table class=\"grid\"><tr><td>-</td><td><b>Longitude</b></td><td><b>Latitude</b></td></tr><tr><td>*</td><td>-83.69471</td><td>42.2565</td></tr></table></div>"
  ];
  fhir:Location.status [ fhir:value "active"];
  fhir:Location.name [ fhir:value "Outpatient Clinic"];
  fhir:Location.description [ fhir:value "Outpatient Clinic"];
  fhir:Location.type [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleCode" ];
       fhir:Coding.code [ fhir:value "Sleep" ];
       fhir:Coding.display [ fhir:value "Sleep disorders unit" ]     ]
  ];
  fhir:Location.telecom [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "Phone" ];
     fhir:ContactPoint.value [ fhir:value "(+1) 734-677-7777" ]
  ], [
     fhir:index 1;
     fhir:ContactPoint.system [ fhir:value "Fax" ];
     fhir:ContactPoint.value [ fhir:value "(+1) 734-677-6622" ]
  ], [
     fhir:index 2;
     fhir:ContactPoint.system [ fhir:value "Email" ];
     fhir:ContactPoint.value [ fhir:value "hq@HL7.org" ]
  ];
  fhir:Location.address [
     fhir:Address.use [ fhir:value "home" ];
     fhir:Address.line [
       fhir:index 0;
       fhir:string.value [ fhir:value "3300 Washtenaw Avenue, Suite 227" ]     ];
     fhir:Address.city [ fhir:value "Ann Arbor" ];
     fhir:Address.district [ fhir:value "Mukono" ];
     fhir:Address.state [ fhir:value "MI" ];
     fhir:Address.postalCode [ fhir:value "48104" ];
     fhir:Address.country [ fhir:value "USA" ]
  ];
  fhir:Location.position [
     fhir:Location.position.longitude [ fhir:value "-83.69471"^^xsd:decimal ];
     fhir:Location.position.latitude [ fhir:value "42.2565"^^xsd:decimal ]
  ].

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

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