Retrieve a consultation by its ID.
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/consultations/{id}
- Staginghttps://api.staging.htech.app/v1/consultations/{id}
- Productionhttps://api.herohealth.net/v1/consultations/{id}
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations/{id}
- Staginghttps://api.staging.htech.app/v1/consultations/{id}
- Productionhttps://api.herohealth.net/v1/consultations/{id}
- curl
- NodeJS
- Ruby
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"
}
]
}'Response
application/json
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations/{id}
- Staginghttps://api.staging.htech.app/v1/consultations/{id}
- Productionhttps://api.herohealth.net/v1/consultations/{id}
- curl
- NodeJS
- Ruby
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'- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations
- Staginghttps://api.staging.htech.app/v1/consultations
- Productionhttps://api.herohealth.net/v1/consultations
- curl
- NodeJS
- Ruby
curl -i -X GET \
'https://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations?patient_id=string&page_index=string&page_size=string' \
-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/v1/consultations
- Staginghttps://api.staging.htech.app/v1/consultations
- Productionhttps://api.herohealth.net/v1/consultations
- curl
- NodeJS
- Ruby
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",
"elements": [
{
"id": "string",
"type": "note",
"name": "string",
"code": "string",
"code_system": "string",
"term": "string",
"value": 0,
"value_text": "string",
"unit": "string",
"text": "string"
}
]
}'Response
application/json
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }
- Mock serverhttps://developer.herohealth.net/_mock/apis/public-api/openapi/v1/consultations/{id}/finalise
- Staginghttps://api.staging.htech.app/v1/consultations/{id}/finalise
- Productionhttps://api.herohealth.net/v1/consultations/{id}/finalise
- curl
- NodeJS
- Ruby
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'Response
application/json
{ "id": "string", "occurred_at": "2019-08-24T14:15:22Z", "status": "draft", "transcript": "string", "elements": [ { … } ] }