# 電子處方箋-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-EMPD | *Version*:0.2.0 |
| Active as of 2023-10-30 | *Computable Name*:CompositionEMPD |

 
用於表示電子處方箋資料集之文檔 

**Usages:**

* Use this Profile: [電子處方箋-Bundle](StructureDefinition-Bundle-EMPD.md)
* Examples for this Profile: [Composition/com-ep](Composition-com-ep.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-EMPD.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-EMPD.csv), [Excel](StructureDefinition-Composition-EMPD.xlsx), [Schematron](StructureDefinition-Composition-EMPD.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "Composition-EMPD",
  "url" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-EMPD",
  "version" : "0.2.0",
  "name" : "CompositionEMPD",
  "title" : "電子處方箋-Composition",
  "status" : "active",
  "date" : "2023-10-30",
  "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" : ["http://hl7.org/fhir/StructureDefinition/Group",
        "http://hl7.org/fhir/StructureDefinition/Device",
        "http://hl7.org/fhir/StructureDefinition/Substance",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Location-twcore",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-EMPD"]
      }]
    },
    {
      "id" : "Composition.subject.reference",
      "path" : "Composition.subject.reference",
      "mustSupport" : true
    },
    {
      "id" : "Composition.encounter",
      "path" : "Composition.encounter",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-EMPD"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Composition.encounter.reference",
      "path" : "Composition.encounter.reference",
      "mustSupport" : true
    },
    {
      "id" : "Composition.date",
      "path" : "Composition.date",
      "short" : "Composition的編輯時間。[處方箋有效日期]。日期格式為西元 YYYYMMDD",
      "definition" : "包含第二次之後的建議領藥日期。"
    },
    {
      "id" : "Composition.author",
      "path" : "Composition.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-EMPD",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-EMPD",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-EMPD"]
      }]
    },
    {
      "id" : "Composition.author.reference",
      "path" : "Composition.author.reference",
      "mustSupport" : true
    },
    {
      "id" : "Composition.custodian",
      "path" : "Composition.custodian",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-EMPD"]
      }]
    },
    {
      "id" : "Composition.custodian.reference",
      "path" : "Composition.custodian.reference",
      "mustSupport" : true
    },
    {
      "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:Coverage.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationBodyWeight",
      "path" : "Composition.section",
      "sliceName" : "ObservationBodyWeight",
      "short" : "體重。若調劑藥物劑量須配合體重而有所調整，此欄位為必填。",
      "min" : 0,
      "max" : "1"
    },
    {
      "id" : "Composition.section:ObservationBodyWeight.code",
      "path" : "Composition.section.code",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationBodyWeight.code.coding",
      "path" : "Composition.section.code.coding",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationBodyWeight.code.coding.system",
      "path" : "Composition.section.code.coding.system",
      "min" : 1,
      "fixedUri" : "http://loinc.org"
    },
    {
      "id" : "Composition.section:ObservationBodyWeight.code.coding.code",
      "path" : "Composition.section.code.coding.code",
      "min" : 1,
      "fixedCode" : "85353-1"
    },
    {
      "id" : "Composition.section:ObservationBodyWeight.code.coding.display",
      "path" : "Composition.section.code.coding.display",
      "fixedString" : "Vital signs, weight, height, head circumference, oxygen saturation and BMI panel"
    },
    {
      "id" : "Composition.section:ObservationBodyWeight.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-EMPD-BodyWeight"]
      }]
    },
    {
      "id" : "Composition.section:ObservationBodyWeight.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "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-EMPD"]
      }]
    },
    {
      "id" : "Composition.section:Condition.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "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" : 2,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-Self-EMPD",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD"]
      }]
    },
    {
      "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-EMPD",
        "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-Self-EMPD"]
      }]
    },
    {
      "id" : "Composition.section:MedicationPrescribed.entry:Medication.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "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-EMPD"]
      }]
    },
    {
      "id" : "Composition.section:MedicationPrescribed.entry:MedicationRequest.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    }]
  }
}

```
