R6 Ballot (2nd Draft)

Publish-box (todo)

Example AllergyIntolerance/fishallergy (Turtle)

Patient Care Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Patient, Practitioner, RelatedPerson

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:recorder [
     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.