@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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://fhir.dha.go.ke/kps/AllergyIntolerance/example-allergy-patient-001> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-allergy-patient-001"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.dha.go.ke/kps/StructureDefinition/ke-kps-allergy-intolerance"^^xsd:anyURI ;
       fhir:l <https://fhir.dha.go.ke/kps/StructureDefinition/ke-kps-allergy-intolerance>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AllergyIntolerance example-allergy-patient-001</b></p><a name=\"example-allergy-patient-001\"> </a><a name=\"hcexample-allergy-patient-001\"> </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-ke-kps-allergy-intolerance.html\">AllergyIntolerance Profile - KPS</a></p></div><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>criticality</b>: High Risk</p><p><b>patient</b>: <a href=\"Patient-ExamplePatientKPS.html\">Hawa Mohamed  Female, DoB: 1992-03-25 ( http://moh.kenya/identifier/nationalID-no#28765432)</a></p><p><b>onset</b>: 2021-05-01</p><blockquote><p><b>reaction</b></p><p><b>substance</b>: <span title=\"Codes:{http://snomed.info/sct 91936005}\">Allergy to penicillin</span></p><p><b>manifestation</b>: <span title=\"Codes:{http://snomed.info/sct 271807003}\">Rash</span>, <span title=\"Codes:{http://snomed.info/sct 230145002}\">Difficulty breathing</span></p><p><b>description</b>: Develops severe rash and difficulty breathing after penicillin</p><p><b>severity</b>: Severe</p><p><b>note</b>: </p><blockquote><div><p>Carry epinephrine auto-injector at all times.</p>\n</div></blockquote></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:clinicalStatus [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical>
       ] ;
       fhir:code [ fhir:v "active" ]
     ] )
  ] ; # 
  fhir:verificationStatus [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/allergyintolerance-verification>
       ] ;
       fhir:code [ fhir:v "confirmed" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "allergy"] ; # 
  fhir:criticality [ fhir:v "high"] ; # 
  fhir:patient [
     fhir:l <https://fhir.dha.go.ke/kps/Patient/ExamplePatientKPS> ;
     fhir:reference [ fhir:v "Patient/ExamplePatientKPS" ]
  ] ; # 
  fhir:onset [
     a fhir:DateTime ;
     fhir:v "2021-05-01"^^xsd:date
  ] ; # 
  fhir:reaction ( [
     fhir:substance [
       fhir:coding ( [
         a sct:91936005 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "91936005" ] ;
         fhir:display [ fhir:v "Allergy to penicillin" ]
       ] )
     ] ;
     fhir:manifestation ( [
       fhir:coding ( [
         a sct:271807003 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "271807003" ] ;
         fhir:display [ fhir:v "Rash" ]
       ] )
     ] [
       fhir:coding ( [
         a sct:230145002 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "230145002" ] ;
         fhir:display [ fhir:v "Difficulty breathing" ]
       ] )
     ] ) ;
     fhir:description [ fhir:v "Develops severe rash and difficulty breathing after penicillin" ] ;
     fhir:severity [ fhir:v "severe" ] ;
     fhir:note ( [
       fhir:text [ fhir:v "Carry epinephrine auto-injector at all times." ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

