HL7 FHIR Implementation Guide: HealthBank IG Release 0.1.0 - TW | STU1
0.1.0 - ci-build

HL7 FHIR Implementation Guide: HealthBank IG Release 0.1.0 - TW | STU1 - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Resource Profile: HealthBank AllergyIntolerance

Official URL: https://ig.dicom.tw/healthbank/StructureDefinition/AllergyIntolerance-HealthBank | Version: 0.1.0
Active as of 2024-08-16 | Computable Name: HealthBankCoreAllergyIntolerance

此健康存摺-過敏或不耐症（HealthBank AllergyIntolerance) Profile說明本IG如何進一步定義FHIR的AllergyIntolerance Resource以呈現過敏與不耐症的詳細資料。

Usage:

- This Resource Profile is not used by any profiles in this Implementation Guide

### Formal Views of Profile Content

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

- Differential Table
- Key Elements Table
- Snapshot Table
- Statistics/References
- All

This structure is derived from TWCoreAllergyIntolerance

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
AllergyIntolerance |  | 0..* | TWCoreAllergyIntolerance | 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合
id |  | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的AllergyIntolerance紀錄，通常又稱為邏輯性ID。
meta |  | 0..1 | Meta | 此AllergyIntolerance Resource的metadata
implicitRules |  | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述AllergyIntolerance Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | AllergyIntolerance Resource之內容摘要以供人閱讀
identifier |  | 0..* | Identifier | 過敏或不耐症之外部識別碼
clinicalStatus | S | 0..1 | CodeableConceptTW | active | inactive | resolved ，過敏或不耐症的臨床狀態。 Binding: AllergyIntoleranceClinicalStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
verificationStatus | S | 0..1 | CodeableConceptTW | unconfirmed | confirmed | refuted | entered-in-error ，一個人對特定物質產生反應的可能性或風險有多確定的陳述。 Binding: AllergyIntoleranceVerificationStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
type |  | 0..1 | code | allergy | intolerance - 根本原因或運作機制（如果知道）。 Binding: AllergyIntoleranceType (required): 確定反應風險的基本生理機制；應填入所綁定值集中的其中一個代碼。
category |  | 0..* | code | food | medication | environment | biologic Binding: AllergyIntoleranceCategory (required): 確定的物質的類別；應填入所綁定值集中的其中一個代碼。
criticality |  | 0..1 | code | low | high | unable-to-assess Binding: AllergyIntoleranceCriticality (required): 對已識別物質的反應的潛在臨床危害程度，或稱嚴重性估計；應填入所綁定值集中的其中一個代碼。
code | S | 1..1 | CodeableConceptTW | 表明此過敏或不耐症的代碼 Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patient | S | 1..1 | Reference(TW Core Patient) | Patient Resource urn:uuid:ResourceID
encounter |  | 0..1 | Reference(TW Core Encounter) | 過敏或不耐症被確認時的就醫事件(Encounter)
onset[x] |  | 0..1 | dateTime, Age, Period, Range, string | 過敏或不耐症被識別的時間
recordedDate | S | 0..1 | dateTime | resource實例的第一個版本被記錄的日期
recorder | S | 0..1 | Reference(RelatedPerson) | 誰記錄了過敏或不耐受
asserter |  | 0..1 | Reference(TW Core Patient | RelatedPerson | TW Core Practitioner | TW Core PractitionerRole) | 關於過敏的資訊來源
lastOccurrence |  | 0..1 | dateTime | 最後一次已知反應發生的日期（/時間）
note | S | 0..* | Annotation | 其他欄位中沒有記錄的額外文字陳述
reaction | S | 0..* | BackboneElement | 暴露於此過敏或不耐症物質的不良反應
substance |  | 0..1 | CodeableConceptTW | 被認為是事件原因的特定物質或醫藥產品 Binding: SubstanceCode (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
manifestation | S | 1..* | CodeableConceptTW | 與此事件相關的臨床症狀/體徵 Binding: SNOMEDCTClinicalFindings (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
description |  | 0..1 | string | 對整個活動的描述
onset |  | 0..1 | dateTime | 症狀顯現的日期（/時間）
severity |  | 0..1 | code | mild | moderate | severe Binding: AllergyIntoleranceSeverity (required): 整個事件的程度，應填入所綁定值集中的其中一個代碼。
exposureRoute |  | 0..1 | CodeableConceptTW | 此對象如何接觸到該物質 Binding: SNOMEDCTRouteCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 其他資料項目未記錄之關於事件的文字表述
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
AllergyIntolerance.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
AllergyIntolerance.clinicalStatus | required | AllergyIntoleranceClinicalStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1` from the FHIR Standard
AllergyIntolerance.verificationStatus | required | AllergyIntoleranceVerificationStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1` from the FHIR Standard
AllergyIntolerance.type | required | AllergyIntoleranceType `http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1` from the FHIR Standard
AllergyIntolerance.category | required | AllergyIntoleranceCategory `http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1` from the FHIR Standard
AllergyIntolerance.criticality | required | AllergyIntoleranceCriticality `http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1` from the FHIR Standard
AllergyIntolerance.code | extensible | AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-code` from the FHIR Standard
AllergyIntolerance.reaction.substance | extensible | SubstanceCode `http://hl7.org/fhir/ValueSet/substance-code` from the FHIR Standard
AllergyIntolerance.reaction.manifestation | extensible | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
AllergyIntolerance.reaction.severity | required | AllergyIntoleranceSeverity `http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1` from the FHIR Standard
AllergyIntolerance.reaction.exposureRoute | extensible | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` from the FHIR Standard

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
AllergyIntolerance | C | 0..* | TWCoreAllergyIntolerance | 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合 ait-1: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. ait-2: AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的AllergyIntolerance紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此AllergyIntolerance Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述AllergyIntolerance Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | AllergyIntolerance Resource之內容摘要以供人閱讀
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | Σ | 0..* | Identifier | 過敏或不耐症之外部識別碼
clinicalStatus | S | 0..1 | CodeableConceptTW | active | inactive | resolved ，過敏或不耐症的臨床狀態。 Binding: AllergyIntoleranceClinicalStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
verificationStatus | S | 0..1 | CodeableConceptTW | unconfirmed | confirmed | refuted | entered-in-error ，一個人對特定物質產生反應的可能性或風險有多確定的陳述。 Binding: AllergyIntoleranceVerificationStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
type | Σ | 0..1 | code | allergy | intolerance - 根本原因或運作機制（如果知道）。 Binding: AllergyIntoleranceType (required): 確定反應風險的基本生理機制；應填入所綁定值集中的其中一個代碼。
category | Σ | 0..* | code | food | medication | environment | biologic Binding: AllergyIntoleranceCategory (required): 確定的物質的類別；應填入所綁定值集中的其中一個代碼。
criticality | Σ | 0..1 | code | low | high | unable-to-assess Binding: AllergyIntoleranceCriticality (required): 對已識別物質的反應的潛在臨床危害程度，或稱嚴重性估計；應填入所綁定值集中的其中一個代碼。
code | S | 1..1 | CodeableConceptTW | 表明此過敏或不耐症的代碼 Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patient | S Σ | 1..1 | Reference(TW Core Patient) | Patient Resource urn:uuid:ResourceID
encounter |  | 0..1 | Reference(TW Core Encounter) | 過敏或不耐症被確認時的就醫事件(Encounter)
onset[x] |  | 0..1 |  | 過敏或不耐症被識別的時間
onsetDateTime |  |  | dateTime |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
recordedDate | S | 0..1 | dateTime | resource實例的第一個版本被記錄的日期
recorder | S | 0..1 | Reference(RelatedPerson) | 誰記錄了過敏或不耐受
asserter | Σ | 0..1 | Reference(TW Core Patient | RelatedPerson | TW Core Practitioner | TW Core PractitionerRole) | 關於過敏的資訊來源
lastOccurrence |  | 0..1 | dateTime | 最後一次已知反應發生的日期（/時間）
note | S | 0..* | Annotation | 其他欄位中沒有記錄的額外文字陳述
reaction | S | 0..* | BackboneElement | 暴露於此過敏或不耐症物質的不良反應
modifierExtension | ?!Σ | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
substance |  | 0..1 | CodeableConceptTW | 被認為是事件原因的特定物質或醫藥產品 Binding: SubstanceCode (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
manifestation | S | 1..* | CodeableConceptTW | 與此事件相關的臨床症狀/體徵 Binding: SNOMEDCTClinicalFindings (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
description |  | 0..1 | string | 對整個活動的描述
onset |  | 0..1 | dateTime | 症狀顯現的日期（/時間）
severity |  | 0..1 | code | mild | moderate | severe Binding: AllergyIntoleranceSeverity (required): 整個事件的程度，應填入所綁定值集中的其中一個代碼。
exposureRoute |  | 0..1 | CodeableConceptTW | 此對象如何接觸到該物質 Binding: SNOMEDCTRouteCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 其他資料項目未記錄之關於事件的文字表述
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
AllergyIntolerance.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
AllergyIntolerance.clinicalStatus | required | AllergyIntoleranceClinicalStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1` from the FHIR Standard
AllergyIntolerance.verificationStatus | required | AllergyIntoleranceVerificationStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1` from the FHIR Standard
AllergyIntolerance.type | required | AllergyIntoleranceType `http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1` from the FHIR Standard
AllergyIntolerance.category | required | AllergyIntoleranceCategory `http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1` from the FHIR Standard
AllergyIntolerance.criticality | required | AllergyIntoleranceCriticality `http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1` from the FHIR Standard
AllergyIntolerance.code | extensible | AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-code` from the FHIR Standard
AllergyIntolerance.reaction.substance | extensible | SubstanceCode `http://hl7.org/fhir/ValueSet/substance-code` from the FHIR Standard
AllergyIntolerance.reaction.manifestation | extensible | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
AllergyIntolerance.reaction.severity | required | AllergyIntoleranceSeverity `http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1` from the FHIR Standard
AllergyIntolerance.reaction.exposureRoute | extensible | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` from the FHIR Standard

#### Constraints

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

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
AllergyIntolerance | C | 0..* | TWCoreAllergyIntolerance | 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合 ait-1: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. ait-2: AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的AllergyIntolerance紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此AllergyIntolerance Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述AllergyIntolerance Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | AllergyIntolerance Resource之內容摘要以供人閱讀
contained |  | 0..* | Resource | 內嵌的（contained）、行內的Resources
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | Σ | 0..* | Identifier | 過敏或不耐症之外部識別碼
clinicalStatus | S | 0..1 | CodeableConceptTW | active | inactive | resolved ，過敏或不耐症的臨床狀態。 Binding: AllergyIntoleranceClinicalStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
verificationStatus | S | 0..1 | CodeableConceptTW | unconfirmed | confirmed | refuted | entered-in-error ，一個人對特定物質產生反應的可能性或風險有多確定的陳述。 Binding: AllergyIntoleranceVerificationStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
type | Σ | 0..1 | code | allergy | intolerance - 根本原因或運作機制（如果知道）。 Binding: AllergyIntoleranceType (required): 確定反應風險的基本生理機制；應填入所綁定值集中的其中一個代碼。
category | Σ | 0..* | code | food | medication | environment | biologic Binding: AllergyIntoleranceCategory (required): 確定的物質的類別；應填入所綁定值集中的其中一個代碼。
criticality | Σ | 0..1 | code | low | high | unable-to-assess Binding: AllergyIntoleranceCriticality (required): 對已識別物質的反應的潛在臨床危害程度，或稱嚴重性估計；應填入所綁定值集中的其中一個代碼。
code | S | 1..1 | CodeableConceptTW | 表明此過敏或不耐症的代碼 Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patient | S Σ | 1..1 | Reference(TW Core Patient) | Patient Resource urn:uuid:ResourceID
encounter |  | 0..1 | Reference(TW Core Encounter) | 過敏或不耐症被確認時的就醫事件(Encounter)
onset[x] |  | 0..1 |  | 過敏或不耐症被識別的時間
onsetDateTime |  |  | dateTime |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
recordedDate | S | 0..1 | dateTime | resource實例的第一個版本被記錄的日期
recorder | S | 0..1 | Reference(RelatedPerson) | 誰記錄了過敏或不耐受
asserter | Σ | 0..1 | Reference(TW Core Patient | RelatedPerson | TW Core Practitioner | TW Core PractitionerRole) | 關於過敏的資訊來源
lastOccurrence |  | 0..1 | dateTime | 最後一次已知反應發生的日期（/時間）
note | S | 0..* | Annotation | 其他欄位中沒有記錄的額外文字陳述
reaction | S | 0..* | BackboneElement | 暴露於此過敏或不耐症物質的不良反應
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?!Σ | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
substance |  | 0..1 | CodeableConceptTW | 被認為是事件原因的特定物質或醫藥產品 Binding: SubstanceCode (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
manifestation | S | 1..* | CodeableConceptTW | 與此事件相關的臨床症狀/體徵 Binding: SNOMEDCTClinicalFindings (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
description |  | 0..1 | string | 對整個活動的描述
onset |  | 0..1 | dateTime | 症狀顯現的日期（/時間）
severity |  | 0..1 | code | mild | moderate | severe Binding: AllergyIntoleranceSeverity (required): 整個事件的程度，應填入所綁定值集中的其中一個代碼。
exposureRoute |  | 0..1 | CodeableConceptTW | 此對象如何接觸到該物質 Binding: SNOMEDCTRouteCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 其他資料項目未記錄之關於事件的文字表述
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
AllergyIntolerance.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
AllergyIntolerance.clinicalStatus | required | AllergyIntoleranceClinicalStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1` from the FHIR Standard
AllergyIntolerance.verificationStatus | required | AllergyIntoleranceVerificationStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1` from the FHIR Standard
AllergyIntolerance.type | required | AllergyIntoleranceType `http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1` from the FHIR Standard
AllergyIntolerance.category | required | AllergyIntoleranceCategory `http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1` from the FHIR Standard
AllergyIntolerance.criticality | required | AllergyIntoleranceCriticality `http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1` from the FHIR Standard
AllergyIntolerance.code | extensible | AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-code` from the FHIR Standard
AllergyIntolerance.reaction.substance | extensible | SubstanceCode `http://hl7.org/fhir/ValueSet/substance-code` from the FHIR Standard
AllergyIntolerance.reaction.manifestation | extensible | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
AllergyIntolerance.reaction.severity | required | AllergyIntoleranceSeverity `http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1` from the FHIR Standard
AllergyIntolerance.reaction.exposureRoute | extensible | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` from the FHIR Standard

#### Constraints

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

This structure is derived from TWCoreAllergyIntolerance

Summary

Mandatory: 1 element
Must-Support: 9 elements

Differential View

This structure is derived from TWCoreAllergyIntolerance

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
AllergyIntolerance |  | 0..* | TWCoreAllergyIntolerance | 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合
id |  | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的AllergyIntolerance紀錄，通常又稱為邏輯性ID。
meta |  | 0..1 | Meta | 此AllergyIntolerance Resource的metadata
implicitRules |  | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述AllergyIntolerance Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | AllergyIntolerance Resource之內容摘要以供人閱讀
identifier |  | 0..* | Identifier | 過敏或不耐症之外部識別碼
clinicalStatus | S | 0..1 | CodeableConceptTW | active | inactive | resolved ，過敏或不耐症的臨床狀態。 Binding: AllergyIntoleranceClinicalStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
verificationStatus | S | 0..1 | CodeableConceptTW | unconfirmed | confirmed | refuted | entered-in-error ，一個人對特定物質產生反應的可能性或風險有多確定的陳述。 Binding: AllergyIntoleranceVerificationStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
type |  | 0..1 | code | allergy | intolerance - 根本原因或運作機制（如果知道）。 Binding: AllergyIntoleranceType (required): 確定反應風險的基本生理機制；應填入所綁定值集中的其中一個代碼。
category |  | 0..* | code | food | medication | environment | biologic Binding: AllergyIntoleranceCategory (required): 確定的物質的類別；應填入所綁定值集中的其中一個代碼。
criticality |  | 0..1 | code | low | high | unable-to-assess Binding: AllergyIntoleranceCriticality (required): 對已識別物質的反應的潛在臨床危害程度，或稱嚴重性估計；應填入所綁定值集中的其中一個代碼。
code | S | 1..1 | CodeableConceptTW | 表明此過敏或不耐症的代碼 Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patient | S | 1..1 | Reference(TW Core Patient) | Patient Resource urn:uuid:ResourceID
encounter |  | 0..1 | Reference(TW Core Encounter) | 過敏或不耐症被確認時的就醫事件(Encounter)
onset[x] |  | 0..1 | dateTime, Age, Period, Range, string | 過敏或不耐症被識別的時間
recordedDate | S | 0..1 | dateTime | resource實例的第一個版本被記錄的日期
recorder | S | 0..1 | Reference(RelatedPerson) | 誰記錄了過敏或不耐受
asserter |  | 0..1 | Reference(TW Core Patient | RelatedPerson | TW Core Practitioner | TW Core PractitionerRole) | 關於過敏的資訊來源
lastOccurrence |  | 0..1 | dateTime | 最後一次已知反應發生的日期（/時間）
note | S | 0..* | Annotation | 其他欄位中沒有記錄的額外文字陳述
reaction | S | 0..* | BackboneElement | 暴露於此過敏或不耐症物質的不良反應
substance |  | 0..1 | CodeableConceptTW | 被認為是事件原因的特定物質或醫藥產品 Binding: SubstanceCode (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
manifestation | S | 1..* | CodeableConceptTW | 與此事件相關的臨床症狀/體徵 Binding: SNOMEDCTClinicalFindings (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
description |  | 0..1 | string | 對整個活動的描述
onset |  | 0..1 | dateTime | 症狀顯現的日期（/時間）
severity |  | 0..1 | code | mild | moderate | severe Binding: AllergyIntoleranceSeverity (required): 整個事件的程度，應填入所綁定值集中的其中一個代碼。
exposureRoute |  | 0..1 | CodeableConceptTW | 此對象如何接觸到該物質 Binding: SNOMEDCTRouteCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 其他資料項目未記錄之關於事件的文字表述
Documentation for this format

#### Terminology Bindings (Differential)

Path | Conformance | ValueSet | URI
AllergyIntolerance.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
AllergyIntolerance.clinicalStatus | required | AllergyIntoleranceClinicalStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1` from the FHIR Standard
AllergyIntolerance.verificationStatus | required | AllergyIntoleranceVerificationStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1` from the FHIR Standard
AllergyIntolerance.type | required | AllergyIntoleranceType `http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1` from the FHIR Standard
AllergyIntolerance.category | required | AllergyIntoleranceCategory `http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1` from the FHIR Standard
AllergyIntolerance.criticality | required | AllergyIntoleranceCriticality `http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1` from the FHIR Standard
AllergyIntolerance.code | extensible | AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-code` from the FHIR Standard
AllergyIntolerance.reaction.substance | extensible | SubstanceCode `http://hl7.org/fhir/ValueSet/substance-code` from the FHIR Standard
AllergyIntolerance.reaction.manifestation | extensible | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
AllergyIntolerance.reaction.severity | required | AllergyIntoleranceSeverity `http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1` from the FHIR Standard
AllergyIntolerance.reaction.exposureRoute | extensible | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` from the FHIR Standard

Key Elements View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
AllergyIntolerance | C | 0..* | TWCoreAllergyIntolerance | 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合 ait-1: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. ait-2: AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的AllergyIntolerance紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此AllergyIntolerance Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述AllergyIntolerance Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | AllergyIntolerance Resource之內容摘要以供人閱讀
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | Σ | 0..* | Identifier | 過敏或不耐症之外部識別碼
clinicalStatus | S | 0..1 | CodeableConceptTW | active | inactive | resolved ，過敏或不耐症的臨床狀態。 Binding: AllergyIntoleranceClinicalStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
verificationStatus | S | 0..1 | CodeableConceptTW | unconfirmed | confirmed | refuted | entered-in-error ，一個人對特定物質產生反應的可能性或風險有多確定的陳述。 Binding: AllergyIntoleranceVerificationStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
type | Σ | 0..1 | code | allergy | intolerance - 根本原因或運作機制（如果知道）。 Binding: AllergyIntoleranceType (required): 確定反應風險的基本生理機制；應填入所綁定值集中的其中一個代碼。
category | Σ | 0..* | code | food | medication | environment | biologic Binding: AllergyIntoleranceCategory (required): 確定的物質的類別；應填入所綁定值集中的其中一個代碼。
criticality | Σ | 0..1 | code | low | high | unable-to-assess Binding: AllergyIntoleranceCriticality (required): 對已識別物質的反應的潛在臨床危害程度，或稱嚴重性估計；應填入所綁定值集中的其中一個代碼。
code | S | 1..1 | CodeableConceptTW | 表明此過敏或不耐症的代碼 Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patient | S Σ | 1..1 | Reference(TW Core Patient) | Patient Resource urn:uuid:ResourceID
encounter |  | 0..1 | Reference(TW Core Encounter) | 過敏或不耐症被確認時的就醫事件(Encounter)
onset[x] |  | 0..1 |  | 過敏或不耐症被識別的時間
onsetDateTime |  |  | dateTime |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
recordedDate | S | 0..1 | dateTime | resource實例的第一個版本被記錄的日期
recorder | S | 0..1 | Reference(RelatedPerson) | 誰記錄了過敏或不耐受
asserter | Σ | 0..1 | Reference(TW Core Patient | RelatedPerson | TW Core Practitioner | TW Core PractitionerRole) | 關於過敏的資訊來源
lastOccurrence |  | 0..1 | dateTime | 最後一次已知反應發生的日期（/時間）
note | S | 0..* | Annotation | 其他欄位中沒有記錄的額外文字陳述
reaction | S | 0..* | BackboneElement | 暴露於此過敏或不耐症物質的不良反應
modifierExtension | ?!Σ | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
substance |  | 0..1 | CodeableConceptTW | 被認為是事件原因的特定物質或醫藥產品 Binding: SubstanceCode (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
manifestation | S | 1..* | CodeableConceptTW | 與此事件相關的臨床症狀/體徵 Binding: SNOMEDCTClinicalFindings (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
description |  | 0..1 | string | 對整個活動的描述
onset |  | 0..1 | dateTime | 症狀顯現的日期（/時間）
severity |  | 0..1 | code | mild | moderate | severe Binding: AllergyIntoleranceSeverity (required): 整個事件的程度，應填入所綁定值集中的其中一個代碼。
exposureRoute |  | 0..1 | CodeableConceptTW | 此對象如何接觸到該物質 Binding: SNOMEDCTRouteCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 其他資料項目未記錄之關於事件的文字表述
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
AllergyIntolerance.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
AllergyIntolerance.clinicalStatus | required | AllergyIntoleranceClinicalStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1` from the FHIR Standard
AllergyIntolerance.verificationStatus | required | AllergyIntoleranceVerificationStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1` from the FHIR Standard
AllergyIntolerance.type | required | AllergyIntoleranceType `http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1` from the FHIR Standard
AllergyIntolerance.category | required | AllergyIntoleranceCategory `http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1` from the FHIR Standard
AllergyIntolerance.criticality | required | AllergyIntoleranceCriticality `http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1` from the FHIR Standard
AllergyIntolerance.code | extensible | AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-code` from the FHIR Standard
AllergyIntolerance.reaction.substance | extensible | SubstanceCode `http://hl7.org/fhir/ValueSet/substance-code` from the FHIR Standard
AllergyIntolerance.reaction.manifestation | extensible | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
AllergyIntolerance.reaction.severity | required | AllergyIntoleranceSeverity `http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1` from the FHIR Standard
AllergyIntolerance.reaction.exposureRoute | extensible | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` from the FHIR Standard

#### Constraints

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

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
AllergyIntolerance | C | 0..* | TWCoreAllergyIntolerance | 此IG將非FHIR標準的健康存摺JSON格式與目前次世代數位醫療平台採用的FHIR國際標準整合 ait-1: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error. ait-2: AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error
id | Σ | 0..1 | id | 不重複的ID用以識別儲存在特定FHIR Server中的AllergyIntolerance紀錄，通常又稱為邏輯性ID。
meta | Σ | 0..1 | Meta | 此AllergyIntolerance Resource的metadata
implicitRules | ?!Σ | 0..1 | uri | 創建此內容所依據的一組規則
language |  | 0..1 | code | 用以表述AllergyIntolerance Resource內容的語言。 Binding: CommonLanguages (preferred): 人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。
Additional Bindings | Purpose
AllLanguages | Max Binding
Example Value: zh-TW
text |  | 0..1 | Narrative | AllergyIntolerance Resource之內容摘要以供人閱讀
contained |  | 0..* | Resource | 內嵌的（contained）、行內的Resources
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?! | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
identifier | Σ | 0..* | Identifier | 過敏或不耐症之外部識別碼
clinicalStatus | S | 0..1 | CodeableConceptTW | active | inactive | resolved ，過敏或不耐症的臨床狀態。 Binding: AllergyIntoleranceClinicalStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
verificationStatus | S | 0..1 | CodeableConceptTW | unconfirmed | confirmed | refuted | entered-in-error ，一個人對特定物質產生反應的可能性或風險有多確定的陳述。 Binding: AllergyIntoleranceVerificationStatusCodes (required): 應填入所綁定值集中的其中一個代碼。
type | Σ | 0..1 | code | allergy | intolerance - 根本原因或運作機制（如果知道）。 Binding: AllergyIntoleranceType (required): 確定反應風險的基本生理機制；應填入所綁定值集中的其中一個代碼。
category | Σ | 0..* | code | food | medication | environment | biologic Binding: AllergyIntoleranceCategory (required): 確定的物質的類別；應填入所綁定值集中的其中一個代碼。
criticality | Σ | 0..1 | code | low | high | unable-to-assess Binding: AllergyIntoleranceCriticality (required): 對已識別物質的反應的潛在臨床危害程度，或稱嚴重性估計；應填入所綁定值集中的其中一個代碼。
code | S | 1..1 | CodeableConceptTW | 表明此過敏或不耐症的代碼 Binding: AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
patient | S Σ | 1..1 | Reference(TW Core Patient) | Patient Resource urn:uuid:ResourceID
encounter |  | 0..1 | Reference(TW Core Encounter) | 過敏或不耐症被確認時的就醫事件(Encounter)
onset[x] |  | 0..1 |  | 過敏或不耐症被識別的時間
onsetDateTime |  |  | dateTime |
onsetAge |  |  | Age |
onsetPeriod |  |  | Period |
onsetRange |  |  | Range |
onsetString |  |  | string |
recordedDate | S | 0..1 | dateTime | resource實例的第一個版本被記錄的日期
recorder | S | 0..1 | Reference(RelatedPerson) | 誰記錄了過敏或不耐受
asserter | Σ | 0..1 | Reference(TW Core Patient | RelatedPerson | TW Core Practitioner | TW Core PractitionerRole) | 關於過敏的資訊來源
lastOccurrence |  | 0..1 | dateTime | 最後一次已知反應發生的日期（/時間）
note | S | 0..* | Annotation | 其他欄位中沒有記錄的額外文字陳述
reaction | S | 0..* | BackboneElement | 暴露於此過敏或不耐症物質的不良反應
id |  | 0..1 | string | 唯一可識別ID，以供資料項目間相互參照。
extension |  | 0..* | Extension | 擴充的資料項目
modifierExtension | ?!Σ | 0..* | Extension | 此擴充的資料項目可能會完全修正或改變其他資料項目的意涵，需特別留意。
substance |  | 0..1 | CodeableConceptTW | 被認為是事件原因的特定物質或醫藥產品 Binding: SubstanceCode (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
manifestation | S | 1..* | CodeableConceptTW | 與此事件相關的臨床症狀/體徵 Binding: SNOMEDCTClinicalFindings (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
description |  | 0..1 | string | 對整個活動的描述
onset |  | 0..1 | dateTime | 症狀顯現的日期（/時間）
severity |  | 0..1 | code | mild | moderate | severe Binding: AllergyIntoleranceSeverity (required): 整個事件的程度，應填入所綁定值集中的其中一個代碼。
exposureRoute |  | 0..1 | CodeableConceptTW | 此對象如何接觸到該物質 Binding: SNOMEDCTRouteCodes (extensible): 應填入所綁定值集中適合的代碼，確定無適合的代碼才可以使用其他值集的代碼來表示。
note |  | 0..* | Annotation | 其他資料項目未記錄之關於事件的文字表述
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
AllergyIntolerance.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
AllergyIntolerance.clinicalStatus | required | AllergyIntoleranceClinicalStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1` from the FHIR Standard
AllergyIntolerance.verificationStatus | required | AllergyIntoleranceVerificationStatusCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-verification|4.0.1` from the FHIR Standard
AllergyIntolerance.type | required | AllergyIntoleranceType `http://hl7.org/fhir/ValueSet/allergy-intolerance-type|4.0.1` from the FHIR Standard
AllergyIntolerance.category | required | AllergyIntoleranceCategory `http://hl7.org/fhir/ValueSet/allergy-intolerance-category|4.0.1` from the FHIR Standard
AllergyIntolerance.criticality | required | AllergyIntoleranceCriticality `http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality|4.0.1` from the FHIR Standard
AllergyIntolerance.code | extensible | AllergyIntoleranceSubstance/Product,ConditionAndNegationCodes `http://hl7.org/fhir/ValueSet/allergyintolerance-code` from the FHIR Standard
AllergyIntolerance.reaction.substance | extensible | SubstanceCode `http://hl7.org/fhir/ValueSet/substance-code` from the FHIR Standard
AllergyIntolerance.reaction.manifestation | extensible | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
AllergyIntolerance.reaction.severity | required | AllergyIntoleranceSeverity `http://hl7.org/fhir/ValueSet/reaction-event-severity|4.0.1` from the FHIR Standard
AllergyIntolerance.reaction.exposureRoute | extensible | SNOMEDCTRouteCodes `http://hl7.org/fhir/ValueSet/route-codes` from the FHIR Standard

#### Constraints

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

This structure is derived from TWCoreAllergyIntolerance

Summary

Mandatory: 1 element
Must-Support: 9 elements

Other representations of profile: CSV, Excel, Schematron