@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.doh.gov.ph/phcore/AllergyIntolerance/allergy-single-example> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "allergy-single-example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-allergyintolerance"^^xsd:anyURI ;
       fhir:l <https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-allergyintolerance>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Juan Dela Cruz has a high criticality, active allergy to Benethamine penicillin.</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:display [ fhir:v "Active" ]
     ] ) ;
     fhir:text [ 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:display [ fhir:v "Confirmed" ]
     ] ) ;
     fhir:text [ fhir:v "Confirmed" ]
  ] ; # 
  fhir:criticality [ fhir:v "high"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:294494002 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "294494002" ] ;
       fhir:display [ fhir:v "Benethamine penicillin allergy" ]
     ] ) ;
     fhir:text [ fhir:v "Benethamine penicillin allergy" ]
  ] ; # 
  fhir:patient [
     fhir:l <https://fhir.doh.gov.ph/phcore/Patient/patient-single-example> ;
     fhir:reference [ fhir:v "Patient/patient-single-example" ]
  ] ; # 
  fhir:onset [
     a fhir:DateTime ;
     fhir:v "2023-01-15"^^xsd:date
  ] ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Patient reported rash and swelling after penicillin administration." ]
  ] ) ; # 
  fhir:reaction ( [
     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 "Eruption of skin" ]
       ] ) ;
       fhir:text [ fhir:v "Skin rash" ]
     ] ) ;
     fhir:severity [ fhir:v "severe" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

