US Core Implementation Guide
4.0.0 - STU4 Release

This page is part of the US Core (v4.0.0: STU4) based on FHIR R4. The current version which supercedes this version is 5.0.1. For a full list of available versions, see the Directory of published versions

: AllergyIntolerance Provenance Example - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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 -------------------------------------------------------------------

 a fhir:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "c887e62f-6166-419f-8268-b5ecd6c7b901"];
  fhir:Resource.meta [
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/instance-name" ];
       fhir:Extension.valueString [ fhir:value "AllergyIntolerance Provenance Example" ]     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/instance-description" ];
       fhir:Extension.valueMarkdown [ fhir:value "This is a allergyintolerance provenance example for the *Bundle Profile*." ]     ];
     fhir:Meta.lastUpdated [ fhir:value "2019-07-09T18:49:01.235+00:00"^^xsd:dateTime ]
  ];
  fhir:Bundle.type [ fhir:value "searchset"];
  fhir:Bundle.total [ fhir:value "1"^^xsd:nonNegativeInteger];
  fhir:Bundle.link [
     fhir:index 0;
     fhir:Bundle.link.relation [ fhir:value "self" ];
     fhir:Bundle.link.url [ fhir:value "http://example.org/fhir/AllergyIntolerance?_revinclude=Provenance%3Atarget&patient=Examples" ]
  ];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/fhir/AllergyIntolerance/79613" ];
     fhir:Bundle.entry.resource <http://example.org/fhir/AllergyIntolerance/79613>;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "match" ]     ]
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/fhir/Provenance/79614" ];
     fhir:Bundle.entry.resource <http://example.org/fhir/Provenance/79614>;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "include" ]     ]
  ].

<http://example.org/fhir/AllergyIntolerance/79613> a fhir:AllergyIntolerance;
  fhir:Resource.id [ fhir:value "79613"];
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "1" ];
     fhir:Meta.lastUpdated [ fhir:value "2019-07-09T15:26:23.217+00:00"^^xsd:dateTime ];
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><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</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\">Generated Summary: Medical Record Number: 1032702 (USUAL); active; Amy V. Shaw , Amy V. Baxter ; Phone: 555-555-5555, amy.shaw@example.com; gender: female; birthDate: 1987-02-20</a></p><p><b>onset</b>: 2017-06-09</p><h3>Reactions</h3><table class=\"grid\"><tr><td>-</td><td><b>Manifestation</b></td><td><b>Onset</b></td></tr><tr><td>*</td><td><span title=\"Codes: {http://snomed.info/sct 247472004}\">Hives</span></td><td>2017-06-09</td></tr></table></div>"
  ];
  fhir:AllergyIntolerance.clinicalStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" ];
       fhir:Coding.code [ fhir:value "active" ];
       fhir:Coding.display [ fhir:value "Active" ]     ]
  ];
  fhir:AllergyIntolerance.verificationStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" ];
       fhir:Coding.code [ fhir:value "confirmed" ];
       fhir:Coding.display [ fhir:value "Confirmed" ]     ]
  ];
  fhir:AllergyIntolerance.category [
     fhir:value "medication";
     fhir:index 0
  ];
  fhir:AllergyIntolerance.criticality [ fhir:value "high"];
  fhir:AllergyIntolerance.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a sct:762952008;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "762952008" ];
       fhir:Coding.display [ fhir:value "Peanuts" ]     ];
     fhir:CodeableConcept.text [ fhir:value "Peanuts" ]
  ];
  fhir:AllergyIntolerance.patient [
     fhir:Reference.reference [ fhir:value "Patient/example" ]
  ];
  fhir:AllergyIntolerance.onsetDateTime [ fhir:value "2017-06-09"^^xsd:date];
  fhir:AllergyIntolerance.reaction [
     fhir:index 0;
     fhir:AllergyIntolerance.reaction.manifestation [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a sct:247472004;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "247472004" ];
         fhir:Coding.display [ fhir:value "Hives" ]       ]     ];
     fhir:AllergyIntolerance.reaction.onset [ fhir:value "2017-06-09"^^xsd:date ]
  ].

<http://example.org/fhir/Provenance/79614> a fhir:Provenance;
  fhir:Resource.id [ fhir:value "79614"];
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "1" ];
     fhir:Meta.lastUpdated [ fhir:value "2019-07-09T15:26:23.217+00:00"^^xsd:dateTime ];
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>target</b>: <a href=\"#AllergyIntolerance_79613\">See above (AllergyIntolerance/79613)</a></p><p><b>recorded</b>: Jul 9, 2019 3:26:23 PM</p><h3>Agents</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td><td><b>Who</b></td><td><b>OnBehalfOf</b></td></tr><tr><td>*</td><td><span title=\"Codes: {http://terminology.hl7.org/CodeSystem/provenance-participant-type author}\">Author</span></td><td><a href=\"Practitioner-practitioner-1.html\">Generated Summary: id: 9941339108, id: 25456; Ronald Bone </a></td><td><a href=\"Organization-saint-luke-w-endpoint.html\">Generated Summary: id: 1063494177, id: 00-0000000; active; name: Saint Luke's Hospital of Kansas City; Phone: (816)932-2000, </a></td></tr></table></div>"
  ];
  fhir:Provenance.target [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "AllergyIntolerance/79613" ]
  ];
  fhir:Provenance.recorded [ fhir:value "2019-07-09T15:26:23.217+00:00"^^xsd:dateTime];
  fhir:Provenance.agent [
     fhir:index 0;
     fhir:Provenance.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/provenance-participant-type" ];
         fhir:Coding.code [ fhir:value "author" ];
         fhir:Coding.display [ fhir:value "Author" ]       ]     ];
     fhir:Provenance.agent.who [
       fhir:Reference.reference [ fhir:value "Practitioner/practitioner-1" ]     ];
     fhir:Provenance.agent.onBehalfOf [
       fhir:Reference.reference [ fhir:value "Organization/saint-luke-w-endpoint" ]     ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.