@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir-ig.digital.health.nz/sdhr/AllergyIntolerance/AllergyIntoleranceExample> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "AllergyIntoleranceExample"] ;
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2024-01-26T10:03:26+13:00"^^xsd:dateTime ] ;
     fhir:Meta.source [ fhir:value "https://api.hip.digital.health.nz/fhir/hpi/v1/Location/F38006-B" ] ;
     fhir:Meta.profile [
       fhir:value "https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHRAllergyIntolerance" ;
       fhir:index 0 ;
       fhir:link <https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHRAllergyIntolerance>
     ] ;
     fhir:Meta.security [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" ] ;
       fhir:Coding.code [ fhir:value "R" ] ;
       fhir:Coding.display [ fhir:value "Restricted" ]
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.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><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\">Last updated: 2024-01-26 10:03:26+1300; </p><p style=\"margin-bottom: 0px\">Information Source: <a href=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@3.0.0&amp;canonical=https://api.hip.digital.health.nz/fhir/hpi/v1/Location/F38006-B\">https://api.hip.digital.health.nz/fhir/hpi/v1/Location/F38006-B</a></p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-SDHRAllergyIntolerance.html\">SDHRAllergyIntolerance</a></p><p style=\"margin-bottom: 0px\">Security Label: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-v3-Confidentiality.html\">Restricted (Details: Confidentiality code R = 'Restricted')</a></p></div><p><b>Client Last Updated</b>: 2023-11-26 10:02:45+1300</p><p><b>identifier</b>: <code>https://fhir.examplepms.co.nz</code>/ec2d6cad-1e19-46ee-accf-dc460a680710 (use: secondary, )</p><p><b>clinicalStatus</b>: <span title=\"Codes:{http://snomed.info/sct 443601000210103}\">Active Phase</span></p><p><b>verificationStatus</b>: <span title=\"Codes:{http://snomed.info/sct 410605003}\">Confirmed present</span></p><p><b>type</b>: Allergy</p><p><b>category</b>: 62014003</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 91936005}\">Allergy to penicillin (finding)</span></p><p><b>patient</b>: <a href=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@3.0.0&amp;canonical=https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZKC7284\">Sage Westbrook</a></p><p><b>recorder</b>: <a href=\"https://simplifier.net/resolve?scope=fhir.org.nz.ig.base@3.0.0&amp;canonical=https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/91ZZXN\">DR Julian Subatoi Bashir</a></p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/hnz-sdhr-client-last-updated-extension" ] ;
     fhir:Extension.valueDateTime [ fhir:value "2023-11-26T10:02:45+13:00"^^xsd:dateTime ]
  ] ;
  fhir:AllergyIntolerance.identifier [
     fhir:index 0 ;
     fhir:Identifier.use [ fhir:value "secondary" ] ;
     fhir:Identifier.system [ fhir:value "https://fhir.examplepms.co.nz" ] ;
     fhir:Identifier.value [ fhir:value "ec2d6cad-1e19-46ee-accf-dc460a680710" ]
  ] ;
  fhir:AllergyIntolerance.clinicalStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:443601000210103 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "443601000210103" ] ;
       fhir:Coding.display [ fhir:value "Active Phase" ]
     ]
  ] ;
  fhir:AllergyIntolerance.verificationStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:410605003 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "410605003" ] ;
       fhir:Coding.display [ fhir:value "Confirmed present" ]
     ]
  ] ;
  fhir:AllergyIntolerance.type [ fhir:value "allergy"] ;
  fhir:AllergyIntolerance.category [
     fhir:value "62014003" ;
     fhir:index 0
  ] ;
  fhir:AllergyIntolerance.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:91936005 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "91936005" ] ;
       fhir:Coding.display [ fhir:value "Allergy to penicillin (finding)" ] ;
       fhir:Coding.userSelected [ fhir:value "true"^^xsd:boolean ]
     ]
  ] ;
  fhir:AllergyIntolerance.patient [
     fhir:link <https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZKC7284> ;
     fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZKC7284" ] ;
     fhir:Reference.type [ fhir:value "Patient" ] ;
     fhir:Reference.display [ fhir:value "Sage Westbrook" ]
  ] ;
  fhir:AllergyIntolerance.recorder [
     fhir:link <https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/91ZZXN> ;
     fhir:Reference.reference [ fhir:value "https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/91ZZXN" ] ;
     fhir:Reference.type [ fhir:value "Practitioner" ] ;
     fhir:Reference.display [ fhir:value "DR Julian Subatoi Bashir" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/sdhr/AllergyIntolerance/AllergyIntoleranceExample.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

