DrugModel
type: StructureDefinition
node role: treeRoot
resource.id:
  value: DrugModel
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Generated Narrative: 结构定义 DrugModel Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> DrugModel 0..* Base TB用藥通報(Drug)之資料模型 #xD; seqNo 0..1 id 流水號，系統自動增加 #xD; hospId 1..1 string 醫院十碼章 Example 醫院十碼章: 0132010014 #xD; id 1..1 string 身分證號 Example 身分證號: M123456789 #xD; funcDate 1..1 dateTime 就醫日期 Example 就醫日期: 2016-06-20 #xD; hospitalId 1..1 string 病歷號 Example 病歷號: 0059820 #xD; weight 0..1 decimal 最近體重 Example 最近體重: 50.1 #xD; icd10Cm1 1..1 code 主診斷 ICD10 Example 主診斷 ICD10: A15.0 #xD; icd10Cm2 0..1 code 國際疾病分類號二 Example 國際疾病分類號二: A15.1 #xD; icd10Cm3 0..1 code 國際疾病分類號三 Example 國際疾病分類號三: A15.2 #xD; icd10Cm4 0..1 code 國際疾病分類號四 Example 國際疾病分類號四: A15.3 #xD; icd10Cm5 0..1 code 國際疾病分類號五 Example 國際疾病分類號五: A15.4 #xD; prsnId 1..1 string 診療醫師證號 Example 診療醫師證號: I200009876 #xD; caseStatus 1..1 code 門住診別 Binding: HL7 ActEncounterCode + CDC-TB用藥通報-門住診別值集 (required) Example 門住診別: P #xD; caseInDate 0..1 dateTime 入院日期 Example 入院日期: 2026-05-01 #xD; caseOutDate 0..1 dateTime 出院日期 Example 出院日期: 2026-05-02 #xD; drugNo 0..1 code 藥品(項目)代碼 Binding: 臺灣健保署用藥品項代碼值集 (extensible) Example 藥品(項目)代碼: AC13083100 #xD; drugUse 0..1 decimal 藥品用量 Example 藥品用量: 1 #xD; totalQ 0..1 decimal 總量 Example 總量: 28 #xD; drugPath 0..1 code 用藥頻率 Binding: HL7 TimingAbbreviation + 臺灣健保署藥品使用頻率值集 (required) Example 用藥頻率: QD #xD; drugDay 0..1 decimal 醫令給藥日份 Example 醫令給藥日份: 28 #xD; hospSeqNo 1..1 string 院端醫令識別碼 Example 院端醫令識別碼: 0123456789005982020160624AC13083100 #xD; funcType 1..1 code 就醫科別 Binding: 對應至 SNOMED CT之就醫科別 + 診療科別值集 (preferred) Additional Bindings Purpose 無法對應至SNOMED CT之臺灣健保署就醫科別值集 candidate 無法對應至SNOMED CT之臺灣健保署診療科別值集 candidate Example 就醫科別: 99 #xD; sampleCode 0..1 string 檢體代碼 Example 檢體代碼: 0123456789005982020160624AC13083100 #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
structure definition.url:
  value: https://tb.cdc.gov.tw/tb/StructureDefinition/DrugModel
structure definition.version:
  value: 0.1.0
structure definition.name:
  value: DrugModel
structure definition.title:
  value: TB用藥通報(Drug)之資料模型
structure definition.status:
  value: active
structure definition.date:
  value: 2026-08-05T07:22:30+00:00
structure definition.publisher:
  value: 衛福部疾病管制署
structure definition.contact:
  index: 0
  contact detail.name:
    value: 衛福部疾病管制署
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.cdc.gov.tw
structure definition.description:
  value: TB用藥通報(Drug)之資料模型
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: TW
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: TBDRMessageHeader
  structure definition.mapping.uri:
    value: https://tb.cdc.gov.tw/tb/StructureDefinition/MessageHeader-tb-drug
  structure definition.mapping.name:
    value: Mapping to MessageHeader TB Drug
structure definition.mapping:
  index: 1
  structure definition.mapping.identity:
    value: TBDRMedicationRequest
  structure definition.mapping.uri:
    value: https://tb.cdc.gov.tw/tb/StructureDefinition/MedicationRequest-tb-drug
  structure definition.mapping.name:
    value: Mapping to MedicationRequest TB Drug
structure definition.mapping:
  index: 2
  structure definition.mapping.identity:
    value: TBDRPatient
  structure definition.mapping.uri:
    value: https://tb.cdc.gov.tw/tb/StructureDefinition/Patient-tb
  structure definition.mapping.name:
    value: Mapping to Patient TB Drug
structure definition.mapping:
  index: 3
  structure definition.mapping.identity:
    value: TBDROrganization
  structure definition.mapping.uri:
    value: https://tb.cdc.gov.tw/tb/StructureDefinition/Organization-tb
  structure definition.mapping.name:
    value: Mapping to Organization TB Drug
structure definition.mapping:
  index: 4
  structure definition.mapping.identity:
    value: TBDRSpecimen
  structure definition.mapping.uri:
    value: https://tb.cdc.gov.tw/tb/StructureDefinition/Specimen-tb-drug
  structure definition.mapping.name:
    value: Mapping to Specimen TB Drug
structure definition.mapping:
  index: 5
  structure definition.mapping.identity:
    value: TBDREncounter
  structure definition.mapping.uri:
    value: https://tb.cdc.gov.tw/tb/StructureDefinition/Encounter-tb-drug
  structure definition.mapping.name:
    value: Mapping to Encounter TB Drug
structure definition.mapping:
  index: 6
  structure definition.mapping.identity:
    value: TBDRObservationBodyWeight
  structure definition.mapping.uri:
    value: https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-body-weight-twcore
  structure definition.mapping.name:
    value: Mapping to TW Core Observation Body Weight
structure definition.kind:
  value: logical
structure definition.abstract:
  value: false
structure definition.type:
  value: https://tb.cdc.gov.tw/tb/StructureDefinition/DrugModel
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
structure definition.derivation:
  value: specialization
structure definition.snapshot:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    extension.value string:
      value: 4.0.1
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: DrugModel
    element definition.path:
      value: DrugModel
    element definition.short:
      value: TB用藥通報(Drug)之資料模型
    element definition.definition:
      value: TB用藥通報(Drug)之資料模型
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Base
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.is modifier:
      value: false
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: DrugModel.seqNo
    element definition.path:
      value: DrugModel.seqNo
    element definition.short:
      value: 流水號，系統自動增加
    element definition.definition:
      value: 流水號，系統自動增加
    element definition.min:
      value: 0
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: DrugModel.seqNo
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: id
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: TBDRMessageHeader
      element definition.mapping.map:
        value: MessageHeader.id
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: DrugModel.hospId
    element definition.path:
      value: DrugModel.hospId
    element definition.short:
      value: 醫院十碼章
    element definition.definition:
      value: 醫院十碼章
    element definition.min:
      value: 1
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: DrugModel.hospId
      element definition.base.min:
        value: 1
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: string
    element definition.example:
      index: 0
      element definition.example.label:
        value: 醫院十碼章
      element definition.example.value string:
        value: 0132010014

index: 0
element definition.mapping.identity:
  value: TBDRMessageHeader
element definition.mapping.map:
  value: MessageHeader.sender

index: 1
element definition.mapping.identity:
  value: TBDROrganization
element definition.mapping.map:
  value: Organization.identifier

index: 3
element.id:
  value: DrugModel.id
element definition.path:
  value: DrugModel.id
element definition.short:
  value: 身分證號
element definition.definition:
  value: 身分證號
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.id
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 身分證號
  element definition.example.value string:
    value: M123456789
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.subject
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDRPatient
  element definition.mapping.map:
    value: Patient.identifier.where(type.coding.code = 'NNxxx').value

index: 4
element.id:
  value: DrugModel.funcDate
element definition.path:
  value: DrugModel.funcDate
element definition.short:
  value: 就醫日期
element definition.definition:
  value: 就醫日期
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.funcDate
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.example:
  index: 0
  element definition.example.label:
    value: 就醫日期
  element definition.example.value date time:
    value: 2016-06-20
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.authoredOn

index: 5
element.id:
  value: DrugModel.hospitalId
element definition.path:
  value: DrugModel.hospitalId
element definition.short:
  value: 病歷號
element definition.definition:
  value: 病歷號
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.hospitalId
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 病歷號
  element definition.example.value string:
    value: 0059820
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRPatient
  element definition.mapping.map:
    value: Patient.identifier.where(type.coding.code = 'MR').value

index: 6
element.id:
  value: DrugModel.weight
element definition.path:
  value: DrugModel.weight
element definition.short:
  value: 最近體重
element definition.definition:
  value: 最近體重
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.weight
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.example:
  index: 0
  element definition.example.label:
    value: 最近體重
  element definition.example.value decimal:
    value: 50.1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.supportingInformation
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDRObservationBodyWeight
  element definition.mapping.map:
    value: Observation.valueQuantity.value

index: 7
element.id:
  value: DrugModel.icd10Cm1
element definition.path:
  value: DrugModel.icd10Cm1
element definition.short:
  value: 主診斷 ICD10
element definition.definition:
  value: 主診斷 ICD10
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.icd10Cm1
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 主診斷 ICD10
  element definition.example.value code:
    value: A15.0
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm1

index: 8
element.id:
  value: DrugModel.icd10Cm2
element definition.path:
  value: DrugModel.icd10Cm2
element definition.short:
  value: 國際疾病分類號二
element definition.definition:
  value: 國際疾病分類號二
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.icd10Cm2
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號二
  element definition.example.value code:
    value: A15.1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm2

index: 9
element.id:
  value: DrugModel.icd10Cm3
element definition.path:
  value: DrugModel.icd10Cm3
element definition.short:
  value: 國際疾病分類號三
element definition.definition:
  value: 國際疾病分類號三
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.icd10Cm3
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號三
  element definition.example.value code:
    value: A15.2
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm3

index: 10
element.id:
  value: DrugModel.icd10Cm4
element definition.path:
  value: DrugModel.icd10Cm4
element definition.short:
  value: 國際疾病分類號四
element definition.definition:
  value: 國際疾病分類號四
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.icd10Cm4
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號四
  element definition.example.value code:
    value: A15.3
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm4

index: 11
element.id:
  value: DrugModel.icd10Cm5
element definition.path:
  value: DrugModel.icd10Cm5
element definition.short:
  value: 國際疾病分類號五
element definition.definition:
  value: 國際疾病分類號五
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.icd10Cm5
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號五
  element definition.example.value code:
    value: A15.4
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm5

index: 12
element.id:
  value: DrugModel.prsnId
element definition.path:
  value: DrugModel.prsnId
element definition.short:
  value: 診療醫師證號
element definition.definition:
  value: 診療醫師證號
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.prsnId
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 診療醫師證號
  element definition.example.value string:
    value: I200009876
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.requester

index: 13
element.id:
  value: DrugModel.caseStatus
element definition.path:
  value: DrugModel.caseStatus
element definition.short:
  value: 門住診別
element definition.definition:
  value: 門住診別
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.caseStatus
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 門住診別
  element definition.example.value code:
    value: P
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set:
    value: https://tb.cdc.gov.tw/tb/ValueSet/hl7-cdc-case-status
    link: https://tb.cdc.gov.tw/tb/ValueSet/hl7-cdc-case-status
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.encounter
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.class

index: 14
element.id:
  value: DrugModel.caseInDate
element definition.path:
  value: DrugModel.caseInDate
element definition.short:
  value: 入院日期
element definition.definition:
  value: 入院日期
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.caseInDate
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.example:
  index: 0
  element definition.example.label:
    value: 入院日期
  element definition.example.value date time:
    value: 2026-05-01
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.period.start

index: 15
element.id:
  value: DrugModel.caseOutDate
element definition.path:
  value: DrugModel.caseOutDate
element definition.short:
  value: 出院日期
element definition.definition:
  value: 出院日期
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.caseOutDate
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.example:
  index: 0
  element definition.example.label:
    value: 出院日期
  element definition.example.value date time:
    value: 2026-05-02
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.period.end

index: 16
element.id:
  value: DrugModel.drugNo
element definition.path:
  value: DrugModel.drugNo
element definition.short:
  value: 藥品(項目)代碼
element definition.definition:
  value: 藥品(項目)代碼
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.drugNo
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 藥品(項目)代碼
  element definition.example.value code:
    value: AC13083100
element definition.binding:
  element definition.binding.strength:
    value: extensible
  element definition.binding.value set:
    value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.medicationCodeableConcept

index: 17
element.id:
  value: DrugModel.drugUse
element definition.path:
  value: DrugModel.drugUse
element definition.short:
  value: 藥品用量
element definition.definition:
  value: 藥品用量
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.drugUse
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.example:
  index: 0
  element definition.example.label:
    value: 藥品用量
  element definition.example.value decimal:
    value: 1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dosageInstruction.doseAndRate.dose[x].value

index: 18
element.id:
  value: DrugModel.totalQ
element definition.path:
  value: DrugModel.totalQ
element definition.short:
  value: 總量
element definition.definition:
  value: 總量
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.totalQ
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.example:
  index: 0
  element definition.example.label:
    value: 總量
  element definition.example.value decimal:
    value: 28
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dispenseRequest.quantity.value

index: 19
element.id:
  value: DrugModel.drugPath
element definition.path:
  value: DrugModel.drugPath
element definition.short:
  value: 用藥頻率
element definition.definition:
  value: 用藥頻率
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.drugPath
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 用藥頻率
  element definition.example.value code:
    value: QD
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set:
    value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dosageInstruction.timing.code

index: 20
element.id:
  value: DrugModel.drugDay
element definition.path:
  value: DrugModel.drugDay
element definition.short:
  value: 醫令給藥日份
element definition.definition:
  value: 醫令給藥日份
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.drugDay
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.example:
  index: 0
  element definition.example.label:
    value: 醫令給藥日份
  element definition.example.value decimal:
    value: 28
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dosageInstruction.timing.repeat.boundsDuration.value

index: 21
element.id:
  value: DrugModel.hospSeqNo
element definition.path:
  value: DrugModel.hospSeqNo
element definition.short:
  value: 院端醫令識別碼
element definition.definition:
  value: 院端醫令識別碼
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.hospSeqNo
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 院端醫令識別碼
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMessageHeader
  element definition.mapping.map:
    value: MessageHeader.focus
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.identifier

index: 22
element.id:
  value: DrugModel.funcType
element definition.path:
  value: DrugModel.funcType
element definition.short:
  value: 就醫科別
element definition.definition:
  value: 就醫科別
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.funcType
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 就醫科別
  element definition.example.value code:
    value: 99
element definition.binding:
  element.extension:
    index: 0
    element.extension:
      index: 0
      extension.url:
        value: key
      extension.value id:
        value: medical-consultation-department-tw
    element.extension:
      index: 1
      extension.url:
        value: purpose
      extension.value code:
        value: candidate
    element.extension:
      index: 2
      extension.url:
        value: valueSet
      extension.value canonical:
        value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-consultation-department-tw
        link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-consultation-department-tw
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/additional-binding
  element.extension:
    index: 1
    element.extension:
      index: 0
      extension.url:
        value: key
      extension.value id:
        value: medical-treatment-department-tw
    element.extension:
      index: 1
      extension.url:
        value: purpose
      extension.value code:
        value: candidate
    element.extension:
      index: 2
      extension.url:
        value: valueSet
      extension.value canonical:
        value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-treatment-department-tw
        link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-treatment-department-tw
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/additional-binding
  element definition.binding.strength:
    value: preferred
  element definition.binding.value set:
    value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-department-sct-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-department-sct-tw
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.serviceType

index: 23
element.id:
  value: DrugModel.sampleCode
element definition.path:
  value: DrugModel.sampleCode
element definition.short:
  value: 檢體代碼
element definition.definition:
  value: 檢體代碼
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: DrugModel.sampleCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 檢體代碼
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMessageHeader
  element definition.mapping.map:
    value: MessageHeader.focus
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDRSpecimen
  element definition.mapping.map:
    value: Specimen.identifier

structure definition.differential.element:
  index: 0
  element.id:
    value: DrugModel
  element definition.path:
    value: DrugModel
  element definition.short:
    value: TB用藥通報(Drug)之資料模型
  element definition.definition:
    value: TB用藥通報(Drug)之資料模型
structure definition.differential.element:
  index: 1
  element.id:
    value: DrugModel.seqNo
  element definition.path:
    value: DrugModel.seqNo
  element definition.short:
    value: 流水號，系統自動增加
  element definition.definition:
    value: 流水號，系統自動增加
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: id
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: TBDRMessageHeader
    element definition.mapping.map:
      value: MessageHeader.id
structure definition.differential.element:
  index: 2
  element.id:
    value: DrugModel.hospId
  element definition.path:
    value: DrugModel.hospId
  element definition.short:
    value: 醫院十碼章
  element definition.definition:
    value: 醫院十碼章
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.example:
    index: 0
    element definition.example.label:
      value: 醫院十碼章
    element definition.example.value string:
      value: 0132010014
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: TBDRMessageHeader
    element definition.mapping.map:
      value: MessageHeader.sender
  element definition.mapping:
    index: 1
    element definition.mapping.identity:
      value: TBDROrganization
    element definition.mapping.map:
      value: Organization.identifier
structure definition.differential.element:
  index: 3
  element.id:
    value: DrugModel.id
  element definition.path:
    value: DrugModel.id
  element definition.short:
    value: 身分證號
  element definition.definition:
    value: 身分證號
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.example:
    index: 0
    element definition.example.label:
      value: 身分證號
    element definition.example.value string:
      value: M123456789
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: TBDRMedicationRequest
    element definition.mapping.map:
      value: MedicationRequest.subject
  element definition.mapping:
    index: 1
    element definition.mapping.identity:
      value: TBDRPatient
    element definition.mapping.map:
      value: Patient.identifier.where(type.coding.code = 'NNxxx').value
structure definition.differential.element:
  index: 4
  element.id:
    value: DrugModel.funcDate
  element definition.path:
    value: DrugModel.funcDate
  element definition.short:
    value: 就醫日期
  element definition.definition:
    value: 就醫日期
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: dateTime
  element definition.example:
    index: 0
    element definition.example.label:
      value: 就醫日期
    element definition.example.value date time:
      value: 2016-06-20
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: TBDRMedicationRequest
    element definition.mapping.map:
      value: MedicationRequest.authoredOn
structure definition.differential.element:
  index: 5
  element.id:
    value: DrugModel.hospitalId
  element definition.path:
    value: DrugModel.hospitalId
  element definition.short:
    value: 病歷號
  element definition.definition:
    value: 病歷號
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
  element definition.example:
    index: 0
    element definition.example.label:
      value: 病歷號
    element definition.example.value string:
      value: 0059820
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: TBDRPatient
    element definition.mapping.map:
      value: Patient.identifier.where(type.coding.code = 'MR').value
structure definition.differential.element:
  index: 6
  element.id:
    value: DrugModel.weight
  element definition.path:
    value: DrugModel.weight
  element definition.short:
    value: 最近體重
  element definition.definition:
    value: 最近體重
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: decimal
  element definition.example:
    index: 0
    element definition.example.label:
      value: 最近體重
    element definition.example.value decimal:
      value: 50.1
  element definition.mapping:
    index: 0
    element definition.mapping.identity:
      value: TBDRMedicationRequest
    element definition.mapping.map:
      value: MedicationRequest.supportingInformation
  element definition.mapping:
    index: 1
    element definition.mapping.identity:
      value: TBDRObservationBodyWeight
    element definition.mapping.map:
      value: Observation.valueQuantity.value

index: 7
element.id:
  value: DrugModel.icd10Cm1
element definition.path:
  value: DrugModel.icd10Cm1
element definition.short:
  value: 主診斷 ICD10
element definition.definition:
  value: 主診斷 ICD10
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 主診斷 ICD10
  element definition.example.value code:
    value: A15.0
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm1

index: 8
element.id:
  value: DrugModel.icd10Cm2
element definition.path:
  value: DrugModel.icd10Cm2
element definition.short:
  value: 國際疾病分類號二
element definition.definition:
  value: 國際疾病分類號二
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號二
  element definition.example.value code:
    value: A15.1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm2

index: 9
element.id:
  value: DrugModel.icd10Cm3
element definition.path:
  value: DrugModel.icd10Cm3
element definition.short:
  value: 國際疾病分類號三
element definition.definition:
  value: 國際疾病分類號三
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號三
  element definition.example.value code:
    value: A15.2
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm3

index: 10
element.id:
  value: DrugModel.icd10Cm4
element definition.path:
  value: DrugModel.icd10Cm4
element definition.short:
  value: 國際疾病分類號四
element definition.definition:
  value: 國際疾病分類號四
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號四
  element definition.example.value code:
    value: A15.3
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm4

index: 11
element.id:
  value: DrugModel.icd10Cm5
element definition.path:
  value: DrugModel.icd10Cm5
element definition.short:
  value: 國際疾病分類號五
element definition.definition:
  value: 國際疾病分類號五
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 國際疾病分類號五
  element definition.example.value code:
    value: A15.4
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.reasonCode:Icd10Cm5

index: 12
element.id:
  value: DrugModel.prsnId
element definition.path:
  value: DrugModel.prsnId
element definition.short:
  value: 診療醫師證號
element definition.definition:
  value: 診療醫師證號
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 診療醫師證號
  element definition.example.value string:
    value: I200009876
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.requester

index: 13
element.id:
  value: DrugModel.caseStatus
element definition.path:
  value: DrugModel.caseStatus
element definition.short:
  value: 門住診別
element definition.definition:
  value: 門住診別
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 門住診別
  element definition.example.value code:
    value: P
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set:
    value: https://tb.cdc.gov.tw/tb/ValueSet/hl7-cdc-case-status
    link: https://tb.cdc.gov.tw/tb/ValueSet/hl7-cdc-case-status
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.encounter
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.class

index: 14
element.id:
  value: DrugModel.caseInDate
element definition.path:
  value: DrugModel.caseInDate
element definition.short:
  value: 入院日期
element definition.definition:
  value: 入院日期
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.example:
  index: 0
  element definition.example.label:
    value: 入院日期
  element definition.example.value date time:
    value: 2026-05-01
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.period.start

index: 15
element.id:
  value: DrugModel.caseOutDate
element definition.path:
  value: DrugModel.caseOutDate
element definition.short:
  value: 出院日期
element definition.definition:
  value: 出院日期
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.example:
  index: 0
  element definition.example.label:
    value: 出院日期
  element definition.example.value date time:
    value: 2026-05-02
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.period.end

index: 16
element.id:
  value: DrugModel.drugNo
element definition.path:
  value: DrugModel.drugNo
element definition.short:
  value: 藥品(項目)代碼
element definition.definition:
  value: 藥品(項目)代碼
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 藥品(項目)代碼
  element definition.example.value code:
    value: AC13083100
element definition.binding:
  element definition.binding.strength:
    value: extensible
  element definition.binding.value set:
    value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.medicationCodeableConcept

index: 17
element.id:
  value: DrugModel.drugUse
element definition.path:
  value: DrugModel.drugUse
element definition.short:
  value: 藥品用量
element definition.definition:
  value: 藥品用量
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.example:
  index: 0
  element definition.example.label:
    value: 藥品用量
  element definition.example.value decimal:
    value: 1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dosageInstruction.doseAndRate.dose[x].value

index: 18
element.id:
  value: DrugModel.totalQ
element definition.path:
  value: DrugModel.totalQ
element definition.short:
  value: 總量
element definition.definition:
  value: 總量
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.example:
  index: 0
  element definition.example.label:
    value: 總量
  element definition.example.value decimal:
    value: 28
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dispenseRequest.quantity.value

index: 19
element.id:
  value: DrugModel.drugPath
element definition.path:
  value: DrugModel.drugPath
element definition.short:
  value: 用藥頻率
element definition.definition:
  value: 用藥頻率
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 用藥頻率
  element definition.example.value code:
    value: QD
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set:
    value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dosageInstruction.timing.code

index: 20
element.id:
  value: DrugModel.drugDay
element definition.path:
  value: DrugModel.drugDay
element definition.short:
  value: 醫令給藥日份
element definition.definition:
  value: 醫令給藥日份
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: decimal
element definition.example:
  index: 0
  element definition.example.label:
    value: 醫令給藥日份
  element definition.example.value decimal:
    value: 28
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.dosageInstruction.timing.repeat.boundsDuration.value

index: 21
element.id:
  value: DrugModel.hospSeqNo
element definition.path:
  value: DrugModel.hospSeqNo
element definition.short:
  value: 院端醫令識別碼
element definition.definition:
  value: 院端醫令識別碼
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 院端醫令識別碼
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMessageHeader
  element definition.mapping.map:
    value: MessageHeader.focus
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDRMedicationRequest
  element definition.mapping.map:
    value: MedicationRequest.identifier

index: 22
element.id:
  value: DrugModel.funcType
element definition.path:
  value: DrugModel.funcType
element definition.short:
  value: 就醫科別
element definition.definition:
  value: 就醫科別
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: 就醫科別
  element definition.example.value code:
    value: 99
element definition.binding:
  element.extension:
    index: 0
    element.extension:
      index: 0
      extension.url:
        value: key
      extension.value id:
        value: medical-consultation-department-tw
    element.extension:
      index: 1
      extension.url:
        value: purpose
      extension.value code:
        value: candidate
    element.extension:
      index: 2
      extension.url:
        value: valueSet
      extension.value canonical:
        value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-consultation-department-tw
        link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-consultation-department-tw
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/additional-binding
  element.extension:
    index: 1
    element.extension:
      index: 0
      extension.url:
        value: key
      extension.value id:
        value: medical-treatment-department-tw
    element.extension:
      index: 1
      extension.url:
        value: purpose
      extension.value code:
        value: candidate
    element.extension:
      index: 2
      extension.url:
        value: valueSet
      extension.value canonical:
        value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-treatment-department-tw
        link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-treatment-department-tw
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/additional-binding
  element definition.binding.strength:
    value: preferred
  element definition.binding.value set:
    value: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-department-sct-tw
    link: https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-department-sct-tw
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDREncounter
  element definition.mapping.map:
    value: Encounter.serviceType

index: 23
element.id:
  value: DrugModel.sampleCode
element definition.path:
  value: DrugModel.sampleCode
element definition.short:
  value: 檢體代碼
element definition.definition:
  value: 檢體代碼
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: 檢體代碼
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: TBDRMessageHeader
  element definition.mapping.map:
    value: MessageHeader.focus
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: TBDRSpecimen
  element definition.mapping.map:
    value: Specimen.identifier