臺灣長期照顧實作指引(TW LTC IG)
1.0.0 - STU 1.0.0

臺灣長期照顧實作指引(TW LTC IG), published by 經濟部產業發展署. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/Lorex/TWLongTermCare_IG_Build/ and changes regularly. See the Directory of published versions

## Resource Profile: 長期照顧－異常事件警報

Official URL: http://ltc-ig.fhir.tw/StructureDefinition/AdverseEvent-twltc | Version: 1.0.0
Active as of 2026-03-01 | Computable Name: LTCAdverseEvent

此 Profile 說明本 IG 如何進一步定義 FHIR 的 AdverseEvent Resource，以呈現長照個案異常事件的資料，包括事件類型、嚴重程度、發生時間、位置、通報方式、多段文字描述與關聯案件等資訊。同時適用於失智照顧及 SDK 異常服務通報場景。

Usages:

- Refer to this Profile: 個案總查詢（CS100 對應版）Case Summary
- Examples for this Profile: AdverseEvent/ltc-adverse-event-example, AdverseEvent/ltc-adverse-event-incident-example and AdverseEvent/ltc-adverseevent-cs100-example

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

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

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

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
AdverseEvent |  | 0..* | AdverseEvent | 異常事件警報的資訊
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:notifMethod | S | 0..* | CodeableConcept | 通報方式（如電話、機構通報等） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod Binding: 長照 SDK－異常紀錄－通報方式 (required)
extension:description | S | 0..* | (Complex) | 多段文字描述（事件描述、過程、處理、建議） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
extension:about | S | 0..* | Reference(EpisodeOfCare | CarePlan) | 關聯的案件（EpisodeOfCare）或照顧計畫（CarePlan） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..1 | Identifier | 異常事件警報的唯一識別碼
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official
system | S Σ | 1..1 | uri | 異常事件警報識別碼的系統識別符 Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 異常事件警報的唯一識別碼值 Example General: 123456
actuality | ?!S Σ | 1..1 | code | 異常事件的實際性 (實際的異常：actual / 潛在的異常：potential) Binding: AdverseEventActuality (required): Overall nature of the adverse event, e.g. real or potential.
event | S Σ | 0..1 | CodeableConcept | 異常事件類型 Binding: 長照 SDK－異常紀錄－異常類別 (extensible)
coding | S Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | 異常事件類型的描述
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 發生異常事件的個案
reference | S Σ C | 1..1 | string | 個案的參考
date | S Σ | 1..1 | dateTime | 異常事件實際發生的日期時間
detected | S Σ | 0..1 | dateTime | 異常事件被偵測到的日期時間
recordedDate | S Σ | 1..1 | dateTime | 異常事件被記錄的日期時間
resultingCondition | S Σ | 0..* | Reference(Condition) | 異常事件導致的結果狀況
reference | S Σ C | 1..1 | string | 結果狀況的參考 [應填入 Condition Resource ID]
location | S Σ | 0..1 | Reference(長期照顧－個案位置監測) | 異常事件發生的位置
reference | S Σ C | 1..1 | string | 位置的參考 [應填入 Location Resource ID]
seriousness | S Σ | 0..1 | CodeableConcept | 異常事件的臨床嚴重程度，指臨床上會對患者造成生命威脅或導致患者長期失能的風險程度 Binding: AdverseEventSeriousness (example): Overall seriousness of this event for the patient.
severity | S Σ | 0..1 | CodeableConcept | 異常事件本身的嚴重程度（輕微、中度、重度） Binding: AdverseEventSeverity (required): The severity of the adverse event itself, in direct relation to the subject.
outcome | S Σ | 0..1 | CodeableConcept | 異常事件的處理結果 Binding: AdverseEventOutcome (required): TODO (and should this be required?).
recorder | S Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | 記錄異常事件的人員
contributor | S Σ | 0..* | Reference(Practitioner | PractitionerRole | Device) | 涉及此異常事件的人員或設備
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
AdverseEvent.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
AdverseEvent.actuality | Base | required | AdverseEventActuality | 📍4.0.1 | FHIR Std.
AdverseEvent.event | Base | extensible | 長照 SDK－異常紀錄－異常類別 | 📦1.0.0 | This IG
AdverseEvent.seriousness | Base | example | AdverseEventSeriousness | 📍4.0.1 | FHIR Std.
AdverseEvent.severity | Base | required | AdverseEventSeverity | 📍4.0.1 | FHIR Std.
AdverseEvent.outcome | Base | required | AdverseEventOutcome | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | AdverseEvent | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | AdverseEvent | 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 | AdverseEvent | 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 | AdverseEvent | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | AdverseEvent | 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 AdverseEvent

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
AdverseEvent |  | 0..* | AdverseEvent | 異常事件警報的資訊
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:notifMethod | S | 0..* | CodeableConcept | 通報方式（如電話、機構通報等） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod Binding: 長照 SDK－異常紀錄－通報方式 (required)
extension:description | S | 0..* | (Complex) | 多段文字描述（事件描述、過程、處理、建議） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
extension:about | S | 0..* | Reference(EpisodeOfCare | CarePlan) | 關聯的案件（EpisodeOfCare）或照顧計畫（CarePlan） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About
identifier | S | 0..1 | Identifier | 異常事件警報的唯一識別碼
use | S | 0..1 | code | usual | official | temp | secondary | old (If known) Required Pattern: official
system | S | 1..1 | uri | 異常事件警報識別碼的系統識別符
value | S | 1..1 | string | 異常事件警報的唯一識別碼值
actuality | S | 1..1 | code | 異常事件的實際性 (實際的異常：actual / 潛在的異常：potential)
event | S | 0..1 | CodeableConcept | 異常事件類型 Binding: 長照 SDK－異常紀錄－異常類別 (extensible)
coding | S | 0..* | Coding | Code defined by a terminology system
text | S | 0..1 | string | 異常事件類型的描述
subject | S | 1..1 | Reference(長期照顧－住民基本資料) | 發生異常事件的個案
reference | S | 1..1 | string | 個案的參考
date | S | 1..1 | dateTime | 異常事件實際發生的日期時間
detected | S | 0..1 | dateTime | 異常事件被偵測到的日期時間
recordedDate | S | 1..1 | dateTime | 異常事件被記錄的日期時間
resultingCondition | S | 0..* | Reference(Condition) | 異常事件導致的結果狀況
reference | S | 1..1 | string | 結果狀況的參考 [應填入 Condition Resource ID]
location | S | 0..1 | Reference(長期照顧－個案位置監測) | 異常事件發生的位置
reference | S | 1..1 | string | 位置的參考 [應填入 Location Resource ID]
seriousness | S | 0..1 | CodeableConcept | 異常事件的臨床嚴重程度，指臨床上會對患者造成生命威脅或導致患者長期失能的風險程度
severity | S | 0..1 | CodeableConcept | 異常事件本身的嚴重程度（輕微、中度、重度）
outcome | S | 0..1 | CodeableConcept | 異常事件的處理結果
recorder | S | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | 記錄異常事件的人員
contributor | S | 0..* | Reference(Practitioner | PractitionerRole | Device) | 涉及此異常事件的人員或設備
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
AdverseEvent.event | Base | extensible | 長照 SDK－異常紀錄－異常類別 | 📦1.0.0 | This IG

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
AdverseEvent |  | 0..* | AdverseEvent | 異常事件警報的資訊
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:notifMethod | S | 0..* | CodeableConcept | 通報方式（如電話、機構通報等） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod Binding: 長照 SDK－異常紀錄－通報方式 (required)
extension:description | S | 0..* | (Complex) | 多段文字描述（事件描述、過程、處理、建議） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
extension:about | S | 0..* | Reference(EpisodeOfCare | CarePlan) | 關聯的案件（EpisodeOfCare）或照顧計畫（CarePlan） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..1 | Identifier | 異常事件警報的唯一識別碼
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
system | S Σ | 1..1 | uri | 異常事件警報識別碼的系統識別符 Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 異常事件警報的唯一識別碼值 Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
actuality | ?!S Σ | 1..1 | code | 異常事件的實際性 (實際的異常：actual / 潛在的異常：potential) Binding: AdverseEventActuality (required): Overall nature of the adverse event, e.g. real or potential.
category | Σ | 0..* | CodeableConcept | product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment Binding: AdverseEventCategory (extensible): Overall categorization of the event, e.g. product-related or situational.
event | S Σ | 0..1 | CodeableConcept | 異常事件類型 Binding: 長照 SDK－異常紀錄－異常類別 (extensible)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | 異常事件類型的描述
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 發生異常事件的個案
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 個案的參考
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
date | S Σ | 1..1 | dateTime | 異常事件實際發生的日期時間
detected | S Σ | 0..1 | dateTime | 異常事件被偵測到的日期時間
recordedDate | S Σ | 1..1 | dateTime | 異常事件被記錄的日期時間
resultingCondition | S Σ | 0..* | Reference(Condition) | 異常事件導致的結果狀況
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 結果狀況的參考 [應填入 Condition Resource ID]
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
location | S Σ | 0..1 | Reference(長期照顧－個案位置監測) | 異常事件發生的位置
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 位置的參考 [應填入 Location Resource ID]
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
seriousness | S Σ | 0..1 | CodeableConcept | 異常事件的臨床嚴重程度，指臨床上會對患者造成生命威脅或導致患者長期失能的風險程度 Binding: AdverseEventSeriousness (example): Overall seriousness of this event for the patient.
severity | S Σ | 0..1 | CodeableConcept | 異常事件本身的嚴重程度（輕微、中度、重度） Binding: AdverseEventSeverity (required): The severity of the adverse event itself, in direct relation to the subject.
outcome | S Σ | 0..1 | CodeableConcept | 異常事件的處理結果 Binding: AdverseEventOutcome (required): TODO (and should this be required?).
recorder | S Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | 記錄異常事件的人員
contributor | S Σ | 0..* | Reference(Practitioner | PractitionerRole | Device) | 涉及此異常事件的人員或設備
suspectEntity | Σ | 0..* | BackboneElement | The suspected agent causing the adverse event
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
instance | Σ | 1..1 | Reference(Immunization | Procedure | Substance | Medication | MedicationAdministration | MedicationStatement | Device) | Refers to the specific entity that caused the adverse event
causality | Σ | 0..* | BackboneElement | Information on the possible cause of the event
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
assessment | Σ | 0..1 | CodeableConcept | Assessment of if the entity caused the event Binding: AdverseEventCausalityAssessment (example): Codes for the assessment of whether the entity caused the event.
productRelatedness | Σ | 0..1 | string | AdverseEvent.suspectEntity.causalityProductRelatedness
author | Σ | 0..1 | Reference(Practitioner | PractitionerRole) | AdverseEvent.suspectEntity.causalityAuthor
method | Σ | 0..1 | CodeableConcept | ProbabilityScale | Bayesian | Checklist Binding: AdverseEventCausalityMethod (example): TODO.
subjectMedicalHistory | Σ | 0..* | Reference(Condition | Observation | AllergyIntolerance | FamilyMemberHistory | Immunization | Procedure | Media | DocumentReference) | AdverseEvent.subjectMedicalHistory
referenceDocument | Σ | 0..* | Reference(DocumentReference) | AdverseEvent.referenceDocument
study | Σ | 0..* | Reference(ResearchStudy) | AdverseEvent.study
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
AdverseEvent.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
AdverseEvent.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
AdverseEvent.identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
AdverseEvent.actuality | Base | required | AdverseEventActuality | 📍4.0.1 | FHIR Std.
AdverseEvent.category | Base | extensible | AdverseEventCategory | 📍4.0.1 | FHIR Std.
AdverseEvent.event | Base | extensible | 長照 SDK－異常紀錄－異常類別 | 📦1.0.0 | This IG
AdverseEvent.subject.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
AdverseEvent.resultingCondition.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
AdverseEvent.location.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
AdverseEvent.seriousness | Base | example | AdverseEventSeriousness | 📍4.0.1 | FHIR Std.
AdverseEvent.severity | Base | required | AdverseEventSeverity | 📍4.0.1 | FHIR Std.
AdverseEvent.outcome | Base | required | AdverseEventOutcome | 📍4.0.1 | FHIR Std.
AdverseEvent.suspectEntity.​causality.assessment | Base | example | AdverseEventCausalityAssessment | 📍4.0.1 | FHIR Std.
AdverseEvent.suspectEntity.​causality.method | Base | example | AdverseEventCausalityMethod | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | AdverseEvent | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | AdverseEvent | 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 | AdverseEvent | 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 | AdverseEvent | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | AdverseEvent | 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 AdverseEvent

Summary

Mandatory: 3 elements(4 nested mandatory elements)
Must-Support: 25 elements

Structures

This structure refers to these other structures:

- 長期照顧－住民基本資料 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPatient)
- 長期照顧－個案位置監測 (http://ltc-ig.fhir.tw/StructureDefinition/Location-twltc)

Extensions

This structure refers to these extensions:

- http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod
- http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
- http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
AdverseEvent |  | 0..* | AdverseEvent | 異常事件警報的資訊
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:notifMethod | S | 0..* | CodeableConcept | 通報方式（如電話、機構通報等） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod Binding: 長照 SDK－異常紀錄－通報方式 (required)
extension:description | S | 0..* | (Complex) | 多段文字描述（事件描述、過程、處理、建議） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
extension:about | S | 0..* | Reference(EpisodeOfCare | CarePlan) | 關聯的案件（EpisodeOfCare）或照顧計畫（CarePlan） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..1 | Identifier | 異常事件警報的唯一識別碼
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official
system | S Σ | 1..1 | uri | 異常事件警報識別碼的系統識別符 Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 異常事件警報的唯一識別碼值 Example General: 123456
actuality | ?!S Σ | 1..1 | code | 異常事件的實際性 (實際的異常：actual / 潛在的異常：potential) Binding: AdverseEventActuality (required): Overall nature of the adverse event, e.g. real or potential.
event | S Σ | 0..1 | CodeableConcept | 異常事件類型 Binding: 長照 SDK－異常紀錄－異常類別 (extensible)
coding | S Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | 異常事件類型的描述
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 發生異常事件的個案
reference | S Σ C | 1..1 | string | 個案的參考
date | S Σ | 1..1 | dateTime | 異常事件實際發生的日期時間
detected | S Σ | 0..1 | dateTime | 異常事件被偵測到的日期時間
recordedDate | S Σ | 1..1 | dateTime | 異常事件被記錄的日期時間
resultingCondition | S Σ | 0..* | Reference(Condition) | 異常事件導致的結果狀況
reference | S Σ C | 1..1 | string | 結果狀況的參考 [應填入 Condition Resource ID]
location | S Σ | 0..1 | Reference(長期照顧－個案位置監測) | 異常事件發生的位置
reference | S Σ C | 1..1 | string | 位置的參考 [應填入 Location Resource ID]
seriousness | S Σ | 0..1 | CodeableConcept | 異常事件的臨床嚴重程度，指臨床上會對患者造成生命威脅或導致患者長期失能的風險程度 Binding: AdverseEventSeriousness (example): Overall seriousness of this event for the patient.
severity | S Σ | 0..1 | CodeableConcept | 異常事件本身的嚴重程度（輕微、中度、重度） Binding: AdverseEventSeverity (required): The severity of the adverse event itself, in direct relation to the subject.
outcome | S Σ | 0..1 | CodeableConcept | 異常事件的處理結果 Binding: AdverseEventOutcome (required): TODO (and should this be required?).
recorder | S Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | 記錄異常事件的人員
contributor | S Σ | 0..* | Reference(Practitioner | PractitionerRole | Device) | 涉及此異常事件的人員或設備
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
AdverseEvent.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
AdverseEvent.actuality | Base | required | AdverseEventActuality | 📍4.0.1 | FHIR Std.
AdverseEvent.event | Base | extensible | 長照 SDK－異常紀錄－異常類別 | 📦1.0.0 | This IG
AdverseEvent.seriousness | Base | example | AdverseEventSeriousness | 📍4.0.1 | FHIR Std.
AdverseEvent.severity | Base | required | AdverseEventSeverity | 📍4.0.1 | FHIR Std.
AdverseEvent.outcome | Base | required | AdverseEventOutcome | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | AdverseEvent | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | AdverseEvent | 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 | AdverseEvent | 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 | AdverseEvent | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | AdverseEvent | 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()`

Differential View

This structure is derived from AdverseEvent

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
AdverseEvent |  | 0..* | AdverseEvent | 異常事件警報的資訊
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:notifMethod | S | 0..* | CodeableConcept | 通報方式（如電話、機構通報等） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod Binding: 長照 SDK－異常紀錄－通報方式 (required)
extension:description | S | 0..* | (Complex) | 多段文字描述（事件描述、過程、處理、建議） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
extension:about | S | 0..* | Reference(EpisodeOfCare | CarePlan) | 關聯的案件（EpisodeOfCare）或照顧計畫（CarePlan） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About
identifier | S | 0..1 | Identifier | 異常事件警報的唯一識別碼
use | S | 0..1 | code | usual | official | temp | secondary | old (If known) Required Pattern: official
system | S | 1..1 | uri | 異常事件警報識別碼的系統識別符
value | S | 1..1 | string | 異常事件警報的唯一識別碼值
actuality | S | 1..1 | code | 異常事件的實際性 (實際的異常：actual / 潛在的異常：potential)
event | S | 0..1 | CodeableConcept | 異常事件類型 Binding: 長照 SDK－異常紀錄－異常類別 (extensible)
coding | S | 0..* | Coding | Code defined by a terminology system
text | S | 0..1 | string | 異常事件類型的描述
subject | S | 1..1 | Reference(長期照顧－住民基本資料) | 發生異常事件的個案
reference | S | 1..1 | string | 個案的參考
date | S | 1..1 | dateTime | 異常事件實際發生的日期時間
detected | S | 0..1 | dateTime | 異常事件被偵測到的日期時間
recordedDate | S | 1..1 | dateTime | 異常事件被記錄的日期時間
resultingCondition | S | 0..* | Reference(Condition) | 異常事件導致的結果狀況
reference | S | 1..1 | string | 結果狀況的參考 [應填入 Condition Resource ID]
location | S | 0..1 | Reference(長期照顧－個案位置監測) | 異常事件發生的位置
reference | S | 1..1 | string | 位置的參考 [應填入 Location Resource ID]
seriousness | S | 0..1 | CodeableConcept | 異常事件的臨床嚴重程度，指臨床上會對患者造成生命威脅或導致患者長期失能的風險程度
severity | S | 0..1 | CodeableConcept | 異常事件本身的嚴重程度（輕微、中度、重度）
outcome | S | 0..1 | CodeableConcept | 異常事件的處理結果
recorder | S | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | 記錄異常事件的人員
contributor | S | 0..* | Reference(Practitioner | PractitionerRole | Device) | 涉及此異常事件的人員或設備
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
AdverseEvent.event | Base | extensible | 長照 SDK－異常紀錄－異常類別 | 📦1.0.0 | This IG

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
AdverseEvent |  | 0..* | AdverseEvent | 異常事件警報的資訊
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:notifMethod | S | 0..* | CodeableConcept | 通報方式（如電話、機構通報等） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod Binding: 長照 SDK－異常紀錄－通報方式 (required)
extension:description | S | 0..* | (Complex) | 多段文字描述（事件描述、過程、處理、建議） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
extension:about | S | 0..* | Reference(EpisodeOfCare | CarePlan) | 關聯的案件（EpisodeOfCare）或照顧計畫（CarePlan） URL: http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S Σ | 0..1 | Identifier | 異常事件警報的唯一識別碼
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!S Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known . Required Pattern: official
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
system | S Σ | 1..1 | uri | 異常事件警報識別碼的系統識別符 Example General: http://www.acme.com/identifiers/patient
value | S Σ | 1..1 | string | 異常事件警報的唯一識別碼值 Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
actuality | ?!S Σ | 1..1 | code | 異常事件的實際性 (實際的異常：actual / 潛在的異常：potential) Binding: AdverseEventActuality (required): Overall nature of the adverse event, e.g. real or potential.
category | Σ | 0..* | CodeableConcept | product-problem | product-quality | product-use-error | wrong-dose | incorrect-prescribing-information | wrong-technique | wrong-route-of-administration | wrong-rate | wrong-duration | wrong-time | expired-drug | medical-device-use-error | problem-different-manufacturer | unsafe-physical-environment Binding: AdverseEventCategory (extensible): Overall categorization of the event, e.g. product-related or situational.
event | S Σ | 0..1 | CodeableConcept | 異常事件類型 Binding: 長照 SDK－異常紀錄－異常類別 (extensible)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | 異常事件類型的描述
subject | S Σ | 1..1 | Reference(長期照顧－住民基本資料) | 發生異常事件的個案
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 個案的參考
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
date | S Σ | 1..1 | dateTime | 異常事件實際發生的日期時間
detected | S Σ | 0..1 | dateTime | 異常事件被偵測到的日期時間
recordedDate | S Σ | 1..1 | dateTime | 異常事件被記錄的日期時間
resultingCondition | S Σ | 0..* | Reference(Condition) | 異常事件導致的結果狀況
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 結果狀況的參考 [應填入 Condition Resource ID]
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
location | S Σ | 0..1 | Reference(長期照顧－個案位置監測) | 異常事件發生的位置
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | S Σ C | 1..1 | string | 位置的參考 [應填入 Location Resource ID]
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
seriousness | S Σ | 0..1 | CodeableConcept | 異常事件的臨床嚴重程度，指臨床上會對患者造成生命威脅或導致患者長期失能的風險程度 Binding: AdverseEventSeriousness (example): Overall seriousness of this event for the patient.
severity | S Σ | 0..1 | CodeableConcept | 異常事件本身的嚴重程度（輕微、中度、重度） Binding: AdverseEventSeverity (required): The severity of the adverse event itself, in direct relation to the subject.
outcome | S Σ | 0..1 | CodeableConcept | 異常事件的處理結果 Binding: AdverseEventOutcome (required): TODO (and should this be required?).
recorder | S Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | 記錄異常事件的人員
contributor | S Σ | 0..* | Reference(Practitioner | PractitionerRole | Device) | 涉及此異常事件的人員或設備
suspectEntity | Σ | 0..* | BackboneElement | The suspected agent causing the adverse event
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
instance | Σ | 1..1 | Reference(Immunization | Procedure | Substance | Medication | MedicationAdministration | MedicationStatement | Device) | Refers to the specific entity that caused the adverse event
causality | Σ | 0..* | BackboneElement | Information on the possible cause of the event
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
assessment | Σ | 0..1 | CodeableConcept | Assessment of if the entity caused the event Binding: AdverseEventCausalityAssessment (example): Codes for the assessment of whether the entity caused the event.
productRelatedness | Σ | 0..1 | string | AdverseEvent.suspectEntity.causalityProductRelatedness
author | Σ | 0..1 | Reference(Practitioner | PractitionerRole) | AdverseEvent.suspectEntity.causalityAuthor
method | Σ | 0..1 | CodeableConcept | ProbabilityScale | Bayesian | Checklist Binding: AdverseEventCausalityMethod (example): TODO.
subjectMedicalHistory | Σ | 0..* | Reference(Condition | Observation | AllergyIntolerance | FamilyMemberHistory | Immunization | Procedure | Media | DocumentReference) | AdverseEvent.subjectMedicalHistory
referenceDocument | Σ | 0..* | Reference(DocumentReference) | AdverseEvent.referenceDocument
study | Σ | 0..* | Reference(ResearchStudy) | AdverseEvent.study
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
AdverseEvent.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
AdverseEvent.identifier.​use | Base | required | IdentifierUse | 📍4.0.1 | FHIR Std.
AdverseEvent.identifier.​type | Base | extensible | IdentifierType | 📍4.0.1 | FHIR Std.
AdverseEvent.actuality | Base | required | AdverseEventActuality | 📍4.0.1 | FHIR Std.
AdverseEvent.category | Base | extensible | AdverseEventCategory | 📍4.0.1 | FHIR Std.
AdverseEvent.event | Base | extensible | 長照 SDK－異常紀錄－異常類別 | 📦1.0.0 | This IG
AdverseEvent.subject.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
AdverseEvent.resultingCondition.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
AdverseEvent.location.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
AdverseEvent.seriousness | Base | example | AdverseEventSeriousness | 📍4.0.1 | FHIR Std.
AdverseEvent.severity | Base | required | AdverseEventSeverity | 📍4.0.1 | FHIR Std.
AdverseEvent.outcome | Base | required | AdverseEventOutcome | 📍4.0.1 | FHIR Std.
AdverseEvent.suspectEntity.​causality.assessment | Base | example | AdverseEventCausalityAssessment | 📍4.0.1 | FHIR Std.
AdverseEvent.suspectEntity.​causality.method | Base | example | AdverseEventCausalityMethod | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | AdverseEvent | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | AdverseEvent | 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 | AdverseEvent | 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 | AdverseEvent | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | AdverseEvent | 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 AdverseEvent

Summary

Mandatory: 3 elements(4 nested mandatory elements)
Must-Support: 25 elements

Structures

This structure refers to these other structures:

- 長期照顧－住民基本資料 (http://ltc-ig.fhir.tw/StructureDefinition/LTCPatient)
- 長期照顧－個案位置監測 (http://ltc-ig.fhir.tw/StructureDefinition/Location-twltc)

Extensions

This structure refers to these extensions:

- http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-NotifMethod
- http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-Description
- http://ltc-ig.fhir.tw/StructureDefinition/Ext-TW-LTC-AdverseEvent-About

Other representations of profile: CSV, Excel, Schematron