@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://fhir.dha.go.ke/erx/AllergyIntolerance/example-allergyintolerance-amina-penicillin> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-allergyintolerance-amina-penicillin"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.dha.go.ke/erx/StructureDefinition/ke-allergy-intolerance" ;
       fhir:index 0 ;
       fhir:link <https://fhir.dha.go.ke/erx/StructureDefinition/ke-allergy-intolerance>
     ], [
       fhir:value "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-allergy-intolerance" ;
       fhir:index 1 ;
       fhir:link <https://fhir.dha.go.ke/fhir/StructureDefinition/ke-allergy-intolerance>
     ]
  ] ;
  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: AllergyIntolerance example-allergyintolerance-amina-penicillin</b></p><a name=\"example-allergyintolerance-amina-penicillin\"> </a><a name=\"hcexample-allergyintolerance-amina-penicillin\"> </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\">Profiles: <a href=\"StructureDefinition-ke-allergy-intolerance.html\">Kenya eRx AllergyIntolerance</a>, <code>https://fhir.dha.go.ke/fhir/StructureDefinition/ke-allergy-intolerance</code></p></div><p><b>identifier</b>: <a href=\"NamingSystem-ns-allergy-identifier.html\" title=\"Allergy record number generated by the clinical documentation system. Format: ALG-{YYYY}-{SEQ}.\">KenyaAllergyIdentifier</a>/ALG-2020-00042</p><p><b>clinicalStatus</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical active}\">Active</span></p><p><b>verificationStatus</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/allergyintolerance-verification confirmed}\">Confirmed</span></p><p><b>type</b>: Allergy</p><p><b>category</b>: Medication</p><p><b>criticality</b>: High Risk</p><p><b>code</b>: <span title=\"Codes:{https://fhir.dha.go.ke/fhir/CodeSystem/active-components-cs AC10686}\">Penicillin V potassium</span></p><p><b>patient</b>: <a href=\"Patient-example-patient-amina.html\">Amina Hassan (official) Female, DoB: 1988-04-15 ( https://ilm-hie.dha.go.ke/fhir/NamingSystem/national-id#KenyaNationalId#29834765)</a></p><p><b>encounter</b>: <a href=\"Encounter-example-encounter-amina-outpatient.html\">Encounter: identifier = https://ilm-hie.dha.go.ke/fhir/NamingSystem/encounter-identifier#KenyaEncounterIdentifier#ENC-2025-OPD-00123; status = finished; class = ambulatory (ActCode#AMB); serviceType = General Practice; priority = Routine; period = 2025-06-15 09:00:00+0300 --&gt; 2025-06-15 10:30:00+0300</a></p><p><b>onset</b>: 2020-03-10</p><p><b>recordedDate</b>: 2020-03-10</p><p><b>recorder</b>: <a href=\"Practitioner-example-practitioner-njoroge.html\">Practitioner Sarah Njoroge (official)</a></p><p><b>asserter</b>: <a href=\"Patient-example-patient-amina.html\">Amina Hassan (official) Female, DoB: 1988-04-15 ( https://ilm-hie.dha.go.ke/fhir/NamingSystem/national-id#KenyaNationalId#29834765)</a></p><p><b>note</b>: </p><blockquote><div><p>Patient reports severe urticarial reaction within 30 minutes of taking oral penicillin. Allergy confirmed and flagged in patient record.</p>\n</div></blockquote><h3>Reactions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Substance</b></td><td><b>Manifestation</b></td><td><b>Description</b></td><td><b>Onset</b></td><td><b>Severity</b></td><td><b>ExposureRoute</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://fhir.dha.go.ke/fhir/CodeSystem/active-components-cs AC10686}\">Penicillin V potassium</span></td><td><span title=\"Codes:{https://fhir.dha.go.ke/fhir/CodeSystem/manifestation-cs URTICARIA}\">Urticaria</span></td><td>Widespread urticaria over trunk and limbs appearing within 30 minutes of penicillin administration.</td><td>2020-03-10 14:00:00+0300</td><td>Moderate</td><td><span title=\"Codes:{https://fhir.dha.go.ke/fhir/CodeSystem/route-of-administration-cs RT10025}\">Oral</span></td></tr></table></div>"
  ] ;
  fhir:AllergyIntolerance.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://ilm-hie.dha.go.ke/fhir/NamingSystem/allergy-identifier" ] ;
     fhir:Identifier.value [ fhir:value "ALG-2020-00042" ]
  ] ;
  fhir:AllergyIntolerance.clinicalStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" ] ;
       fhir:Coding.code [ fhir:value "active" ] ;
       fhir:Coding.display [ fhir:value "Active" ]
     ]
  ] ;
  fhir:AllergyIntolerance.verificationStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" ] ;
       fhir:Coding.code [ fhir:value "confirmed" ] ;
       fhir:Coding.display [ fhir:value "Confirmed" ]
     ]
  ] ;
  fhir:AllergyIntolerance.type [ fhir:value "allergy"] ;
  fhir:AllergyIntolerance.category [
     fhir:value "medication" ;
     fhir:index 0
  ] ;
  fhir:AllergyIntolerance.criticality [ fhir:value "high"] ;
  fhir:AllergyIntolerance.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/active-components-cs" ] ;
       fhir:Coding.code [ fhir:value "AC10686" ] ;
       fhir:Coding.display [ fhir:value "Penicillin V potassium" ]
     ]
  ] ;
  fhir:AllergyIntolerance.patient [
     fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-amina> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient-amina" ]
  ] ;
  fhir:AllergyIntolerance.encounter [
     fhir:link <https://fhir.dha.go.ke/erx/Encounter/example-encounter-amina-outpatient> ;
     fhir:Reference.reference [ fhir:value "Encounter/example-encounter-amina-outpatient" ]
  ] ;
  fhir:AllergyIntolerance.onsetDateTime [ fhir:value "2020-03-10"^^xsd:date] ;
  fhir:AllergyIntolerance.recordedDate [ fhir:value "2020-03-10"^^xsd:date] ;
  fhir:AllergyIntolerance.recorder [
     fhir:link <https://fhir.dha.go.ke/erx/Practitioner/example-practitioner-njoroge> ;
     fhir:Reference.reference [ fhir:value "Practitioner/example-practitioner-njoroge" ]
  ] ;
  fhir:AllergyIntolerance.asserter [
     fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-amina> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient-amina" ]
  ] ;
  fhir:AllergyIntolerance.note [
     fhir:index 0 ;
     fhir:Annotation.text [ fhir:value "Patient reports severe urticarial reaction within 30 minutes of taking oral penicillin. Allergy confirmed and flagged in patient record." ]
  ] ;
  fhir:AllergyIntolerance.reaction [
     fhir:index 0 ;
     fhir:AllergyIntolerance.reaction.substance [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/active-components-cs" ] ;
         fhir:Coding.code [ fhir:value "AC10686" ] ;
         fhir:Coding.display [ fhir:value "Penicillin V potassium" ]
       ]
     ] ;
     fhir:AllergyIntolerance.reaction.manifestation [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/manifestation-cs" ] ;
         fhir:Coding.code [ fhir:value "URTICARIA" ] ;
         fhir:Coding.display [ fhir:value "Urticaria" ]
       ]
     ] ;
     fhir:AllergyIntolerance.reaction.description [ fhir:value "Widespread urticaria over trunk and limbs appearing within 30 minutes of penicillin administration." ] ;
     fhir:AllergyIntolerance.reaction.onset [ fhir:value "2020-03-10T14:00:00+03:00"^^xsd:dateTime ] ;
     fhir:AllergyIntolerance.reaction.severity [ fhir:value "moderate" ] ;
     fhir:AllergyIntolerance.reaction.exposureRoute [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/route-of-administration-cs" ] ;
         fhir:Coding.code [ fhir:value "RT10025" ] ;
         fhir:Coding.display [ fhir:value "Oral" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.dha.go.ke/erx/AllergyIntolerance/example-allergyintolerance-amina-penicillin.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

