NHDR Implementation Guide Release 1.0
0.1.0 - ci-build

NHDR Implementation Guide Release 1.0, published by NHDR. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/UP-Manila-SILab/PhilHealth-NHDR-IG-Review/ and changes regularly. See the Directory of published versions

Resource Profile: PH AllergyIntolerance

Official URL: https://nhdr.gov.ph/fhir/StructureDefinition/PH-AllergyIntolerance Version: 0.1.0
Standards status: Draft Computable Name: PH_AllergyIntolerance

Copyright/Legal: Used by permission of HL7 International, all rights reserved Creative Commons License

Risk of harmful or undesirable physiological response which is specific to an individual and associated with exposure to a substance.

Usages:

  • This Profile is not used by any profiles in this Specification

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AllergyIntolerance C 0..* AllergyIntolerance Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
Constraints: ait-1, ait-2
AllergyIntolerance.clinicalStatus This element is a modifier element. This element is included in summaries. C 0..1 CodeableConcept active | inactive | resolved
Binding: AllergyIntoleranceClinicalStatusCodes (required): The clinical status of the allergy or intolerance.
AllergyIntolerance.patient This element is included in summaries. 1..1 Reference(PH Patient) Who the sensitivity is for
AllergyIntolerance.encounter 0..1 Reference(PH Encounter) Encounter when the allergy or intolerance was asserted

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AllergyIntolerance.clinicalStatus Base required AllergyIntolerance Clinical Status Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
ait-1 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()
ait-2 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()
dom-2 error AllergyIntolerance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AllergyIntolerance If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AllergyIntolerance A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())

This structure is derived from AllergyIntolerance

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AllergyIntolerance 0..* AllergyIntolerance Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
AllergyIntolerance.meta
AllergyIntolerance.meta.Slices for extension Content/Rules for all slices
AllergyIntolerance.meta.Slices for extension.extension:hfRecordedDate 0..1 dateTime The recorded date indicating when the record was uploaded by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFRecordedDate
AllergyIntolerance.meta.Slices for extension.extension:hfLastUpdated 0..* dateTime The date indicating when the record was last updated by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFLastUpdated
AllergyIntolerance.meta.lastUpdated 0..1 instant When the resource was uploaded to the NHDR.
AllergyIntolerance.implicitRules 0..0 A set of rules under which this content was created
AllergyIntolerance.language 0..0 Language of the resource content
AllergyIntolerance.contained 0..0 Contained, inline Resources
AllergyIntolerance.extension 0..0 Extension
AllergyIntolerance.modifierExtension 0..0 Extension
AllergyIntolerance.verificationStatus 0..0 unconfirmed | confirmed | refuted | entered-in-error
AllergyIntolerance.type 0..0 allergy | intolerance - Underlying mechanism (if known)
AllergyIntolerance.criticality 0..0 low | high | unable-to-assess
AllergyIntolerance.patient 1..1 Reference(PH Patient) Who the sensitivity is for
AllergyIntolerance.encounter 0..1 Reference(PH Encounter) Encounter when the allergy or intolerance was asserted
AllergyIntolerance.onset[x] 0..0 When allergy or intolerance was identified
AllergyIntolerance.recorder 0..0 Who recorded the sensitivity
AllergyIntolerance.asserter 0..0 Source of the information about the allergy
AllergyIntolerance.lastOccurrence 0..0 Date(/time) of last known occurrence of a reaction
AllergyIntolerance.reaction
AllergyIntolerance.reaction.id 0..0 Unique id for inter-element referencing
AllergyIntolerance.reaction.extension 0..0 Extension
AllergyIntolerance.reaction.modifierExtension 0..0 Extension
AllergyIntolerance.reaction.substance 0..0 Specific substance or pharmaceutical product considered to be responsible for event
AllergyIntolerance.reaction.manifestation 1..* CodeableConcept Clinical symptoms/signs associated with the Event
Binding: ICD-10 Codes (required)
AllergyIntolerance.reaction.onset 0..0 Date(/time) when manifestations showed
AllergyIntolerance.reaction.exposureRoute 0..0 How the subject was exposed to the substance

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
AllergyIntolerance.reaction.​manifestation Base required ICD-10 Codes 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: doco
AllergyIntolerance C 0..* AllergyIntolerance Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
Constraints: ait-1, ait-2
AllergyIntolerance.id This element is included in summaries. 0..1 id Logical id of this artifact
AllergyIntolerance.meta This element is included in summaries. 0..1 Meta Metadata about the resource
AllergyIntolerance.meta.id 0..1 string Unique id for inter-element referencing
AllergyIntolerance.meta.Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
AllergyIntolerance.meta.Slices for extension.extension:hfRecordedDate 0..1 dateTime The recorded date indicating when the record was uploaded by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFRecordedDate
AllergyIntolerance.meta.Slices for extension.extension:hfLastUpdated 0..* dateTime The date indicating when the record was last updated by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFLastUpdated
AllergyIntolerance.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
AllergyIntolerance.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource was uploaded to the NHDR.
AllergyIntolerance.meta.source This element is included in summaries. 0..1 uri Identifies where the resource comes from
AllergyIntolerance.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
AllergyIntolerance.meta.security This element is included in summaries. 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
AllergyIntolerance.meta.tag This element is included in summaries. 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
AllergyIntolerance.identifier This element is included in summaries. 0..* Identifier External ids for this item
AllergyIntolerance.clinicalStatus This element is a modifier element. This element is included in summaries. C 0..1 CodeableConcept active | inactive | resolved
Binding: AllergyIntoleranceClinicalStatusCodes (required): The clinical status of the allergy or intolerance.
AllergyIntolerance.category This element is included in summaries. 0..* code food | medication | environment | biologic
Binding: AllergyIntoleranceCategory (required): Category of an identified substance associated with allergies or intolerances.
AllergyIntolerance.code This element is included in summaries. 0..1 CodeableConcept Code that identifies the allergy or intolerance
Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (example): Type of the substance/product, allergy or intolerance condition, or negation/exclusion codes for reporting no known allergies.
AllergyIntolerance.patient This element is included in summaries. 1..1 Reference(PH Patient) Who the sensitivity is for
AllergyIntolerance.encounter 0..1 Reference(PH Encounter) Encounter when the allergy or intolerance was asserted
AllergyIntolerance.recordedDate 0..1 dateTime Date first version of the resource instance was recorded
AllergyIntolerance.note 0..* Annotation Additional text not captured in other fields
AllergyIntolerance.reaction 0..* BackboneElement Adverse Reaction Events linked to exposure to substance
AllergyIntolerance.reaction.manifestation 1..* CodeableConcept Clinical symptoms/signs associated with the Event
Binding: ICD-10 Codes (required)
AllergyIntolerance.reaction.description 0..1 string Description of the event as a whole
AllergyIntolerance.reaction.severity 0..1 code mild | moderate | severe (of event as a whole)
Binding: AllergyIntoleranceSeverity (required): Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.
AllergyIntolerance.reaction.note 0..* Annotation Text about event not captured in other fields

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AllergyIntolerance.meta.​security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
AllergyIntolerance.meta.​tag Base example Common Tags 📍4.0.1 FHIR Std.
AllergyIntolerance.clinicalStatus Base required AllergyIntolerance Clinical Status Codes 📍4.0.1 FHIR Std.
AllergyIntolerance.category Base required AllergyIntoleranceCategory 📍4.0.1 FHIR Std.
AllergyIntolerance.code Base example AllergyIntolerance Substance/Product, Condition and Negation Codes 📍4.0.1 FHIR Std.
AllergyIntolerance.reaction.​manifestation Base required ICD-10 Codes 📦0.1.0 This IG
AllergyIntolerance.reaction.​severity Base required AllergyIntoleranceSeverity 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
ait-1 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()
ait-2 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()
dom-2 error AllergyIntolerance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AllergyIntolerance If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AllergyIntolerance A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AllergyIntolerance C 0..* AllergyIntolerance Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
Constraints: ait-1, ait-2
AllergyIntolerance.clinicalStatus This element is a modifier element. This element is included in summaries. C 0..1 CodeableConcept active | inactive | resolved
Binding: AllergyIntoleranceClinicalStatusCodes (required): The clinical status of the allergy or intolerance.
AllergyIntolerance.patient This element is included in summaries. 1..1 Reference(PH Patient) Who the sensitivity is for
AllergyIntolerance.encounter 0..1 Reference(PH Encounter) Encounter when the allergy or intolerance was asserted

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AllergyIntolerance.clinicalStatus Base required AllergyIntolerance Clinical Status Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
ait-1 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()
ait-2 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()
dom-2 error AllergyIntolerance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AllergyIntolerance If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AllergyIntolerance A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())

Differential View

This structure is derived from AllergyIntolerance

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AllergyIntolerance 0..* AllergyIntolerance Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
AllergyIntolerance.meta
AllergyIntolerance.meta.Slices for extension Content/Rules for all slices
AllergyIntolerance.meta.Slices for extension.extension:hfRecordedDate 0..1 dateTime The recorded date indicating when the record was uploaded by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFRecordedDate
AllergyIntolerance.meta.Slices for extension.extension:hfLastUpdated 0..* dateTime The date indicating when the record was last updated by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFLastUpdated
AllergyIntolerance.meta.lastUpdated 0..1 instant When the resource was uploaded to the NHDR.
AllergyIntolerance.implicitRules 0..0 A set of rules under which this content was created
AllergyIntolerance.language 0..0 Language of the resource content
AllergyIntolerance.text 0..0 Text summary of the resource, for human interpretation
AllergyIntolerance.contained 0..0 Contained, inline Resources
AllergyIntolerance.extension 0..0 Extension
AllergyIntolerance.modifierExtension 0..0 Extension
AllergyIntolerance.verificationStatus 0..0 unconfirmed | confirmed | refuted | entered-in-error
AllergyIntolerance.type 0..0 allergy | intolerance - Underlying mechanism (if known)
AllergyIntolerance.criticality 0..0 low | high | unable-to-assess
AllergyIntolerance.patient 1..1 Reference(PH Patient) Who the sensitivity is for
AllergyIntolerance.encounter 0..1 Reference(PH Encounter) Encounter when the allergy or intolerance was asserted
AllergyIntolerance.onset[x] 0..0 When allergy or intolerance was identified
AllergyIntolerance.recorder 0..0 Who recorded the sensitivity
AllergyIntolerance.asserter 0..0 Source of the information about the allergy
AllergyIntolerance.lastOccurrence 0..0 Date(/time) of last known occurrence of a reaction
AllergyIntolerance.reaction
AllergyIntolerance.reaction.id 0..0 Unique id for inter-element referencing
AllergyIntolerance.reaction.extension 0..0 Extension
AllergyIntolerance.reaction.modifierExtension 0..0 Extension
AllergyIntolerance.reaction.substance 0..0 Specific substance or pharmaceutical product considered to be responsible for event
AllergyIntolerance.reaction.manifestation 1..* CodeableConcept Clinical symptoms/signs associated with the Event
Binding: ICD-10 Codes (required)
AllergyIntolerance.reaction.onset 0..0 Date(/time) when manifestations showed
AllergyIntolerance.reaction.exposureRoute 0..0 How the subject was exposed to the substance

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
AllergyIntolerance.reaction.​manifestation Base required ICD-10 Codes 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
AllergyIntolerance C 0..* AllergyIntolerance Allergy or Intolerance (generally: Risk of adverse reaction to a substance)
Constraints: ait-1, ait-2
AllergyIntolerance.id This element is included in summaries. 0..1 id Logical id of this artifact
AllergyIntolerance.meta This element is included in summaries. 0..1 Meta Metadata about the resource
AllergyIntolerance.meta.id 0..1 string Unique id for inter-element referencing
AllergyIntolerance.meta.Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
AllergyIntolerance.meta.Slices for extension.extension:hfRecordedDate 0..1 dateTime The recorded date indicating when the record was uploaded by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFRecordedDate
AllergyIntolerance.meta.Slices for extension.extension:hfLastUpdated 0..* dateTime The date indicating when the record was last updated by the health facility.
URL: https://nhdr.gov.ph/fhir/StructureDefinition/HFLastUpdated
AllergyIntolerance.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
AllergyIntolerance.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource was uploaded to the NHDR.
AllergyIntolerance.meta.source This element is included in summaries. 0..1 uri Identifies where the resource comes from
AllergyIntolerance.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
AllergyIntolerance.meta.security This element is included in summaries. 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
AllergyIntolerance.meta.tag This element is included in summaries. 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
AllergyIntolerance.identifier This element is included in summaries. 0..* Identifier External ids for this item
AllergyIntolerance.clinicalStatus This element is a modifier element. This element is included in summaries. C 0..1 CodeableConcept active | inactive | resolved
Binding: AllergyIntoleranceClinicalStatusCodes (required): The clinical status of the allergy or intolerance.
AllergyIntolerance.category This element is included in summaries. 0..* code food | medication | environment | biologic
Binding: AllergyIntoleranceCategory (required): Category of an identified substance associated with allergies or intolerances.
AllergyIntolerance.code This element is included in summaries. 0..1 CodeableConcept Code that identifies the allergy or intolerance
Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (example): Type of the substance/product, allergy or intolerance condition, or negation/exclusion codes for reporting no known allergies.
AllergyIntolerance.patient This element is included in summaries. 1..1 Reference(PH Patient) Who the sensitivity is for
AllergyIntolerance.encounter 0..1 Reference(PH Encounter) Encounter when the allergy or intolerance was asserted
AllergyIntolerance.recordedDate 0..1 dateTime Date first version of the resource instance was recorded
AllergyIntolerance.note 0..* Annotation Additional text not captured in other fields
AllergyIntolerance.reaction 0..* BackboneElement Adverse Reaction Events linked to exposure to substance
AllergyIntolerance.reaction.manifestation 1..* CodeableConcept Clinical symptoms/signs associated with the Event
Binding: ICD-10 Codes (required)
AllergyIntolerance.reaction.description 0..1 string Description of the event as a whole
AllergyIntolerance.reaction.severity 0..1 code mild | moderate | severe (of event as a whole)
Binding: AllergyIntoleranceSeverity (required): Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.
AllergyIntolerance.reaction.note 0..* Annotation Text about event not captured in other fields

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
AllergyIntolerance.meta.​security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
AllergyIntolerance.meta.​tag Base example Common Tags 📍4.0.1 FHIR Std.
AllergyIntolerance.clinicalStatus Base required AllergyIntolerance Clinical Status Codes 📍4.0.1 FHIR Std.
AllergyIntolerance.category Base required AllergyIntoleranceCategory 📍4.0.1 FHIR Std.
AllergyIntolerance.code Base example AllergyIntolerance Substance/Product, Condition and Negation Codes 📍4.0.1 FHIR Std.
AllergyIntolerance.reaction.​manifestation Base required ICD-10 Codes 📦0.1.0 This IG
AllergyIntolerance.reaction.​severity Base required AllergyIntoleranceSeverity 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
ait-1 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()
ait-2 error AllergyIntolerance AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()
dom-2 error AllergyIntolerance If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error AllergyIntolerance If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error AllergyIntolerance If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice AllergyIntolerance A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron