@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://localhost:8085/fhir/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 "http://localhost:8085/fhir/StructureDefinition/ke-kps-allergy-intolerance"^^xsd:anyURI ;
       fhir:l <http://localhost:8085/fhir/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><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>Severity</b></td><td><b>Note</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://nshr-uat.sha.go.ke/fhir/CodeSystem/kps-substances-cs 1018001}\">Nornicotine</span></td><td><span title=\"Codes:{https://nshr-uat.sha.go.ke/fhir/CodeSystem/manifestation-cs JAUNDICE}\">Jaundice</span></td><td>Develops severe Jaundice after penicillin</td><td>Severe</td><td><blockquote><div><p>Carry epinephrine auto-injector at all times.</p>\n</div></blockquote></td></tr></table></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 <http://localhost:8085/fhir/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 ( [
         fhir:system [
           fhir:v "https://nshr-uat.sha.go.ke/fhir/CodeSystem/kps-substances-cs"^^xsd:anyURI ;
           fhir:l <https://nshr-uat.sha.go.ke/fhir/CodeSystem/kps-substances-cs>
         ] ;
         fhir:code [ fhir:v "1018001" ] ;
         fhir:display [ fhir:v "Nornicotine" ]
       ] )
     ] ;
     fhir:manifestation ( [
       fhir:coding ( [
         fhir:system [
           fhir:v "https://nshr-uat.sha.go.ke/fhir/CodeSystem/manifestation-cs"^^xsd:anyURI ;
           fhir:l <https://nshr-uat.sha.go.ke/fhir/CodeSystem/manifestation-cs>
         ] ;
         fhir:code [ fhir:v "JAUNDICE" ] ;
         fhir:display [ fhir:v "Jaundice" ]
       ] )
     ] ) ;
     fhir:description [ fhir:v "Develops severe Jaundice after penicillin" ] ;
     fhir:severity [ fhir:v "severe" ] ;
     fhir:note ( [
       fhir:text [ fhir:v "Carry epinephrine auto-injector at all times." ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

