Skip to content

Create Prescription with Patient

Request

Creates a new prescription and associates it with a patient.

Security
apiKeyAuth and practiceGroupId
Bodyapplication/jsonrequired
patientobjectrequired
prescriberobjectrequired
medicinesArray of objectsrequired
deliveryobjectrequired
secure_pinstringrequired
notesstring
curl -i -X POST \
  https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/prescriptions \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -H 'x-practice-group-id: YOUR_API_KEY_HERE' \
  -d '{
    "patient": {
      "id": "string",
      "first_name": "string",
      "last_name": "string",
      "sex": "Not known",
      "title": "Baron",
      "dob": "2019-08-24T14:15:22Z",
      "nhs_number": "string",
      "email": "user@example.com",
      "mobile": "string",
      "address": {
        "line1": "string",
        "line2": "string",
        "line3": "string",
        "town": "string",
        "county": "string",
        "country": "string",
        "postcode": "string"
      }
    },
    "prescriber": {
      "name": "string",
      "code": "string",
      "contact_number": "string",
      "prescriber_id": "string"
    },
    "medicines": [
      {
        "name": "string",
        "quantity": "string",
        "directions": "string",
        "snomed_code": "string"
      }
    ],
    "delivery": {
      "issue_method": "messaging",
      "send_sms": false,
      "pharmacy_id": "string",
      "invoice_clinic": true,
      "delivery_address": {
        "line1": "string",
        "line2": "string",
        "line3": "string",
        "town": "string",
        "county": "string",
        "country": "string",
        "postcode": "string"
      }
    },
    "secure_pin": "string",
    "notes": "string"
  }'

Responses

Ok

Bodyapplication/json
prescription_idstring^\d+$required
Response
{ "prescription_id": "string" }