@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 -------------------------------------------------------------------

<https://eswatinihie.com/fhir/ServiceRequest/SzReferral-001-FacilityToFacility> a fhir:ServiceRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "SzReferral-001-FacilityToFacility"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://eswatinihie.com/fhir/StructureDefinition/SzReferral" ;
       fhir:index 0 ;
       fhir:link <https://eswatinihie.com/fhir/StructureDefinition/SzReferral>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ServiceRequest SzReferral-001-FacilityToFacility</b></p><a name=\"SzReferral-001-FacilityToFacility\"> </a><a name=\"hcSzReferral-001-FacilityToFacility\"> </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-SzReferral.html\">Eswatini Referral Profile</a></p></div><p><b>Extention: Eswatini Referral Recipient</b>: <a href=\"Organization-H002.html\">Organization Mbabane Public Health Unit</a></p><p><b>Extention: Eswatini Referral Service Location</b>: <a href=\"Organization-H002.html\">Organization Mbabane Public Health Unit</a></p><p><b>identifier</b>: SampleSzReferralId</p><p><b>status</b>: Active</p><p><b>intent</b>: Plan</p><p><b>category</b>: <span title=\"Codes:{https://eswatinihie.com/fhir/CodeSystem/SzServiceRequestCategoryCS 1}\">Referral</span></p><p><b>code</b>: <span title=\"Codes:{https://eswatinihie.com/fhir/CodeSystem/SzReferralTypeCS 1}\">Facility to Facility</span></p><p><b>subject</b>: <a href=\"Patient-SzPatient-001.html\">Celucolo Celani Sacolo  Male, DoB: 2000-01-01 ( Medical Record Number: Client Management Information System#M001010101-1 (use: usual, ))</a></p><p><b>encounter</b>: <a href=\"Encounter-SzEncounter-001.html\">Encounter: status = finished; class = Outpatient Department (Code System: Encounter Classification#OPD); period = 2023-10-01 10:00:00+0000 --&gt; (ongoing)</a></p><p><b>occurrence</b>: 2025-09-11 10:00:00+0000</p><p><b>authoredOn</b>: 2025-07-28 10:00:00+0000</p><p><b>requester</b>: <a href=\"Organization-H001.html\">Organization Mbabane Government Hospital</a></p><p><b>reasonCode</b>: <span title=\"Codes:{https://eswatinihie.com/fhir/CodeSystem/SzReasonsForReferralCS 12}\">HIV Care Services</span></p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://eswatinihie.com/fhir/StructureDefinition/SzReferralRecipientExtension" ] ;
     fhir:Extension.valueReference [
       fhir:link <https://eswatinihie.com/fhir/Organization/H002> ;
       fhir:Reference.reference [ fhir:value "Organization/H002" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "https://eswatinihie.com/fhir/StructureDefinition/SzReferralServiceLocation" ] ;
     fhir:Extension.valueReference [
       fhir:link <https://eswatinihie.com/fhir/Organization/H002> ;
       fhir:Reference.reference [ fhir:value "Organization/H002" ]
     ]
  ] ;
  fhir:ServiceRequest.identifier [
     fhir:index 0 ;
     fhir:Identifier.value [ fhir:value "SampleSzReferralId" ]
  ] ;
  fhir:ServiceRequest.status [ fhir:value "active"] ;
  fhir:ServiceRequest.intent [ fhir:value "plan"] ;
  fhir:ServiceRequest.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://eswatinihie.com/fhir/CodeSystem/SzServiceRequestCategoryCS" ] ;
       fhir:Coding.code [ fhir:value "1" ] ;
       fhir:Coding.display [ fhir:value "Referral" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Referral" ]
  ] ;
  fhir:ServiceRequest.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://eswatinihie.com/fhir/CodeSystem/SzReferralTypeCS" ] ;
       fhir:Coding.code [ fhir:value "1" ] ;
       fhir:Coding.display [ fhir:value "Facility to Facility" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Facility to Facility" ]
  ] ;
  fhir:ServiceRequest.subject [
     fhir:link <https://eswatinihie.com/fhir/Patient/SzPatient-001> ;
     fhir:Reference.reference [ fhir:value "Patient/SzPatient-001" ]
  ] ;
  fhir:ServiceRequest.encounter [
     fhir:link <https://eswatinihie.com/fhir/Encounter/SzEncounter-001> ;
     fhir:Reference.reference [ fhir:value "Encounter/SzEncounter-001" ]
  ] ;
  fhir:ServiceRequest.occurrenceDateTime [ fhir:value "2025-09-11T10:00:00Z"^^xsd:dateTime] ;
  fhir:ServiceRequest.authoredOn [ fhir:value "2025-07-28T10:00:00Z"^^xsd:dateTime] ;
  fhir:ServiceRequest.requester [
     fhir:link <https://eswatinihie.com/fhir/Organization/H001> ;
     fhir:Reference.reference [ fhir:value "Organization/H001" ]
  ] ;
  fhir:ServiceRequest.reasonCode [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://eswatinihie.com/fhir/CodeSystem/SzReasonsForReferralCS" ] ;
       fhir:Coding.code [ fhir:value "12" ] ;
       fhir:Coding.display [ fhir:value "HIV Care Services" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "HIV Care Services" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://eswatinihie.com/fhir/ServiceRequest/SzReferral-001-FacilityToFacility.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

