@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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/fhir/Bundle/father> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "father"] ; # 
  fhir:meta [
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-Confidentiality"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-Confidentiality>
       ] ;
       fhir:code [ fhir:v "N" ] ;
       fhir:display [ fhir:v "normal" ]
     ] )
  ] ; # 
  fhir:identifier [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:0c3151bd-1cbf-4d64-b04d-cd9187a4c6e0" ]
  ] ; # 
  fhir:type [ fhir:v "document"] ; # 
  fhir:timestamp [ fhir:v "2013-05-28T22:12:21Z"^^xsd:dateTime] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57> )
  ] [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/Practitioner/example"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/Practitioner/example>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/Practitioner/example> )
  ] [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/Patient/d1"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/Patient/d1>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/Patient/d1> )
  ] [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/Encounter/doc-example"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/Encounter/doc-example>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/Encounter/doc-example> )
  ] [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/Observation/example1"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/Observation/example1>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/Observation/example1> )
  ] [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/MedicationRequest/example2"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/MedicationRequest/example2>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/MedicationRequest/example2> )
  ] [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/MedicationStatement/example3"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/MedicationStatement/example3>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/MedicationStatement/example3> )
  ] [
     fhir:fullUrl [
       fhir:v "http://fhir.healthintersections.com.au/open/AllergyIntolerance/example4"^^xsd:anyURI ;
       fhir:l <http://fhir.healthintersections.com.au/open/AllergyIntolerance/example4>
     ] ;
     fhir:resource ( <http://fhir.healthintersections.com.au/open/AllergyIntolerance/example4> )
  ] ) ; #     The Composition resource    
  fhir:signature [
     fhir:type ( [
       fhir:system [
         fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ;
         fhir:l <urn:iso-astm:E1762-95:2013>
       ] ;
       fhir:code [ fhir:v "1.2.840.10065.1.12.1.1" ] ;
       fhir:display [ fhir:v "Author's Signature" ]
     ] ) ;
     fhir:when [ fhir:v "2015-08-31T07:42:33+10:00"^^xsd:dateTime ] ;
     fhir:who [
       fhir:l <http://hl7.org/fhir/Device/software> ;
       fhir:reference [ fhir:v "Device/software" ]
     ] ;
     fhir:onBehalfOf [
       fhir:l <http://hl7.org/fhir/Organization/example> ;
       fhir:reference [ fhir:v "Organization/example" ]
     ] ;
     fhir:sigFormat [ fhir:v "image/jpg" ] ; #   a real document would typically have a digital signature, but\n      the publishing tools are not yet setup to produce a valid digital\n      signature. For now, an image of a signature  
     fhir:data [ fhir:v "[encoded data, 21332 characters]"^^xsd:base64Binary ]
  ] . # 

<http://fhir.healthintersections.com.au/open/Composition/180f219f-97a8-486d-99d9-ed631fe4fc57> a fhir:Composition ;
  fhir:id [ fhir:v "180f219f-97a8-486d-99d9-ed631fe4fc57"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-28T22:12:21Z"^^xsd:dateTime ]
  ] ; # 
  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: Composition 180f219f-97a8-486d-99d9-ed631fe4fc57</b></p><a name=\"180f219f-97a8-486d-99d9-ed631fe4fc57\"> </a><a name=\"hc180f219f-97a8-486d-99d9-ed631fe4fc57\"> </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: 2013-05-28T22:12:21Z</p></div><p><b>status</b>: Final</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 28655-9}\">Discharge Summary from Responsible Clinician</span></p><p><b>encounter</b>: <a href=\"broken-link.html\">http://fhir.healthintersections.com.au/open/Encounter/doc-example</a></p><p><b>date</b>: 2013-02-01T12:30:02Z</p><p><b>author</b>: <a href=\"practitioner-example.html\">Doctor Dave</a></p><p><b>title</b>: Discharge Summary</p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:28655-9 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "28655-9" ]
     ] ) ;
     fhir:text [ fhir:v "Discharge Summary from Responsible Clinician" ]
  ] ; # 
  fhir:subject ( [
     fhir:l <http://fhir.healthintersections.com.au/open/Patient/d1> ;
     fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Patient/d1" ] ;
     fhir:display [ fhir:v "Eve Everywoman" ]
  ] ) ; # 
  fhir:encounter [
     fhir:l <http://fhir.healthintersections.com.au/open/Encounter/doc-example> ;
     fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Encounter/doc-example" ]
  ] ; #     The Encounter resource. Points directly to an Encounter resource. Contains the dates of admission, specialtyu etc.    
  fhir:date [ fhir:v "2013-02-01T12:30:02Z"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:l <http://hl7.org/fhir/Practitioner/example> ;
     fhir:reference [ fhir:v "Practitioner/example" ] ;
     fhir:display [ fhir:v "Doctor Dave" ]
  ] ) ; # 
  fhir:title [ fhir:v "Discharge Summary"] ; # 
  fhir:section ( [
     fhir:title [ fhir:v "Reason for admission" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:29299-5 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "29299-5" ] ;
         fhir:display [ fhir:v "Reason for visit Narrative" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "additional" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n              <table>\n\n                <thead>\n\n                  <tr>\n\n                    <td>Details</td>\n\n                    <td/>\n\n                  </tr>\n\n                </thead>\n\n                <tbody>\n\n                  <tr>\n\n                    <td>Acute Asthmatic attack. Was wheezing for days prior to admission.</td>\n\n                    <td/>\n\n                  </tr>\n\n                </tbody>\n\n              </table>\n\n            </div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://fhir.healthintersections.com.au/open/Observation/example1> ;
       fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Observation/example1" ]
     ] )
  ] [
     fhir:title [ fhir:v "Medications on Discharge" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:10183-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "10183-2" ] ;
         fhir:display [ fhir:v "Hospital discharge medications Narrative" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "additional" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n              <table>\n\n                <thead>\n\n                  <tr>\n\n                    <td>Medication</td>\n\n                    <td>Last Change</td>\n\n                    <td>Last ChangeReason</td>\n\n                  </tr>\n\n                </thead>\n\n                <tbody>\n\n                  <tr>\n\n                    <td>Theophylline 200mg BD after meals</td>\n\n                    <td>continued</td>\n\n                  </tr>\n\n                  <tr>\n\n                    <td>Ventolin Inhaler</td>\n\n                    <td>stopped</td>\n\n                    <td>Getting side effect of tremor</td>\n\n                  </tr>\n\n                </tbody>\n\n              </table>\n\n            </div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://fhir.healthintersections.com.au/open/MedicationRequest/example2> ;
       fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/MedicationRequest/example2" ]
     ] [
       fhir:l <http://fhir.healthintersections.com.au/open/MedicationStatement/example3> ;
       fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/MedicationStatement/example3" ]
     ] ) #     This is an entry that refers to a MedicationRequest resource in this document.\n                It is a new medication (as indicated by the flag)   
  ] [
     fhir:title [ fhir:v "Known allergies" ] ;
     fhir:code [
       fhir:coding ( [
         a loinc:48765-2 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "48765-2" ] ;
         fhir:display [ fhir:v "Allergies and adverse reactions Document" ]
       ] )
     ] ;
     fhir:text [
       fhir:status [ fhir:v "additional" ] ;
       fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n              <table>\n\n                <thead>\n\n                  <tr>\n\n                    <td>Allergen</td>\n\n                    <td>Reaction</td>\n\n                  </tr>\n\n                </thead>\n\n                <tbody>\n\n                  <tr>\n\n                    <td>Doxycycline</td>\n\n                    <td>Hives</td>\n\n                  </tr>\n\n                </tbody>\n\n              </table>\n\n            </div>"^^rdf:XMLLiteral ]
     ] ;
     fhir:entry ( [
       fhir:l <http://fhir.healthintersections.com.au/open/AllergyIntolerance/example4> ;
       fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/AllergyIntolerance/example4" ]
     ] )
  ] ) . # 

<http://hl7.org/fhir/Practitioner/example> a fhir:Practitioner .

<http://fhir.healthintersections.com.au/open/Practitioner/example> a fhir:Practitioner ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-05T16:13:03Z"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n            <p>Dr Adam Careful</p>\n\n          </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://www.acme.org/practitioners"^^xsd:anyURI ;
       fhir:l <http://www.acme.org/practitioners>
     ] ;
     fhir:value [ fhir:v "23" ]
  ] ) ; # 
  fhir:name ( [
     fhir:family [ fhir:v "Careful" ] ;
     fhir:given ( [ fhir:v "Adam" ] ) ;
     fhir:prefix ( [ fhir:v "Dr" ] )
  ] ) . # 

<http://fhir.healthintersections.com.au/open/Patient/d1> a fhir:Patient ;
  fhir:id [ fhir:v "d1"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n            <h1>Eve Everywoman</h1>\n\n          </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:text [ fhir:v "Eve Everywoman" ] ;
     fhir:family [ fhir:v "Everywoman1" ] ;
     fhir:given ( [ fhir:v "Eve" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "555-555-2003" ] ;
     fhir:use [ fhir:v "work" ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:birthDate [ fhir:v "1955-01-06"^^xsd:date] ; # 
  fhir:address ( [
     fhir:use [ fhir:v "home" ] ;
     fhir:line ( [ fhir:v "2222 Home Street" ] )
  ] ) . # 

<http://fhir.healthintersections.com.au/open/Encounter/doc-example> a fhir:Encounter ;
  fhir:id [ fhir:v "doc-example"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-05T16:13:03Z"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"> Admitted to Orthopedics Service,\n                        Middlemore Hospital between Jan 20 and Feb ist 2013 </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:value [ fhir:v "S100" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:class ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
       ] ;
       fhir:code [ fhir:v "IMP" ] ;
       fhir:display [ fhir:v "inpatient encounter" ]
     ] )
  ] ) ; # 
  fhir:type ( [
     fhir:text [ fhir:v "Orthopedic Admission" ]
  ] ) ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/d1> ;
     fhir:reference [ fhir:v "Patient/d1" ]
  ] ; # 
  fhir:actualPeriod [
     fhir:start [ fhir:v "2013-01-20T12:30:02Z"^^xsd:dateTime ] ;
     fhir:end [ fhir:v "2013-02-01T12:30:02Z"^^xsd:dateTime ]
  ] ; # 
  fhir:admission [
     fhir:dischargeDisposition [
       fhir:text [ fhir:v "Discharged to care of GP" ]
     ]
  ] . # 

<http://hl7.org/fhir/Patient/d1> a fhir:Patient .

<http://fhir.healthintersections.com.au/open/Observation/example1> a fhir:Observation ;
  fhir:id [ fhir:v "example1"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-05T16:13:03Z"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "additional" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"> Acute Asthmatic attack. Was wheezing\n                        for days prior to admission. </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:code [
     fhir:coding ( [
       a loinc:46241-6 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "46241-6" ]
     ] ) ;
     fhir:text [ fhir:v "Reason for admission" ]
  ] ; # 
  fhir:subject [
     fhir:l <http://fhir.healthintersections.com.au/open/Patient/d1> ;
     fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Patient/d1" ] ;
     fhir:display [ fhir:v "Eve Everywoman" ]
  ] ; # 
  fhir:encounter [
     fhir:l <http://fhir.healthintersections.com.au/open/Encounter/doc-example> ;
     fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Encounter/doc-example" ]
  ] ; # 
  fhir:value [
     a fhir:String ;
     fhir:v "Acute Asthmatic attack. Was wheezing for days prior to admission."
  ] . # 

<http://fhir.healthintersections.com.au/open/MedicationRequest/example2> a fhir:MedicationRequest ;
  fhir:id [ fhir:v "example2"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-05T16:13:03Z"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n            <p>Theophylline 200mg twice a day</p>\n\n          </div>"^^rdf:XMLLiteral ]
  ] ; #     The Human readible version of the script    
  fhir:status [ fhir:v "unknown"] ; #     The patient details will generally be in the Document resource in the Document bundle, but could just as easily
#        point to a patient resource on a server   
  fhir:intent [ fhir:v "order"] ; # 
  fhir:medication [
     fhir:concept [
       fhir:coding ( [
         a sct:66493003 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "66493003" ]
       ] ) ;
       fhir:text [ fhir:v "Theophylline 200mg" ]
     ]
  ] ; # 
  fhir:subject [
     fhir:l <http://fhir.healthintersections.com.au/open/Patient/d1> ;
     fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Patient/d1" ] ;
     fhir:display [ fhir:v "Peter Patient" ]
  ] ; # 
  fhir:requester [
     fhir:l <http://hl7.org/fhir/Practitioner/example> ;
     fhir:reference [ fhir:v "Practitioner/example" ] ;
     fhir:display [ fhir:v "Peter Practitioner" ]
  ] ; #     The prescriber details could also be within the bundle, but has the same options as patient   
  fhir:reason ( [
     fhir:concept [
       fhir:text [ fhir:v "Management of Asthma" ]
     ]
  ] ) ; # 
  fhir:dosageInstruction [] . #     a reference to the medication being prescribed. As described earlier, this could be contained (as is the example here), separately
#        within the document bundle or simply a reference to a remote server. See comment in the contained resource   

<http://fhir.healthintersections.com.au/open/MedicationStatement/example3> a fhir:MedicationStatement ;
  fhir:id [ fhir:v "example3"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n            <p>Ventolin inhaler discontinued</p>\n\n          </div>"^^rdf:XMLLiteral ]
  ] ; #     The Human readible version of the medication statement   
  fhir:status [ fhir:v "recorded"] ; #     The patient details will generally be in the Document resource in the Document bundle, but could just as easily
#        point to a patient resource on a server   
  fhir:medication [
     fhir:concept [
       fhir:text [ fhir:v "Ventolin Inhaler" ]
     ]
  ] ; #     a reference to the medication being prescribed. As described earlier, this could be contained (as is the example here), separately
#        within the document bundle or simply a reference to a remote server. See comment in the contained resource   
  fhir:subject [
     fhir:l <http://fhir.healthintersections.com.au/open/Patient/d1> ;
     fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Patient/d1" ] ;
     fhir:display [ fhir:v "Peter Patient" ]
  ] ; # 
  fhir:dateAsserted [ fhir:v "2013-05-05T16:13:03Z"^^xsd:dateTime] ; # 
  fhir:reason ( [
     fhir:concept [
       fhir:text [ fhir:v "Management of Asthma" ]
     ]
  ] ) . # 

<http://fhir.healthintersections.com.au/open/AllergyIntolerance/example4> a fhir:AllergyIntolerance ;
  fhir:id [ fhir:v "example4"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2013-05-05T16:13:03Z"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Sensitivity to Doxycycline :\n                        Hives</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:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/allergy-intolerance-type"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/allergy-intolerance-type>
       ] ;
       fhir:code [ fhir:v "allergy" ] ;
       fhir:display [ fhir:v "Allergy" ]
     ] )
  ] ; # 
  fhir:criticality [ fhir:v "high"] ; # 
  fhir:code [
     fhir:text [ fhir:v "Doxycycline" ]
  ] ; # 
  fhir:patient [
     fhir:l <http://fhir.healthintersections.com.au/open/Patient/d1> ;
     fhir:reference [ fhir:v "http://fhir.healthintersections.com.au/open/Patient/d1" ] ;
     fhir:display [ fhir:v "Eve Everywoman" ]
  ] ; # 
  fhir:recordedDate [ fhir:v "2012-09-17"^^xsd:date] ; # 
  fhir:reaction ( [
     fhir:manifestation ( [
       fhir:concept [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://example.org/system"^^xsd:anyURI ;
             fhir:l <http://example.org/system>
           ] ;
           fhir:code [ fhir:v "xxx" ] ;
           fhir:display [ fhir:v "Hives" ]
         ] ) ;
         fhir:text [ fhir:v "Hives" ]
       ]
     ] )
  ] ) . # 

<http://hl7.org/fhir/Device/software> a fhir:Device .

<http://hl7.org/fhir/Organization/example> a fhir:Organization .

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

