Medication prescriptions can be sent to RED using the FHIR interface and are stored in the RED database (see RED interchange API - Create Data Medication). In order to create prescriptions the user must be in the role of a physician and use a physician SMC-B card.
Processing of the electronic prescriptions may be triggered by a separate request (e.g. at the end of the day). RED processes all stored prescriptions that have not been processed yet, prompts the user for the electronic signature, sends the signed prescriptions to Fachdienst and returns an array of all task-ids. In order to accept a process prescriptions must be in the role of a physician and use a physician SMC-B card.
{{baseURL}}/{{tenant}}/TI?action=$processerp
See RED Interchange API - Postman Collection
- 0231- Patient und Medication PZN and create ERP: creates a new person with coverage, practitioner and organization and medication, then creates an electronic prescription and returns the prescription task ID
- 0233 - Patient und Medication Rezeptur and create ERP: creates a new person with coverage, practitioner and organization and medication for an extemporaneous mixture, then creates an electronic prescription and returns the prescription task ID
Additional parameters
The request may be extended by additional parameters
cardname: specify the Name of the HBA to be used for signature creation. Requires to set the name to HBC card in RED before
{{baseURL}}/{{tenant}}/Bundle?action=$createerp&cardname=HBAArzt
hbaiccsn and smcbiccsn: specify the ICCSN-IDs of HBA and SMC-B to be used. The ICCSNs can be fetched by using a getCards request. They are assigned to the card and will not change over time
{{baseURL}}/{{tenant}}/Bundle?action=$createerp&hbaiccsn=80276883110000136667&smbiccsn=80276883110000117848
patientdocument: after the prescription has been handed over to Fachdienst this returns the token and access code and a base64 string representing the patient document with the barcode for the pharmacy
{{baseURL}}/{{tenant}}/Bundle?action=$createerp&patientdocument=true
RED returns an array of prescriptions with person information and prescription lines
If the request could not be processed successfully an error message is returned
{
"Error": {
"key": "erp.service.signdocument.error",
"desc": "Es gab ein Problem beim Signieren des Dokuments",
"hint": "Möglicherweise wurde die PIN nicht korrekt eingegeben?"
}
}