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

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

## Resource Profile: 調劑單張-Composition 

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

 
用於表示調劑單張資料集之文檔 

**Usages:**

* Use this Profile: [調劑單張-Bundle](StructureDefinition-Bundle-DS.md)
* Examples for this Profile: [Composition/com-ds](Composition-com-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-Composition-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-Composition-DS.csv), [Excel](StructureDefinition-Composition-DS.xlsx), [Schematron](StructureDefinition-Composition-DS.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "Composition-DS",
  "url" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-DS",
  "version" : "0.2.0",
  "name" : "CompositionDS",
  "title" : "調劑單張-Composition",
  "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" : "用於表示調劑單張資料集之文檔",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "cda",
    "uri" : "http://hl7.org/v3/cda",
    "name" : "CDA (R2)"
  },
  {
    "identity" : "fhirdocumentreference",
    "uri" : "http://hl7.org/fhir/documentreference",
    "name" : "FHIR DocumentReference"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Composition",
  "baseDefinition" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Composition-twcore",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Composition.subject",
      "path" : "Composition.subject",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS"]
      }]
    },
    {
      "id" : "Composition.encounter",
      "path" : "Composition.encounter",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-DS"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Composition.author",
      "path" : "Composition.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-DS",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-DS"]
      }]
    },
    {
      "id" : "Composition.custodian",
      "path" : "Composition.custodian",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-DS"]
      }]
    },
    {
      "id" : "Composition.section",
      "path" : "Composition.section",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "code.coding.code"
        }],
        "rules" : "open"
      },
      "min" : 3
    },
    {
      "id" : "Composition.section:Coverage",
      "path" : "Composition.section",
      "sliceName" : "Coverage",
      "short" : "就醫身分別",
      "min" : 1,
      "max" : "1"
    },
    {
      "id" : "Composition.section:Coverage.code",
      "path" : "Composition.section.code",
      "min" : 1
    },
    {
      "id" : "Composition.section:Coverage.code.coding",
      "path" : "Composition.section.code.coding",
      "min" : 1
    },
    {
      "id" : "Composition.section:Coverage.code.coding.system",
      "path" : "Composition.section.code.coding.system",
      "min" : 1,
      "fixedUri" : "http://loinc.org"
    },
    {
      "id" : "Composition.section:Coverage.code.coding.code",
      "path" : "Composition.section.code.coding.code",
      "min" : 1,
      "fixedCode" : "29762-2"
    },
    {
      "id" : "Composition.section:Coverage.code.coding.display",
      "path" : "Composition.section.code.coding.display",
      "fixedString" : "Social history Narrative"
    },
    {
      "id" : "Composition.section:Coverage.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Coverage-EMR"]
      }]
    },
    {
      "id" : "Composition.section:BodyWeight",
      "path" : "Composition.section",
      "sliceName" : "BodyWeight",
      "short" : "體重",
      "min" : 0,
      "max" : "1"
    },
    {
      "id" : "Composition.section:BodyWeight.code",
      "path" : "Composition.section.code",
      "min" : 1
    },
    {
      "id" : "Composition.section:BodyWeight.code.coding",
      "path" : "Composition.section.code.coding",
      "min" : 1
    },
    {
      "id" : "Composition.section:BodyWeight.code.coding.system",
      "path" : "Composition.section.code.coding.system",
      "min" : 1,
      "fixedUri" : "http://loinc.org"
    },
    {
      "id" : "Composition.section:BodyWeight.code.coding.code",
      "path" : "Composition.section.code.coding.code",
      "min" : 1,
      "fixedCode" : "85353-1"
    },
    {
      "id" : "Composition.section:BodyWeight.code.coding.display",
      "path" : "Composition.section.code.coding.display",
      "fixedString" : "Vital signs, weight, height, head circumference, oxygen saturation and BMI panel"
    },
    {
      "id" : "Composition.section:BodyWeight.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-DS-BodyWeight"]
      }]
    },
    {
      "id" : "Composition.section:Condition",
      "path" : "Composition.section",
      "sliceName" : "Condition",
      "short" : "診斷",
      "min" : 1,
      "max" : "*"
    },
    {
      "id" : "Composition.section:Condition.code",
      "path" : "Composition.section.code",
      "min" : 1
    },
    {
      "id" : "Composition.section:Condition.code.coding",
      "path" : "Composition.section.code.coding",
      "min" : 1
    },
    {
      "id" : "Composition.section:Condition.code.coding.system",
      "path" : "Composition.section.code.coding.system",
      "min" : 1,
      "fixedUri" : "http://loinc.org"
    },
    {
      "id" : "Composition.section:Condition.code.coding.code",
      "path" : "Composition.section.code.coding.code",
      "min" : 1,
      "fixedCode" : "29548-5"
    },
    {
      "id" : "Composition.section:Condition.code.coding.display",
      "path" : "Composition.section.code.coding.display",
      "fixedString" : "Diagnosis Narrative"
    },
    {
      "id" : "Composition.section:Condition.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Condition-DS"]
      }]
    },
    {
      "id" : "Composition.section:MedicationPrescribed",
      "path" : "Composition.section",
      "sliceName" : "MedicationPrescribed",
      "short" : "處方內容",
      "min" : 1,
      "max" : "*"
    },
    {
      "id" : "Composition.section:MedicationPrescribed.code",
      "path" : "Composition.section.code",
      "min" : 1
    },
    {
      "id" : "Composition.section:MedicationPrescribed.code.coding",
      "path" : "Composition.section.code.coding",
      "min" : 1
    },
    {
      "id" : "Composition.section:MedicationPrescribed.code.coding.system",
      "path" : "Composition.section.code.coding.system",
      "min" : 1,
      "fixedUri" : "http://loinc.org"
    },
    {
      "id" : "Composition.section:MedicationPrescribed.code.coding.code",
      "path" : "Composition.section.code.coding.code",
      "min" : 1,
      "fixedCode" : "29551-9"
    },
    {
      "id" : "Composition.section:MedicationPrescribed.code.coding.display",
      "path" : "Composition.section.code.coding.display",
      "fixedString" : "Medication prescribed Narrative"
    },
    {
      "id" : "Composition.section:MedicationPrescribed.entry",
      "path" : "Composition.section.entry",
      "slicing" : {
        "discriminator" : [{
          "type" : "profile",
          "path" : "resolve()"
        }],
        "rules" : "open"
      },
      "min" : 3,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-DS",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-Self-EMPD",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationDispense-DS",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/ChargeItem-DS"]
      }]
    },
    {
      "id" : "Composition.section:MedicationPrescribed.entry:MedicationRequest",
      "path" : "Composition.section.entry",
      "sliceName" : "MedicationRequest",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-DS"]
      }]
    },
    {
      "id" : "Composition.section:MedicationPrescribed.entry:Medication",
      "path" : "Composition.section.entry",
      "sliceName" : "Medication",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-Self-EMPD"]
      }]
    },
    {
      "id" : "Composition.section:MedicationPrescribed.entry:MedicationDispense",
      "path" : "Composition.section.entry",
      "sliceName" : "MedicationDispense",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationDispense-DS"]
      }]
    },
    {
      "id" : "Composition.section:MedicationPrescribed.entry:sliceEntry",
      "path" : "Composition.section.entry",
      "sliceName" : "sliceEntry",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/ChargeItem-DS"]
      }]
    },
    {
      "id" : "Composition.section:Media",
      "path" : "Composition.section",
      "sliceName" : "Media",
      "short" : "領藥者數位簽章",
      "min" : 0,
      "max" : "*"
    },
    {
      "id" : "Composition.section:Media.code",
      "path" : "Composition.section.code",
      "min" : 1
    },
    {
      "id" : "Composition.section:Media.code.coding",
      "path" : "Composition.section.code.coding",
      "min" : 1
    },
    {
      "id" : "Composition.section:Media.code.coding.system",
      "path" : "Composition.section.code.coding.system",
      "min" : 1,
      "fixedUri" : "http://loinc.org"
    },
    {
      "id" : "Composition.section:Media.code.coding.code",
      "path" : "Composition.section.code.coding.code",
      "min" : 1,
      "fixedCode" : "85647-6"
    },
    {
      "id" : "Composition.section:Media.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Media-DS"]
      }]
    }]
  }
}

```
