Retrieve a list of pharmacies for the prescriber.
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/prescriber/{id}/pharmacies' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/pharmacies \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"email": "string",
"mobile": "string",
"prescriber_id": "string"
}'
{ "id": "string", "prescriber_id": "string", "name": "string", "email": "string", "mobile": "string" }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/prescriber/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "email": "user@example.com", "full_name": "string", "tokens": "string", "active": true, "verified": true }
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/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"
}'
{ "prescription_id": "string" }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/prescriptions/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "external_prescription_id": "string", "status": "string", "signed_at": "2019-08-24T14:15:22Z", "notes": "string", "medicines": [ { … } ], "patient": { "id": "string", "first_name": "string", "last_name": "string" }, "prescriber": { "id": "string", "name": "string", "email": "user@example.com" } }