@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://digi-uw.github.io/openelis-global2-fhir-ig/Specimen/97b37d86-fd55-529b-bbd7-4766f3988fab> a fhir:Specimen ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "97b37d86-fd55-529b-bbd7-4766f3988fab"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://digi-uw.github.io/openelis-global2-fhir-ig/StructureDefinition/openelis-specimen" ;
       fhir:index -1 ;
       fhir:link <https://digi-uw.github.io/openelis-global2-fhir-ig/StructureDefinition/openelis-specimen>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Specimen 97b37d86-fd55-529b-bbd7-4766f3988fab</b></p><a name=\"97b37d86-fd55-529b-bbd7-4766f3988fab\"> </a><a name=\"hc97b37d86-fd55-529b-bbd7-4766f3988fab\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-openelis-specimen.html\">OpenELIS Specimen</a></p></div><p><b>identifier</b>: <a href=\"NamingSystem-oe-ns-sampleitem-uuid.html\" title=\"UUID of the OpenELIS sample item. Carried on Specimen.identifier.\">OESampleItemUUID</a>/97b37d86-fd55-529b-bbd7-4766f3988fab (use: usual), <a href=\"NamingSystem-oe-ns-facility-id.html\" title=\"Identifier of the OpenELIS site (org.openelisglobal.facility.id). Added to most resources OpenELIS produces with the site Organization as assigner.\">OEFacilityId</a>/EDH-LAB (use: official)</p><p><b>accessionIdentifier</b>: <a href=\"NamingSystem-oe-ns-sampleitem-labno.html\" title=\"Accession number of the sample item: the order lab number followed by -{sortOrder}. Carried in Specimen.accessionIdentifier.\">OESampleItemLabNumber</a>/EDH26000000417-1 (use: usual)</p><p><b>status</b>: Available</p><p><b>type</b>: <span title=\"Codes:{http://openelis-global.org/sampleType Serum}, {http://snomed.info/sct 119364003}\">Serum</span></p><p><b>subject</b>: <a href=\"Patient-5b6f3f86-2a44-4c3c-9d0c-6f0c4a2d7e11.html\">Grace Banda (official) Female, DoB: 1991-04 ( http://openelis-global.org/pat_uuid#OEPatientUUID#5b6f3f86-2a44-4c3c-9d0c-6f0c4a2d7e11 (use: usual))</a></p><p><b>receivedTime</b>: 2026-09-28 09:30:00+1000</p><p><b>request</b>: </p><ul><li><a href=\"ServiceRequest-48549f60-c400-5510-97da-2e2497627e81.html\">ServiceRequest Glucose</a></li><li><a href=\"ServiceRequest-3b2c3407-5430-5878-9c61-c4c9b9c013c4.html\">ServiceRequest HBsAg</a></li></ul><h3>Collections</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Collected[x]</b></td><td><b>BodySite</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>2026-09-28 08:40:00+1000</td><td><span title=\"Codes:\">Venous blood</span></td></tr></table><h3>Containers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>SpecimenQuantity</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 434711009}\">Specimen container (physical object)</span></td><td>5 mL<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemL = 'mL')</span></td></tr></table></div>"
  ] ;
  fhir:Specimen.identifier [
     fhir:index -1 ;
     fhir:Identifier.use [ fhir:value "usual" ] ;
     fhir:Identifier.system [ fhir:value "http://openelis-global.org/sampleItem_uuid" ] ;
     fhir:Identifier.value [ fhir:value "97b37d86-fd55-529b-bbd7-4766f3988fab" ]
  ], [
     fhir:index -1 ;
     fhir:Identifier.use [ fhir:value "official" ] ;
     fhir:Identifier.system [ fhir:value "http://openelis-global.org/facility_id" ] ;
     fhir:Identifier.value [ fhir:value "EDH-LAB" ] ;
     fhir:Identifier.assigner [
       fhir:link <https://digi-uw.github.io/openelis-global2-fhir-ig/Organization/a845f2db-10e5-5117-ac75-553f615e301a> ;
       fhir:Reference.reference [ fhir:value "Organization/a845f2db-10e5-5117-ac75-553f615e301a" ]
     ]
  ] ;
  fhir:Specimen.accessionIdentifier [
     fhir:Identifier.use [ fhir:value "usual" ] ;
     fhir:Identifier.system [ fhir:value "http://openelis-global.org/sampleItem_labNo" ] ;
     fhir:Identifier.value [ fhir:value "EDH26000000417-1" ]
  ] ;
  fhir:Specimen.status [ fhir:value "available"] ;
  fhir:Specimen.type [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://openelis-global.org/sampleType" ] ;
       fhir:Coding.code [ fhir:value "Serum" ] ;
       fhir:Coding.display [ fhir:value "Serum" ]
     ], [
       fhir:index -1 ;
       a sct:119364003 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "119364003" ] ;
       fhir:Coding.display [ fhir:value "Serum specimen" ]
     ]
  ] ;
  fhir:Specimen.subject [
     fhir:link <https://digi-uw.github.io/openelis-global2-fhir-ig/Patient/5b6f3f86-2a44-4c3c-9d0c-6f0c4a2d7e11> ;
     fhir:Reference.reference [ fhir:value "Patient/5b6f3f86-2a44-4c3c-9d0c-6f0c4a2d7e11" ]
  ] ;
  fhir:Specimen.receivedTime [ fhir:value "2026-09-28T09:30:00+10:00"^^xsd:dateTime] ;
  fhir:Specimen.request [
     fhir:index -1 ;
     fhir:link <https://digi-uw.github.io/openelis-global2-fhir-ig/ServiceRequest/48549f60-c400-5510-97da-2e2497627e81> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/48549f60-c400-5510-97da-2e2497627e81" ]
  ], [
     fhir:index -1 ;
     fhir:link <https://digi-uw.github.io/openelis-global2-fhir-ig/ServiceRequest/3b2c3407-5430-5878-9c61-c4c9b9c013c4> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/3b2c3407-5430-5878-9c61-c4c9b9c013c4" ]
  ] ;
  fhir:Specimen.collection [
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "latitude" ] ;
         fhir:Extension.valueDecimal [ fhir:value "-9.4431"^^xsd:decimal ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "longitude" ] ;
         fhir:Extension.valueDecimal [ fhir:value "147.1803"^^xsd:decimal ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "accuracy" ] ;
         fhir:Extension.valueInteger [ fhir:value "12"^^xsd:integer ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "method" ] ;
         fhir:Extension.valueCode [ fhir:value "device" ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "captureTimestamp" ] ;
         fhir:Extension.valueDateTime [ fhir:value "2026-09-28T08:40:12+10:00"^^xsd:dateTime ]
       ] ;
       fhir:Extension.url [ fhir:value "https://digi-uw.github.io/openelis-global2-fhir-ig/StructureDefinition/collection-location-gps" ]
     ] ;
     fhir:Specimen.collection.collectedDateTime [ fhir:value "2026-09-28T08:40:00+10:00"^^xsd:dateTime ] ;
     fhir:Specimen.collection.bodySite [
       fhir:CodeableConcept.text [ fhir:value "Venous blood" ]
     ]
  ] ;
  fhir:Specimen.container [
     fhir:index -1 ;
     fhir:Specimen.container.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a sct:434711009 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "434711009" ] ;
         fhir:Coding.display [ fhir:value "Specimen container (physical object)" ]
       ]
     ] ;
     fhir:Specimen.container.specimenQuantity [
       fhir:Quantity.value [ fhir:value "5"^^xsd:decimal ] ;
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
       fhir:Quantity.code [ fhir:value "mL" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://digi-uw.github.io/openelis-global2-fhir-ig/Specimen/97b37d86-fd55-529b-bbd7-4766f3988fab.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

