Skip to main content
POST
/
api
/
v1
/
prescriptions
/
electronic_prescriptions
/
composite
Single request creation of a prescription and order (optionally patient/prescriber
curl --request POST \
  --url https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/composite \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "electronic_prescription": {},
  "order": {},
  "patient": {},
  "prescriber": {}
}'
{
  "patient": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "created": true
  },
  "prescriber": {
    "id": "987fcdeb-51a2-43d1-9f12-345678901234",
    "created": false
  },
  "electronic_prescription": {
    "id": "456789ab-cdef-1234-5678-90abcdef1234",
    "created": true
  },
  "order": {
    "id": "789abcde-f012-3456-7890-123456789abc",
    "created": true
  },
  "summary": {
    "entities_created": 3,
    "entities_referenced": 1
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
electronic_prescription
object

An electronic prescription object. Please refer to the Create a New Electronic Prescription endpoint for more information on required fields.

order
object

An order object. Please refer to the Create an Order endpoint for more information on required fields.

patient
object

A patient object. If you pass new patient data, a new patient will be created. Or you may reference an existing patient by id or external_id. Please refer to the Create a Patient endpoint for more information on required fields.

prescriber
object

A prescriber object. If you pass new prescriber data, a new prescriber will be created. Or you may reference an existing prescriber by id or npi. Please refer to the Create a New Prescriber endpoint for more information on required fields.

Response

201 - application/json

Response from composite entity creation. Only includes keys for entities that were provided in the request. For example, if only patient and order were requested, only those keys (plus summary) will be present in the response.

patient
object
prescriber
object
electronic_prescription
object
order
object
summary
object
I