@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/AllergyIntoleranceExample2> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "AllergyIntoleranceExample2"] ;
  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: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 AllergyIntoleranceExample2</b></p><a name=\"AllergyIntoleranceExample2\"> </a><a name=\"hcAllergyIntoleranceExample2\"> </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></div><p><b>Client Last Updated</b>: 2024-02-14 11:15:00+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://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>: 370540009</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 227493005}\">Cashew nuts</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 "2024-02-14T11:15:00+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 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" ] ;
       fhir:Coding.code [ fhir:value "active" ] ;
       fhir:Coding.display [ fhir:value "Active" ]
     ]
  ] ;
  fhir:AllergyIntolerance.verificationStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" ] ;
       fhir:Coding.code [ fhir:value "confirmed" ] ;
       fhir:Coding.display [ fhir:value "Confirmed" ]
     ]
  ] ;
  fhir:AllergyIntolerance.type [ fhir:value "allergy"] ;
  fhir:AllergyIntolerance.category [
     fhir:value "370540009" ;
     fhir:index 0
  ] ;
  fhir:AllergyIntolerance.code [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:227493005 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "227493005" ] ;
       fhir:Coding.display [ fhir:value "Cashew nuts" ] ;
       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/AllergyIntoleranceExample2.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

