@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 -------------------------------------------------------------------

<http://hl7.org.nz/fhir/ig/mws/AllergyIntolerance/MwsAllergyIntolerance-4> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "MwsAllergyIntolerance-4"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "1" ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org.nz/fhir/StructureDefinition/MwsAllergyIntolerance"^^xsd:anyURI ;
       fhir:link <http://hl7.org.nz/fhir/StructureDefinition/MwsAllergyIntolerance>
     ] )
  ] ; # 
  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 MwsAllergyIntolerance-4</b></p><a name=\"MwsAllergyIntolerance-4\"> </a><a name=\"hcMwsAllergyIntolerance-4\"> </a><a name=\"MwsAllergyIntolerance-4-en-US\"> </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\">version: 1</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-MwsAllergyIntolerance.html\">MwsAllergyIntolerance</a></p></div><p><b>identifier</b>: <code>https://standards.digital.health.nz/ns/mws-id</code>/cff10119-671c-4e6f-8776-0a573344320a</p><p><b>clinicalStatus</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical active}\">Active</span></p><p><b>category</b>: Medication</p><p><b>code</b>: <span title=\"Codes:{https://nzhts.digital.health.nz/fhir/CodeSystem/nzmt 10533431000116105}\">10533431000116105</span></p><p><b>patient</b>: <a href=\"Patient/patient\">Patient/patient</a></p><p><b>onset</b>: 2024-04-15</p><p><b>recorder</b>: <a href=\"PractitionerRole/recorder\">PractitionerRole/recorder</a></p><p><b>note</b>: Information in the note field will not be visible to people viewing the record through legacy HL7 or SOAP interfaces</p><blockquote><p><b>reaction</b></p><blockquote><p><b>id</b></p>1</blockquote><p><b>manifestation</b>: <span title=\"Codes:{http://snomed.info/sct 116289008}\">Abdominal bloating</span></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole #recorder3</b></p><a name=\"MwsAllergyIntolerance-4/recorder3\"> </a><a name=\"hcMwsAllergyIntolerance-4/recorder3\"> </a><a name=\"MwsAllergyIntolerance-4/recorder3-en-US\"> </a><p><b>practitioner</b>: <a href=\"Practitioner/96ZZZZ\">Practitioner/96ZZZZ</a></p><p><b>organization</b>: <a href=\"Organization/GZZ999-J\">Organization/GZZ999-J</a></p><p><b>location</b>: <a href=\"Location/FZZ999-B\">Location/FZZ999-B</a></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #patient3</b></p><a name=\"MwsAllergyIntolerance-4/patient3\"> </a><a name=\"hcMwsAllergyIntolerance-4/patient3\"> </a><a name=\"MwsAllergyIntolerance-4/patient3-en-US\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-MwsPatient.html\">Mws Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Miracle Rosanna Lynch  (no stated gender), DoB: 2021-10-11 ( https://standards.digital.health.nz/ns/nhi-id#NHI#ZHF0864 (use: official, ))</p><hr/></blockquote></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:contained ( [
     a fhir:PractitionerRole ;
     fhir:id [ fhir:v "recorder3" ] ;
     fhir:practitioner [
       fhir:link <http://hl7.org.nz/fhir/ig/mws/Practitioner/96ZZZZ> ;
       fhir:reference [ fhir:v "Practitioner/96ZZZZ" ]
     ] ;
     fhir:organization [
       fhir:link <http://hl7.org.nz/fhir/ig/mws/Organization/GZZ999-J> ;
       fhir:reference [ fhir:v "Organization/GZZ999-J" ]
     ] ;
     fhir:location ( [
       fhir:link <http://hl7.org.nz/fhir/ig/mws/Location/FZZ999-B> ;
       fhir:reference [ fhir:v "Location/FZZ999-B" ]
     ] )
  ] [
     a fhir:Patient ;
     fhir:id [ fhir:v "patient3" ] ;
     fhir:meta [
       fhir:profile ( [
         fhir:v "http://hl7.org.nz/fhir/StructureDefinition/MwsPatient"^^xsd:anyURI ;
         fhir:link <http://hl7.org.nz/fhir/StructureDefinition/MwsPatient>
       ] )
     ] ;
     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 "ZHF0864" ]
     ] ) ;
     fhir:name ( [
       fhir:family [ fhir:v "Lynch" ] ;
       fhir:given ( [ fhir:v "Miracle" ] [ fhir:v "Rosanna" ] )
     ] ) ;
     fhir:birthDate [ fhir:v "2021-10-11"^^xsd:date ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://standards.digital.health.nz/ns/mws-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "cff10119-671c-4e6f-8776-0a573344320a" ]
  ] ) ; # 
  fhir:clinicalStatus [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "active" ]
     ] )
  ] ; # 
  fhir:category ( [ fhir:v "medication"] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "https://nzhts.digital.health.nz/fhir/CodeSystem/nzmt"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "10533431000116105" ]
     ] )
  ] ; # 
  fhir:patient [
     fhir:link <http://hl7.org.nz/fhir/ig/mws/Patient/patient> ;
     fhir:reference [ fhir:v "Patient/patient" ]
  ] ; # 
  fhir:onset [
     a fhir:dateTime ;
     fhir:v "2024-04-15"^^xsd:date
  ] ; # 
  fhir:recorder [
     fhir:link <http://hl7.org.nz/fhir/ig/mws/PractitionerRole/recorder> ;
     fhir:reference [ fhir:v "PractitionerRole/recorder" ]
  ] ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Information in the note field will not be visible to people viewing the record through legacy HL7 or SOAP interfaces" ]
  ] ) ; # 
  fhir:reaction ( [
     fhir:id [ fhir:v "1" ] ;
     fhir:manifestation ( [
       fhir:coding ( [
         a sct:116289008 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "116289008" ]
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

