@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.au/fhir/AllergyIntolerance/example2> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example2"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org.au/fhir/StructureDefinition/au-allergyintolerance"^^xsd:anyURI ;
       fhir:l <http://hl7.org.au/fhir/StructureDefinition/au-allergyintolerance>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AllergyIntolerance example2</b></p><a name=\"example2\"> </a><a name=\"hcexample2\"> </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-au-allergyintolerance.html\">AU Base AllergyIntolerance</a></p></div><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>: Intolerance</p><p><b>category</b>: Food</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 782415009}\">Intolerance to lactose</span></p><p><b>patient</b>: <a href=\"Patient-example4.html\">Suzanne Simmons</a></p><p><b>onset</b>: 1 year<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codea = 'a')</span></p><p><b>recordedDate</b>: 2009-10-09</p><p><b>asserter</b>: <a href=\"Practitioner-example3.html\">Francis Fernando</a></p><blockquote><p><b>reaction</b></p><p><b>substance</b>: <span title=\"Codes:{http://snomed.info/sct 47703008}\">Lactose</span></p><p><b>manifestation</b>: <span title=\"Codes:{http://snomed.info/sct 21522001}\">Abdominal pain</span>, <span title=\"Codes:{http://snomed.info/sct 116289008}\">Abdominal bloating</span>, <span title=\"Codes:{http://snomed.info/sct 62315008}\">Diarrhoea</span></p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  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 "intolerance"] ; # 
  fhir:category ( [ fhir:v "food"] ) ; # 
  fhir:code [
     fhir:coding ( [
       a sct:782415009 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "782415009" ] ;
       fhir:display [ fhir:v "Intolerance to lactose" ]
     ] )
  ] ; # 
  fhir:patient [
     fhir:l <http://hl7.org.au/fhir/Patient/example4> ;
     fhir:reference [ fhir:v "Patient/example4" ] ;
     fhir:display [ fhir:v "Suzanne Simmons" ]
  ] ; # 
  fhir:onset [
     a fhir:Age ;
     fhir:value [ fhir:v "1"^^xsd:decimal ] ;
     fhir:unit [ fhir:v "year" ] ;
     fhir:system [
       fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
       fhir:l <http://unitsofmeasure.org>
     ] ;
     fhir:code [ fhir:v "a" ]
  ] ; # 
  fhir:recordedDate [ fhir:v "2009-10-09"^^xsd:date] ; # 
  fhir:asserter [
     fhir:l <http://hl7.org.au/fhir/Practitioner/example3> ;
     fhir:reference [ fhir:v "Practitioner/example3" ] ;
     fhir:display [ fhir:v "Francis Fernando" ]
  ] ; # 
  fhir:reaction ( [
     fhir:substance [
       fhir:coding ( [
         a sct:47703008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "47703008" ] ;
         fhir:display [ fhir:v "Lactose" ]
       ] )
     ] ;
     fhir:manifestation ( [
       fhir:coding ( [
         a sct:21522001 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "21522001" ] ;
         fhir:display [ fhir:v "Abdominal pain" ]
       ] )
     ] [
       fhir:coding ( [
         a sct:116289008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "116289008" ] ;
         fhir:display [ fhir:v "Abdominal bloating" ]
       ] )
     ] [
       fhir:coding ( [
         a sct:62315008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "62315008" ] ;
         fhir:display [ fhir:v "Diarrhoea" ]
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

