FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagetw.gov.mohw.cdc.aids
Resource TypeStructureDefinition
IdStructureDefinition-DrugModel.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/omnifhir/aids/StructureDefinition-DrugModel.html
URLhttps://cdc.gov.tw/aids/StructureDefinition/DrugModel
Version0.1.0
Statusactive
Date2026-08-05T07:23:25+00:00
NameDrugModel
Title愛滋用藥通報(Drug)之資料模型
Realmtw
Authoritynational
Description愛滋用藥通報(Drug)之資料模型
Typehttps://cdc.gov.tw/aids/StructureDefinition/DrugModel
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

ValueSet
tw.gov.mohw.cdc.aids#currenthl7-cdc-case-statusHL7 ActEncounterCode + CDC-愛滋用藥通報-門住診別值集
tw.gov.mohw.twcore#currentmedical-consultation-department-tw無法對應至SNOMED CT之臺灣健保署就醫科別值集
tw.gov.mohw.twcore#currentmedical-department-sct-tw對應至 SNOMED CT之就醫科別 + 診療科別值集
tw.gov.mohw.twcore#currentmedical-treatment-department-tw無法對應至SNOMED CT之臺灣健保署診療科別值集
tw.gov.mohw.twcore#currentmedication-frequency-hl7-twHL7 TimingAbbreviation + 臺灣健保署藥品使用頻率值集
tw.gov.mohw.twcore#currentmedication-nhi-tw臺灣健保署用藥品項代碼值集

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: 结构定义 DrugModel

NameFlagsCard.TypeDescription & Constraintsdoco
.. DrugModel 0..*Base愛滋用藥通報(Drug)之資料模型
... seqNo 0..1id流水號,系統自動增加
... hospId 1..1string醫院十碼章
Example 醫院十碼章: 0132010014
... id 1..1string身分證號
Example 身分證號: M123456789
... funcDate 1..1dateTime就醫日期
Example 就醫日期: 2016-06-20
... hospitalId 1..1string病歷號
Example 病歷號: 0059820
... weight 0..1decimal最近體重
Example 最近體重: 50.1
... icd10Cm1 1..1code主診斷 ICD10
Example 主診斷 ICD10: A15.0
... icd10Cm2 0..1code國際疾病分類號二
Example 國際疾病分類號二: A15.1
... icd10Cm3 0..1code國際疾病分類號三
Example 國際疾病分類號三: A15.2
... icd10Cm4 0..1code國際疾病分類號四
Example 國際疾病分類號四: A15.3
... icd10Cm5 0..1code國際疾病分類號五
Example 國際疾病分類號五: A15.4
... prsnId 1..1string診療醫師證號
Example 診療醫師證號: I200009876
... caseStatus 1..1code門住診別
Binding: HL7 ActEncounterCode + CDC-愛滋用藥通報-門住診別值集 (required)
Example 門住診別: P
... caseInDate 0..1dateTime入院日期
Example 入院日期: 2026-05-01
... caseOutDate 0..1dateTime出院日期
Example 出院日期: 2026-05-02
... drugNo 0..1code藥品(項目)代碼
Binding: 臺灣健保署用藥品項代碼值集 (extensible)
Example 藥品(項目)代碼: AC13083100
... drugUse 0..1decimal藥品用量
Example 藥品用量: 1
... totalQ 0..1decimal總量
Example 總量: 28
... drugPath 0..1code用藥頻率
Binding: HL7 TimingAbbreviation + 臺灣健保署藥品使用頻率值集 (required)
Example 用藥頻率: QD
... drugDay 0..1decimal醫令給藥日份
Example 醫令給藥日份: 28
... hospSeqNo 1..1string院端醫令識別碼
Example 院端醫令識別碼: 0123456789005982020160624AC13083100
... funcType 1..1code就醫科別
Binding: 對應至 SNOMED CT之就醫科別 + 診療科別值集 (preferred)
Additional BindingsPurpose
無法對應至SNOMED CT之臺灣健保署就醫科別值集candidate
無法對應至SNOMED CT之臺灣健保署診療科別值集candidate

Example 就醫科別: 99
... sampleCode 0..1string檢體代碼
Example 檢體代碼: 0123456789005982020160624AC13083100

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "DrugModel",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://cdc.gov.tw/aids/StructureDefinition/DrugModel",
  "version": "0.1.0",
  "name": "DrugModel",
  "title": "愛滋用藥通報(Drug)之資料模型",
  "status": "active",
  "date": "2026-08-05T07:23:25+00:00",
  "publisher": "衛福部疾病管制署",
  "contact": [
    {
      "name": "衛福部疾病管制署",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.cdc.gov.tw"
        }
      ]
    }
  ],
  "description": "愛滋用藥通報(Drug)之資料模型",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "TW"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "AIDSDRMessageHeader",
      "uri": "https://cdc.gov.tw/aids/StructureDefinition/MessageHeader-aids-drug",
      "name": "Mapping to MessageHeader AIDS Drug"
    },
    {
      "identity": "AIDSDRMedicationRequest",
      "uri": "https://cdc.gov.tw/aids/StructureDefinition/MedicationRequest-aids-drug",
      "name": "Mapping to MedicationRequest AIDS Drug"
    },
    {
      "identity": "AIDSDRPatient",
      "uri": "https://cdc.gov.tw/aids/StructureDefinition/Patient-aids",
      "name": "Mapping to Patient AIDS Drug"
    },
    {
      "identity": "AIDSDROrganization",
      "uri": "https://cdc.gov.tw/aids/StructureDefinition/Organization-aids",
      "name": "Mapping to Organization AIDS Drug"
    },
    {
      "identity": "AIDSDRSpecimen",
      "uri": "https://cdc.gov.tw/aids/StructureDefinition/Specimen-aids-drug",
      "name": "Mapping to Specimen AIDS Drug"
    },
    {
      "identity": "AIDSDREncounter",
      "uri": "https://cdc.gov.tw/aids/StructureDefinition/Encounter-aids-drug",
      "name": "Mapping to Encounter AIDS Drug"
    },
    {
      "identity": "AIDSDRObservationBodyWeight",
      "uri": "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Observation-body-weight-twcore",
      "name": "Mapping to TW Core Observation Body Weight"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "https://cdc.gov.tw/aids/StructureDefinition/DrugModel",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "DrugModel",
        "path": "DrugModel",
        "short": "愛滋用藥通報(Drug)之資料模型",
        "definition": "愛滋用藥通報(Drug)之資料模型",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "DrugModel.seqNo",
        "path": "DrugModel.seqNo",
        "short": "流水號,系統自動增加",
        "definition": "流水號,系統自動增加",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.seqNo",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.id"
          }
        ]
      },
      {
        "id": "DrugModel.hospId",
        "path": "DrugModel.hospId",
        "short": "醫院十碼章",
        "definition": "醫院十碼章",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.hospId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "醫院十碼章",
            "valueString": "0132010014"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.sender"
          },
          {
            "identity": "AIDSDROrganization",
            "map": "Organization.identifier"
          }
        ]
      },
      {
        "id": "DrugModel.id",
        "path": "DrugModel.id",
        "short": "身分證號",
        "definition": "身分證號",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.id",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "身分證號",
            "valueString": "M123456789"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.subject"
          },
          {
            "identity": "AIDSDRPatient",
            "map": "Patient.identifier.where(type.coding.code = 'NNxxx').value"
          }
        ]
      },
      {
        "id": "DrugModel.funcDate",
        "path": "DrugModel.funcDate",
        "short": "就醫日期",
        "definition": "就醫日期",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.funcDate",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "example": [
          {
            "label": "就醫日期",
            "valueDateTime": "2016-06-20"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.authoredOn"
          }
        ]
      },
      {
        "id": "DrugModel.hospitalId",
        "path": "DrugModel.hospitalId",
        "short": "病歷號",
        "definition": "病歷號",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.hospitalId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "病歷號",
            "valueString": "0059820"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRPatient",
            "map": "Patient.identifier.where(type.coding.code = 'MR').value"
          }
        ]
      },
      {
        "id": "DrugModel.weight",
        "path": "DrugModel.weight",
        "short": "最近體重",
        "definition": "最近體重",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.weight",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "最近體重",
            "valueDecimal": 50.1
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.supportingInformation"
          },
          {
            "identity": "AIDSDRObservationBodyWeight",
            "map": "Observation.valueQuantity.value"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm1",
        "path": "DrugModel.icd10Cm1",
        "short": "主診斷 ICD10",
        "definition": "主診斷 ICD10",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.icd10Cm1",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "主診斷 ICD10",
            "valueCode": "A15.0"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm1"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm2",
        "path": "DrugModel.icd10Cm2",
        "short": "國際疾病分類號二",
        "definition": "國際疾病分類號二",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.icd10Cm2",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號二",
            "valueCode": "A15.1"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm2"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm3",
        "path": "DrugModel.icd10Cm3",
        "short": "國際疾病分類號三",
        "definition": "國際疾病分類號三",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.icd10Cm3",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號三",
            "valueCode": "A15.2"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm3"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm4",
        "path": "DrugModel.icd10Cm4",
        "short": "國際疾病分類號四",
        "definition": "國際疾病分類號四",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.icd10Cm4",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號四",
            "valueCode": "A15.3"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm4"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm5",
        "path": "DrugModel.icd10Cm5",
        "short": "國際疾病分類號五",
        "definition": "國際疾病分類號五",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.icd10Cm5",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號五",
            "valueCode": "A15.4"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm5"
          }
        ]
      },
      {
        "id": "DrugModel.prsnId",
        "path": "DrugModel.prsnId",
        "short": "診療醫師證號",
        "definition": "診療醫師證號",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.prsnId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "診療醫師證號",
            "valueString": "I200009876"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.requester"
          }
        ]
      },
      {
        "id": "DrugModel.caseStatus",
        "path": "DrugModel.caseStatus",
        "short": "門住診別",
        "definition": "門住診別",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.caseStatus",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "門住診別",
            "valueCode": "P"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://cdc.gov.tw/aids/ValueSet/hl7-cdc-case-status"
        },
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.encounter"
          },
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.class"
          }
        ]
      },
      {
        "id": "DrugModel.caseInDate",
        "path": "DrugModel.caseInDate",
        "short": "入院日期",
        "definition": "入院日期",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.caseInDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "example": [
          {
            "label": "入院日期",
            "valueDateTime": "2026-05-01"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.period.start"
          }
        ]
      },
      {
        "id": "DrugModel.caseOutDate",
        "path": "DrugModel.caseOutDate",
        "short": "出院日期",
        "definition": "出院日期",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.caseOutDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "example": [
          {
            "label": "出院日期",
            "valueDateTime": "2026-05-02"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.period.end"
          }
        ]
      },
      {
        "id": "DrugModel.drugNo",
        "path": "DrugModel.drugNo",
        "short": "藥品(項目)代碼",
        "definition": "藥品(項目)代碼",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.drugNo",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "藥品(項目)代碼",
            "valueCode": "AC13083100"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw"
        },
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.medicationCodeableConcept"
          }
        ]
      },
      {
        "id": "DrugModel.drugUse",
        "path": "DrugModel.drugUse",
        "short": "藥品用量",
        "definition": "藥品用量",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.drugUse",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "藥品用量",
            "valueDecimal": 1
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dosageInstruction.doseAndRate.dose[x].value"
          }
        ]
      },
      {
        "id": "DrugModel.totalQ",
        "path": "DrugModel.totalQ",
        "short": "總量",
        "definition": "總量",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.totalQ",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "總量",
            "valueDecimal": 28
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dispenseRequest.quantity.value"
          }
        ]
      },
      {
        "id": "DrugModel.drugPath",
        "path": "DrugModel.drugPath",
        "short": "用藥頻率",
        "definition": "用藥頻率",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.drugPath",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "用藥頻率",
            "valueCode": "QD"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw"
        },
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dosageInstruction.timing.code"
          }
        ]
      },
      {
        "id": "DrugModel.drugDay",
        "path": "DrugModel.drugDay",
        "short": "醫令給藥日份",
        "definition": "醫令給藥日份",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.drugDay",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "醫令給藥日份",
            "valueDecimal": 28
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dosageInstruction.timing.repeat.boundsDuration.value"
          }
        ]
      },
      {
        "id": "DrugModel.hospSeqNo",
        "path": "DrugModel.hospSeqNo",
        "short": "院端醫令識別碼",
        "definition": "院端醫令識別碼",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.hospSeqNo",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "院端醫令識別碼",
            "valueString": "0123456789005982020160624AC13083100"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.focus"
          },
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.identifier"
          }
        ]
      },
      {
        "id": "DrugModel.funcType",
        "path": "DrugModel.funcType",
        "short": "就醫科別",
        "definition": "就醫科別",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DrugModel.funcType",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "就醫科別",
            "valueCode": "99"
          }
        ],
        "binding": {
          "extension": [
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "medical-consultation-department-tw"
                },
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-consultation-department-tw"
                }
              ],
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "medical-treatment-department-tw"
                },
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-treatment-department-tw"
                }
              ],
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"
            }
          ],
          "strength": "preferred",
          "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-department-sct-tw"
        },
        "mapping": [
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.serviceType"
          }
        ]
      },
      {
        "id": "DrugModel.sampleCode",
        "path": "DrugModel.sampleCode",
        "short": "檢體代碼",
        "definition": "檢體代碼",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DrugModel.sampleCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "檢體代碼",
            "valueString": "0123456789005982020160624AC13083100"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.focus"
          },
          {
            "identity": "AIDSDRSpecimen",
            "map": "Specimen.identifier"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "DrugModel",
        "path": "DrugModel",
        "short": "愛滋用藥通報(Drug)之資料模型",
        "definition": "愛滋用藥通報(Drug)之資料模型"
      },
      {
        "id": "DrugModel.seqNo",
        "path": "DrugModel.seqNo",
        "short": "流水號,系統自動增加",
        "definition": "流水號,系統自動增加",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.id"
          }
        ]
      },
      {
        "id": "DrugModel.hospId",
        "path": "DrugModel.hospId",
        "short": "醫院十碼章",
        "definition": "醫院十碼章",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "醫院十碼章",
            "valueString": "0132010014"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.sender"
          },
          {
            "identity": "AIDSDROrganization",
            "map": "Organization.identifier"
          }
        ]
      },
      {
        "id": "DrugModel.id",
        "path": "DrugModel.id",
        "short": "身分證號",
        "definition": "身分證號",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "身分證號",
            "valueString": "M123456789"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.subject"
          },
          {
            "identity": "AIDSDRPatient",
            "map": "Patient.identifier.where(type.coding.code = 'NNxxx').value"
          }
        ]
      },
      {
        "id": "DrugModel.funcDate",
        "path": "DrugModel.funcDate",
        "short": "就醫日期",
        "definition": "就醫日期",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "example": [
          {
            "label": "就醫日期",
            "valueDateTime": "2016-06-20"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.authoredOn"
          }
        ]
      },
      {
        "id": "DrugModel.hospitalId",
        "path": "DrugModel.hospitalId",
        "short": "病歷號",
        "definition": "病歷號",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "病歷號",
            "valueString": "0059820"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRPatient",
            "map": "Patient.identifier.where(type.coding.code = 'MR').value"
          }
        ]
      },
      {
        "id": "DrugModel.weight",
        "path": "DrugModel.weight",
        "short": "最近體重",
        "definition": "最近體重",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "最近體重",
            "valueDecimal": 50.1
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.supportingInformation"
          },
          {
            "identity": "AIDSDRObservationBodyWeight",
            "map": "Observation.valueQuantity.value"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm1",
        "path": "DrugModel.icd10Cm1",
        "short": "主診斷 ICD10",
        "definition": "主診斷 ICD10",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "主診斷 ICD10",
            "valueCode": "A15.0"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm1"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm2",
        "path": "DrugModel.icd10Cm2",
        "short": "國際疾病分類號二",
        "definition": "國際疾病分類號二",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號二",
            "valueCode": "A15.1"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm2"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm3",
        "path": "DrugModel.icd10Cm3",
        "short": "國際疾病分類號三",
        "definition": "國際疾病分類號三",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號三",
            "valueCode": "A15.2"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm3"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm4",
        "path": "DrugModel.icd10Cm4",
        "short": "國際疾病分類號四",
        "definition": "國際疾病分類號四",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號四",
            "valueCode": "A15.3"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm4"
          }
        ]
      },
      {
        "id": "DrugModel.icd10Cm5",
        "path": "DrugModel.icd10Cm5",
        "short": "國際疾病分類號五",
        "definition": "國際疾病分類號五",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "國際疾病分類號五",
            "valueCode": "A15.4"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.reasonCode:Icd10Cm5"
          }
        ]
      },
      {
        "id": "DrugModel.prsnId",
        "path": "DrugModel.prsnId",
        "short": "診療醫師證號",
        "definition": "診療醫師證號",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "診療醫師證號",
            "valueString": "I200009876"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.requester"
          }
        ]
      },
      {
        "id": "DrugModel.caseStatus",
        "path": "DrugModel.caseStatus",
        "short": "門住診別",
        "definition": "門住診別",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "門住診別",
            "valueCode": "P"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://cdc.gov.tw/aids/ValueSet/hl7-cdc-case-status"
        },
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.encounter"
          },
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.class"
          }
        ]
      },
      {
        "id": "DrugModel.caseInDate",
        "path": "DrugModel.caseInDate",
        "short": "入院日期",
        "definition": "入院日期",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "example": [
          {
            "label": "入院日期",
            "valueDateTime": "2026-05-01"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.period.start"
          }
        ]
      },
      {
        "id": "DrugModel.caseOutDate",
        "path": "DrugModel.caseOutDate",
        "short": "出院日期",
        "definition": "出院日期",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "example": [
          {
            "label": "出院日期",
            "valueDateTime": "2026-05-02"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.period.end"
          }
        ]
      },
      {
        "id": "DrugModel.drugNo",
        "path": "DrugModel.drugNo",
        "short": "藥品(項目)代碼",
        "definition": "藥品(項目)代碼",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "藥品(項目)代碼",
            "valueCode": "AC13083100"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw"
        },
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.medicationCodeableConcept"
          }
        ]
      },
      {
        "id": "DrugModel.drugUse",
        "path": "DrugModel.drugUse",
        "short": "藥品用量",
        "definition": "藥品用量",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "藥品用量",
            "valueDecimal": 1
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dosageInstruction.doseAndRate.dose[x].value"
          }
        ]
      },
      {
        "id": "DrugModel.totalQ",
        "path": "DrugModel.totalQ",
        "short": "總量",
        "definition": "總量",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "總量",
            "valueDecimal": 28
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dispenseRequest.quantity.value"
          }
        ]
      },
      {
        "id": "DrugModel.drugPath",
        "path": "DrugModel.drugPath",
        "short": "用藥頻率",
        "definition": "用藥頻率",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "用藥頻率",
            "valueCode": "QD"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-frequency-hl7-tw"
        },
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dosageInstruction.timing.code"
          }
        ]
      },
      {
        "id": "DrugModel.drugDay",
        "path": "DrugModel.drugDay",
        "short": "醫令給藥日份",
        "definition": "醫令給藥日份",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "example": [
          {
            "label": "醫令給藥日份",
            "valueDecimal": 28
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.dosageInstruction.timing.repeat.boundsDuration.value"
          }
        ]
      },
      {
        "id": "DrugModel.hospSeqNo",
        "path": "DrugModel.hospSeqNo",
        "short": "院端醫令識別碼",
        "definition": "院端醫令識別碼",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "院端醫令識別碼",
            "valueString": "0123456789005982020160624AC13083100"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.focus"
          },
          {
            "identity": "AIDSDRMedicationRequest",
            "map": "MedicationRequest.identifier"
          }
        ]
      },
      {
        "id": "DrugModel.funcType",
        "path": "DrugModel.funcType",
        "short": "就醫科別",
        "definition": "就醫科別",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "example": [
          {
            "label": "就醫科別",
            "valueCode": "99"
          }
        ],
        "binding": {
          "extension": [
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "medical-consultation-department-tw"
                },
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-consultation-department-tw"
                }
              ],
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "medical-treatment-department-tw"
                },
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-treatment-department-tw"
                }
              ],
              "url": "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"
            }
          ],
          "strength": "preferred",
          "valueSet": "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medical-department-sct-tw"
        },
        "mapping": [
          {
            "identity": "AIDSDREncounter",
            "map": "Encounter.serviceType"
          }
        ]
      },
      {
        "id": "DrugModel.sampleCode",
        "path": "DrugModel.sampleCode",
        "short": "檢體代碼",
        "definition": "檢體代碼",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "example": [
          {
            "label": "檢體代碼",
            "valueString": "0123456789005982020160624AC13083100"
          }
        ],
        "mapping": [
          {
            "identity": "AIDSDRMessageHeader",
            "map": "MessageHeader.focus"
          },
          {
            "identity": "AIDSDRSpecimen",
            "map": "Specimen.identifier"
          }
        ]
      }
    ]
  }
}