STU 2 Ballot

This page is part of the Quality Improvement Core Framework (v1.6.0: STU 2 Ballot 1) based on FHIR v1.6.0. The current version which supercedes this version is 4.1.1. For a full list of available versions, see the Directory of published versions

D.4.1 StructureDefinition: qicore-allergyintolerance

D.4.1.1 Formal Views of Profile Content

The official URL for this profile is:

http://hl7.org/fhir/qicore/StructureDefinition/qicore-allergyintolerance

This profile was published on Fri Feb 27 00:00:00 AEDT 2015 as a draft by Health Level Seven International (Clinical Quality Information - QICore).

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

NameFlagsCard.TypeDescription & Constraintsdoco
.. AllergyIntolerance I0..*Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
1: extension: reasonRefuted is only permitted if status is refuted
... id 0..1idLogical id of this artifact
... meta 0..1MetaMetadata about the resource
... implicitRules ?!0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... allergyintolerance-resolutionAge I0..1AgeExtension
URL: http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... allergyintolerance-reasonRefuted I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted
Binding: Reasons for refuting allergy or intolerance codes (example)
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..*IdentifierExternal ids for this item
... status ?!S0..1codeactive | active-confirmed | inactive | resolved | refuted | entered-in-error
Binding: AllergyIntoleranceStatus (required)
... type S0..1codeallergy | intolerance - Underlying mechanism (if known)
Binding: AllergyIntoleranceType (required)
... category S0..1codefood | medication | biologic | environment
Binding: AllergyIntoleranceCategory (required)
... criticality S0..1codelow | high | unable-to-assess
Binding: AllergyIntoleranceCriticality (required)
... code S0..1CodeableConceptAllergy or intolerance code
Binding: 7.org/fhir/daf/ValueSet/daf-core-substance (preferred)
... patient S1..1Reference(Profile qicore-patient)Who the sensitivity is for
... attestedDate S0..1dateTimeDate record was believed accurate
... recorder 0..1Reference(Profile qicore-practitioner | Profile qicore-patient)Who recorded the sensitivity
... reporter 0..1Reference(Patient | RelatedPerson | Practitioner)Source of the information about the allergy
... onset 0..1dateTimeDate(/time) when manifestations showed
... lastOccurrence 0..1dateTimeDate(/time) of last known occurrence of a reaction
... note 0..*AnnotationAdditional text not captured in other fields
... reaction 0..*BackboneElementAdverse Reaction Events linked to exposure to substance
.... id 0..1stringxml:id (or equivalent in JSON)
.... allergyintolerance-duration SI0..1DurationExtension
URL: http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... substance 0..1CodeableConceptSpecific substance or pharmaceutical product considered to be responsible for event
Binding: Substance Code (example)
.... certainty 0..1codeunlikely | likely | confirmed - clinical certainty about the specific substance
Binding: AllergyIntoleranceCertainty (required)
.... manifestation S1..*CodeableConceptClinical symptoms/signs associated with the Event
Binding: 7.org/fhir/daf/ValueSet/daf-manifestation-ccda-codes (preferred)
.... description 0..1stringDescription of the event as a whole
.... onset S0..1dateTimeDate(/time) when manifestations showed
.... severity 0..1codemild | moderate | severe (of event as a whole)
Binding: AllergyIntoleranceSeverity (required)
.... exposureRoute 0..1CodeableConceptHow the subject was exposed to the substance
Binding: SNOMED CT Route Codes (example)
.... note 0..*AnnotationText about event not captured in other fields

doco Documentation for this format

yet to be done: Xml template

yet to be done: Json template

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. AllergyIntolerance I0..*Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
1: extension: reasonRefuted is only permitted if status is refuted
... id 0..1idLogical id of this artifact
... meta 0..1MetaMetadata about the resource
... implicitRules ?!0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... allergyintolerance-resolutionAge I0..1AgeExtension
URL: http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... allergyintolerance-reasonRefuted I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted
Binding: Reasons for refuting allergy or intolerance codes (example)
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..*IdentifierExternal ids for this item
... status ?!S0..1codeactive | active-confirmed | inactive | resolved | refuted | entered-in-error
Binding: AllergyIntoleranceStatus (required)
... type S0..1codeallergy | intolerance - Underlying mechanism (if known)
Binding: AllergyIntoleranceType (required)
... category S0..1codefood | medication | biologic | environment
Binding: AllergyIntoleranceCategory (required)
... criticality S0..1codelow | high | unable-to-assess
Binding: AllergyIntoleranceCriticality (required)
... code S0..1CodeableConceptAllergy or intolerance code
Binding: 7.org/fhir/daf/ValueSet/daf-core-substance (preferred)
... patient S1..1Reference(Profile qicore-patient)Who the sensitivity is for
... attestedDate S0..1dateTimeDate record was believed accurate
... recorder 0..1Reference(Profile qicore-practitioner | Profile qicore-patient)Who recorded the sensitivity
... reporter 0..1Reference(Patient | RelatedPerson | Practitioner)Source of the information about the allergy
... onset 0..1dateTimeDate(/time) when manifestations showed
... lastOccurrence 0..1dateTimeDate(/time) of last known occurrence of a reaction
... note 0..*AnnotationAdditional text not captured in other fields
... reaction 0..*BackboneElementAdverse Reaction Events linked to exposure to substance
.... id 0..1stringxml:id (or equivalent in JSON)
.... allergyintolerance-duration SI0..1DurationExtension
URL: http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
.... substance 0..1CodeableConceptSpecific substance or pharmaceutical product considered to be responsible for event
Binding: Substance Code (example)
.... certainty 0..1codeunlikely | likely | confirmed - clinical certainty about the specific substance
Binding: AllergyIntoleranceCertainty (required)
.... manifestation S1..*CodeableConceptClinical symptoms/signs associated with the Event
Binding: 7.org/fhir/daf/ValueSet/daf-manifestation-ccda-codes (preferred)
.... description 0..1stringDescription of the event as a whole
.... onset S0..1dateTimeDate(/time) when manifestations showed
.... severity 0..1codemild | moderate | severe (of event as a whole)
Binding: AllergyIntoleranceSeverity (required)
.... exposureRoute 0..1CodeableConceptHow the subject was exposed to the substance
Binding: SNOMED CT Route Codes (example)
.... note 0..*AnnotationText about event not captured in other fields

doco Documentation for this format

XML Template

yet to be done: Xml template

JSON Template

yet to be done: Json template

 

D.4.1.2 Terminology Bindings

Terminology Bindings

PathNameConformanceValueSet
AllergyIntolerance.languageCommon LanguagesextensibleCommon Languages
AllergyIntolerance.extension
http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted
Reasons for refuting allergy or intolerance codesexampleReasons for refuting allergy or intolerance codes
AllergyIntolerance.statusAllergyIntoleranceStatusrequiredAllergyIntoleranceStatus
AllergyIntolerance.typeAllergyIntoleranceTyperequiredAllergyIntoleranceType
AllergyIntolerance.categoryAllergyIntoleranceCategoryrequiredAllergyIntoleranceCategory
AllergyIntolerance.criticalityAllergyIntoleranceCriticalityrequiredAllergyIntoleranceCriticality
AllergyIntolerance.code?extpreferredhttp://hl7.org/fhir/daf/ValueSet/daf-core-substance
AllergyIntolerance.reaction.substanceSubstance CodeexampleSubstance Code
AllergyIntolerance.reaction.certaintyAllergyIntoleranceCertaintyrequiredAllergyIntoleranceCertainty
AllergyIntolerance.reaction.manifestation?extpreferredhttp://hl7.org/fhir/daf/ValueSet/daf-manifestation-ccda-codes
AllergyIntolerance.reaction.severityAllergyIntoleranceSeverityrequiredAllergyIntoleranceSeverity
AllergyIntolerance.reaction.exposureRouteSNOMED CT Route CodesexampleSNOMED CT Route Codes

D.4.1.3 Constraints

Constraints

IdPathDetailsRequirements
dom-2AllergyIntoleranceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
XPath: not(parent::f:contained and f:contained)
dom-1AllergyIntoleranceIf the resource is contained in another resource, it SHALL NOT contain any narrative
XPath: not(parent::f:contained and f:text)
dom-4AllergyIntoleranceIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
dom-3AllergyIntoleranceIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
1AllergyIntoleranceextension: reasonRefuted is only permitted if status is refuted
XPath: not(f:status/@value != 'refuted' and f:extension/@url='http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted')
ele-1AllergyIntolerance.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1AllergyIntolerance.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1AllergyIntolerance.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1AllergyIntolerance.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1AllergyIntolerance.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1AllergyIntolerance.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
ele-1AllergyIntolerance.reaction.extensionAll FHIR elements must have a @value or children
XPath: @value|f:*|h:div
ext-1AllergyIntolerance.reaction.extensionMust have either extensions or value[x], not both
XPath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
.