Skip to main content
When a consultation ends, Squire returns a structured JSON object containing metadata about the session alongside the generated report data. The shape of the report data depends on the template used. Use this reference to map Squire’s output fields to your EHR’s data model.

Metadata fields

Every response includes the following top-level metadata fields, regardless of which template was used.
string
required
Unique identifier for the consultation.
string
required
Language code of the input audio (e.g., "nl", "en").
string
required
Language code of the generated report.
string
required
ISO 8601 timestamp indicating when the consultation started.
string
ISO 8601 timestamp indicating when the consultation ended. null for in-progress dictations.
string
required
Status of the report: "intermediate" for consultations in progress, or "final" for finished consultations.
string
required
Outcome of the report generation process. See Report generation results below for all possible values.
string
User-friendly message with more detail about the generation outcome.
generation_result_message is translated into the report’s output language and is intended to be displayed directly to end users in your EHR interface.

Report generation results

The generation_result field tells you whether Squire produced a usable report. When the result is not success, check generation_result_message for a user-ready explanation, or use the code to display your own localized message. When generation_result indicates a failure, the structured data fields may be empty or contain placeholder content.

Templates

The data array in the response contains one or more consultation episodes. Each episode has a template identifier and a sections array. The available templates are: To define your own output structure, see Templates.

Fields per section

Each section in the response contains a fields object. The available fields depend on the template and section.

Subjective

Objective

Assessment

Plan

Transcription

The transcription section is used exclusively by the dictation_api template.

Field reference

summary

A text summary of the parent section.

vital_signs

An array of vital sign measurements recorded during the consultation. Available vital signs:

medical_coding

An array of diagnosis codes extracted from the consultation.

prescribed_medication

An array of medications prescribed during the consultation.

sick_note

Date range for a sick note issued during the consultation. Both dates are in YYYY-MM-DD format.

JSON examples