@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-ig.digital.health.nz/shared-care/AllergyIntolerance/AllergyIntoleranceExample> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AllergyIntolerance AllergyIntoleranceExample</b></p><a name=\"AllergyIntoleranceExample\"> </a><a name=\"hcAllergyIntoleranceExample\"> </a><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>code</b>: <span title=\"Codes:{http://snomed.info/sct 764146007}\">Penicillin (substance)</span></p><p><b>patient</b>: Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-nhi.html\" title=\"NHI number\">NHI</a>/ZXP7823 (use: official, )</p><p><b>recorder</b>: Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-hpiProvider.html\" title=\"HPI providers\">HPIProvider</a>/99ZZFX (use: official, )</p><h3>Reactions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Manifestation</b></td><td><b>Severity</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 241938005}\">Penicillin-induced anaphylaxis (disorder)</span></td><td>Severe</td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:clinicalStatus [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "active" ] ;
       fhir:display [ fhir:v "Active" ]
     ] )
  ] ; # 
  fhir:verificationStatus [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "confirmed" ] ;
       fhir:display [ fhir:v "Confirmed" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "allergy"] ; # 
  fhir:category ( [ fhir:v "medication"] ) ; # 
  fhir:code [
     fhir:coding ( [
       a sct:764146007 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "764146007" ] ;
       fhir:display [ fhir:v "Penicillin (substance)" ]
     ] )
  ] ; # 
  fhir:patient [
     fhir:identifier [
       fhir:use [ fhir:v "official" ] ;
       fhir:system [ fhir:v "https://standards.digital.health.nz/ns/nhi-id"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "ZXP7823" ]
     ]
  ] ; # 
  fhir:recorder [
     fhir:identifier [
       fhir:use [ fhir:v "official" ] ;
       fhir:system [ fhir:v "https://standards.digital.health.nz/ns/hpi-person-id"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "99ZZFX" ]
     ]
  ] ; # 
  fhir:reaction ( [
     fhir:manifestation ( [
       fhir:coding ( [
         a sct:241938005 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "241938005" ] ;
         fhir:display [ fhir:v "Penicillin-induced anaphylaxis (disorder)" ]
       ] )
     ] ) ;
     fhir:severity [ fhir:v "severe" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

