# 調劑單張-Bundle - 臺灣電子處方箋與調劑單張實作指引(TW EMPD IG) v0.2.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **調劑單張-Bundle**

## Resource Profile: 調劑單張-Bundle 

| | |
| :--- | :--- |
| *Official URL*:https://nhicore.nhi.gov.tw/empd/StructureDefinition/Bundle-DS | *Version*:0.2.0 |
| Active as of 2024-01-02 | *Computable Name*:BundleDS |

 
Profiles用於打包調劑單張所有相關資料，利用此Bundle時請使用document方式將資料進行打包，Bundle所包含之Resource應與Composition涵蓋數量保持一致，且所有的Resource必須符合調劑單張各資料規範，其相關規範(Structure Definition)與範例(Example)可分別於Bundle內entry的url連結或是在Composition進行查閱。 

**Usages:**

* Examples for this Profile: [Bundle/bun-ds](Bundle-bun-ds.md)
* CapabilityStatements using this Profile: [電子處方箋與調劑單張-用戶端](CapabilityStatement-CapabilityStatementEMPDClient.md) and [電子處方箋與調劑單張-伺服端](CapabilityStatement-CapabilityStatementEMPDServer.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/resource/tw.gov.mohw.nhi.empd|current/StructureDefinition/StructureDefinition-Bundle-DS.json)

### Formal Views of Profile Content

 [Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-Bundle-DS.csv), [Excel](StructureDefinition-Bundle-DS.xlsx), [Schematron](StructureDefinition-Bundle-DS.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "Bundle-DS",
  "url" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Bundle-DS",
  "version" : "0.2.0",
  "name" : "BundleDS",
  "title" : "調劑單張-Bundle",
  "status" : "active",
  "date" : "2024-01-02",
  "publisher" : "NHI",
  "contact" : [{
    "name" : "NHI",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.nhi.gov.tw/en/mp-2.html"
    }]
  }],
  "description" : "Profiles用於打包調劑單張所有相關資料，利用此Bundle時請使用document方式將資料進行打包，Bundle所包含之Resource應與Composition涵蓋數量保持一致，且所有的Resource必須符合調劑單張各資料規範，其相關規範(Structure Definition)與範例(Example)可分別於Bundle內entry的url連結或是在Composition進行查閱。",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "cda",
    "uri" : "http://hl7.org/v3/cda",
    "name" : "CDA (R2)"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Bundle",
  "baseDefinition" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Bundle-twcore",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Bundle",
      "path" : "Bundle"
    },
    {
      "id" : "Bundle.type",
      "path" : "Bundle.type",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry",
      "path" : "Bundle.entry",
      "slicing" : {
        "discriminator" : [{
          "type" : "profile",
          "path" : "resource"
        }],
        "rules" : "open"
      },
      "min" : 11,
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Composition",
      "path" : "Bundle.entry",
      "sliceName" : "Composition",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Composition.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Composition",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Organization",
      "path" : "Bundle.entry",
      "sliceName" : "Organization",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Organization.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Organization",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Patient",
      "path" : "Bundle.entry",
      "sliceName" : "Patient",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Patient.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Patient",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:ChargeItem",
      "path" : "Bundle.entry",
      "sliceName" : "ChargeItem",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:ChargeItem.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "ChargeItem",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/ChargeItem-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Encounter",
      "path" : "Bundle.entry",
      "sliceName" : "Encounter",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Encounter.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Encounter",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Condition",
      "path" : "Bundle.entry",
      "sliceName" : "Condition",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Condition.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Condition",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Condition-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Practitioner",
      "path" : "Bundle.entry",
      "sliceName" : "Practitioner",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Practitioner.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Practitioner",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Medication",
      "path" : "Bundle.entry",
      "sliceName" : "Medication",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Medication.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Medication",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-Self-EMPD"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:MedicationRequest",
      "path" : "Bundle.entry",
      "sliceName" : "MedicationRequest",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:MedicationRequest.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "MedicationRequest",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:ObservationBodyWeight",
      "path" : "Bundle.entry",
      "sliceName" : "ObservationBodyWeight",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:ObservationBodyWeight.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Observation",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-DS-BodyWeight"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Coverage",
      "path" : "Bundle.entry",
      "sliceName" : "Coverage",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Coverage.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Coverage",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Coverage-EMR"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Media",
      "path" : "Bundle.entry",
      "sliceName" : "Media",
      "min" : 0,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:Media.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "Media",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Media-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:MedicationDispense",
      "path" : "Bundle.entry",
      "sliceName" : "MedicationDispense",
      "min" : 1,
      "max" : "*",
      "mustSupport" : true
    },
    {
      "id" : "Bundle.entry:MedicationDispense.resource",
      "path" : "Bundle.entry.resource",
      "min" : 1,
      "type" : [{
        "code" : "MedicationDispense",
        "profile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationDispense-DS"]
      }],
      "mustSupport" : true
    }]
  }
}

```
