Skip to content

Transactions

The eMedication service exposes its own endpoints.

The transactions supported by these exposed endpoints can be classified as either belonging to the eMedication service content, that is, document-based (XDS or XDS-like transactions), or of a more infrastructure-like nature (e.g. PIX queries).

XDS and XDS-like transactions

Implemented transactions:

For details about documents (content and metadata), see the Documents page.

Generic rules about transactions

Tip

MHD transactions, as profiled by CH EPR FHIR, are provided as an early-stage-support. Bugs and profile changes/improvements are to be expected and all feedback is welcome.

XDS vs. MHD

IHE provides different profiles, among which XDS and MHD make it possible to exchange documents:

XDS is the profile prescribed by the Swiss EPR ordinance, but MHD is simpler to implement, as it doesn’t require the complex XDS stack (SOAP, WSSE, MIME-Multipart, MTOM/XOP, ebRIM, and multi-depth XML), and relies on a lighter REST interface.

Even though the eMedication service now supports MHD transactions, it is also possible to use the MHD profile through a third party component named mobile access gateway. This component is not affiliated with this service, but referenced here for informational purposes.

Generic error codes

XDS error code Details
XDSRegistryError In case of business rule error, missing/invalid XUA (authentication errors), unexpected exception.
XDSUnknownPatientId If the patient ID is unknown (i.e. the patient has not registered), if the subjects is missing rights to preform the action (authorization errors).

Other transactions

Besides the document-based transactions, other transactions are supported as part of the eMedication service.

In addition to the XDS transactions implemented by the service, implementers may find it useful to check out the following profiles and transactions:

The EPD-by-example github project provides guidance and examples about these transactions and others, especially:


This page was updated 2025-03-31