@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/example1> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example1"] ; # 
  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 example1</b></p><a name=\"example1\"> </a><a name=\"hcexample1\"> </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 unconfirmed}\">Unconfirmed</span></p><p><b>type</b>: Allergy</p><p><b>category</b>: Food</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 213020009}\">Allergy to egg protein</span></p><p><b>patient</b>: <a href=\"Patient-example2.html\">Sally Grant</a></p><p><b>onset</b>: 4 year<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codea = 'a')</span></p><p><b>recordedDate</b>: 2018-03-07</p><p><b>asserter</b>: <a href=\"Patient-example2.html\">Sally Grant</a></p><blockquote><p><b>reaction</b></p><p><b>manifestation</b>: <span title=\"Codes:{http://snomed.info/sct 247472004}\">Hives</span>, <span title=\"Codes:{http://snomed.info/sct 422587007}\">Nausea</span>, <span title=\"Codes:{http://snomed.info/sct 422400008}\">Vomiting</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 "unconfirmed" ] ;
       fhir:display [ fhir:v "Unconfirmed" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "allergy"] ; # 
  fhir:category ( [ fhir:v "food"] ) ; # 
  fhir:code [
     fhir:coding ( [
       a sct:213020009 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "213020009" ] ;
       fhir:display [ fhir:v "Allergy to egg protein" ]
     ] )
  ] ; # 
  fhir:patient [
     fhir:l <http://hl7.org.au/fhir/Patient/example2> ;
     fhir:reference [ fhir:v "Patient/example2" ] ;
     fhir:display [ fhir:v "Sally Grant" ]
  ] ; # 
  fhir:onset [
     a fhir:Age ;
     fhir:value [ fhir:v "4"^^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 "2018-03-07"^^xsd:date] ; # 
  fhir:asserter [
     fhir:l <http://hl7.org.au/fhir/Patient/example2> ;
     fhir:reference [ fhir:v "Patient/example2" ] ;
     fhir:display [ fhir:v "Sally Grant" ]
  ] ; # 
  fhir:reaction ( [
     fhir:manifestation ( [
       fhir:coding ( [
         a sct:247472004 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "247472004" ] ;
         fhir:display [ fhir:v "Hives" ]
       ] )
     ] [
       fhir:coding ( [
         a sct:422587007 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "422587007" ] ;
         fhir:display [ fhir:v "Nausea" ]
       ] )
     ] [
       fhir:coding ( [
         a sct:422400008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "422400008" ] ;
         fhir:display [ fhir:v "Vomiting" ]
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

