@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://fhirfrog.org/fhir/au-core-tests/AllergyIntolerance/au-core-allergyintolerance-conformant> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "au-core-allergyintolerance-conformant"] ;
  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 au-core-allergyintolerance-conformant</b></p><a name=\"au-core-allergyintolerance-conformant\"> </a><a name=\"hcau-core-allergyintolerance-conformant\"> </a><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>code</b>: <span title=\"Codes:{http://snomed.info/sct 91935009}\">Allergy to peanuts</span></p><p><b>patient</b>: <a href=\"Patient/patient-fixture\">Patient/patient-fixture</a></p><p><b>onset</b>: 2020-06-01</p><p><b>note</b>: </p><blockquote><div><p>Synthetic test allergy record for AU Core Frog conformance testing.</p>\n</div></blockquote><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}\">Skin rash</span></td><td>Moderate</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.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://fhirfrog.org/fhir/au-core-tests/Patient/patient-fixture> ;
     fhir:Reference.reference [ fhir:value "Patient/patient-fixture" ]
  ] ;
  fhir:AllergyIntolerance.onsetDateTime [ fhir:value "2020-06-01"^^xsd:date] ;
  fhir:AllergyIntolerance.note [
     fhir:index 0 ;
     fhir:Annotation.text [ fhir:value "Synthetic test allergy record for AU Core Frog conformance testing." ]
  ] ;
  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 "Skin rash" ]
       ]
     ] ;
     fhir:AllergyIntolerance.reaction.severity [ fhir:value "moderate" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhirfrog.org/fhir/au-core-tests/AllergyIntolerance/au-core-allergyintolerance-conformant.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

