Retrieve patient information.
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "uid": "string", "emis_id": "string", "ehr_partner_id": "string", "dob": "2019-08-24T14:15:22Z", "deceased_at": "2019-08-24T14:15:22Z", "title": "Baron", "first_name": "string", "last_name": "string", "sex": "Not known", "nhs_number": "string", "email": "string", "mobile": "string", "last_sync_at": "2019-08-24T14:15:22Z", "address_line_1": "string", "address_line_2": "string", "address_line_3": "string", "country": "string", "postcode": "string", "town": "string", "county": "string" }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/attachments' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients?field=emis_id&search=string' \
-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/patients/register_pds \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"dob": "1989-04-11",
"postcode": "string",
"forename": "string",
"surname": "string",
"ehr_partner": "string",
"ehr_partner_id": "string"
}'
{ "patient_id": "string" }
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/register \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"ehr_partner_id": "string",
"nhs_number": "string",
"dob": "string",
"first_name": "string",
"last_name": "string",
"sex": "Not known",
"title": "Baron",
"landline": "string",
"address_line_1": "string",
"address_line_2": "string",
"address_line_3": "string",
"country": "string",
"postcode": "string",
"town": "string",
"county": "string",
"data_source": "hero",
"mobile": "string",
"email": "string"
}'
{ "patient_id": "string" }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/patients?dataSource=hero&field=string&search=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "data": [ { … } ], "count": 0 }