@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/sdhr/Bundle/SearchConfidentialRecordsResponseExample> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "SearchConfidentialRecordsResponseExample"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2025-04-29T23:35:29.795Z"^^xsd:dateTime ] ;
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationValue"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ObservationValue>
       ] ;
       fhir:code [ fhir:v "redacted" ] ;
       fhir:display [ fhir:v "REDACTED" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:total [ fhir:v "2"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "https://api.mock.sdhr.digital.health.nz/s2s/AllergyIntolerance?patient=https%3A%2F%2Fapi.hip.digital.health.nz%2Ffhir%2Fnhi%2Fv1%2FPatient%2FZKC7284"^^xsd:anyURI ;
       fhir:l <https://api.mock.sdhr.digital.health.nz/s2s/AllergyIntolerance?patient=https%3A%2F%2Fapi.hip.digital.health.nz%2Ffhir%2Fnhi%2Fv1%2FPatient%2FZKC7284>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "https://api.mock.sdhr.digital.health.nz/s2s/AllergyIntolerance/AllergyIntoleranceExample2"^^xsd:anyURI ;
       fhir:l <https://api.mock.sdhr.digital.health.nz/s2s/AllergyIntolerance/AllergyIntoleranceExample2>
     ] ;
     fhir:resource ( <https://api.mock.sdhr.digital.health.nz/s2s/AllergyIntolerance/AllergyIntoleranceExample2> ) ;
     fhir:search [
       fhir:mode [ fhir:v "match" ]
     ]
  ] ) . # 

<https://api.mock.sdhr.digital.health.nz/s2s/AllergyIntolerance/AllergyIntoleranceExample2> a fhir:AllergyIntolerance ;
  fhir:id [ fhir:v "AllergyIntoleranceExample2"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2024-01-26T10:03:26+13:00"^^xsd:dateTime ] ;
     fhir:source [
       fhir:v "https://api.hip.digital.health.nz/fhir/hpi/v1/Location/F38006-B"^^xsd:anyURI ;
       fhir:l <https://api.hip.digital.health.nz/fhir/hpi/v1/Location/F38006-B>
     ] ;
     fhir:profile ( [
       fhir:v "https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHRAllergyIntolerance"^^xsd:anyURI ;
       fhir:l <https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/SDHRAllergyIntolerance>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"AllergyIntolerance_AllergyIntoleranceExample2\"> </a><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>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/hnz-sdhr-client-last-updated-extension"^^xsd:anyURI ;
       fhir:l <https://fhir-ig.digital.health.nz/sdhr/StructureDefinition/hnz-sdhr-client-last-updated-extension>
     ] ;
     fhir:value [
       a fhir:DateTime ;
       fhir:v "2024-02-14T11:15:00+13:00"^^xsd:dateTime
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "secondary" ] ;
     fhir:system [
       fhir:v "https://fhir.examplepms.co.nz"^^xsd:anyURI ;
       fhir:l <https://fhir.examplepms.co.nz>
     ] ;
     fhir:value [ fhir:v "ec2d6cad-1e19-46ee-accf-dc460a680710" ]
  ] ) ; # 
  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: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:type [ fhir:v "allergy"] ; # 
  fhir:category ( [ fhir:v "370540009"] ) ; # 
  fhir:code [
     fhir:coding ( [
       a sct:227493005 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "227493005" ] ;
       fhir:display [ fhir:v "Cashew nuts" ] ;
       fhir:userSelected [ fhir:v true ]
     ] )
  ] ; # 
  fhir:patient [
     fhir:l <https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZKC7284> ;
     fhir:reference [ fhir:v "https://api.hip.digital.health.nz/fhir/nhi/v1/Patient/ZKC7284" ] ;
     fhir:type [
       fhir:v "Patient"^^xsd:anyURI ;
       fhir:l fhir:Patient
     ] ;
     fhir:display [ fhir:v "Sage Westbrook" ]
  ] ; # 
  fhir:recorder [
     fhir:l <https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/91ZZXN> ;
     fhir:reference [ fhir:v "https://api.hip.digital.health.nz/fhir/hpi/v1/Practitioner/91ZZXN" ] ;
     fhir:type [
       fhir:v "Practitioner"^^xsd:anyURI ;
       fhir:l fhir:Practitioner
     ] ;
     fhir:display [ fhir:v "DR Julian Subatoi Bashir" ]
  ] . # 

# -------------------------------------------------------------------------------------

