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

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **電子處方箋與調劑單張-伺服端**

## CapabilityStatement: 電子處方箋與調劑單張-伺服端 

| | |
| :--- | :--- |
| *Official URL*:https://nhicore.nhi.gov.tw/empd/CapabilityStatement/CapabilityStatementEMPDServer | *Version*:0.2.0 |
| Active as of 2023-11-20 | *Computable Name*:CapabilityStatementEMPDServer |

 
電子處方箋與調劑單張-伺服端(Server)之能力聲明 

 [Raw OpenAPI-Swagger Definition file](CapabilityStatementEMPDServer.openapi.json) | [Download](CapabilityStatementEMPDServer.openapi.json) 



## Resource Content

```json
{
  "resourceType" : "CapabilityStatement",
  "id" : "CapabilityStatementEMPDServer",
  "url" : "https://nhicore.nhi.gov.tw/empd/CapabilityStatement/CapabilityStatementEMPDServer",
  "version" : "0.2.0",
  "name" : "CapabilityStatementEMPDServer",
  "title" : "電子處方箋與調劑單張-伺服端",
  "status" : "active",
  "experimental" : false,
  "date" : "2023-11-20",
  "publisher" : "NHI",
  "contact" : [{
    "name" : "NHI",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.nhi.gov.tw/en/mp-2.html"
    }]
  }],
  "description" : "電子處方箋與調劑單張-伺服端(Server)之能力聲明",
  "kind" : "requirements",
  "fhirVersion" : "4.0.1",
  "format" : ["xml", "json"],
  "patchFormat" : ["application/json-patch+json"],
  "rest" : [{
    "mode" : "server",
    "documentation" : "電子病歷交換-伺服端必須(SHALL)：(1)支援本實作指引中所有profiles (2)根據FHIR規範實作RESTful (3)回傳狀態碼-①(Status 400)：無效參數(invalid parameter)、②(Status 401/4xx)：未經授權的請求(unauthorized request)、③(Status 403)：未充分授權的資料存取範圍(insufficient premission scope)、④(Status 404)：未知的resource(unknown resource) (4)支援JSON格式 (5)可識別每個新增到Server的實例(instance)之meta.profile是否為電子病歷交換Profiles Defining URL，並確認實例是否依循profile製作。電子病歷交換-伺服端建議應該(SHOULD)：(1)支援XML格式。",
    "resource" : [{
      "type" : "Bundle",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Bundle-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Bundle-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Composition",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Composition-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Patient",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Patient-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Organization",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Organization-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Encounter",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Encounter-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Condition",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Condition-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Condition-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Observation",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-EMPD-BodyWeight",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Observation-DS-BodyWeight"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Media",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Media-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Practitioner",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Practitioner-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Medication",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-Self-EMPD"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "MedicationRequest",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-EMPD",
      "https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationRequest-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "Coverage",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/Coverage-EMR"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "ChargeItem",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/ChargeItem-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    },
    {
      "type" : "MedicationDispense",
      "supportedProfile" : ["https://nhicore.nhi.gov.tw/empd/StructureDefinition/MedicationDispense-DS"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }],
      "referencePolicy" : ["resolves"]
    }]
  }]
}

```
