Skip to main content
The consultation context call sends patient identity and clinical information to Telepatia before a session starts. Telepatia uses this data to pre-populate the patient record in the scribe interface and link the completed session back to your system. Call this endpoint before generating a login link. If you skip it, the scribe session will start without patient context.

Key fields

Identify the patient in one of three ways: the inline fields (name, idCountry, idType, idValue), an existing patientId (sp_...), or your own internalCode. patientId cannot be combined with the inline identity or internalCode. internalCode may be sent alone to reference an existing patient, or together with the full inline identity, which creates and tags the patient when the code is new. Providing both patientId and the inline identity, or an incomplete inline identity, returns a 400 error.

Accepted documents by country

The idType must be valid for the given idCountry. For example, passing CC with idCountry: BR returns a 400 error.

Templates: pass exactly one

medicalRecordConfiguration, medicalRecordConfigurationId, and scribeSessionConfigurationId are mutually exclusive — pass at most one. We recommend the inline medicalRecordConfiguration form: it’s reproducible, lets you version the template alongside your code, and the server dedups by content hash so you don’t accumulate duplicates.

Example request — Smart Template by id

Example request — reference an existing patient

Example request — reference by internalCode and set the branch

Response:
Save the consultationInternalId — you’ll need it to generate the login link and retrieve the session results.