This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Example AllergyIntolerance/fishallergy (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
An allergy to a substance with additional details in notes
@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:AllergyIntolerance ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "fishallergy"] ; #
fhir:text [
fhir:status [ fhir:v "additional" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>allergy is to fresh fish. Tolerates canned fish</p>\n <p>recordedDate:2015-08-06T00:00:00-06:00</p>\n <p>substance:Fish - dietary (substance)</p>\n </div>"
] ; #
fhir:identifier ( [
fhir:system [ fhir:v "http://acme.com/ids/patients/risks"^^xsd:anyURI ] ;
fhir:value [ fhir:v "49476535" ]
] ) ; # an identifier used for this Adverse Reaction Risk
fhir:clinicalStatus [
fhir:coding ( [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"^^xsd:anyURI ] ;
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:code [ fhir:v "confirmed" ] ;
fhir:display [ fhir:v "Confirmed" ]
] )
] ; #
fhir:category ( [ fhir:v "food"] ) ; # this categorization is implied by "cashew nut" and therefore basically
# redundant, but many systems collect this field anyway, since it's either
# useful when the substance is not coded, or it's quicker to sort/filter on
# than using terminology based reasoning
fhir:code [
fhir:coding ( [
a sct:227037002 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "227037002" ] ;
fhir:display [ fhir:v "Fish - dietary (substance)" ]
] ) ;
fhir:text [ fhir:v "Allergic to fresh fish. Tolerates canned fish" ]
] ; # subtance - either coded, or text. A few times,
# there's a full description of a complex substance - in these caes, use the
# extension [url] to refer to a Substance resource
fhir:patient [
fhir:reference [ fhir:v "Patient/example" ]
] ; # the patient that actually has the risk of adverse reaction
fhir:recordedDate [ fhir:v "2015-08-06T15:37:31-06:00"^^xsd:dateTime] ; # the date that this entry was recorded
fhir:participant ( [
fhir:function [
fhir:coding ( [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "author" ] ;
fhir:display [ fhir:v "Author" ]
] )
] ;
fhir:actor [
fhir:reference [ fhir:v "Practitioner/example" ]
]
] )] . # who made the record / last updated it
# -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.