TWMedicationDispense
type: StructureDefinition
node role: treeRoot
id:
  v: TWMedicationDispense
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition TWMedicationDispense Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> TWMedicationDispense 0..* Base 臺灣核心-配藥或藥品調劑(TW Core MedicationDispense) 之資料模型 #xD; identifier 0..* Identifier 配藥/藥品調劑的外部識別碼。 #xD; status 1..1 code 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態。 #xD; category 0..1 CodeableConcept 配藥/藥品調劑的類別，描述預期將服用或用藥的地點之代碼。 #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 Encounter 與此配藥/藥品調劑密切相關的就醫事件(Encounter/Episode)。 #xD; performer 0..* BackboneElement 執行此配藥/藥品調劑的人員。 #xD; authorizingPrescription 0..* MedicationRequest 授權此配藥/藥品調劑的處方。 #xD; type 0..1 CodeableConcept 執行的配藥/藥品調劑事件類型。例如：試用填充、試用完成、部分填充、緊急填充、樣品等 #xD; quantity 0..1 SimpleQuantity 配藥/藥品調劑的量。 #xD; whenHandedOver 0..1 dateTime 藥品發放的時間。 #xD; dosageInstruction 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/TWMedicationDispense
  l: TWMedicationDispense
version:
  v: 0.3.3
name:
  v: TWMedicationDispenseModel
title:
  v: 臺灣核心-配藥或藥品調劑(TW Core MedicationDispense) 之資料模型
status:
  v: active
date:
  v: 2025-11-21T02:34:57+00:00
contact:
  name:
    v: 衛生福利部
  telecom:
    system:
      v: url
    value:
      v: https://www.mohw.gov.tw/
  telecom:
    system:
      v: email
description:
  v: 臺灣核心-配藥或藥品調劑(TW Core MedicationDispense) 之資料模型
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: TWMedicationDispense
  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/TWMedicationDispense
  l: TWMedicationDispense
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: TWMedicationDispense
    path:
      v: TWMedicationDispense
    short:
      v: 臺灣核心-配藥或藥品調劑(TW Core MedicationDispense) 之資料模型
    definition:
      v: 臺灣核心-配藥或藥品調劑(TW Core MedicationDispense) 之資料模型
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: TWMedicationDispense
      map:
        v: TWCoreMedicationDispense
  element:
    id:
      v: TWMedicationDispense.identifier
    path:
      v: TWMedicationDispense.identifier
    short:
      v: 配藥/藥品調劑的外部識別碼。
    definition:
      v: 配藥/藥品調劑的外部識別碼。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: TWMedicationDispense.identifier
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Identifier
        l: Identifier
    mapping:
      identity:
        v: TWMedicationDispense
      map:
        v: TWCoreMedicationDispense.identifier
  element:
    id:
      v: TWMedicationDispense.status
    path:
      v: TWMedicationDispense.status
    short:
      v: 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態。
    definition:
      v: 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態。
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: TWMedicationDispense.status
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: code
        l: code
    mapping:
      identity:
        v: TWMedicationDispense
      map:
        v: TWCoreMedicationDispense.status
  element:
    id:
      v: TWMedicationDispense.category
    path:
      v: TWMedicationDispense.category
    short:
      v: 配藥/藥品調劑的類別，描述預期將服用或用藥的地點之代碼。
    definition:
      v: 配藥/藥品調劑的類別，描述預期將服用或用藥的地點之代碼。
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: TWMedicationDispense.category
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: CodeableConcept
        l: CodeableConcept
    mapping:
      identity:
        v: TWMedicationDispense
      map:
        v: TWCoreMedicationDispense.category
  element:
    id:
      v: TWMedicationDispense.medication
    path:
      v: TWMedicationDispense.medication
    short:
      v: 服用的藥品。
    definition:
      v: 服用的藥品。
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: TWMedicationDispense.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: TWMedicationDispense.medication.id
path:
  v: TWMedicationDispense.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: TWMedicationDispense.medication.extension
path:
  v: TWMedicationDispense.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: TWMedicationDispense.medication.modifierExtension
path:
  v: TWMedicationDispense.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: TWMedicationDispense.medication.medication
path:
  v: TWMedicationDispense.medication.medication
short:
  v: 藥品的定義。
definition:
  v: 藥品的定義。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.medication.medication
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Medication
    l: Medication
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.Medication

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

id:
  v: TWMedicationDispense.subject
path:
  v: TWMedicationDispense.subject
short:
  v: 配藥/藥品調劑的對象。
definition:
  v: 配藥/藥品調劑的對象。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.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: TWMedicationDispense.subject.id
path:
  v: TWMedicationDispense.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: TWMedicationDispense.subject.extension
path:
  v: TWMedicationDispense.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: TWMedicationDispense.subject.modifierExtension
path:
  v: TWMedicationDispense.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: TWMedicationDispense.subject.patient
path:
  v: TWMedicationDispense.subject.patient
short:
  v: 配藥/藥品調劑的某病人。
definition:
  v: 配藥/藥品調劑的某病人。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.subject.patient
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Patient
    l: Patient
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.subject.Reference(TW Core Patient)

id:
  v: TWMedicationDispense.subject.group
path:
  v: TWMedicationDispense.subject.group
short:
  v: 配藥/藥品調劑的某團體/群體。
definition:
  v: 配藥/藥品調劑的某團體/群體。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.subject.group
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Group
    l: Group
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.subject.Reference(Group)

id:
  v: TWMedicationDispense.context
path:
  v: TWMedicationDispense.context
short:
  v: 與此配藥/藥品調劑密切相關的就醫事件(Encounter/Episode)。
definition:
  v: 與此配藥/藥品調劑密切相關的就醫事件(Encounter/Episode)。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.context
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Encounter
    l: Encounter
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.context.Reference(TW Core Encounter)

id:
  v: TWMedicationDispense.performer
path:
  v: TWMedicationDispense.performer
short:
  v: 執行此配藥/藥品調劑的人員。
definition:
  v: 執行此配藥/藥品調劑的人員。
min:
  v: 0
max:
  v: *
base:
  path:
    v: TWMedicationDispense.performer
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.performer

id:
  v: TWMedicationDispense.authorizingPrescription
path:
  v: TWMedicationDispense.authorizingPrescription
short:
  v: 授權此配藥/藥品調劑的處方。
definition:
  v: 授權此配藥/藥品調劑的處方。
min:
  v: 0
max:
  v: *
base:
  path:
    v: TWMedicationDispense.authorizingPrescription
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: MedicationRequest
    l: MedicationRequest
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.authorizingPrescription.Reference(TW Core MedicationRequest)

id:
  v: TWMedicationDispense.type
path:
  v: TWMedicationDispense.type
short:
  v: 執行的配藥/藥品調劑事件類型。例如：試用填充、試用完成、部分填充、緊急填充、樣品等
definition:
  v: 執行的配藥/藥品調劑事件類型。例如：試用填充、試用完成、部分填充、緊急填充、樣品等
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.type

id:
  v: TWMedicationDispense.quantity
path:
  v: TWMedicationDispense.quantity
short:
  v: 配藥/藥品調劑的量。
definition:
  v: 配藥/藥品調劑的量。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    l: SimpleQuantity
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.quantity

id:
  v: TWMedicationDispense.whenHandedOver
path:
  v: TWMedicationDispense.whenHandedOver
short:
  v: 藥品發放的時間。
definition:
  v: 藥品發放的時間。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TWMedicationDispense.whenHandedOver
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.whenHandedOver

id:
  v: TWMedicationDispense.dosageInstruction
path:
  v: TWMedicationDispense.dosageInstruction
short:
  v: 應該如何用藥或者由照護者給藥。
definition:
  v: 應該如何用藥或者由照護者給藥。
min:
  v: 0
max:
  v: *
base:
  path:
    v: TWMedicationDispense.dosageInstruction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Dosage
    l: Dosage
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.dosageInstruction

element:
  id:
    v: TWMedicationDispense
  path:
    v: TWMedicationDispense
  short:
    v: 臺灣核心-配藥或藥品調劑(TW Core MedicationDispense) 之資料模型
  definition:
    v: 臺灣核心-配藥或藥品調劑(TW Core MedicationDispense) 之資料模型
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense
element:
  id:
    v: TWMedicationDispense.identifier
  path:
    v: TWMedicationDispense.identifier
  short:
    v: 配藥/藥品調劑的外部識別碼。
  definition:
    v: 配藥/藥品調劑的外部識別碼。
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Identifier
      l: Identifier
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense.identifier
element:
  id:
    v: TWMedicationDispense.status
  path:
    v: TWMedicationDispense.status
  short:
    v: 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態。
  definition:
    v: 一個編碼概念，用以具體說明配藥/藥品調劑事件的狀態。
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense.status
element:
  id:
    v: TWMedicationDispense.category
  path:
    v: TWMedicationDispense.category
  short:
    v: 配藥/藥品調劑的類別，描述預期將服用或用藥的地點之代碼。
  definition:
    v: 配藥/藥品調劑的類別，描述預期將服用或用藥的地點之代碼。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense.category
element:
  id:
    v: TWMedicationDispense.medication
  path:
    v: TWMedicationDispense.medication
  short:
    v: 服用的藥品。
  definition:
    v: 服用的藥品。
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: TWMedicationDispense.medication.medication
  path:
    v: TWMedicationDispense.medication.medication
  short:
    v: 藥品的定義。
  definition:
    v: 藥品的定義。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Medication
      l: Medication
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense.Medication
element:
  id:
    v: TWMedicationDispense.medication.code
  path:
    v: TWMedicationDispense.medication.code
  short:
    v: 服用的藥品。
  definition:
    v: 服用的藥品。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense.Medication.code
element:
  id:
    v: TWMedicationDispense.subject
  path:
    v: TWMedicationDispense.subject
  short:
    v: 配藥/藥品調劑的對象。
  definition:
    v: 配藥/藥品調劑的對象。
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: TWMedicationDispense.subject.patient
  path:
    v: TWMedicationDispense.subject.patient
  short:
    v: 配藥/藥品調劑的某病人。
  definition:
    v: 配藥/藥品調劑的某病人。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Patient
      l: Patient
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense.subject.Reference(TW Core Patient)
element:
  id:
    v: TWMedicationDispense.subject.group
  path:
    v: TWMedicationDispense.subject.group
  short:
    v: 配藥/藥品調劑的某團體/群體。
  definition:
    v: 配藥/藥品調劑的某團體/群體。
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Group
      l: Group
  mapping:
    identity:
      v: TWMedicationDispense
    map:
      v: TWCoreMedicationDispense.subject.Reference(Group)

id:
  v: TWMedicationDispense.context
path:
  v: TWMedicationDispense.context
short:
  v: 與此配藥/藥品調劑密切相關的就醫事件(Encounter/Episode)。
definition:
  v: 與此配藥/藥品調劑密切相關的就醫事件(Encounter/Episode)。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Encounter
    l: Encounter
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.context.Reference(TW Core Encounter)

id:
  v: TWMedicationDispense.performer
path:
  v: TWMedicationDispense.performer
short:
  v: 執行此配藥/藥品調劑的人員。
definition:
  v: 執行此配藥/藥品調劑的人員。
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.performer

id:
  v: TWMedicationDispense.authorizingPrescription
path:
  v: TWMedicationDispense.authorizingPrescription
short:
  v: 授權此配藥/藥品調劑的處方。
definition:
  v: 授權此配藥/藥品調劑的處方。
min:
  v: 0
max:
  v: *
type:
  code:
    v: MedicationRequest
    l: MedicationRequest
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.authorizingPrescription.Reference(TW Core MedicationRequest)

id:
  v: TWMedicationDispense.type
path:
  v: TWMedicationDispense.type
short:
  v: 執行的配藥/藥品調劑事件類型。例如：試用填充、試用完成、部分填充、緊急填充、樣品等
definition:
  v: 執行的配藥/藥品調劑事件類型。例如：試用填充、試用完成、部分填充、緊急填充、樣品等
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.type

id:
  v: TWMedicationDispense.quantity
path:
  v: TWMedicationDispense.quantity
short:
  v: 配藥/藥品調劑的量。
definition:
  v: 配藥/藥品調劑的量。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    l: SimpleQuantity
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.quantity

id:
  v: TWMedicationDispense.whenHandedOver
path:
  v: TWMedicationDispense.whenHandedOver
short:
  v: 藥品發放的時間。
definition:
  v: 藥品發放的時間。
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.whenHandedOver

id:
  v: TWMedicationDispense.dosageInstruction
path:
  v: TWMedicationDispense.dosageInstruction
short:
  v: 應該如何用藥或者由照護者給藥。
definition:
  v: 應該如何用藥或者由照護者給藥。
min:
  v: 0
max:
  v: *
type:
  code:
    v: Dosage
    l: Dosage
mapping:
  identity:
    v: TWMedicationDispense
  map:
    v: TWCoreMedicationDispense.dosageInstruction