Retrieves a list of all forms configured for the requesting practice group.
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/forms?form_type=questionnaire&reply_form=true&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/forms/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
Ok
{ "id": "string", "form_type": "questionnaire", "title": "string", "description": "string", "patient_title": "string", "patient_description": "string", "snomed_code": "string", "fields": [ { … } ] }
curl -i -X POST \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/forms/{id}/response' \
-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",
"auto_write_to_record": false,
"write_to_record": false,
"responses": [
{
"form_question_id": "string",
"text_response": "string",
"integer_response": 0,
"boolean_response": true,
"checkbox_response": [
"string"
],
"datetime_response": "string",
"observation_value_response": "string",
"problem_response": "string",
"immunisation_response": "string",
"base_64_content_type": "string",
"base_64_file_name": "string",
"base_64_file_response": "string"
}
],
"appointment_id": "string"
}'
{ "form_response_id": "string", "confirm_write_to_record_url": "string" }
curl -i -X POST \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/forms/response/{id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"auto_write_to_record": false,
"write_to_record": false
}'
{ "form_response_id": "string", "confirm_write_to_record_url": "string" }