{ "description": "This profile defines a set of constraints to the FHIR AllergyIntolerance resource for use in Alberta Patient Summaries (PS-AB). It re-profiles the PS-CA AllergyIntolerance profile and refines constraints applied to the AllergyIntolerance resource by the PS-CA project to represent the minimum expectations for the AllergyIntolerance resource when used in the PS-AB Composition profile.", "_filename": "StructureDefinition-AllergyIntolerancePSAB.json", "package_name": "ca.ab.fhir.psab", "date": null, "derivation": "constraint", "publisher": null, "fhirVersion": "4.0.1", "name": "AllergyIntolerancePSAB", "abstract": false, "type": "AllergyIntolerance", "experimental": null, "resourceType": "StructureDefinition", "title": "AllergyIntolerance (PS-AB)", "package_version": "0.3.0-pre7", "snapshot": { "element": [ { "constraint": [ { "key": "dom-2", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "xpath": "not(parent::f:contained and f:contained)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-4", "human": "If 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))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" }, { "key": "dom-3", "human": "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", "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "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()" }, { "key": "dom-6", "human": "A resource should have narrative for robust management", "xpath": "exists(f:text/h:div)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." } ], "expression": "text.`div`.exists()" }, { "key": "dom-5", "human": "If a resource is contained in another resource, it SHALL NOT have a security label", "xpath": "not(exists(f:contained/*/f:meta/f:security))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.security.empty()" }, { "key": "ait-1", "human": "AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error.", "xpath": "f:verificationStatus/f:coding/f:code/@value='entered-in-error' or exists(f:clinicalStatus)", "source": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance", "severity": "error", "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').exists() or clinicalStatus.exists()" }, { "key": "ait-2", "human": "AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error", "xpath": "not(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(f:clinicalStatus))", "source": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance", "severity": "error", "expression": "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' and code = 'entered-in-error').empty() or clinicalStatus.empty()" } ], "path": "AllergyIntolerance", "min": 0, "definition": "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.", "short": "Allergy or Intolerance (generally: Risk of adverse reaction to a substance)", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "Observation[classCode=OBS, moodCode=EVN]", "identity": "rim" } ], "alias": [ "Allergy", "Intolerance", "Adverse Reaction" ], "max": "*", "id": "AllergyIntolerance", "comment": "AllergyIntolerance resources included in Alberta Patient Summary Document Bundles SHALL NOT contain any of the following AllergyIntolerance details: verificationStatus, encounter, asserter. These rules are mechanically enforced through invariants at the PS-AB Bundle level.", "base": { "max": "*", "min": 0, "path": "AllergyIntolerance" } }, { "path": "AllergyIntolerance.id", "min": 0, "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "short": "Logical id of this artifact", "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "max": "1", "id": "AllergyIntolerance.id", "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", "base": { "max": "1", "min": 0, "path": "Resource.id" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.meta", "min": 0, "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", "short": "Metadata about the resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Meta" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "1", "id": "AllergyIntolerance.meta", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Resource.meta" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.implicitRules", "min": 0, "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", "isModifier": true, "short": "A set of rules under which this content was created", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "AllergyIntolerance.implicitRules", "condition": [ "ele-1" ], "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", "base": { "max": "1", "min": 0, "path": "Resource.implicitRules" }, "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.language", "min": 0, "definition": "The base language in which the resource is written.", "short": "Language of the resource content", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/languages", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Language" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean": true } ], "description": "A human language." }, "max": "1", "id": "AllergyIntolerance.language", "condition": [ "ele-1" ], "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", "base": { "max": "1", "min": 0, "path": "Resource.language" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.text", "min": 0, "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", "short": "Text summary of the resource, for human interpretation", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" }, { "map": "Act.text?", "identity": "rim" } ], "type": [ { "code": "Narrative" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "narrative", "html", "xhtml", "display" ], "max": "1", "id": "AllergyIntolerance.text", "condition": [ "ele-1" ], "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", "base": { "max": "1", "min": 0, "path": "DomainResource.text" } }, { "path": "AllergyIntolerance.contained", "min": 0, "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", "short": "Contained, inline Resources", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Resource" } ], "alias": [ "inline resources", "anonymous resources", "contained resources" ], "max": "*", "id": "AllergyIntolerance.contained", "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", "base": { "max": "*", "min": 0, "path": "DomainResource.contained" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.extension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.extension", "min": 0, "definition": "The date or estimated date that the condition resolved or went into remission.", "short": "Extension for representing Abatement datetime", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/ips/StructureDefinition/abatement-dateTime-uv-ips" ] } ], "sliceName": "abatement-datetime", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "1", "id": "AllergyIntolerance.extension:abatement-datetime", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.modifierExtension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "DomainResource.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.identifier", "requirements": "Allows identification of the AllergyIntolerance as it is known by various participating systems and in a way that remains consistent across servers.", "min": 0, "definition": "Business identifiers assigned to this AllergyIntolerance by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", "short": "External ids for this item", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)", "identity": "v2" }, { "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]", "identity": "rim" }, { "map": "Identifier", "identity": "servd" }, { "map": "FiveWs.identifier", "identity": "w5" }, { "map": "IAM-7", "identity": "v2" }, { "map": "id", "identity": "rim" } ], "type": [ { "code": "Identifier" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.identifier", "condition": [ "ele-1" ], "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.", "base": { "max": "*", "min": 0, "path": "AllergyIntolerance.identifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.clinicalStatus", "min": 0, "definition": "The clinical status of the allergy or intolerance.", "isModifier": true, "short": "active | inactive | resolved", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "FiveWs.status", "identity": "w5" }, { "map": "Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"clinicalStatus\", moodCode=EVN].value", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "AllergyIntoleranceClinicalStatus" } ], "description": "The clinical status of the allergy or intolerance." }, "max": "1", "id": "AllergyIntolerance.clinicalStatus", "condition": [ "ele-1", "ait-1", "ait-2" ], "comment": "IPS-UV no longer flags this as a Must Support Element. It is not currently flagged as Must Support in PS-CA, as stakeholders have indicated the element may not be supported by the majority of systems today. Systems that do support the element are encouraged to include it in generated Patient Summary documents, and support it when received.\n\nFHIR Base Note: This element is a modifier element with a required vocabulary binding in the base FHIR specification.\n\nIPS-UV Note: In the scope of the IPS-UV the entered-in-error concept is not allowed and so the modifier on this element has been removed.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.clinicalStatus" }, "isModifierReason": "This element is labeled as a modifier because the status contains the codes inactive and resolved that mark the AllergyIntolerance as no longer active.", "isSummary": true }, { "path": "AllergyIntolerance.clinicalStatus.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "AllergyIntolerance.clinicalStatus.id", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.clinicalStatus.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.clinicalStatus.extension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.clinicalStatus.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 1, "definition": "A reference to a code defined by a terminology system.", "short": "Code defined by a terminology system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "slicing": { "rules": "open", "description": "Discriminated by the bound value set", "discriminator": [ { "path": "$this", "type": "pattern" } ] }, "type": [ { "code": "Coding" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.clinicalStatus.coding", "condition": [ "ele-1" ], "comment": "Many Canadian systems currently use the [AllergyIntoleranceStatusCode](https://tgateway.infoway-inforoute.ca/vs/allergyintolerancestatuscode) value set comprised of SNOMED CT codes. Additionally, some Canadian systems that have implemented HL7 V3 are currently using [HL7 v3 Value Set ActStatus](http://hl7.org/fhir/R4/v3/ActStatus/vs.html). Both can be mapped and provided as additional codings to the required FHIR allergyIntolerance clinicalStatus codes. The element is sliced to express the required population of at least the HL7AllergyIntoleranceClinicalStatus slice since it is a required coding.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.clinicalStatus.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 1, "definition": "The clinical status of an allergy or intolerance.", "short": "Required value set for AllergyIntolerance Clinical Status.", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "mustSupport": true, "sliceName": "HL7AllergyIntoleranceClinicalStatus", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-clinical", "description": "HL7 required value set for AllergyIntolerance Clinical Status." }, "max": "1", "id": "AllergyIntolerance.clinicalStatus.coding:HL7AllergyIntoleranceClinicalStatus", "condition": [ "ele-1" ], "comment": "If clinicalStatus is supplied, a coding SHALL be supplied with at least one coding from the HL7AllergyIntoleranceClinicalStatus valueSet", "sliceIsConstraining": true, "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.clinicalStatus.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 0, "definition": "Code for an allergy or intolerance statement. Represents whether an allergy/intolerance is active or resolved (indicating no longer active).", "short": "Code for allergy or intolerance status", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "sliceName": "statusCodeSCTCA", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "required", "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/allergyintolerancestatuscode", "description": "Represents whether an allergy/intolerance is “active” or resolved (indicating no longer active)." }, "max": "*", "id": "AllergyIntolerance.clinicalStatus.coding:statusCodeSCTCA", "condition": [ "ele-1" ], "comment": "This value set combines concepts that can be mapped to clinical status as well as verification status concepts. Implementers are expected to utilize concept maps to ensure the code captured in the source is appropriately mapped to the correct allergy intolerance element.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.clinicalStatus.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 0, "definition": "Codes representing the defined possible states of an Act, as defined by the Act class state machine.", "short": "HL7 V3 ActStatus code", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "sliceName": "ActStatusCodeV3", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "required", "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActStatus", "description": "Represents an ActStatus code used by systems implementing HL7 V3." }, "max": "*", "id": "AllergyIntolerance.clinicalStatus.coding:ActStatusCodeV3", "condition": [ "ele-1" ], "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.clinicalStatus.text", "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min": 0, "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "short": "Plain text representation of the concept", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.9. But note many systems use C*E.2 for this", "identity": "v2" }, { "map": "./originalText[mediaType/code=\"text/plain\"]/data", "identity": "rim" }, { "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText", "identity": "orim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "AllergyIntolerance.clinicalStatus.text", "condition": [ "ele-1" ], "comment": "Very often the text is the same as a displayName of one of the codings.", "base": { "max": "1", "min": 0, "path": "CodeableConcept.text" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.verificationStatus", "min": 0, "definition": "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).", "isModifier": true, "short": "unconfirmed | confirmed | refuted | entered-in-error", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "FiveWs.status", "identity": "w5" }, { "map": "Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"verificationStatus\", moodCode=EVN].value", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "AllergyIntoleranceVerificationStatus" } ], "description": "Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified substance." }, "max": "1", "id": "AllergyIntolerance.verificationStatus", "condition": [ "ele-1", "ait-1", "ait-2" ], "comment": "IPS-UV no longer flags this as a Must Support Element. It is not currently flagged as Must Support in PS-CA, as stakeholders have indicated the element may not be supported by the majority of systems today. Systems that do support the element are encouraged to include it in generated Patient Summary documents, and support it when received.\n\nFHIR Base Note: This element is a modifier element with a required vocabulary binding in the base FHIR specification.\n\nIPS-UV Note: In the scope of the IPS-UV the entered-in-error concept is not allowed and so the modifier on this element has been removed.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.verificationStatus" }, "isModifierReason": "This element is labeled as a modifier because the status contains the codes refuted and entered-in-error that mark the AllergyIntolerance as not currently valid.", "isSummary": true }, { "path": "AllergyIntolerance.verificationStatus.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "AllergyIntolerance.verificationStatus.id", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.verificationStatus.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.verificationStatus.extension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.verificationStatus.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 1, "definition": "A reference to a code defined by a terminology system.", "short": "Code defined by a terminology system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "slicing": { "rules": "open", "description": "Discriminated by the bound value set", "discriminator": [ { "path": "$this", "type": "pattern" } ] }, "type": [ { "code": "Coding" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.verificationStatus.coding", "condition": [ "ele-1" ], "comment": "Many Canadian systems currently use the [AllergyIntoleranceStatusCode](https://tgateway.infoway-inforoute.ca/vs/allergyintolerancestatuscode) value set comprised of SNOMED CT codes that can be mapped and provided as additional codings to the required FHIR allergyIntolerance-verification codes. The element is sliced to express the required population of at least the HL7VerificationStatus slice since it is a required coding.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.verificationStatus.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 1, "definition": "Code for an allergy or intolerance statement. Represents whether an allergy/intolerance is active or resolved (indicating no longer active).", "short": "Required value set for AllergyIntolerance Verification Status.", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "sliceName": "HL7VerificationStatus", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-verification", "description": "HL7 required value set for AllergyIntolerance Verification Status." }, "max": "*", "id": "AllergyIntolerance.verificationStatus.coding:HL7VerificationStatus", "condition": [ "ele-1" ], "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.verificationStatus.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 0, "definition": "Code for an allergy or intolerance statement. Represents whether an allergy/intolerance is active or resolved but also includes values like confirmed present and refuted", "short": "Code for allergy or intolerance status", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "sliceName": "statusCodeSCTCA", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "required", "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/allergyintolerancestatuscode", "description": "Represents whether an allergy/intolerance is “active” or resolved (indicating no longer active)." }, "max": "*", "id": "AllergyIntolerance.verificationStatus.coding:statusCodeSCTCA", "condition": [ "ele-1" ], "comment": "This value set combines concepts that can be mapped to clinical status as well as verification status concepts. Implementers are expected to utilize concept maps to ensure the code captured in the source is appropriately mapped to the correct allergy intolerance element.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.verificationStatus.text", "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min": 0, "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "short": "Plain text representation of the concept", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.9. But note many systems use C*E.2 for this", "identity": "v2" }, { "map": "./originalText[mediaType/code=\"text/plain\"]/data", "identity": "rim" }, { "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText", "identity": "orim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "AllergyIntolerance.verificationStatus.text", "condition": [ "ele-1" ], "comment": "Very often the text is the same as a displayName of one of the codings.", "base": { "max": "1", "min": 0, "path": "CodeableConcept.text" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.type", "min": 0, "definition": "Identification of the underlying physiological mechanism for the reaction risk.", "short": "allergy | intolerance - Underlying mechanism (if known)", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "FiveWs.class", "identity": "w5" }, { "map": "IAM-9", "identity": "v2" }, { "map": "code", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "AllergyIntoleranceType" } ], "description": "Identification of the underlying physiological mechanism for a Reaction Risk." }, "alias": [ "Category", "Class" ], "max": "1", "id": "AllergyIntolerance.type", "condition": [ "ele-1" ], "comment": "IPS-UV flags this as a Must Support element. It is not currently flagged as Must Support in PS-CA, as stakeholders have indicated the element may not be supported by the majority of systems today. Systems that do support the element are encouraged to include it in generated Patient Summary documents, and support it when received. Vendors should expect that some jurisdictions may add a Must Support requirement within the context of their own jurisdictional content.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.type" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.category", "min": 0, "definition": "Category of the identified substance.", "short": "food | medication | environment | biologic", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "FiveWs.class", "identity": "w5" }, { "map": "AL1-2", "identity": "v2" }, { "map": "value < IntoleranceValue (Agent)", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "AllergyIntoleranceCategory" } ], "description": "Category of an identified substance associated with allergies or intolerances." }, "alias": [ "Category", "Type", "Reaction Type", "Class" ], "max": "*", "id": "AllergyIntolerance.category", "condition": [ "ele-1" ], "comment": "This data element has been included because it is currently being captured in some clinical systems. This data can be derived from the substance where coding systems are used, and is effectively redundant in that situation. When searching on category, consider the implications of AllergyIntolerance resources without a category. For example, when searching on category = medication, medication allergies that don't have a category valued will not be returned. Refer to [search](search.html) for more information on how to search category with a :missing modifier to get allergies that don't have a category. Additionally, category should be used with caution because category can be subjective based on the sender.", "base": { "max": "*", "min": 0, "path": "AllergyIntolerance.category" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.criticality", "min": 0, "definition": "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.", "short": "low | high | unable-to-assess", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "FiveWs.grade", "identity": "w5" }, { "map": "AL1-4", "identity": "v2" }, { "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "AllergyIntoleranceCriticality" } ], "description": "Estimate of the potential clinical harm, or seriousness, of a reaction to an identified substance." }, "alias": [ "Severity", "Seriousness", "Contra-indication", "Risk" ], "max": "1", "id": "AllergyIntolerance.criticality", "condition": [ "ele-1" ], "comment": "The default criticality value for any propensity to an adverse reaction should be 'Low Risk', indicating at the very least a relative contraindication to deliberate or voluntary exposure to the substance. 'High Risk' is flagged if the clinician has identified a propensity for a more serious or potentially life-threatening reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate or voluntary exposure to the substance. If this element is missing, the criticality is unknown (though it may be known elsewhere). Systems that capture a severity at the condition level are actually representing the concept of criticality whereas the severity documented at the reaction level is representing the true reaction severity. Existing systems that are capturing both condition criticality and reaction severity may use the term \"severity\" to represent both. Criticality is the worst it could be in the future (i.e. situation-agnostic) whereas severity is situation-dependent.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.criticality" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.code", "min": 1, "definition": "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.", "short": "Concept - reference to a terminology or just text", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "FiveWs.what[x]", "identity": "w5" }, { "map": "AL1-3 / IAM-3", "identity": "v2" }, { "map": "substance/product:\r\r.participation[typeCode=CAGNT].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]\r\rnegated/excluded substance/product:\r\r.participation[typeCode=CAGNT, negationInd=true].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]\r\rpositive or negated/excluded condition/situation:\r\rObservation.code=ASSERTION; Observation.value", "identity": "rim" } ], "type": [ { "code": "CodeableConcept", "profile": [ "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/CodeableConcept-ca-ps" ] } ], "mustSupport": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "preferred", "valueSet": "http://fhir.infoway-inforoute.ca/io/psca/ValueSet/substanceandpharmaceuticalbiologicproductcode", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "AllergyIntoleranceCode" }, { "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding", "extension": [ { "url": "purpose", "valueCode": "candidate" }, { "url": "valueSet", "valueCanonical": "http://fhir.infoway-inforoute.ca/io/psca/ValueSet/hc-CCDD" }, { "url": "documentation", "valueMarkdown": "Canadian Clinical Drug Data Set providing codes for identification of medications and medical devices in Canada. While not the preferred terminology for broader pan-Canadian exchange use cases, this additional binding is surfaced to socialize the value sets that may be more commonly in use. Where multiple codings can be supplied, it is encouraged to supply the original coding alongside the pan-Canadian preferred terminology." } ] }, { "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding", "extension": [ { "url": "purpose", "valueCode": "candidate" }, { "url": "valueSet", "valueCanonical": "http://fhir.infoway-inforoute.ca/io/psca/ValueSet/LicensedNaturalHealthProducts" }, { "url": "documentation", "valueMarkdown": "All concepts represented in the Licensed Natural Health Products Database. While not the preferred terminology for broader pan-Canadian exchange use cases, this additional binding is surfaced to socialize the value sets that may be more commonly in use. Where multiple codings can be supplied, it is encouraged to supply the original coding alongside the pan-Canadian preferred terminology." } ] }, { "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding", "extension": [ { "url": "purpose", "valueCode": "candidate" }, { "url": "valueSet", "valueCanonical": "http://fhir.infoway-inforoute.ca/io/psca/ValueSet/ICD10CA" }, { "url": "documentation", "valueMarkdown": "Any code from ICD-10 CA. While not the preferred terminology for broader pan-Canadian exchange use cases, this additional binding is surfaced to socialize the value sets that may be more commonly in use. Where multiple codings can be supplied, it is encouraged to supply the original coding alongside the pan-Canadian preferred terminology." } ] }, { "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding", "extension": [ { "url": "purpose", "valueCode": "candidate" }, { "url": "valueSet", "valueCanonical": "http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-allergies-uv-ips" }, { "url": "documentation", "valueMarkdown": "Negation/exclusion codes for reporting no known allergies or not available data." } ] } ], "description": "Codes for that combine substance and pharmaceuticalbiologicproduct value sets from the SNOMED CT Canadian edition" }, "alias": [ "Code" ], "max": "1", "id": "AllergyIntolerance.code", "condition": [ "ele-1" ], "comment": "No terminology has been defined in AB for this element. Future releases may include defined terminology", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.code" }, "isSummary": true }, { "path": "AllergyIntolerance.code.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "AllergyIntolerance.code.id", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.code.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.code.extension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.code.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 0, "definition": "A reference to a code defined by a terminology system.", "short": "A reference to a code defined by a terminology system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding", "profile": [ "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/Coding-ca-ps" ] } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.code.coding", "condition": [ "ele-1" ], "comment": "While the IPS-UV specification considers this a Must Support element, some systems will not have the ability to support codings for every codeableConcept, further feedback is required on whether these systems are still expected to be able to demonstrate they can construct this element when developing the patient summary instance.\r\n\r\nImplementors that support codings should still send the codings for codeable concepts if they are available and receivers should not produce failures or rejections if codings are included in the patient summary in the first release (a base tenet of FHIR).\r\n\r\nAdditionally vendors should expect that some jurisdictions may further constrain support of this element within the context of their own jurisdictional content", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.code.text", "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min": 1, "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "short": "Plain text representation of the concept", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.9. But note many systems use C*E.2 for this", "identity": "v2" }, { "map": "./originalText[mediaType/code=\"text/plain\"]/data", "identity": "rim" }, { "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText", "identity": "orim" } ], "type": [ { "code": "string" } ], "mustSupport": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "AllergyIntolerance.code.text", "condition": [ "ele-1" ], "comment": "Required if any allergy/intolerance data is submitted; otherwise blank/null. String: Max Character length (250)", "base": { "max": "1", "min": 0, "path": "CodeableConcept.text" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "AllergyIntolerance.patient", "min": 1, "definition": "The patient who has the allergy or intolerance.", "short": "Who the sensitivity is for", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "FiveWs.subject[x]", "identity": "w5" }, { "map": "(PID-3)", "identity": "v2" }, { "map": ".participation[typeCode=SBJ].role[classCode=PAT]", "identity": "rim" }, { "map": "FiveWs.subject", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": [ "https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB" ] } ], "mustSupport": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "Patient" ], "max": "1", "id": "AllergyIntolerance.patient", "condition": [ "ele-1" ], "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "base": { "max": "1", "min": 1, "path": "AllergyIntolerance.patient" }, "isSummary": true }, { "path": "AllergyIntolerance.patient.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "AllergyIntolerance.patient.id", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.patient.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.patient.extension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.patient.reference", "min": 1, "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "short": "Literal reference, Relative, internal or absolute URL", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "mustSupport": true, "max": "1", "id": "AllergyIntolerance.patient.reference", "condition": [ "ele-1", "ref-1" ], "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.", "base": { "max": "1", "min": 0, "path": "Reference.reference" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.patient.type", "min": 0, "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).", "short": "Type the reference refers to (e.g. \"Patient\")", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "uri" } ], "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/ValueSet/resource-types", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "FHIRResourceTypeExt" } ], "description": "Aa resource (or, for logical models, the URI of the logical model)." }, "max": "1", "id": "AllergyIntolerance.patient.type", "condition": [ "ele-1" ], "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.", "base": { "max": "1", "min": 0, "path": "Reference.type" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.patient.identifier", "min": 0, "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "short": "Logical reference, when literal reference is not known", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)", "identity": "v2" }, { "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]", "identity": "rim" }, { "map": "Identifier", "identity": "servd" }, { "map": ".identifier", "identity": "rim" } ], "type": [ { "code": "Identifier" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "1", "id": "AllergyIntolerance.patient.identifier", "condition": [ "ele-1" ], "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).", "base": { "max": "1", "min": 0, "path": "Reference.identifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.patient.display", "min": 0, "definition": "Plain text narrative that identifies the resource in addition to the resource reference.", "short": "Text alternative for the resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "AllergyIntolerance.patient.display", "condition": [ "ele-1" ], "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "base": { "max": "1", "min": 0, "path": "Reference.display" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "AllergyIntolerance.encounter", "min": 0, "definition": "The encounter when the allergy or intolerance was asserted.", "short": "Encounter when the allergy or intolerance was asserted", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "FiveWs.context", "identity": "w5" }, { "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ] } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "1", "id": "AllergyIntolerance.encounter", "condition": [ "ele-1" ], "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.encounter" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.onset[x]", "min": 0, "definition": "Estimated or actual date, date-time, or age when allergy or intolerance was identified.", "short": "When allergy or intolerance was identified", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "FiveWs.init", "identity": "w5" }, { "map": "effectiveTime.low", "identity": "rim" } ], "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "$this", "type": "type" } ] }, "type": [ { "code": "dateTime" }, { "code": "Age" }, { "code": "Period" }, { "code": "Range" }, { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "1", "id": "AllergyIntolerance.onset[x]", "condition": [ "ele-1" ], "comment": "May be full or partial date, numeric age or string description", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.onset[x]" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.onset[x]", "min": 0, "definition": "Estimated or actual date, date-time, or age when allergy or intolerance was identified.", "short": "When allergy or intolerance was identified", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "FiveWs.init", "identity": "w5" }, { "map": "effectiveTime.low", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "mustSupport": true, "sliceName": "onsetDateTime", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "1", "id": "AllergyIntolerance.onset[x]:onsetDateTime", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.onset[x]" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.recordedDate", "min": 0, "definition": "The recordedDate represents when this particular AllergyIntolerance record was created in the system, which is often a system-generated date.", "short": "Date first version of the resource instance was recorded", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "FiveWs.recorded", "identity": "w5" }, { "map": "IAM-13", "identity": "v2" }, { "map": ".participation[typeCode=AUT].time", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "max": "1", "id": "AllergyIntolerance.recordedDate", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.recordedDate" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "AllergyIntolerance.recorder", "min": 0, "definition": "Individual who recorded the record and takes responsibility for its content.", "short": "Who recorded the sensitivity", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "FiveWs.author", "identity": "w5" }, { "map": ".participation[typeCode=AUT].role", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerPSAB", "https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerRolePSAB", "https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB" ] } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "Author" ], "max": "1", "id": "AllergyIntolerance.recorder", "condition": [ "ele-1" ], "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.recorder" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "AllergyIntolerance.asserter", "min": 0, "definition": "The source of the information about the allergy that is recorded.", "short": "Source of the information about the allergy", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "FiveWs.source", "identity": "w5" }, { "map": "IAM-14 (if patient) / IAM-18 (if practitioner)", "identity": "v2" }, { "map": ".participation[typeCode=INF].role", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "Source", "Informant" ], "max": "1", "id": "AllergyIntolerance.asserter", "condition": [ "ele-1" ], "comment": "The recorder takes responsibility for the content, but can reference the source from where they got it.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.asserter" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.lastOccurrence", "min": 0, "definition": "Represents the date and/or time of the last known occurrence of a reaction event.", "short": "Date(/time) of last known occurrence of a reaction", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)].effectiveTime", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "max": "1", "id": "AllergyIntolerance.lastOccurrence", "condition": [ "ele-1" ], "comment": "If supplied, optional YYYY-MM-DD format. Partial dates (YYYY only or YYYY-MM only) are accepted. ISO-8601 doesn't support partial dates like YYYY or YYYY-MM", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.lastOccurrence" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.note", "min": 0, "definition": "Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.", "short": "Additional text not captured in other fields", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "Act", "identity": "rim" }, { "map": "subjectOf.observationEvent[code=\"annotation\"].value", "identity": "rim" } ], "type": [ { "code": "Annotation" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.note", "condition": [ "ele-1" ], "comment": "For example: including reason for flagging a seriousness of 'High Risk'; and instructions related to future exposure or administration of the substance, such as administration within an Intensive Care Unit or under corticosteroid cover. The notes should be related to an allergy or intolerance as a condition in general and not related to any particular episode of it. For episode notes and descriptions, use AllergyIntolerance.event.description and AllergyIntolerance.event.notes.", "base": { "max": "*", "min": 0, "path": "AllergyIntolerance.note" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction", "min": 0, "definition": "Details about each adverse reaction event linked to exposure to the identified substance.", "short": "Adverse Reaction Events linked to exposure to substance", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "outBoundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN, code <= CommonClinicalObservationType, value <= ObservationValue (Reaction Type)]", "identity": "rim" } ], "type": [ { "code": "BackboneElement" } ], "mustSupport": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.reaction", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "AllergyIntolerance.reaction" } }, { "path": "AllergyIntolerance.reaction.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "AllergyIntolerance.reaction.id", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.reaction.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.reaction.extension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.reaction.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "AllergyIntolerance.reaction.modifierExtension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.substance", "min": 0, "definition": "Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'. If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance.", "short": "Specific substance or pharmaceutical product considered to be responsible for event", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].participation[typeCode=CSM].role[classCode=ADMM].player[classCode=MAT, determinerCode=KIND, code <= ExposureAgentEntityType]", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/substance-code", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "SubstanceCode" } ], "description": "Codes defining the type of the substance (including pharmaceutical products)." }, "max": "1", "id": "AllergyIntolerance.reaction.substance", "condition": [ "ele-1" ], "comment": "The IPS-UV does not consider this element Must Support, however some Canadian systems may capture allergen substances separately from allergyIntolerance.code. Further investigation is required to determine what approaches are in use by participating jurisdictions.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.reaction.substance" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.manifestation", "min": 1, "definition": "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.", "short": "Concept - reference to a terminology or just text", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "AL1-5", "identity": "v2" }, { "map": "code", "identity": "rim" } ], "type": [ { "code": "CodeableConcept", "profile": [ "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/CodeableConcept-ca-ps" ] } ], "mustSupport": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "preferred", "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/clinicalfindingcode", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "ReactionManifestationCode" } ], "description": "Codes for the allergy or intolerance reaction manifestation from the SNOMED CT Canadian edition value set" }, "alias": [ "Symptoms", "Signs" ], "max": "*", "id": "AllergyIntolerance.reaction.manifestation", "condition": [ "ele-1" ], "comment": "AllergyIntolerance.reaction.manifestation only needs to be populated if AllergyIntolerance.reaction is populated with other details. No terminology has been defined in AB for this element. Future releases may include defined terminology", "base": { "max": "*", "min": 1, "path": "AllergyIntolerance.reaction.manifestation" } }, { "path": "AllergyIntolerance.reaction.manifestation.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "AllergyIntolerance.reaction.manifestation.id", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "AllergyIntolerance.reaction.manifestation.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "AllergyIntolerance.reaction.manifestation.extension", "condition": [ "ele-1" ], "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.manifestation.coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 0, "definition": "A reference to a code defined by a terminology system.", "short": "A reference to a code defined by a terminology system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding", "profile": [ "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/Coding-ca-ps" ] } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.reaction.manifestation.coding", "condition": [ "ele-1" ], "comment": "While the IPS-UV specification considers this a Must Support element, some systems will not have the ability to support codings for every codeableConcept, further feedback is required on whether these systems are still expected to be able to demonstrate they can construct this element when developing the patient summary instance.\r\n\r\nImplementors that support codings should still send the codings for codeable concepts if they are available and receivers should not produce failures or rejections if codings are included in the patient summary in the first release (a base tenet of FHIR).\r\n\r\nAdditionally vendors should expect that some jurisdictions may further constrain support of this element within the context of their own jurisdictional content", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.manifestation.text", "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min": 1, "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "short": "Plain text representation of the concept", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.9. But note many systems use C*E.2 for this", "identity": "v2" }, { "map": "./originalText[mediaType/code=\"text/plain\"]/data", "identity": "rim" }, { "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText", "identity": "orim" } ], "type": [ { "code": "string" } ], "mustSupport": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "AllergyIntolerance.reaction.manifestation.text", "condition": [ "ele-1" ], "comment": "AllergyIntolerance.reaction.manifestation.text only needs to be populated if AllergyIntolerance.reaction is populated with other details", "base": { "max": "1", "min": 0, "path": "CodeableConcept.text" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.description", "min": 0, "definition": "Text description about the reaction as a whole, including details of the manifestation if required.", "short": "Description of the event as a whole", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "text", "identity": "rim" } ], "type": [ { "code": "string" } ], "alias": [ "Narrative", "Text" ], "max": "1", "id": "AllergyIntolerance.reaction.description", "condition": [ "ele-1" ], "comment": "Use the description to provide any details of a particular event of the occurred reaction such as circumstances, reaction specifics, what happened before/after. Information, related to the event, but not describing a particular care should be captured in the comment field. For example: at the age of four, the patient was given penicillin for strep throat and subsequently developed severe hives.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.reaction.description" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.onset", "min": 0, "definition": "Record of the date and/or time of the onset of the Reaction.", "short": "Date(/time) when manifestations showed", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "AL1-6", "identity": "v2" }, { "map": "effectiveTime.low", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "max": "1", "id": "AllergyIntolerance.reaction.onset", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.reaction.onset" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.severity", "min": 0, "definition": "Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.", "short": "mild | moderate | severe (of event as a whole)", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=SEV, value <= SeverityObservation (Severity Level)]", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "AllergyIntoleranceSeverity" } ], "description": "Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations." }, "max": "1", "id": "AllergyIntolerance.reaction.severity", "condition": [ "ele-1" ], "comment": "IPS-UV flags this as a Must Support element. It is not currently flagged as Must Support in PS-CA, as stakeholders have indicated the element may not be supported by the majority of systems today. Systems that do support the element are encouraged to include it in generated Patient Summary documents, and support it when received. Vendors should expect that some jurisdictions may add a Must Support requirement within the context of their own jurisdictional content.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.reaction.severity" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.exposureRoute", "min": 0, "definition": "Identification of the route by which the subject was exposed to the substance.", "short": "How the subject was exposed to the substance", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "outBoundRelationship[typeCode=SAS].target[classCode=SBADM, code <= ExposureCode].routeCode", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/route-codes", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "RouteOfAdministration" } ], "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject." }, "max": "1", "id": "AllergyIntolerance.reaction.exposureRoute", "condition": [ "ele-1" ], "comment": "Coding of the route of exposure with a terminology should be used wherever possible.", "base": { "max": "1", "min": 0, "path": "AllergyIntolerance.reaction.exposureRoute" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "AllergyIntolerance.reaction.note", "min": 0, "definition": "Additional text about the adverse reaction event not captured in other fields.", "short": "Text about event not captured in other fields", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "Act", "identity": "rim" }, { "map": "subjectOf.observationEvent[code=\"annotation\"].value", "identity": "rim" } ], "type": [ { "code": "Annotation" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "normative" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version", "valueCode": "4.0.0" } ], "max": "*", "id": "AllergyIntolerance.reaction.note", "condition": [ "ele-1" ], "comment": "Use this field to record information indirectly related to a particular event and not captured in the description. For example: Clinical records are no longer available, recorded based on information provided to the patient by her mother and her mother is deceased.", "base": { "max": "*", "min": 0, "path": "AllergyIntolerance.reaction.note" } } ] }, "status": "draft", "id": "e0d6e78f-5c1e-4b2e-a182-53e715a15791", "kind": "resource", "url": "https://www.alberta.ca/fhir/psab/StructureDefinition/AllergyIntolerancePSAB", "version": null, "differential": { "element": [ { "id": "AllergyIntolerance", "path": "AllergyIntolerance", "comment": "AllergyIntolerance resources included in Alberta Patient Summary Document Bundles SHALL NOT contain any of the following AllergyIntolerance details: verificationStatus, encounter, asserter. These rules are mechanically enforced through invariants at the PS-AB Bundle level." }, { "id": "AllergyIntolerance.clinicalStatus.coding:HL7AllergyIntoleranceClinicalStatus", "max": "1", "path": "AllergyIntolerance.clinicalStatus.coding", "comment": "If clinicalStatus is supplied, a coding SHALL be supplied with at least one coding from the HL7AllergyIntoleranceClinicalStatus valueSet", "sliceName": "HL7AllergyIntoleranceClinicalStatus", "mustSupport": true, "sliceIsConstraining": true }, { "id": "AllergyIntolerance.code", "path": "AllergyIntolerance.code", "comment": "No terminology has been defined in AB for this element. Future releases may include defined terminology" }, { "id": "AllergyIntolerance.code.text", "min": 1, "path": "AllergyIntolerance.code.text", "comment": "Required if any allergy/intolerance data is submitted; otherwise blank/null. String: Max Character length (250)" }, { "id": "AllergyIntolerance.patient", "path": "AllergyIntolerance.patient", "type": [ { "code": "Reference", "targetProfile": [ "https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB" ] } ] }, { "id": "AllergyIntolerance.onset[x]", "path": "AllergyIntolerance.onset[x]", "comment": "May be full or partial date, numeric age or string description" }, { "id": "AllergyIntolerance.recorder", "path": "AllergyIntolerance.recorder", "type": [ { "code": "Reference", "targetProfile": [ "https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerPSAB", "https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerRolePSAB", "https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB" ] } ] }, { "id": "AllergyIntolerance.lastOccurrence", "path": "AllergyIntolerance.lastOccurrence", "comment": "If supplied, optional YYYY-MM-DD format. Partial dates (YYYY only or YYYY-MM only) are accepted. ISO-8601 doesn't support partial dates like YYYY or YYYY-MM" }, { "id": "AllergyIntolerance.reaction.manifestation", "path": "AllergyIntolerance.reaction.manifestation", "comment": "AllergyIntolerance.reaction.manifestation only needs to be populated if AllergyIntolerance.reaction is populated with other details. No terminology has been defined in AB for this element. Future releases may include defined terminology" }, { "id": "AllergyIntolerance.reaction.manifestation.text", "min": 1, "path": "AllergyIntolerance.reaction.manifestation.text", "comment": "AllergyIntolerance.reaction.manifestation.text only needs to be populated if AllergyIntolerance.reaction is populated with other details" } ] }, "baseDefinition": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/allergyintolerance-ca-ps" }