Consult notes
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
Authorization: Bearer <your_token>
Content-Type: application/json
{
"generation_method":"TEMPLATE",
"addition":"",
"template_id":"659b8042fe093d6592b41ef7",
"voice_style":"GOLDILOCKS",
"brain":"LEFT"
}Request Fields:
generation_method(string, required): The method for generating the consult note. Can be one ofTEMPLATEtemplate_id(string, optional): The ID of the template to use for note generation. Required whengeneration_methodisTEMPLATEthird_party_template(string, optional): Third-party template JSON. Mutually exclusive withtemplate_idaddition(string, required): Additional text to include in the note generationvoice_style(string, required): The voice style to use for the generated note. Can be one ofGOLDILOCKS,DETAILED,BRIEF,SUPER_DETAILED,MY_VOICE. Refer to the Heidi documentation (opens in a new tab) for more information on voice stylesbrain(string, required, default:LEFT): The brain option to use. Can be one ofLEFT,RIGHT. Refer to the Heidi documentation (opens in a new tab) for more information on brain optionscontent_type(string, optional): Content type for the generated note. Can beMARKDOWNorHTML
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. Note: you will need to generate a free text note using a template before you can generate a structured note using a template.
Request
POST /sessions/1234567890/client-customised-template/response
Authorization: Bearer <your_token>
Content-Type: application/json
{
...JSON template content
}Response
This endpoint will return a template JSON response.