Retrieve a list of candidates that can be matched against the patient on EHR
API Reference
//
Preview Patient Merging
Hero Health Public API (1.0.0)
Download OpenAPI description
Languages
Servers
Mock server
https://developer.herohealth.net/_mock/apis/public-api/openapi/
Staging
https://api.staging.htech.app/
Production
https://api.herohealth.net/
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/ehr/candidates
- Staginghttps://api.staging.htech.app/v1/patients/{id}/ehr/candidates
- Productionhttps://api.herohealth.net/v1/patients/{id}/ehr/candidates
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/ehr/candidates' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … } ], "count": 0 }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/ehr/connect
- Staginghttps://api.staging.htech.app/v1/patients/{id}/ehr/connect
- Productionhttps://api.herohealth.net/v1/patients/{id}/ehr/connect
- curl
- NodeJS
- Ruby
curl -i -X POST \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/ehr/connect' \
-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"
}'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/merge/preview
- Staginghttps://api.staging.htech.app/v1/patients/{id}/merge/preview
- Productionhttps://api.herohealth.net/v1/patients/{id}/merge/preview
- curl
- NodeJS
- Ruby
curl -i -X POST \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/merge/preview' \
-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"
}'Ok
Enum"Baron""Baroness""Brigadier""Count""Colonel""Countess""Captain""Dame""The Dowager Viscountess""Dr"
Enum"nhs_number""gha_number""ehr_partner_id""hero_id""hero_uid"
Enum"Baron""Baroness""Brigadier""Count""Colonel""Countess""Captain""Dame""The Dowager Viscountess""Dr"
Enum"nhs_number""gha_number""ehr_partner_id""hero_id""hero_uid"
Enum"Baron""Baroness""Brigadier""Count""Colonel""Countess""Captain""Dame""The Dowager Viscountess""Dr"
Enum"nhs_number""gha_number""ehr_partner_id""hero_id""hero_uid"
Response
application/json
{ "main_patient": { "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", "emails": [ … ], "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", "notes": "string", "verification_credentials": [ … ], "data_source": "hero", "restricted": false, "sex_changed_at": "2019-08-24T14:15:22Z", "status": "archived", "identifiers": [ … ], "ehr_registered": true }, "incoming_patient": { "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", "emails": [ … ], "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", "notes": "string", "verification_credentials": [ … ], "data_source": "hero", "restricted": false, "sex_changed_at": "2019-08-24T14:15:22Z", "status": "archived", "identifiers": [ … ], "ehr_registered": true }, "result_patient": { "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", "emails": [ … ], "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", "notes": "string", "verification_credentials": [ … ], "data_source": "hero", "restricted": false, "sex_changed_at": "2019-08-24T14:15:22Z", "status": "archived", "identifiers": [ … ], "ehr_registered": true }, "merge_token": "string" }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/merge
- Staginghttps://api.staging.htech.app/v1/patients/{id}/merge
- Productionhttps://api.herohealth.net/v1/patients/{id}/merge
- curl
- NodeJS
- Ruby
curl -i -X POST \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/merge' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"merge_token": "string",
"patient_id": "string"
}'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}
- Staginghttps://api.staging.htech.app/v1/patients/{id}
- Productionhttps://api.herohealth.net/v1/patients/{id}
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "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", "emails": [ "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", "notes": "string", "verification_credentials": [ "string" ], "data_source": "hero", "restricted": false, "sex_changed_at": "2019-08-24T14:15:22Z", "status": "archived", "identifiers": [ { … } ], "ehr_registered": true }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/attachments
- Staginghttps://api.staging.htech.app/v1/patients/{id}/attachments
- Productionhttps://api.herohealth.net/v1/patients/{id}/attachments
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "data": [ { … } ], "count": 0 }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients
- Staginghttps://api.staging.htech.app/v1/patients
- Productionhttps://api.herohealth.net/v1/patients
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "data": [ { … } ], "count": 0 }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/register_pds
- Staginghttps://api.staging.htech.app/v1/patients/register_pds
- Productionhttps://api.herohealth.net/v1/patients/register_pds
- curl
- NodeJS
- Ruby
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"
}'Response
application/json
{ "message": "string", "login_url": "string" }
Bodyapplication/jsonrequired
One of:
One of:
string
Enum"Baron""Baroness""Brigadier""Count""Colonel""Countess""Captain""Dame""The Dowager Viscountess""Dr"
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/register
- Staginghttps://api.staging.htech.app/v1/patients/register
- Productionhttps://api.herohealth.net/v1/patients/register
- curl
- NodeJS
- Ruby
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",
"caller": "string",
"mobile": "string",
"email": "string"
}'Response
application/json
{ "patient_id": "string" }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/billing_info
- Staginghttps://api.staging.htech.app/v1/patients/{id}/billing_info
- Productionhttps://api.herohealth.net/v1/patients/{id}/billing_info
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/billing_info' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'Response
application/json
{ "id": "string", "external_billing_id": "string", "insurance": { "insurer": "string", "membership_number": "string", "auth_code": "string" }, "billing_note": "string", "confidential": true }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/payment_methods
- Staginghttps://api.staging.htech.app/v1/patients/{id}/payment_methods
- Productionhttps://api.herohealth.net/v1/patients/{id}/payment_methods
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/patients/{id}/payment_methods' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v2/patients/{id}
- Staginghttps://api.staging.htech.app/v2/patients/{id}
- Productionhttps://api.herohealth.net/v2/patients/{id}
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/patients/{id}?data_source=hero' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'Response
application/json
{ "ehr_partner_id": "string", "emis_id": "string", "deceased_at": "2019-08-24T14:15:22Z", "dob": "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", "data_source": "hero", "restricted": false, "line_1": "string", "line_2": "string", "line_3": "string", "town": "string", "county": "string", "postcode": "string", "hero_id": "string", "hero_uid": "string", "identifiers": [ { … } ], "ehr_registered": true }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v2/patients
- Staginghttps://api.staging.htech.app/v2/patients
- Productionhttps://api.herohealth.net/v2/patients
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v2/patients?field=string&search=string&dataSource=hero' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … } ], "count": 0 }