Metadata fields
Every response includes the following top-level metadata fields, regardless of which template was used.Unique identifier for the consultation.
Language code of the input audio (e.g.,
"nl", "en").Language code of the generated report.
ISO 8601 timestamp indicating when the consultation started.
ISO 8601 timestamp indicating when the consultation ended.
null for in-progress dictations.Status of the report:
"intermediate" for consultations in progress, or "final" for finished consultations.Outcome of the report generation process. See Report generation results below for all possible values.
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
Thegeneration_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.
| Value | Report | Description |
|---|---|---|
success | ✓ | Report was generated successfully. |
audio_quality_degraded | ⚠ | A report was generated, but poor audio quality may have affected accuracy. |
transcript_too_short | ✗ | The transcription was too short to generate a meaningful report. |
audio_too_short | ✗ | The audio duration was too short to generate a report. |
no_medical_context | ✗ | No medical context was detected in the consultation audio. |
generation_result indicates a failure, the structured data fields may be empty or contain placeholder content.
Templates
Thedata array in the response contains one or more consultation episodes. Each episode has a template identifier and a sections array. The available templates are:
| Template ID | Description | Sections |
|---|---|---|
soap_new_complaint_api | SOAP note for general practitioners | subjective, objective, assessment, plan |
soap_urgent_care_api | SOAP note for GP urgent care / out-of-hours consultations | subjective, objective, assessment, plan |
specialist_general_api | Contact note for specialist consultations (all sections include a summary field) | reason_for_encounter, anamnesis, clinical_research, diagnosis, action_plan, conclusion |
specialist_general_free_text_api | Specialist contact note with all sections combined into a single free-text string | free_text |
dictation_api | Dictation session returning the raw transcription | transcription |
Fields per section
Each section in the response contains afields object. The available fields depend on the template and section.
Subjective
| Field ID | Type | Description |
|---|---|---|
summary | object | Narrative summary of the section. |
medical_coding | array | List of medical codes. Included only for soap_urgent_care_api. |
Objective
| Field ID | Type | Description |
|---|---|---|
summary | object | Narrative summary of the section. |
vital_signs | array | List of measured vital signs. |
Assessment
| Field ID | Type | Description |
|---|---|---|
summary | object | Narrative summary of the section. Included only for soap_urgent_care_api. |
medical_coding | array | List of medical codes. |
Plan
| Field ID | Type | Description |
|---|---|---|
summary | object | Narrative summary of the section. |
prescribed_medication | array | List of prescribed medications. |
sick_note | object | Sick note date range. |
Transcription
Thetranscription section is used exclusively by the dictation_api template.
| Field ID | Type | Description |
|---|---|---|
fixed | object | Finalized text. Contains a text string property. |
ongoing | object | In-progress transcription that may still change as the user speaks. Contains a text string property. |
Field reference
summary
A text summary of the parent section.
| Property | Type | Description |
|---|---|---|
text | string | The textual summary of the section. |
vital_signs
An array of vital sign measurements recorded during the consultation.
| Property | Type | Description |
|---|---|---|
vital_sign_id | string | Identifier of the vital sign. See the table below for available values. |
unit | string | Unit of measurement. |
value | number | Measured value. |
| Vital sign ID | Unit | Description |
|---|---|---|
weight | kg | Patient weight. |
height | cm | Patient height. |
bmi | null | Body Mass Index. |
systolic_blood_pressure | mmHg | Systolic blood pressure. |
diastolic_blood_pressure | mmHg | Diastolic blood pressure. |
heart_rate | bpm | Heart rate. |
blood_glucose | mg/dL | Blood glucose level. |
body_temperature | °C | Body temperature. |
peak_flow | L/min | Peak expiratory flow. |
oxygen_saturation | % | Oxygen saturation (SpO₂). |
medical_coding
An array of diagnosis codes extracted from the consultation.
| Property | Type | Description |
|---|---|---|
icd_10 | string | ICD-10 code. |
icpc_2 | string | ICPC-2 code. |
ibui | string | IBUI code. |
description | string | Human-readable description of the diagnosis. |
prescribed_medication
An array of medications prescribed during the consultation.
| Property | Type | Description |
|---|---|---|
active_ingredient | string | Active ingredient name. |
brand_name | string | Brand name of the medication. |
pharmaceutical_form | string | Pharmaceutical form (e.g., tablet, syrup). |
pack_size | string | Pack size. |
atc_code | string | ATC code of the active ingredient. |
sick_note
Date range for a sick note issued during the consultation. Both dates are in YYYY-MM-DD format.
| Property | Type | Description |
|---|---|---|
from_date | string | Start date of the sick note. |
to_date | string | End date of the sick note. |
JSON examples
SOAP note (Dutch)
SOAP note (Dutch)
Specialist note with free text (Dutch)
Specialist note with free text (Dutch)
Dictation
Dictation
Split SOAP note with multiple episodes
Split SOAP note with multiple episodes