HL7 Europe Base and Core FHIR IG
2.0.0 - trial-use 150

HL7 Europe Base and Core FHIR IG, published by HL7 Europe. This guide is not an authorized publication; it is the continuous build for version 2.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/patrick-werner/base/ and changes regularly. See the Directory of published versions

## : AllergyIntolerance 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 -------------------------------------------------------------------

    <http://hl7.org/fhir/AllergyIntolerance/allergyintolerance-eu-core-example> a fhir:AllergyIntolerance ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "allergyintolerance-eu-core-example"] ;
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "http://hl7.eu/fhir/base/StructureDefinition/allergyIntolerance-eu-core" ;
           fhir:index 0 ;
           fhir:link <http://hl7.eu/fhir/base/StructureDefinition/allergyIntolerance-eu-core>
         ]
      ] ;
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AllergyIntolerance allergyintolerance-eu-core-example</b></p><a name=\"allergyintolerance-eu-core-example\"> </a><a name=\"hcallergyintolerance-eu-core-example\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-allergyIntolerance-eu-core.html\">AllergyIntolerance (EU core)</a></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>type</b>: Allergy</p><p><b>category</b>: Food</p><p><b>criticality</b>: Low Risk</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 91935009}\">Allergy to peanuts</span></p><p><b>patient</b>: <a href=\"Patient-patient-eu-core-example.html\">John Doe  Male, DoB: 1980-01-01</a></p><p><b>onset</b>: 2012-05-01</p><h3>Reactions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Manifestation</b></td><td><b>Severity</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 271807003}\">Eruption of skin</span></td><td>Mild</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.type [ fhir:value "allergy"] ;
      fhir:AllergyIntolerance.category [
         fhir:value "food" ;
         fhir:index 0
      ] ;
      fhir:AllergyIntolerance.criticality [ fhir:value "low"] ;
      fhir:AllergyIntolerance.code [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           a sct:91935009 ;
           fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
           fhir:Coding.code [ fhir:value "91935009" ] ;
           fhir:Coding.display [ fhir:value "Allergy to peanuts" ]
         ]
      ] ;
      fhir:AllergyIntolerance.patient [
         fhir:link <http://hl7.org/fhir/Patient/patient-eu-core-example> ;
         fhir:Reference.reference [ fhir:value "Patient/patient-eu-core-example" ]
      ] ;
      fhir:AllergyIntolerance.onsetDateTime [
         fhir:value "2012-05-01"^^xsd:date ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.eu/fhir/extensions/StructureDefinition/periods-of-life" ] ;
           fhir:Extension.valueCodeableConcept [
             fhir:CodeableConcept.coding [
               fhir:index 0 ;
               a sct:255398004 ;
               fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
               fhir:Coding.code [ fhir:value "255398004" ] ;
               fhir:Coding.display [ fhir:value "Childhood" ]
             ]
           ]
         ]
      ] ;
      fhir:AllergyIntolerance.reaction [
         fhir:index 0 ;
         fhir:AllergyIntolerance.reaction.manifestation [
           fhir:index 0 ;
           fhir:CodeableConcept.coding [
             fhir:index 0 ;
             a sct:271807003 ;
             fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
             fhir:Coding.code [ fhir:value "271807003" ] ;
             fhir:Coding.display [ fhir:value "Eruption of skin" ]
           ]
         ] ;
         fhir:AllergyIntolerance.reaction.severity [ fhir:value "mild" ]
      ] .

    <http://hl7.org/fhir/Patient/patient-eu-core-example> a fhir:Patient .

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

    <http://hl7.org/fhir/AllergyIntolerance/allergyintolerance-eu-core-example.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/AllergyIntolerance/allergyintolerance-eu-core-example.ttl> .