Retrieve a consultation by its ID.
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }
curl -i -X PATCH \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations/{id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE' \
-d '{
"occurred_at": "1989-04-11",
"transcript": "string",
"transcript_saved_at": "1989-04-11",
"elements": [
{
"id": "string",
"type": "note",
"name": "string",
"code": "string",
"code_system": "string",
"term": "string",
"value": 0,
"value_text": "string",
"unit": "string",
"text": "string",
"_destroy": true
}
]
}'
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }
curl -i -X DELETE \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations/{id}' \
-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/consultations?patient_id=string' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
curl -i -X POST \
https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations \
-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",
"occurred_at": "1989-04-11",
"transcript": "string",
"transcript_saved_at": "1989-04-11",
"admin_id": "string",
"elements": [
{
"id": "string",
"type": "note",
"name": "string",
"code": "string",
"code_system": "string",
"term": "string",
"value": 0,
"value_text": "string",
"unit": "string",
"text": "string",
"_destroy": true
}
]
}'
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }
curl -i -X POST \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations/{id}/finalise' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-practice-group-id: YOUR_API_KEY_HERE'
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }