Consult notes
Get a list of Consult Note templates
Method: GET
Path: /templates/consult-note-templates
Description: Return a list of Consult Note templates.
Request
GET /templates/consult-note-templates HTTP/1.1
Authorization: Bearer <your_token>Response
{
"templates": [
{
"id": "659b8042fe093d6592b41ef7",
"name": "H & P",
"structure_template": "Template content...",
"template_category": "CONSULT_NOTE_TEMPLATE",
"template_html": "Template HTML content, if available...",
"author_name": "Heidi"
}
]
}Generate Consult Note
Method: POST
Path: /sessions/{session_id}/consult-note
Description: Generates a consult note using a Heidi template.
Request
POST /sessions/1234567890/consult-note HTTP/1.1
Authorization: Bearer <your_token>
Content-Type: application/json
{
"generation_method":"TEMPLATE",
"addition":"",
"template_id":"659b8042fe093d6592b41ef7",
"voice_style":"GOLDILOCKS",
"brain":"LEFT"
}voice_style: The voice style to use for the generated note. Can be one ofGOLDILOCKS,DETAILED,BRIEF,SUPER_DETAILED. Refer to the Heidi documentation (opens in a new tab) for more information on voice styles.brain: can be one ofLEFT,RIGHT. Refer to the Heidi documentation (opens in a new tab) for more information on brain options.generation_method: can be one ofTEMPLATE,THIRD_PARTY_TEMPLATE. ChooseTEMPLATEin combination with atemplate_idif you're generating a note using a Heidi template, chooseTHIRD_PARTY_TEMPLATEif you're using a custom JSON template.
Response
This endpoint will return a stream of the generated consult note, in the format:
{
"data": "Consult note text..."
}Generate Consult Note with a Custom Template
Method: POST
Path: /sessions/${sessionId}/client-customised-template/response
Description: Generates a consult note using a custom JSON template.
Request
POST /sessions/1234567890/client-customised-template/response HTTP/1.1
Authorization: Bearer <your_token>
Content-Type: application/json
{
...JSON template content
}Response
This endpoint will return a template JSON response.