Botswana FHIR Implementation Guide
1.0.0 - STU1 Botswana flag

Botswana FHIR Implementation Guide, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/botswana-hie-fhir-ig/ and changes regularly. See the Directory of published versions

: PIMS Bundle - Lab Result (Transactional) - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://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 -------------------------------------------------------------------

 a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "pims-lab-result-transactional-bundle"] ; # 
  fhir:type [ fhir:v "transaction"] ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "http://hapi-fhir:8080/fhir/Task/PimsLabResultTaskExample"^^xsd:anyURI ] ;
    ( fhir:resource <http://hapi-fhir:8080/fhir/Task/PimsLabResultTaskExample> ) ;
fhir:request [
fhir:method [ fhir:v "PUT" ] ;
fhir:url [ fhir:v "Task/PimsLabResultTaskExample"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "http://hapi-fhir:8080/fhir/ServiceRequest/PimsCompletedServiceRequestExample"^^xsd:anyURI ] ;
    ( fhir:resource <http://hapi-fhir:8080/fhir/ServiceRequest/PimsCompletedServiceRequestExample> ) ;
fhir:request [
fhir:method [ fhir:v "PUT" ] ;
fhir:url [ fhir:v "ServiceRequest/PimsCompletedServiceRequestExample"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "http://hapi-fhir:8080/fhir/DiagnosticReport/PimsLabResultsDiagnosticReportExample"^^xsd:anyURI ] ;
    ( fhir:resource <http://hapi-fhir:8080/fhir/DiagnosticReport/PimsLabResultsDiagnosticReportExample> ) ;
fhir:request [
fhir:method [ fhir:v "PUT" ] ;
fhir:url [ fhir:v "DiagnosticReport/PimsLabResultsDiagnosticReportExample"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "http://hapi-fhir:8080/fhir/Observation/PimsTestResultExample"^^xsd:anyURI ] ;
    ( fhir:resource <http://hapi-fhir:8080/fhir/Observation/PimsTestResultExample> ) ;
fhir:request [
fhir:method [ fhir:v "PUT" ] ;
fhir:url [ fhir:v "Observation/PimsTestResultExample"^^xsd:anyURI ]     ]
  ] ) . # 

<http://hapi-fhir:8080/fhir/Task/PimsLabResultTaskExample> a fhir:Task ;
  fhir:id [ fhir:v "PimsLabResultTaskExample"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://moh.bw.org/StructureDefinition/uat-pims-lab-order-task"^^xsd:anyURI ;
fhir:link <http://moh.bw.org/StructureDefinition/uat-pims-lab-order-task>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Task_PimsLabResultTaskExample\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Task PimsLabResultTaskExample</b></p><a name=\"PimsLabResultTaskExample\"> </a><a name=\"hcPimsLabResultTaskExample\"> </a><a name=\"PimsLabResultTaskExample-en-US\"> </a><p><b>identifier</b>: <code>http://moh.bw.org/identifier/task-id</code>/ORDER12345</p><p><b>basedOn</b>: <a href=\"ServiceRequest-PimsCompletedServiceRequestExample.html\">ServiceRequest CD4</a></p><p><b>status</b>: Completed</p><p><b>intent</b>: order</p><p><b>for</b>: <a href=\"Patient-PimsGeneralPatientExample.html\">Mark Adams  Male, DoB: 2000-11-11 ( http://moh.bw.org/ext/identifier/pims#pims id)</a></p><p><b>executionPeriod</b>: 2022-07-28 --&gt; 2022-07-30</p><p><b>requester</b>: <a href=\"Organization-CurrentServiceProviderExample.html\">Organization Meshwalkiya Health Center</a></p><p><b>owner</b>: <a href=\"Organization-CurrentServiceProviderExample.html\">Organization Meshwalkiya Health Center</a></p><h3>Outputs</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:\">Some Lab Result</span></td><td><a href=\"DiagnosticReport-PimsLabResultsDiagnosticReportExample.html\">Diagnostic Report for '' for '-&gt;Mark Adams  Male, DoB: 2000-11-11 ( http://moh.bw.org/ext/identifier/pims#pims id)'</a></td></tr></table></div>"
  ] ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "http://moh.bw.org/identifier/task-id"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ORDER12345" ]
  ] ) ; # 
  fhir:basedOn ( [
fhir:reference [ fhir:v "ServiceRequest/PimsCompletedServiceRequestExample" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:for [
fhir:reference [ fhir:v "Patient/PimsGeneralPatientExample" ]
  ] ; # 
  fhir:executionPeriod [
fhir:start [ fhir:v "2022-07-28"^^xsd:date ] ;
fhir:end [ fhir:v "2022-07-30"^^xsd:date ]
  ] ; # 
  fhir:requester [
fhir:reference [ fhir:v "Organization/CurrentServiceProviderExample" ]
  ] ; # 
  fhir:owner [
fhir:reference [ fhir:v "Organization/CurrentServiceProviderExample" ]
  ] ; # 
  fhir:output ( [
fhir:type [
fhir:text [ fhir:v "Some Lab Result" ]     ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "DiagnosticReport/PimsLabResultsDiagnosticReportExample" ]     ]
  ] ) . # 

<http://hapi-fhir:8080/fhir/ServiceRequest/PimsCompletedServiceRequestExample> a fhir:ServiceRequest ;
  fhir:id [ fhir:v "PimsCompletedServiceRequestExample"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://moh.bw.org/StructureDefinition/uat-pims-lab-order-service-request"^^xsd:anyURI ;
fhir:link <http://moh.bw.org/StructureDefinition/uat-pims-lab-order-service-request>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"ServiceRequest_PimsCompletedServiceRequestExample\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ServiceRequest PimsCompletedServiceRequestExample</b></p><a name=\"PimsCompletedServiceRequestExample\"> </a><a name=\"hcPimsCompletedServiceRequestExample\"> </a><a name=\"PimsCompletedServiceRequestExample-en-US\"> </a><p><b>identifier</b>: <code>http://moh.bw.org/identifier/service-request-id</code>/ORDER12345</p><p><b>status</b>: Completed</p><p><b>intent</b>: Order</p><p><b>code</b>: <span title=\"Codes:{http://moh.bw.org/CodeSystem/cs-pims-lab-codes P-1}\">CD4</span></p><p><b>subject</b>: <a href=\"Patient-PimsGeneralPatientExample.html\">Mark Adams  Male, DoB: 2000-11-11 ( http://moh.bw.org/ext/identifier/pims#pims id)</a></p><p><b>encounter</b>: <a href=\"Encounter-PimsGeneralEncounterExample.html\">Encounter: status = finished; class = observation encounter (ActCode#OBSENC); period = 2012-12-09 --&gt; 2012-12-09</a></p><p><b>occurrence</b>: 2012-01-05</p><p><b>requester</b>: <a href=\"Practitioner-GeneralPractitionerExample.html\">Practitioner Tom Junes Smith </a></p><p><b>performer</b>: <a href=\"Organization-LaboratoryProviderExample.html\">Organization Meshwalkiya Health Center</a></p></div>"
  ] ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "http://moh.bw.org/identifier/service-request-id"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ORDER12345" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:code [
    ( fhir:coding [
fhir:system [ fhir:v "http://moh.bw.org/CodeSystem/cs-pims-lab-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "P-1" ]     ] )
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/PimsGeneralPatientExample" ]
  ] ; # 
  fhir:encounter [
fhir:reference [ fhir:v "Encounter/PimsGeneralEncounterExample" ]
  ] ; # 
  fhir:occurrence [ fhir:v "2012-01-05"^^xsd:date] ; # 
  fhir:requester [
fhir:reference [ fhir:v "Practitioner/GeneralPractitionerExample" ]
  ] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "Organization/LaboratoryProviderExample" ]
  ] ) . # 

<http://hapi-fhir:8080/fhir/DiagnosticReport/PimsLabResultsDiagnosticReportExample> a fhir:DiagnosticReport ;
  fhir:id [ fhir:v "PimsLabResultsDiagnosticReportExample"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://moh.bw.org/StructureDefinition/uat-pims-diagnostic-report"^^xsd:anyURI ;
fhir:link <http://moh.bw.org/StructureDefinition/uat-pims-diagnostic-report>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DiagnosticReport_PimsLabResultsDiagnosticReportExample\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DiagnosticReport PimsLabResultsDiagnosticReportExample</b></p><a name=\"PimsLabResultsDiagnosticReportExample\"> </a><a name=\"hcPimsLabResultsDiagnosticReportExample\"> </a><a name=\"PimsLabResultsDiagnosticReportExample-en-US\"> </a><h2><span title=\"Codes:\">Some Test Type</span> (<span title=\"Codes:{http://loinc.org 11502-2}\">Laboratory report</span>) </h2><table class=\"grid\"><tr><td>Subject</td><td>Mark Adams  Male, DoB: 2000-11-11 ( http://moh.bw.org/ext/identifier/pims#pims id)</td></tr><tr><td>Reported</td><td>2022-07-28 13:28:17-0500</td></tr><tr><td>Performer</td><td> <a href=\"Practitioner-GeneralPractitionerExample.html\">Practitioner Tom Junes Smith </a></td></tr></table><p><b>Report Details</b></p><table class=\"grid\"><tr><td><b>Code</b></td><td><b>Value</b></td><td><b>Flags</b></td><td><b>When For</b></td></tr><tr><td><a href=\"Observation-PimsTestResultExample.html\"><span title=\"Codes:\">Some code</span></a></td><td>Positive</td><td>Final</td><td>2022-11-30</td></tr></table></div>"
  ] ; # 
  fhir:basedOn ( [
fhir:reference [ fhir:v "ServiceRequest/PimsCompletedServiceRequestExample" ]
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
    ( fhir:coding [
a loinc:11502-2 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "11502-2" ]     ] )
  ] ) ; # 
  fhir:code [
fhir:text [ fhir:v "Some Test Type" ]
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/PimsGeneralPatientExample" ]
  ] ; # 
  fhir:encounter [
fhir:reference [ fhir:v "Encounter/PimsGeneralEncounterExample" ]
  ] ; # 
  fhir:issued [ fhir:v "2022-07-28T13:28:17-05:00"^^xsd:dateTime] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "Practitioner/GeneralPractitionerExample" ]
  ] ) ; # 
  fhir:result ( [
fhir:reference [ fhir:v "Observation/PimsTestResultExample" ]
  ] ) . # 

<http://hapi-fhir:8080/fhir/Observation/PimsTestResultExample> a fhir:Observation ;
  fhir:id [ fhir:v "PimsTestResultExample"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://moh.bw.org/StructureDefinition/uat-pims-diagnostic-test-result-observation"^^xsd:anyURI ;
fhir:link <http://moh.bw.org/StructureDefinition/uat-pims-diagnostic-test-result-observation>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_PimsTestResultExample\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation PimsTestResultExample</b></p><a name=\"PimsTestResultExample\"> </a><a name=\"hcPimsTestResultExample\"> </a><a name=\"PimsTestResultExample-en-US\"> </a><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category laboratory}\">Laboratory</span></p><p><b>code</b>: <span title=\"Codes:\">Some code</span></p><p><b>subject</b>: <a href=\"Patient-PimsGeneralPatientExample.html\">Mark Adams  Male, DoB: 2000-11-11 ( http://moh.bw.org/ext/identifier/pims#pims id)</a></p><p><b>encounter</b>: <a href=\"Encounter-PimsGeneralEncounterExample.html\">Encounter: status = finished; class = observation encounter (ActCode#OBSENC); period = 2012-12-09 --&gt; 2012-12-09</a></p><p><b>effective</b>: 2022-11-30</p><p><b>performer</b>: <a href=\"Organization-LaboratoryProviderExample.html\">Organization Meshwalkiya Health Center</a></p><p><b>value</b>: Positive</p></div>"
  ] ; # 
  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 "laboratory" ]     ] )
  ] ) ; # 
  fhir:code [
fhir:text [ fhir:v "Some code" ]
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/PimsGeneralPatientExample" ]
  ] ; # 
  fhir:encounter [
fhir:reference [ fhir:v "Encounter/PimsGeneralEncounterExample" ]
  ] ; # 
  fhir:effective [ fhir:v "2022-11-30"^^xsd:date] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "Organization/LaboratoryProviderExample" ]
  ] ) ; # 
  fhir:value [ fhir:v "Positive"] . #