@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.apps.health/AllergyIntolerance/polaris-allergyintolerance-example> a fhir:AllergyIntolerance ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "polaris-allergyintolerance-example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.apps.health/StructureDefinition/polaris-allergyintolerance"^^xsd:anyURI ;
       fhir:link <https://fhir.apps.health/StructureDefinition/polaris-allergyintolerance>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Penicillin allergy recorded for Avery Linwood during April 8, 2025 visit.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-allergyintolerance-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "ALG-avery-20250408" ]
  ] ) ; # 
  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:code [
     fhir:text [ fhir:v "Allergy to penicillin" ]
  ] ; # 
  fhir:patient [
     fhir:identifier [
       fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-patient-identifier"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "1234567890" ]
     ]
  ] ; # 
  fhir:recordedDate [ fhir:v "2025-04-08"^^xsd:date] . # 

# -------------------------------------------------------------------------------------

