Search for consultants in the HCA system by specified fields.
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/booking-hca/consultants?fields=fields%3Dfirst_name%26fields%3Dlast_name&search=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/booking-hca/consultants/{gmc_number}?booking_type=initial' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "hca_consultant_id": "string", "crm_id": "a1cca198-42e1-4e72-a0e1-017dec9db0e1", "provider_type": "string", "professional_registration_number": "string", "provider_main_specialty": "string", "title": "string", "first_name": "string", "last_name": "string", "live_diary_booking_available": true, "availability": [ { … } ] }
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/booking-hca/consultants/{crm_id}/availability?booking_type=initial&date_from=2019-08-24&date_to=2019-08-24&location_id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "date_from": "2019-08-24T14:15:22Z", "date_to": "2019-08-24T14:15:22Z", "slots": [ { … } ] }
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/booking-hca/appointments \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"consultant_gmc_number": "string",
"booking_type": "initial",
"facility_id": "string",
"date_from": "2019-08-24T14:15:22Z",
"visit_reason_details": {
"selected_speciality": "string",
"reason_for_appointment": "string"
},
"demographics": {
"booking_by": "patient",
"paid_by": "self-pay",
"gp_referral": true,
"insurance_provider": "string",
"insurance_policy_number": "string",
"insurance_authorisation_code": "string",
"previously_been_with_hca": true,
"patient_code": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"address_1": "string",
"address_2": "string",
"postcode": "string",
"town_city": "string",
"country": "string",
"gender": "Not known",
"date_of_birth": "string",
"email": "user@example.com",
"phone": "string",
"marketing_preference_email": true,
"marketing_preference_phone": true,
"marketing_preference_sms": true,
"marketing_preference_post": true,
"representative_title": "string",
"representative_first_name": "string",
"representative_last_name": "string",
"representative_email": "user@example.com",
"representative_phone": "string",
"representative_relation": "string"
}
}'
{ "date_from": "2019-08-24T14:15:22Z", "date_to": "2019-08-24T14:15:22Z", "hca_reservation_id": "111e9f51-395d-4850-9e33-16fb9a7b74f0", "booking_status": "string", "booking_message": "string" }