@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/fhir/Bundle/example-bundle-allergyintolerance> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-bundle-allergyintolerance"] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "http://example.org/fhir/AllergyIntolerance?_id=79613&_revinclude=Provenance:target"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/AllergyIntolerance?_id=79613&_revinclude=Provenance:target>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/AllergyIntolerance/79613"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/AllergyIntolerance/79613>
     ] ;
     fhir:resource ( <http://example.org/fhir/AllergyIntolerance/79613> ) ;
     fhir:search [
       fhir:mode [ fhir:v "match" ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "http://example.org/fhir/Provenance/79614"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Provenance/79614>
     ] ;
     fhir:resource ( <http://example.org/fhir/Provenance/79614> ) ;
     fhir:search [
       fhir:mode [ fhir:v "include" ]
     ]
  ] ) . # 

<http://example.org/fhir/AllergyIntolerance/79613> a fhir:AllergyIntolerance ;
  fhir:id [ fhir:v "79613"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "1" ] ;
     fhir:lastUpdated [ fhir:v "2019-07-09T15:26:23.217+00:00"^^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: AllergyIntolerance 79613</b></p><a name=\"79613\"> </a><a name=\"hc79613\"> </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; Last updated: 2019-07-09T15:26:23.217Z</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>category</b>: Medication</p><p><b>criticality</b>: High Risk</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 762952008}\">Peanuts</span></p><p><b>patient</b>: <a href=\"patient-example.html\">Jim  Male, DoB: 1974-12-25 ( Medical record number (use: usual, period: 2001-05-06 --&gt; (ongoing)))</a></p><p><b>onset</b>: 2017-06-09</p><blockquote><p><b>reaction</b></p><h3>Manifestations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Concept</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 247472004}\">Hives</span></td></tr></table><p><b>onset</b>: 2017-06-09</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:category ( [ fhir:v "medication"] ) ; # 
  fhir:criticality [ fhir:v "high"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:762952008 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:version [ fhir:v "http://snomed.info/sct/731000124108" ] ;
       fhir:code [ fhir:v "762952008" ] ;
       fhir:display [ fhir:v "Peanuts" ]
     ] ) ;
     fhir:text [ fhir:v "Peanuts" ]
  ] ; # 
  fhir:patient [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:onset [
     a fhir:DateTime ;
     fhir:v "2017-06-09"^^xsd:date
  ] ; # 
  fhir:reaction ( [
     fhir:manifestation ( [
       fhir:concept [
         fhir:coding ( [
           a sct:247472004 ;
           fhir:system [
             fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
             fhir:l <http://snomed.info/sct>
           ] ;
           fhir:version [ fhir:v "http://snomed.info/sct/731000124108" ] ;
           fhir:code [ fhir:v "247472004" ] ;
           fhir:display [ fhir:v "Hives" ]
         ] )
       ]
     ] ) ;
     fhir:onset [ fhir:v "2017-06-09"^^xsd:date ]
  ] ) . # 

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

<http://example.org/fhir/Provenance/79614> a fhir:Provenance ;
  fhir:id [ fhir:v "79614"] ; # 
  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: Provenance 79614</b></p><a name=\"79614\"> </a><a name=\"hc79614\"> </a><p>Provenance for <a href=\"broken-link.html\">AllergyIntolerance/79613</a></p><p>Summary</p><table class=\"grid\"><tr><td>Recorded</td><td>2019-07-09T15:26:23.217Z</td></tr></table><p><b>Agents</b></p><table class=\"grid\"><tr><td><b>Type</b></td><td><b>who</b></td><td><b>On Behalf Of</b></td></tr><tr><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/provenance-participant-type custodian}\">Custodian</span></td><td><a href=\"organization-example.html\">Organization ACME Health</a></td><td/></tr><tr><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/provenance-participant-type author}\">Author</span></td><td><a href=\"practitioner-example-f004-rb.html\">Practitioner Ronald Briet (official)</a></td><td><a href=\"organization-example.html\">Organization ACME Health</a></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:target ( [
     fhir:l <http://hl7.org/fhir/AllergyIntolerance/79613/_history/1> ;
     fhir:reference [ fhir:v "AllergyIntolerance/79613/_history/1" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2019-07-09T15:26:23.217+00:00"^^xsd:dateTime] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/provenance-participant-type>
         ] ;
         fhir:code [ fhir:v "custodian" ] ;
         fhir:display [ fhir:v "Custodian" ]
       ] )
     ] ;
     fhir:who [
       fhir:l <http://hl7.org/fhir/Organization/example> ;
       fhir:reference [ fhir:v "Organization/example" ]
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/provenance-participant-type>
         ] ;
         fhir:code [ fhir:v "author" ] ;
         fhir:display [ fhir:v "Author" ]
       ] )
     ] ;
     fhir:who [
       fhir:l <http://hl7.org/fhir/Practitioner/f004> ;
       fhir:reference [ fhir:v "Practitioner/f004" ]
     ] ;
     fhir:onBehalfOf [
       fhir:l <http://hl7.org/fhir/Organization/example> ;
       fhir:reference [ fhir:v "Organization/example" ]
     ]
  ] ) . # 

<http://hl7.org/fhir/AllergyIntolerance/79613/_history/1> a fhir:AllergyIntolerance .

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

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

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

