PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # Allergy or Intolerance (generally: Risk of adverse reaction to a substance) CLOSED { a [fhir:AllergyIntolerance]; fhir:nodeRole [fhir:treeRoot]?; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:DomainResource.text @?; # Text summary of the resource, for # human interpretation fhir:DomainResource.contained @*; # Contained, inline Resources fhir:DomainResource.extension @*; # Additional content defined by # implementations fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored fhir:AllergyIntolerance.identifier @*; # External ids for this item fhir:AllergyIntolerance.clinicalStatus @?; # active | inactive | resolved fhir:AllergyIntolerance.verificationStatus @?; # unconfirmed | confirmed | refuted # | entered-in-error fhir:AllergyIntolerance.type @ AND {fhir:value @fhirvs:allergy-intolerance-type}?; # allergy | intolerance - Underlying # mechanism (if known) fhir:AllergyIntolerance.category @ AND {fhir:value @fhirvs:allergy-intolerance-category}*; # food | medication | environment | # biologic fhir:AllergyIntolerance.criticality @ AND {fhir:value @fhirvs:allergy-intolerance-criticality}?; # low | high | unable-to-assess fhir:AllergyIntolerance.code @?; # Code that identifies the allergy # or intolerance fhir:AllergyIntolerance.patient @; # Who the sensitivity is for fhir:AllergyIntolerance.encounter @?; # Encounter when the allergy or # intolerance was asserted ( # When allergy or intolerance was # identified fhir:AllergyIntolerance.onsetDateTime @ | fhir:AllergyIntolerance.onsetAge @ | fhir:AllergyIntolerance.onsetPeriod @ | fhir:AllergyIntolerance.onsetRange @ | fhir:AllergyIntolerance.onsetString @ )?; fhir:AllergyIntolerance.recordedDate @?; # Date first version of the resource # instance was recorded fhir:AllergyIntolerance.recorder @?; # Who recorded the sensitivity fhir:AllergyIntolerance.asserter @?; # Source of the information about # the allergy fhir:AllergyIntolerance.lastOccurrence @?; # Date(/time) of last known # occurrence of a reaction fhir:AllergyIntolerance.note @*; # Additional text not captured in # other fields fhir:AllergyIntolerance.reaction @*; # Adverse Reaction Events linked to # exposure to substance fhir:index xsd:integer? # Relative position in a list } # Adverse Reaction Events linked to exposure to substance CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:AllergyIntolerance.reaction.substance @?; # Specific substance or # pharmaceutical product considered # to be responsible for event fhir:AllergyIntolerance.reaction.manifestation @+; # Clinical symptoms/signs associated # with the Event fhir:AllergyIntolerance.reaction.description @?; # Description of the event as a whole fhir:AllergyIntolerance.reaction.onset @?; # Date(/time) when manifestations # showed fhir:AllergyIntolerance.reaction.severity @ AND {fhir:value @fhirvs:reaction-event-severity}?; # mild | moderate | severe (of event # as a whole) fhir:AllergyIntolerance.reaction.exposureRoute @?; # How the subject was exposed to the # substance fhir:AllergyIntolerance.reaction.note @*; # Text about event not captured in # other fields fhir:index xsd:integer? # Relative position in a list } #---------------------- Data Types ------------------- # Primitive Type dateTime CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value dateTime?; # Primitive value for dateTime fhir:index xsd:integer? # Relative position in a list } # Metadata about a resource CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Meta.versionId @?; # Version specific identifier fhir:Meta.lastUpdated @?; # When the resource version last # changed fhir:Meta.source @?; # Identifies where the resource # comes from fhir:Meta.profile @*; # Profiles this resource claims to # conform to fhir:Meta.security @*; # Security Labels applied to this # resource fhir:Meta.tag @*; # Tags applied to this resource fhir:index xsd:integer? # Relative position in a list } # Primitive Type code CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value code?; # Primitive value for code fhir:index xsd:integer? # Relative position in a list } # Primitive Type string CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value string MAXLENGTH 1048576?; # Primitive value for string fhir:index xsd:integer? # Relative position in a list } # A reference from one resource to another CLOSED { fhir:link IRI?; fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Reference.reference @?; # Literal reference, Relative, # internal or absolute URL fhir:Reference.type @?; # Type the reference refers to (e.g. # "Patient") fhir:Reference.identifier @?; # Logical reference, when literal # reference is not known fhir:Reference.display @?; # Text alternative for the resource fhir:index xsd:integer? # Relative position in a list } # Base Resource {a .+; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:index xsd:integer? } # Time range defined by start and end date/time CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Period.start @?; # Starting time with inclusive # boundary fhir:Period.end @?; # End time with inclusive boundary, # if not ongoing fhir:index xsd:integer? # Relative position in a list } # Set of values bounded by low and high CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Range.low @?; # Low limit fhir:Range.high @?; # High limit fhir:index xsd:integer? # Relative position in a list } # Primitive Type uri CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value uri?; # Primitive value for uri fhir:index xsd:integer? # Relative position in a list } # Text node with attribution CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations ( # Individual responsible for the # annotation fhir:Annotation.authorReference @ | fhir:Annotation.authorString @ )?; fhir:Annotation.time @?; # When the annotation was made fhir:Annotation.text @; # The annotation - text content (as # markdown) fhir:index xsd:integer? # Relative position in a list } # Optional Extensions Element CLOSED { fhir:Element.id id?; fhir:Element.extension @*; fhir:Extension.url uri; ( fhir:Extension.valueBase64Binary @ | fhir:Extension.valueBoolean @ | fhir:Extension.valueCanonical @ | fhir:Extension.valueCode @ | fhir:Extension.valueDate @ | fhir:Extension.valueDateTime @ | fhir:Extension.valueDecimal @ | fhir:Extension.valueId @ | fhir:Extension.valueInstant @ | fhir:Extension.valueInteger @ | fhir:Extension.valueMarkdown @ | fhir:Extension.valueOid @ | fhir:Extension.valuePositiveInt @ | fhir:Extension.valueString @ | fhir:Extension.valueTime @