TWMedicationStatement
type: StructureDefinition
node role: treeRoot
id:
  v: TWMedicationStatement
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition TWMedicationStatement Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> TWMedicationStatement 0..* Base 臺灣核心-用藥聲明(TW Core MedicationStatement) 之資料模型 #xD; identifier 0..* Identifier 用藥聲明的外部識別碼。 #xD; status 1..1 code 一個編碼概念，用以指明用藥聲明的當前狀態。 #xD; category 0..1 CodeableConceptTW 一個編碼概念，用以識別用藥聲明中包含的藥品預期將在哪裡被服用或用藥。 #xD; medication 1..1 BackboneElement 服用的藥品。 #xD; medication 0..1 Medication 藥品的定義。 #xD; code 0..1 CodeableConcept 服用的藥品。 #xD; subject 1..1 BackboneElement 用藥聲明的對象。 #xD; patient 0..1 Patient 用藥聲明的某病人。 #xD; group 0..1 Group 用藥聲明的某團體/群體。 #xD; context 0..1 BackboneElement 與此用藥聲明密切相關的就醫事件(Encounter / Episode)。 #xD; encounter 0..1 Encounter 與此用藥聲明密切相關的某就醫事件。 #xD; episodeOfCare 0..1 EpisodeOfCare 與此用藥聲明密切相關的某照護事件。 #xD; effective 0..1 BackboneElement 用藥的日期/時間或間隔。 #xD; dosage 0..* Dosage 藥品現在如何被/曾經被服用或應該如何服用的細節。 #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWMedicationStatement
  l: TWMedicationStatement
version:
  v: 1.0.0
name:
  v: TWMedicationStatementModel
title:
  v: 臺灣核心-用藥聲明(TW Core MedicationStatement) 之資料模型
status:
  v: active
date:
  v: 2026-05-22T02:39:29+00:00
contact:
  name:
    v: 衛生福利部
  telecom:
    system:
      v: url
    value:
      v: https://www.mohw.gov.tw/
  telecom:
    system:
      v: email
description:
  v: 臺灣核心-用藥聲明(TW Core MedicationStatement) 之資料模型
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: TWMedicationStatement
  uri:
    v: https://twcore.mohw.gov.tw/ig/twcore
    l: twcore
  name:
    v: TW Core IG
kind:
  v: logical
abstract:
  v: false
type:
  v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/TWMedicationStatement
  l: TWMedicationStatement
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: TWMedicationStatement
    path:
      v: TWMedicationStatement
    short:
      v: 臺灣核心-用藥聲明(TW Core MedicationStatement) 之資料模型
    definition:
      v: 臺灣核心-用藥聲明(TW Core MedicationStatement) 之資料模型
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: TWMedicationStatement
      map:
        v: TWCoreMedicationStatement
  element:
    id:
      v: TWMedicationStatement.identifier
    path:
      v: TWMedicationStatement.identifier
    short:
      v: 用藥聲明的外部識別碼。
    definition:
      v: 用藥聲明的外部識別碼。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: TWMedicationStatement.identifier
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Identifier
        l: Identifier
    mapping:
      identity:
        v: TWMedicationStatement
      map:
        v: TWCoreMedicationStatement.identifier
  element:
    id:
      v: TWMedicationStatement.status
    path:
      v: TWMedicationStatement.status
    short:
      v: 一個編碼概念，用以指明用藥聲明的當前狀態。
    definition:
      v: 一個編碼概念，用以指明用藥聲明的當前狀態。
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: TWMedicationStatement.status
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: code
        l: code
    mapping:
      identity:
        v: TWMedicationStatement
      map:
        v: TWCoreMedicationStatement.status
  element:
    id:
      v: TWMedicationStatement.category
    path:
      v: TWMedicationStatement.category
    short:
      v: 一個編碼概念，用以識別用藥聲明中包含的藥品預期將在哪裡被服用或用藥。
    definition:
      v: 一個編碼概念，用以識別用藥聲明中包含的藥品預期將在哪裡被服用或用藥。
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: TWMedicationStatement.category
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: CodeableConcept
        l: CodeableConcept
      profile:
        v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
        l: CodeableConcept-tw
    mapping:
      identity:
        v: TWMedicationStatement
      map:
        v: TWCoreMedicationStatement.category
  element:
    id:
      v: TWMedicationStatement.medication
    path:
      v: TWMedicationStatement.medication
    short:
      v: 服用的藥品。
    definition:
      v: 服用的藥品。
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: TWMedicationStatement.medication
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: BackboneElement
        l: BackboneElement

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element

id:
  v: TWMedicationStatement.medication.id
path:
  v: TWMedicationStatement.medication.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TWMedicationStatement.medication.extension
path:
  v: TWMedicationStatement.medication.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TWMedicationStatement.medication.modifierExtension
path:
  v: TWMedicationStatement.medication.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TWMedicationStatement.medication.medication
path:
  v: TWMedicationStatement.medication.medication
short:
  v: 藥品的定義。
definition:
  v: 藥品的定義。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.medication.medication
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Medication
    l: Medication
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.Medication

id:
  v: TWMedicationStatement.medication.code
path:
  v: TWMedicationStatement.medication.code
short:
  v: 服用的藥品。
definition:
  v: 服用的藥品。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.medication.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.Medication.code

id:
  v: TWMedicationStatement.subject
path:
  v: TWMedicationStatement.subject
short:
  v: 用藥聲明的對象。
definition:
  v: 用藥聲明的對象。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TWMedicationStatement.subject.id
path:
  v: TWMedicationStatement.subject.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TWMedicationStatement.subject.extension
path:
  v: TWMedicationStatement.subject.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TWMedicationStatement.subject.modifierExtension
path:
  v: TWMedicationStatement.subject.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TWMedicationStatement.subject.patient
path:
  v: TWMedicationStatement.subject.patient
short:
  v: 用藥聲明的某病人。
definition:
  v: 用藥聲明的某病人。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.subject.patient
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Patient
    l: Patient
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.subject.Reference(TW Core Patient)

id:
  v: TWMedicationStatement.subject.group
path:
  v: TWMedicationStatement.subject.group
short:
  v: 用藥聲明的某團體/群體。
definition:
  v: 用藥聲明的某團體/群體。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.subject.group
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Group
    l: Group
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.subject.Reference(Group)

id:
  v: TWMedicationStatement.context
path:
  v: TWMedicationStatement.context
short:
  v: 與此用藥聲明密切相關的就醫事件(Encounter / Episode)。
definition:
  v: 與此用藥聲明密切相關的就醫事件(Encounter / Episode)。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.context
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TWMedicationStatement.context.id
path:
  v: TWMedicationStatement.context.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TWMedicationStatement.context.extension
path:
  v: TWMedicationStatement.context.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TWMedicationStatement.context.modifierExtension
path:
  v: TWMedicationStatement.context.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TWMedicationStatement.context.encounter
path:
  v: TWMedicationStatement.context.encounter
short:
  v: 與此用藥聲明密切相關的某就醫事件。
definition:
  v: 與此用藥聲明密切相關的某就醫事件。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.context.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Encounter
    l: Encounter
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.context.Reference(TW Core Encounter)

id:
  v: TWMedicationStatement.context.episodeOfCare
path:
  v: TWMedicationStatement.context.episodeOfCare
short:
  v: 與此用藥聲明密切相關的某照護事件。
definition:
  v: 與此用藥聲明密切相關的某照護事件。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.context.episodeOfCare
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: EpisodeOfCare
    l: EpisodeOfCare
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.context.Reference(episodeOfCare)

id:
  v: TWMedicationStatement.effective
path:
  v: TWMedicationStatement.effective
short:
  v: 用藥的日期/時間或間隔。
definition:
  v: 用藥的日期/時間或間隔。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationStatement.effective
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.effective

id:
  v: TWMedicationStatement.dosage
path:
  v: TWMedicationStatement.dosage
short:
  v: 藥品現在如何被/曾經被服用或應該如何服用的細節。
definition:
  v: 藥品現在如何被/曾經被服用或應該如何服用的細節。
min:
  v: 0
max:
  v: *
base:
  path:
    v: TWMedicationStatement.dosage
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Dosage
    l: Dosage
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.dosage

element:
  id:
    v: TWMedicationStatement
  path:
    v: TWMedicationStatement
  short:
    v: 臺灣核心-用藥聲明(TW Core MedicationStatement) 之資料模型
  definition:
    v: 臺灣核心-用藥聲明(TW Core MedicationStatement) 之資料模型
  mapping:
    identity:
      v: TWMedicationStatement
    map:
      v: TWCoreMedicationStatement
element:
  id:
    v: TWMedicationStatement.identifier
  path:
    v: TWMedicationStatement.identifier
  short:
    v: 用藥聲明的外部識別碼。
  definition:
    v: 用藥聲明的外部識別碼。
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: TWMedicationStatement
    map:
      v: TWCoreMedicationStatement.identifier
element:
  id:
    v: TWMedicationStatement.status
  path:
    v: TWMedicationStatement.status
  short:
    v: 一個編碼概念，用以指明用藥聲明的當前狀態。
  definition:
    v: 一個編碼概念，用以指明用藥聲明的當前狀態。
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  mapping:
    identity:
      v: TWMedicationStatement
    map:
      v: TWCoreMedicationStatement.status
element:
  id:
    v: TWMedicationStatement.category
  path:
    v: TWMedicationStatement.category
  short:
    v: 一個編碼概念，用以識別用藥聲明中包含的藥品預期將在哪裡被服用或用藥。
  definition:
    v: 一個編碼概念，用以識別用藥聲明中包含的藥品預期將在哪裡被服用或用藥。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
    profile:
      v: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw
      l: CodeableConcept-tw
  mapping:
    identity:
      v: TWMedicationStatement
    map:
      v: TWCoreMedicationStatement.category
element:
  id:
    v: TWMedicationStatement.medication
  path:
    v: TWMedicationStatement.medication
  short:
    v: 服用的藥品。
  definition:
    v: 服用的藥品。
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: TWMedicationStatement.medication.medication
  path:
    v: TWMedicationStatement.medication.medication
  short:
    v: 藥品的定義。
  definition:
    v: 藥品的定義。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Medication
      l: Medication
  mapping:
    identity:
      v: TWMedicationStatement
    map:
      v: TWCoreMedicationStatement.Medication
element:
  id:
    v: TWMedicationStatement.medication.code
  path:
    v: TWMedicationStatement.medication.code
  short:
    v: 服用的藥品。
  definition:
    v: 服用的藥品。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: TWMedicationStatement
    map:
      v: TWCoreMedicationStatement.Medication.code
element:
  id:
    v: TWMedicationStatement.subject
  path:
    v: TWMedicationStatement.subject
  short:
    v: 用藥聲明的對象。
  definition:
    v: 用藥聲明的對象。
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: TWMedicationStatement.subject.patient
  path:
    v: TWMedicationStatement.subject.patient
  short:
    v: 用藥聲明的某病人。
  definition:
    v: 用藥聲明的某病人。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Patient
      l: Patient
  mapping:
    identity:
      v: TWMedicationStatement
    map:
      v: TWCoreMedicationStatement.subject.Reference(TW Core Patient)
element:
  id:
    v: TWMedicationStatement.subject.group
  path:
    v: TWMedicationStatement.subject.group
  short:
    v: 用藥聲明的某團體/群體。
  definition:
    v: 用藥聲明的某團體/群體。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Group
      l: Group
  mapping:
    identity:
      v: TWMedicationStatement

v: TWCoreMedicationStatement.subject.Reference(Group)

id:
  v: TWMedicationStatement.context
path:
  v: TWMedicationStatement.context
short:
  v: 與此用藥聲明密切相關的就醫事件(Encounter / Episode)。
definition:
  v: 與此用藥聲明密切相關的就醫事件(Encounter / Episode)。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: TWMedicationStatement.context.encounter
path:
  v: TWMedicationStatement.context.encounter
short:
  v: 與此用藥聲明密切相關的某就醫事件。
definition:
  v: 與此用藥聲明密切相關的某就醫事件。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Encounter
    l: Encounter
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.context.Reference(TW Core Encounter)

id:
  v: TWMedicationStatement.context.episodeOfCare
path:
  v: TWMedicationStatement.context.episodeOfCare
short:
  v: 與此用藥聲明密切相關的某照護事件。
definition:
  v: 與此用藥聲明密切相關的某照護事件。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: EpisodeOfCare
    l: EpisodeOfCare
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.context.Reference(episodeOfCare)

id:
  v: TWMedicationStatement.effective
path:
  v: TWMedicationStatement.effective
short:
  v: 用藥的日期/時間或間隔。
definition:
  v: 用藥的日期/時間或間隔。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.effective

id:
  v: TWMedicationStatement.dosage
path:
  v: TWMedicationStatement.dosage
short:
  v: 藥品現在如何被/曾經被服用或應該如何服用的細節。
definition:
  v: 藥品現在如何被/曾經被服用或應該如何服用的細節。
min:
  v: 0
max:
  v: *
type:
  code:
    v: Dosage
    l: Dosage
mapping:
  identity:
    v: TWMedicationStatement
  map:
    v: TWCoreMedicationStatement.dosage