ISO 3166-1 alpha-2 country codes. Mirrors tanjiro's CountryCodes enum.
Available options:
AF,
AX,
AL,
DZ,
AS,
AD,
AO,
AI,
AQ,
AG,
AR,
AM,
AW,
AU,
AT,
AZ,
BS,
BH,
BD,
BB,
BY,
BE,
BZ,
BJ,
BM,
BT,
BO,
BQ,
BA,
BW,
BV,
BR,
IO,
BN,
BG,
BF,
BI,
KH,
CM,
CA,
CV,
KY,
CF,
TD,
CL,
CX,
CC,
CO,
KM,
CK,
CR,
CI,
HR,
CU,
CW,
CY,
CZ,
CD,
DK,
DJ,
DM,
DO,
EC,
EG,
SV,
GQ,
ER,
EE,
SZ,
ET,
FK,
FO,
FJ,
FI,
FR,
GF,
PF,
TF,
GA,
GE,
DE,
GH,
GI,
GR,
GL,
GD,
GP,
GU,
GT,
GG,
GN,
GW,
GY,
HT,
HM,
VA,
HN,
HK,
HU,
IS,
IN,
ID,
IQ,
IE,
IR,
IM,
IL,
IT,
JM,
JP,
JE,
JO,
KZ,
KE,
KI,
XK,
KW,
KG,
LA,
LV,
LB,
LS,
LR,
LY,
LI,
LT,
LU,
MO,
MG,
MW,
MY,
MV,
ML,
MT,
MH,
MQ,
MR,
MU,
YT,
MX,
FM,
MD,
MC,
MN,
ME,
MS,
MA,
MZ,
MM,
NA,
NR,
NP,
NL,
NC,
NZ,
NI,
NE,
NG,
NU,
NF,
KP,
MP,
NO,
OM,
PK,
PW,
PA,
PG,
PY,
CN,
PE,
PH,
PN,
PL,
PT,
PR,
QA,
CG,
GM,
RE,
RO,
RU,
RW,
BL,
SH,
KN,
LC,
MF,
PM,
VC,
WS,
SM,
ST,
SA,
SN,
RS,
SC,
SL,
SG,
SX,
SK,
SI,
SB,
SO,
ZA,
GS,
KR,
SS,
ES,
LK,
PS,
SD,
SR,
SJ,
SE,
CH,
SY,
TW,
TJ,
TH,
MK,
TL,
TG,
TK,
TO,
TT,
TN,
TR,
TM,
TC,
TV,
UG,
UA,
AE,
GB,
TZ,
UM,
US,
UY,
UZ,
VU,
VE,
VN,
VG,
VI,
WF,
EH,
YE,
ZM,
ZW
Example:
"CO"
idType
enum<string> | null
Supported patient identification document types.
Available options:
CC,
TI,
CE,
RC,
PASSPORT,
RG,
CPF,
OTHER_DOC
Example:
"CC"
idValue
string | null
Required string length: 1 - 50
Example:
"123456789"
patientId
string | null
Public id of an existing patient (sp_...). When provided, the patient's stored identity is used and the inline identity fields (name, idCountry, idType, idValue) must be omitted. Mutually exclusive with the inline identity.
Pattern: ^sp_[a-z0-9]{16}$
Example:
"sp_a1b2c3d4e5f6g7h8"
internalCode
string | null
Your own patient code, unique per institution. Looks up an existing patient by this code; when none matches, the inline identity (name, idCountry, idType, idValue) creates and tags the patient at session start. Mutually exclusive with patientId.
Required string length: 1 - 128
Example:
"MRN-000123"
clinicalContext
ClinicalContext · object | null
Structured clinical data of the patient and the encounter: allergies, medications, conditions, the current encounter and previous encounters. See /scribe-api/consultations#clinical-context. currentEncounter.id is the Encounter.id of the visit; the scribe session attaches to that visit. The other fields need an API key that carries scribe:write and is bound to your institution; otherwise the call returns 403 permission_denied and writes nothing. Field names are camelCase; an unknown field inside the block returns 400. There is one current patient per doctor key, so the last call wins.
Show child attributes
notes
string | null
Maximum string length: 10000
Example:
"Patient reports headache"
pastMedicalHistory
string | null
Maximum string length: 10000
Example:
"Hypertension, Diabetes Type 2"
consultationInternalId
string | null
Maximum string length: 128
Pattern: ^[A-Za-z0-9_-]{1,128}$
Example:
"CONSULT-12345"
scribeSessionModality
enum<string> | null
Supported scribe session modalities.
Available options:
IN_PERSON,
TELEMEDICINE,
DICTATION
Example:
"IN_PERSON"
institutionalBranchId
string | null
Id of the institution branch for this consultation, returned by the create-branch endpoint. Stamped onto the scribe session at creation. Provide the id or the name.
Maximum string length: 128
Example:
"b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
institutionalBranch
string | null
Name of the institution branch for this consultation. Resolved when institutionalBranchId is not provided. Provide the id or the name.
Maximum string length: 256
Example:
"Sede Norte"
scribeSessionConfigurationId
string | null
Public id of a scribe session configuration (ssc_ + 16 chars [a-z0-9]). Mutually exclusive with medicalRecordConfigurationId and medicalRecordConfiguration.
Maximum string length: 128
Example:
"ssc_a1b2c3d4e5f6g7h8"
medicalRecordConfigurationId
string | null
Public id of a medical record configuration (mrc_ + 16 chars [a-z0-9]). Mutually exclusive with scribeSessionConfigurationId and medicalRecordConfiguration.
Maximum string length: 128
Example:
"mrc_a1b2c3d4e5f6g7h8"
medicalRecordConfiguration
Medicalrecordconfiguration · object | null
Inline medical record configuration JSON keyed by section name (e.g. 'chiefComplaint'). Auto-persisted and deduplicated by content hash; the resolved configuration id is attached to the doctor context buffer. Mutually exclusive with medicalRecordConfigurationId and scribeSessionConfigurationId.
Response
Successful Response
Response body for setting consultation context.
success
boolean
required
Example:
true
consultationInternalId
string
required
Example:
"CONSULT-12345"
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Telepatia Integration Hub","colors":{"primary":"#056F42","light":"#056F42","dark":"#ECF1E9"},"logo":{"light":"https://mintcdn.com/telepatia/9kt4voitLfovraG3/logo/light.svg?fit=max\u0026auto=format\u0026n=9kt4voitLfovraG3\u0026q=85\u0026s=85910533c2a504f94c6caf838b5578c5","dark":"https://mintcdn.com/telepatia/9kt4voitLfovraG3/logo/dark.svg?fit=max\u0026auto=format\u0026n=9kt4voitLfovraG3\u0026q=85\u0026s=bc49522c524cbf0ec907a7ab7b2cd2fd"},"favicon":"https://mintcdn.com/telepatia/VnC5WSMQqJCZtWoe/favicon.svg?fit=max\u0026auto=format\u0026n=VnC5WSMQqJCZtWoe\u0026q=85\u0026s=b622996862eec825ec9347f18bec3b26","appearance":{"default":"dark","strict":false},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":""},{"language":"es","href":"es"},{"language":"pt-BR","href":"pt-BR"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"telepatia","hasAudioNarration":false,"actualSubdomain":"telepatia","customDomains":["docs.telepatia.ai"],"gitSource":{"type":"github","owner":"telepatia-ai","repo":"monobloco","deployBranch":"prod","contentDirectory":"docs/dev-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b00abd3a4c589bdf0630054","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"es","tag":"Scribe API","count":129},{"language":"en","tag":"Scribe API","count":129},{"language":"pt-BR","tag":"Scribe API","count":128},{"language":"es","tag":"API Institucional","count":40},{"language":"en","tag":"Institutional API","count":40},{"language":"pt-BR","tag":"API Institucional","count":40},{"language":"es","tag":"Prompts de IA","count":38},{"language":"en","tag":"AI Prompts","count":38},{"language":"pt-BR","tag":"Prompts de IA","count":37},{"language":"es","tag":"Web Companion","count":28},{"language":"en","tag":"Web Companion","count":28},{"language":"pt-BR","tag":"Web Companion","count":28},{"language":"es","tag":"Guías","count":26},{"language":"en","tag":"Guides","count":26},{"language":"pt-BR","tag":"Guias","count":26},{"language":"es","tag":"API Doctor","count":25},{"language":"en","tag":"Doctor API","count":25},{"language":"pt-BR","tag":"API Médico","count":25},{"language":"es","tag":"Doctor","count":24},{"language":"en","tag":"Doctor","count":24},{"language":"pt-BR","tag":"Médico","count":23},{"language":"es","tag":"Funcionalidades","count":13},{"language":"en","tag":"Features","count":13},{"language":"pt-BR","tag":"Funcionalidades","count":13},{"language":"es","tag":"Conceptos básicos","count":12},{"language":"es","tag":"Pacientes","count":12},{"language":"en","tag":"Core Concepts","count":12},{"language":"en","tag":"Patients","count":12},{"language":"pt-BR","tag":"Conceitos principais","count":12},{"language":"pt-BR","tag":"Pacientes","count":12}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n.tp-home,.tp-api,.tp-pillswitch,.tp-changelog{--tp-panel: #0E100E;--tp-panel-2: #0D0F0D;--tp-line: #1F221F;--tp-line-soft: #232623;--tp-line-hover: #2E322E;--tp-green: #056F42;--tp-accent: #7FD3A8;--tp-text: #F5F7F3;--tp-body: #C4CCC5;--tp-muted: #9BA29C;--tp-faint: #5A615B;--tp-swatch: #1D3A2A;--tp-featured-bg: #0B1610;--tp-featured-line: #1D3A2A;--tp-featured-hover: #2C5A3F;--tp-pill-featured-line: #24322A}html:not(.dark) .tp-home,html:not(.dark) .tp-api,html:not(.dark) .tp-pillswitch,html:not(.dark) .tp-changelog{--tp-panel: #F6F7F5;--tp-panel-2: #FAFAF9;--tp-line: #E4E7E2;--tp-line-soft: #DDE0DB;--tp-line-hover: #C4C8C2;--tp-green: #056F42;--tp-accent: #056F42;--tp-text: #14181A;--tp-body: #3A403B;--tp-muted: #6B726B;--tp-faint: #98A09A;--tp-swatch: #D3E8DC;--tp-featured-bg: #F0F7F2;--tp-featured-line: #CDE7D8;--tp-featured-hover: #9FCEB4;--tp-pill-featured-line: #CDE7D8}.tp-home a,.tp-api a{text-decoration:none}.tp-home *,.tp-home *::before,.tp-home *::after,.tp-api *,.tp-api *::before,.tp-api *::after{box-sizing:border-box}.tp-home{max-width:1180px;margin:0 auto;padding:40px 28px 96px}.tp-hero{padding:24px 0 40px;border-bottom:1px solid var(--tp-line)}.tp-eyebrow{font:500 11px/1 'Geist Mono', monospace;letter-spacing:.1em;color:var(--tp-accent);margin-bottom:16px}.tp-h1{margin:0 0 14px;font:600 42px/1.1 Geist, system-ui, sans-serif;letter-spacing:-.024em;color:var(--tp-text);max-width:720px}.tp-sub{margin:0 0 30px;font:400 17px/1.6 Geist, system-ui, sans-serif;color:var(--tp-muted);max-width:620px;text-wrap:pretty}.tp-search{display:flex;align-items:center;gap:10px;width:100%;max-width:560px;padding:13px 16px;border:1px solid var(--tp-line-soft);border-radius:11px;background:var(--tp-panel);cursor:pointer;font:inherit;text-align:left;transition:border-color .15s ease}.tp-search:hover{border-color:var(--tp-line-hover)}.tp-search-dot{width:14px;height:14px;border:1.5px solid var(--tp-accent);border-radius:50%;flex:none}.tp-search-text{font:400 14.5px Geist, system-ui, sans-serif;color:var(--tp-muted)}.tp-search-kbd{margin-left:auto;font:500 10.5px 'Geist Mono', monospace;color:var(--tp-faint)}.tp-section-label{font:500 10.5px/1 'Geist Mono', monospace;letter-spacing:.09em;color:var(--tp-faint);margin:40px 0 20px}.tp-products{display:flex;flex-direction:column;gap:14px}.tp-row{display:grid;grid-template-columns:250px 1fr 220px;gap:26px;padding:24px;border:1px solid var(--tp-line);border-radius:14px;background:var(--tp-panel);color:inherit;transition:border-color .15s ease, background .15s ease}.tp-row:hover{border-color:var(--tp-line-hover)}.tp-row--featured{border-color:var(--tp-featured-line);background:var(--tp-featured-bg)}.tp-row--featured:hover{border-color:var(--tp-featured-hover)}.tp-row-title{display:flex;align-items:center;gap:10px;margin-bottom:10px}.tp-row-title span:last-child{font:600 18px Geist, system-ui, sans-serif;color:var(--tp-text)}.tp-swatch{width:26px;height:26px;border-radius:7px;background:var(--tp-swatch);flex:none}.tp-swatch--api{background:var(--tp-green)}.tp-row-meta{font:400 12px 'Geist Mono', monospace;color:var(--tp-accent)}.tp-row-desc{margin:0 0 12px;font:400 14px/1.6 Geist, system-ui, sans-serif;color:var(--tp-body)}.tp-row-desc code{font:400 13px 'Geist Mono', monospace;color:var(--tp-accent)}.tp-pills{display:flex;gap:8px;flex-wrap:wrap}.tp-pill{font:400 11.5px Geist, system-ui, sans-serif;color:var(--tp-muted);border:1px solid var(--tp-line-soft);border-radius:20px;padding:4px 10px}.tp-row--featured .tp-pill{border-color:var(--tp-pill-featured-line)}.tp-row-for{display:flex;flex-direction:column;gap:8px}.tp-for-label{font:500 10.5px/1 'Geist Mono', monospace;letter-spacing:.08em;color:var(--tp-faint)}.tp-for-text{font:400 12.5px/1.5 Geist, system-ui, sans-serif;color:var(--tp-muted)}.tp-cta{margin-top:auto;font:500 12.5px Geist, system-ui, sans-serif;color:var(--tp-accent)}.tp-unsure{margin-top:26px;padding:22px 24px;border:1px solid var(--tp-line);border-radius:14px;background:var(--tp-panel-2)}.tp-unsure-title{font:600 15px Geist, system-ui, sans-serif;color:var(--tp-text);margin-bottom:14px}.tp-unsure-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:12px}.tp-sentence{display:flex;flex-direction:column;gap:8px;padding:15px 16px;border:1px solid var(--tp-line-soft);border-radius:11px;color:inherit;transition:border-color .15s ease}.tp-sentence:hover{border-color:var(--tp-line-hover)}.tp-sentence-q{font:400 13px/1.55 Geist, system-ui, sans-serif;color:var(--tp-body)}.tp-api{display:block;margin-top:26px}.tp-api-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:30px}.tp-api-btn{font:500 13px Geist, system-ui, sans-serif;color:#fff;background:var(--tp-green);border-radius:9px;padding:11px 17px}.tp-api-btn:hover{background:#03502F}.tp-api-chip{font:500 13px Geist, system-ui, sans-serif;color:var(--tp-body);border:1px solid var(--tp-line-soft);border-radius:9px;padding:11px 17px}.tp-api-chip:hover{border-color:var(--tp-line-hover)}.tp-api-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:12px;margin-bottom:30px}.tp-api-card{padding:18px;border:1px solid var(--tp-line);border-radius:12px;background:var(--tp-panel);color:inherit;transition:border-color .15s ease}.tp-api-card:hover{border-color:var(--tp-line-hover)}.tp-api-card-t{font:600 15px Geist, system-ui, sans-serif;color:var(--tp-text);margin-bottom:5px}.tp-api-card-d{font:400 12.5px/1.55 Geist, system-ui, sans-serif;color:var(--tp-muted)}.tp-api-wrong{display:flex;align-items:center;gap:18px;padding:18px 20px;border:1px solid var(--tp-featured-line);border-radius:12px;background:var(--tp-featured-bg);color:inherit}.tp-api-wrong-t{font:600 14px Geist, system-ui, sans-serif;color:var(--tp-text);margin-bottom:4px}.tp-api-wrong-d{font:400 12.5px/1.55 Geist, system-ui, sans-serif;color:var(--tp-muted)}.tp-api-wrong-cta{margin-left:auto;flex:none;font:500 12.5px Geist, system-ui, sans-serif;color:var(--tp-accent)}.tp-pillswitch{display:flex;gap:3px;padding:4px;border:1px solid var(--tp-line);border-radius:9px;background:var(--tp-panel-2);margin:0 6px 6px;animation:tp-fadein .18s ease}@keyframes tp-fadein{from{opacity:0}to{opacity:1}}.tp-pill{flex:1;text-align:center;cursor:pointer;font:500 11.5px Geist, system-ui, sans-serif;color:var(--tp-muted);background:transparent;border:0;border-radius:6px;padding:6px 0;text-decoration:none;transition:background .12s ease, color .12s ease}.tp-pill:hover{color:var(--tp-text)}.tp-pill.is-active{background:var(--tp-accent);color:#04120A;font-weight:600}html:not(.dark) .tp-pill.is-active{background:var(--tp-green);color:#fff}.tp-changelog{display:block;margin:18px 8px 8px;padding:13px;border:1px dashed var(--tp-featured-line);border-radius:10px;background:var(--tp-featured-bg);color:inherit;transition:border-color .15s ease}.tp-changelog:hover{border-color:var(--tp-featured-hover)}.tp-changelog-t{font:600 12px Geist, system-ui, sans-serif;color:var(--tp-text);margin-bottom:3px}.tp-changelog-d{font:400 11.5px/1.45 Geist, system-ui, sans-serif;color:var(--tp-muted)}#sidebar-content .nav-dropdown-trigger{position:absolute!important;left:-9999px!important;top:0!important}@media (max-width: 900px){.tp-h1{font-size:34px}.tp-row{grid-template-columns:1fr;gap:16px}.tp-unsure-grid,.tp-api-grid{grid-template-columns:1fr}}"}]}
{"page":{"pagePath":"scribe-api/consultation/set-consultation-context","slug":"/scribe-api/consultation/set-consultation-context","pageMetadata":{"title":"Set Consultation Context","description":"Set consultation context for a patient session.","deprecated":null,"version":null,"sidebarTitle":"Set consultation context","openapi":"/scribe-api/openapi.json post /v1/set-consultation-context","href":"/scribe-api/consultation/set-consultation-context","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Set consultation context for a patient session.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Set Consultation Context","description":"Set consultation context for a patient session.","deprecated":null,"version":null,"sidebarTitle":"Set consultation context","openapi":"/scribe-api/openapi.json post /v1/set-consultation-context","href":"/scribe-api/consultation/set-consultation-context","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/telepatia/e3134c75f8fb65f7/custom.js"],"openApiReferenceData":{"operation":{"tags":["Consultation"],"summary":"Set Consultation Context","description":"Set consultation context for a patient session.","operationId":"api_consultation_context_set_post_v1_set_consultation_context_post","requestBody":"79d46be3-0ee3-4880-b151-9afa75fa5d38","responses":{"200":"00261070-4942-4144-aa4c-f07aefbe5d7d","400":"dba10449-8df2-400a-af7d-d97e174eec0f","401":"118b9e54-cb15-42fb-b9a8-8a0058b7506d","403":"386811c2-be0a-4b9a-9d0a-bb7e22484572","404":"8e7a562a-e155-4f86-ab41-a762f4616c3a","409":"18d7e8a2-016d-4534-b2f5-c6a75858bee7","413":"c71757de-fba7-4791-825e-48040145c88e","503":"43dbf62a-0eb5-4b19-b8c0-0704ab1bc230"},"security":["6bf9cd60-baea-485b-8b96-511a17cb4085"],"x-mint":{"href":"/scribe-api/consultation/set-consultation-context"},"method":"post","type":"path","servers":["9318f5c7-5fe5-4852-88d2-31c7ef523aca"],"path":"/v1/set-consultation-context","baseUrlOptions":["https://scribe-api.telepatia.ai"],"title":"Set Consultation Context","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"oneOf":[{"type":"string","title":"Name","maxLength":500,"minLength":1,"example":"John Doe","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Name","example":"John Doe","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"idCountry":{"oneOf":[{"type":"string","title":"IdCountry","description":"ISO 3166-1 alpha-2 country codes. Mirrors tanjiro's CountryCodes enum.","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CX","CC","CO","KM","CK","CR","CI","HR","CU","CW","CY","CZ","CD","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IR","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PA","PG","PY","CN","PE","PH","PN","PL","PT","PR","QA","CG","GM","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","KR","SS","ES","LK","PS","SD","SR","SJ","SE","CH","SY","TW","TJ","TH","MK","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","TZ","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"example":"CO","uniqueKey":"idCountry.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","example":"CO","uniqueKey":"idCountry.oneOf.1","typeLabel":"null"}],"uniqueKey":"idCountry","typeLabel":"enum\u003cstring> | null"},"idType":{"oneOf":[{"type":"string","title":"IdType","description":"Supported patient identification document types.","enum":["CC","TI","CE","RC","PASSPORT","RG","CPF","OTHER_DOC"],"example":"CC","uniqueKey":"idType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","example":"CC","uniqueKey":"idType.oneOf.1","typeLabel":"null"}],"uniqueKey":"idType","typeLabel":"enum\u003cstring> | null"},"idValue":{"oneOf":[{"type":"string","title":"Idvalue","maxLength":50,"minLength":1,"example":"123456789","uniqueKey":"idValue.oneOf.0","typeLabel":"string"},{"type":"null","title":"Idvalue","example":"123456789","uniqueKey":"idValue.oneOf.1","typeLabel":"null"}],"uniqueKey":"idValue","typeLabel":"string | null"},"patientId":{"oneOf":[{"type":"string","title":"Patientid","description":"Public id of an existing patient (sp_...). When provided, the patient's stored identity is used and the inline identity fields (name, idCountry, idType, idValue) must be omitted. Mutually exclusive with the inline identity.","pattern":"^sp_[a-z0-9]{16}$","example":"sp_a1b2c3d4e5f6g7h8","uniqueKey":"patientId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Patientid","description":"Public id of an existing patient (sp_...). When provided, the patient's stored identity is used and the inline identity fields (name, idCountry, idType, idValue) must be omitted. Mutually exclusive with the inline identity.","example":"sp_a1b2c3d4e5f6g7h8","uniqueKey":"patientId.oneOf.1","typeLabel":"null"}],"uniqueKey":"patientId","typeLabel":"string | null"},"internalCode":{"oneOf":[{"type":"string","title":"Internalcode","description":"Your own patient code, unique per institution. Looks up an existing patient by this code; when none matches, the inline identity (name, idCountry, idType, idValue) creates and tags the patient at session start. Mutually exclusive with patientId.","maxLength":128,"minLength":1,"example":"MRN-000123","uniqueKey":"internalCode.oneOf.0","typeLabel":"string"},{"type":"null","title":"Internalcode","description":"Your own patient code, unique per institution. Looks up an existing patient by this code; when none matches, the inline identity (name, idCountry, idType, idValue) creates and tags the patient at session start. Mutually exclusive with patientId.","example":"MRN-000123","uniqueKey":"internalCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"internalCode","typeLabel":"string | null"},"clinicalContext":{"oneOf":[{"type":"object","title":"ClinicalContext","description":"Structured clinical data of the patient and the encounter: allergies, medications, conditions, the current encounter and previous encounters. See /scribe-api/consultations#clinical-context. `currentEncounter.id` is the `Encounter.id` of the visit; the scribe session attaches to that visit. The other fields need an API key that carries `scribe:write` and is bound to your institution; otherwise the call returns `403 permission_denied` and writes nothing. Field names are camelCase; an unknown field inside the block returns `400`. There is one current patient per doctor key, so the last call wins.","properties":{"allergies":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","description":"Your internal id of the item. It does not change between calls and it is unique in one list of one patient. Each call writes the item by this id.","examples":["ALG-881"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name","description":"The text the AI shows. For a medication, put the dose and the frequency here.","examples":["Losartana 50 mg, 1 comprimido ao dia"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"object","title":"ClinicalContextCode","description":"A code from one of the supported code systems.","required":["system","value"],"properties":{"system":{"type":"string","enum":["ICD10","ICD11","SNOMED","ATC","RXNORM"],"title":"System","description":"`ICD10` (conditions and diagnoses), `ICD11`, `SNOMED` (any list), `ATC` (medications and drug allergies) or `RXNORM` (medications).","examples":["ICD10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].code.oneOf.0.system","typeLabel":"enum\u003cstring>"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value","examples":["I10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].code.oneOf.0.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].code.oneOf.0","typeLabel":"ClinicalContextCode · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].code","typeLabel":"ClinicalContextCode · object | null"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","ENTERED_IN_ERROR"],"title":"Status","description":"`ACTIVE` (default): the AI shows the item. `INACTIVE`: stopped or resolved; the AI does not show it. `ENTERED_IN_ERROR`: sent by mistake; removes the item.","default":"ACTIVE","uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"note":{"oneOf":[{"type":"string","title":"Note","description":"A short note the AI shows after the name.","maxLength":1000,"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Note","description":"A short note the AI shows after the name.","uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX].note","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"ClinicalContextItem","description":"An allergy, a medication, a condition or a diagnosis.","uniqueKey":"clinicalContext.oneOf.0.allergies.items.[INDEX]","typeLabel":"ClinicalContextItem · object"},"type":"array","maxItems":100,"title":"Allergies","uniqueKey":"clinicalContext.oneOf.0.allergies","typeLabel":"ClinicalContextItem · object[]"},"medications":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","description":"Your internal id of the item. It does not change between calls and it is unique in one list of one patient. Each call writes the item by this id.","examples":["ALG-881"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name","description":"The text the AI shows. For a medication, put the dose and the frequency here.","examples":["Losartana 50 mg, 1 comprimido ao dia"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"object","title":"ClinicalContextCode","description":"A code from one of the supported code systems.","required":["system","value"],"properties":{"system":{"type":"string","enum":["ICD10","ICD11","SNOMED","ATC","RXNORM"],"title":"System","description":"`ICD10` (conditions and diagnoses), `ICD11`, `SNOMED` (any list), `ATC` (medications and drug allergies) or `RXNORM` (medications).","examples":["ICD10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].code.oneOf.0.system","typeLabel":"enum\u003cstring>"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value","examples":["I10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].code.oneOf.0.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].code.oneOf.0","typeLabel":"ClinicalContextCode · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].code","typeLabel":"ClinicalContextCode · object | null"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","ENTERED_IN_ERROR"],"title":"Status","description":"`ACTIVE` (default): the AI shows the item. `INACTIVE`: stopped or resolved; the AI does not show it. `ENTERED_IN_ERROR`: sent by mistake; removes the item.","default":"ACTIVE","uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"note":{"oneOf":[{"type":"string","title":"Note","description":"A short note the AI shows after the name.","maxLength":1000,"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Note","description":"A short note the AI shows after the name.","uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX].note","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"ClinicalContextItem","description":"An allergy, a medication, a condition or a diagnosis.","uniqueKey":"clinicalContext.oneOf.0.medications.items.[INDEX]","typeLabel":"ClinicalContextItem · object"},"type":"array","maxItems":100,"title":"Medications","uniqueKey":"clinicalContext.oneOf.0.medications","typeLabel":"ClinicalContextItem · object[]"},"conditions":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","description":"Your internal id of the item. It does not change between calls and it is unique in one list of one patient. Each call writes the item by this id.","examples":["ALG-881"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name","description":"The text the AI shows. For a medication, put the dose and the frequency here.","examples":["Losartana 50 mg, 1 comprimido ao dia"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"object","title":"ClinicalContextCode","description":"A code from one of the supported code systems.","required":["system","value"],"properties":{"system":{"type":"string","enum":["ICD10","ICD11","SNOMED","ATC","RXNORM"],"title":"System","description":"`ICD10` (conditions and diagnoses), `ICD11`, `SNOMED` (any list), `ATC` (medications and drug allergies) or `RXNORM` (medications).","examples":["ICD10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].code.oneOf.0.system","typeLabel":"enum\u003cstring>"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value","examples":["I10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].code.oneOf.0.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].code.oneOf.0","typeLabel":"ClinicalContextCode · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].code","typeLabel":"ClinicalContextCode · object | null"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","ENTERED_IN_ERROR"],"title":"Status","description":"`ACTIVE` (default): the AI shows the item. `INACTIVE`: stopped or resolved; the AI does not show it. `ENTERED_IN_ERROR`: sent by mistake; removes the item.","default":"ACTIVE","uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"note":{"oneOf":[{"type":"string","title":"Note","description":"A short note the AI shows after the name.","maxLength":1000,"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Note","description":"A short note the AI shows after the name.","uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX].note","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"ClinicalContextItem","description":"An allergy, a medication, a condition or a diagnosis.","uniqueKey":"clinicalContext.oneOf.0.conditions.items.[INDEX]","typeLabel":"ClinicalContextItem · object"},"type":"array","maxItems":100,"title":"Conditions","uniqueKey":"clinicalContext.oneOf.0.conditions","typeLabel":"ClinicalContextItem · object[]"},"noKnownAllergies":{"type":"boolean","title":"Noknownallergies","description":"An explicit \"no known allergies\". Permitted only when `allergies` has no `ACTIVE` item.","default":false,"uniqueKey":"clinicalContext.oneOf.0.noKnownAllergies","typeLabel":"boolean"},"noKnownMedications":{"type":"boolean","title":"Noknownmedications","description":"An explicit \"no known medications\". Permitted only when `medications` has no `ACTIVE` item.","default":false,"uniqueKey":"clinicalContext.oneOf.0.noKnownMedications","typeLabel":"boolean"},"currentEncounter":{"oneOf":[{"type":"object","title":"CurrentEncounter","description":"The visit the clinician takes this patient into. The scribe session attaches to it and reads its clinical context. Required when the block has any other field.","required":["id"],"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","description":"Your encounter id, for example the atendimento number. Unique in your institution. For the current encounter, the `Encounter.id` of the visit you pushed for this patient.","examples":["ATD-9001"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.id","typeLabel":"string"},"class":{"oneOf":[{"type":"string","title":"Class","description":"`EMERGENCY`, `AMBULATORY` or `INPATIENT`. Use `AMBULATORY` for telemedicine. Default, on the first write of the encounter: `AMBULATORY`.","enum":["EMERGENCY","AMBULATORY","INPATIENT"],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.class.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Class","description":"`EMERGENCY`, `AMBULATORY` or `INPATIENT`. Use `AMBULATORY` for telemedicine. Default, on the first write of the encounter: `AMBULATORY`.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.class.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.class","typeLabel":"enum\u003cstring> | null"},"diagnoses":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","description":"Your internal id of the item. It does not change between calls and it is unique in one list of one patient. Each call writes the item by this id.","examples":["ALG-881"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name","description":"The text the AI shows. For a medication, put the dose and the frequency here.","examples":["Losartana 50 mg, 1 comprimido ao dia"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"object","title":"ClinicalContextCode","description":"A code from one of the supported code systems.","required":["system","value"],"properties":{"system":{"type":"string","enum":["ICD10","ICD11","SNOMED","ATC","RXNORM"],"title":"System","description":"`ICD10` (conditions and diagnoses), `ICD11`, `SNOMED` (any list), `ATC` (medications and drug allergies) or `RXNORM` (medications).","examples":["ICD10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].code.oneOf.0.system","typeLabel":"enum\u003cstring>"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value","examples":["I10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].code.oneOf.0.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].code.oneOf.0","typeLabel":"ClinicalContextCode · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].code","typeLabel":"ClinicalContextCode · object | null"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","ENTERED_IN_ERROR"],"title":"Status","description":"`ACTIVE` (default): the AI shows the item. `INACTIVE`: stopped or resolved; the AI does not show it. `ENTERED_IN_ERROR`: sent by mistake; removes the item.","default":"ACTIVE","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"note":{"oneOf":[{"type":"string","title":"Note","description":"A short note the AI shows after the name.","maxLength":1000,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Note","description":"A short note the AI shows after the name.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX].note","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"ClinicalContextItem","description":"An allergy, a medication, a condition or a diagnosis.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses.items.[INDEX]","typeLabel":"ClinicalContextItem · object"},"type":"array","maxItems":50,"title":"Diagnoses","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.diagnoses","typeLabel":"ClinicalContextItem · object[]"},"procedures":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","examples":["PX-9001-1"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name","examples":["Tomografia de crânio sem contraste"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"object","title":"ClinicalContextCode","description":"A code from one of the supported code systems.","required":["system","value"],"properties":{"system":{"type":"string","enum":["ICD10","ICD11","SNOMED","ATC","RXNORM"],"title":"System","description":"`ICD10` (conditions and diagnoses), `ICD11`, `SNOMED` (any list), `ATC` (medications and drug allergies) or `RXNORM` (medications).","examples":["ICD10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].code.oneOf.0.system","typeLabel":"enum\u003cstring>"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value","examples":["I10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].code.oneOf.0.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].code.oneOf.0","typeLabel":"ClinicalContextCode · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].code","typeLabel":"ClinicalContextCode · object | null"},"status":{"oneOf":[{"type":"string","title":"Status","description":"Only `ENTERED_IN_ERROR`, to remove a procedure sent by mistake.","const":"ENTERED_IN_ERROR","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].status.oneOf.0","typeLabel":"string"},{"type":"null","title":"Status","description":"Only `ENTERED_IN_ERROR`, to remove a procedure sent by mistake.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].status.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX].status","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"ClinicalContextProcedure","description":"A procedure of an encounter. It takes the date of its encounter.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures.items.[INDEX]","typeLabel":"ClinicalContextProcedure · object"},"type":"array","maxItems":50,"title":"Procedures","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.procedures","typeLabel":"ClinicalContextProcedure · object[]"},"note":{"oneOf":[{"type":"string","title":"Note","description":"All notes of the encounter, in time order. `null` clears the stored note; an absent `note` keeps it.","maxLength":10000,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Note","description":"All notes of the encounter, in time order. `null` clears the stored note; an absent `note` keeps it.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.note","typeLabel":"string | null"},"startedAt":{"oneOf":[{"type":"string","title":"Startedat","description":"`YYYY-MM-DD`, or an ISO 8601 date-time with its UTC offset. Default, on the first write of the encounter: the time of the call.","example":"2026-10-15T08:40:00-03:00","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.startedAt.oneOf.0","typeLabel":"string"},{"type":"null","title":"Startedat","description":"`YYYY-MM-DD`, or an ISO 8601 date-time with its UTC offset. Default, on the first write of the encounter: the time of the call.","example":"2026-10-15T08:40:00-03:00","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.startedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.startedAt","typeLabel":"string | null"},"chiefComplaint":{"oneOf":[{"type":"string","title":"Chiefcomplaint","maxLength":1000,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.chiefComplaint.oneOf.0","typeLabel":"string"},{"type":"null","title":"Chiefcomplaint","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.chiefComplaint.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.chiefComplaint","typeLabel":"string | null"},"triagePriority":{"oneOf":[{"type":"string","title":"Triagepriority","description":"In the words of your triage scale.","maxLength":100,"example":"Amarelo - urgente","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.triagePriority.oneOf.0","typeLabel":"string"},{"type":"null","title":"Triagepriority","description":"In the words of your triage scale.","example":"Amarelo - urgente","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.triagePriority.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.triagePriority","typeLabel":"string | null"},"vitals":{"oneOf":[{"type":"object","title":"EncounterVitals","description":"The latest set of vital signs of the current encounter.","properties":{"measuredAt":{"oneOf":[{"type":"string","title":"Measuredat","description":"ISO 8601 date-time with its UTC offset. Default: the time of the call.","format":"date-time","example":"2026-10-15T08:55:00-03:00","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.measuredAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Measuredat","description":"ISO 8601 date-time with its UTC offset. Default: the time of the call.","example":"2026-10-15T08:55:00-03:00","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.measuredAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.measuredAt","typeLabel":"string\u003cdate-time> | null"},"systolicBloodPressure":{"oneOf":[{"type":"number","title":"Systolicbloodpressure","description":"mmHg.","maximum":300,"minimum":20,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.systolicBloodPressure.oneOf.0","typeLabel":"number"},{"type":"null","title":"Systolicbloodpressure","description":"mmHg.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.systolicBloodPressure.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.systolicBloodPressure","typeLabel":"number | null"},"diastolicBloodPressure":{"oneOf":[{"type":"number","title":"Diastolicbloodpressure","description":"mmHg.","maximum":300,"minimum":20,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.diastolicBloodPressure.oneOf.0","typeLabel":"number"},{"type":"null","title":"Diastolicbloodpressure","description":"mmHg.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.diastolicBloodPressure.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.diastolicBloodPressure","typeLabel":"number | null"},"heartRate":{"oneOf":[{"type":"number","title":"Heartrate","description":"Beats per minute.","maximum":300,"minimum":20,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.heartRate.oneOf.0","typeLabel":"number"},{"type":"null","title":"Heartrate","description":"Beats per minute.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.heartRate.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.heartRate","typeLabel":"number | null"},"respiratoryRate":{"oneOf":[{"type":"number","title":"Respiratoryrate","description":"Breaths per minute.","maximum":100,"minimum":1,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.respiratoryRate.oneOf.0","typeLabel":"number"},{"type":"null","title":"Respiratoryrate","description":"Breaths per minute.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.respiratoryRate.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.respiratoryRate","typeLabel":"number | null"},"temperature":{"oneOf":[{"type":"number","title":"Temperature","description":"Degrees Celsius.","maximum":45,"minimum":25,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.temperature.oneOf.0","typeLabel":"number"},{"type":"null","title":"Temperature","description":"Degrees Celsius.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.temperature","typeLabel":"number | null"},"oxygenSaturation":{"oneOf":[{"type":"number","title":"Oxygensaturation","description":"Percent.","maximum":100,"minimum":0,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.oxygenSaturation.oneOf.0","typeLabel":"number"},{"type":"null","title":"Oxygensaturation","description":"Percent.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.oxygenSaturation.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.oxygenSaturation","typeLabel":"number | null"},"weight":{"oneOf":[{"type":"number","title":"Weight","description":"Kilograms.","maximum":500,"minimum":0.2,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.weight.oneOf.0","typeLabel":"number"},{"type":"null","title":"Weight","description":"Kilograms.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.weight.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.weight","typeLabel":"number | null"},"height":{"oneOf":[{"type":"number","title":"Height","description":"Centimeters.","maximum":260,"minimum":20,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.height.oneOf.0","typeLabel":"number"},{"type":"null","title":"Height","description":"Centimeters.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.height.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.height","typeLabel":"number | null"},"bloodGlucose":{"oneOf":[{"type":"number","title":"Bloodglucose","description":"mg/dL.","maximum":2000,"minimum":10,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.bloodGlucose.oneOf.0","typeLabel":"number"},{"type":"null","title":"Bloodglucose","description":"mg/dL.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.bloodGlucose.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.bloodGlucose","typeLabel":"number | null"},"painScore":{"oneOf":[{"type":"number","title":"Painscore","description":"A 0 to 10 scale.","maximum":10,"minimum":0,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.painScore.oneOf.0","typeLabel":"number"},{"type":"null","title":"Painscore","description":"A 0 to 10 scale.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.painScore.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0.painScore","typeLabel":"number | null"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.0","typeLabel":"EncounterVitals · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0.vitals","typeLabel":"EncounterVitals · object | null"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.0","typeLabel":"CurrentEncounter · object"},{"type":"null","description":"The visit the clinician takes this patient into. The scribe session attaches to it and reads its clinical context. Required when the block has any other field.","uniqueKey":"clinicalContext.oneOf.0.currentEncounter.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.currentEncounter","typeLabel":"CurrentEncounter · object | null"},"previousEncounters":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","description":"Your encounter id, for example the atendimento number. Unique in your institution. For the current encounter, the `Encounter.id` of the visit you pushed for this patient.","examples":["ATD-9001"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].id","typeLabel":"string"},"startedAt":{"type":"string","title":"Startedat","description":"`YYYY-MM-DD`, or an ISO 8601 date-time with its UTC offset.","examples":["2025-05-02"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].startedAt","typeLabel":"string"},"class":{"oneOf":[{"type":"string","title":"Class","description":"`EMERGENCY`, `AMBULATORY` or `INPATIENT`. Use `AMBULATORY` for telemedicine. Default, on the first write of the encounter: `AMBULATORY`.","enum":["EMERGENCY","AMBULATORY","INPATIENT"],"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].class.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Class","description":"`EMERGENCY`, `AMBULATORY` or `INPATIENT`. Use `AMBULATORY` for telemedicine. Default, on the first write of the encounter: `AMBULATORY`.","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].class.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].class","typeLabel":"enum\u003cstring> | null"},"diagnoses":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","description":"Your internal id of the item. It does not change between calls and it is unique in one list of one patient. Each call writes the item by this id.","examples":["ALG-881"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name","description":"The text the AI shows. For a medication, put the dose and the frequency here.","examples":["Losartana 50 mg, 1 comprimido ao dia"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"object","title":"ClinicalContextCode","description":"A code from one of the supported code systems.","required":["system","value"],"properties":{"system":{"type":"string","enum":["ICD10","ICD11","SNOMED","ATC","RXNORM"],"title":"System","description":"`ICD10` (conditions and diagnoses), `ICD11`, `SNOMED` (any list), `ATC` (medications and drug allergies) or `RXNORM` (medications).","examples":["ICD10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].code.oneOf.0.system","typeLabel":"enum\u003cstring>"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value","examples":["I10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].code.oneOf.0.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].code.oneOf.0","typeLabel":"ClinicalContextCode · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].code","typeLabel":"ClinicalContextCode · object | null"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","ENTERED_IN_ERROR"],"title":"Status","description":"`ACTIVE` (default): the AI shows the item. `INACTIVE`: stopped or resolved; the AI does not show it. `ENTERED_IN_ERROR`: sent by mistake; removes the item.","default":"ACTIVE","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"note":{"oneOf":[{"type":"string","title":"Note","description":"A short note the AI shows after the name.","maxLength":1000,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Note","description":"A short note the AI shows after the name.","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX].note","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"ClinicalContextItem","description":"An allergy, a medication, a condition or a diagnosis.","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses.items.[INDEX]","typeLabel":"ClinicalContextItem · object"},"type":"array","maxItems":50,"title":"Diagnoses","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].diagnoses","typeLabel":"ClinicalContextItem · object[]"},"procedures":{"items":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id","examples":["PX-9001-1"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","maxLength":500,"minLength":1,"title":"Name","examples":["Tomografia de crânio sem contraste"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"object","title":"ClinicalContextCode","description":"A code from one of the supported code systems.","required":["system","value"],"properties":{"system":{"type":"string","enum":["ICD10","ICD11","SNOMED","ATC","RXNORM"],"title":"System","description":"`ICD10` (conditions and diagnoses), `ICD11`, `SNOMED` (any list), `ATC` (medications and drug allergies) or `RXNORM` (medications).","examples":["ICD10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].code.oneOf.0.system","typeLabel":"enum\u003cstring>"},"value":{"type":"string","maxLength":64,"minLength":1,"title":"Value","examples":["I10"],"isRequired":true,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].code.oneOf.0.value","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].code.oneOf.0","typeLabel":"ClinicalContextCode · object"},{"type":"null","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].code","typeLabel":"ClinicalContextCode · object | null"},"status":{"oneOf":[{"type":"string","title":"Status","description":"Only `ENTERED_IN_ERROR`, to remove a procedure sent by mistake.","const":"ENTERED_IN_ERROR","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].status.oneOf.0","typeLabel":"string"},{"type":"null","title":"Status","description":"Only `ENTERED_IN_ERROR`, to remove a procedure sent by mistake.","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].status.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX].status","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"ClinicalContextProcedure","description":"A procedure of an encounter. It takes the date of its encounter.","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures.items.[INDEX]","typeLabel":"ClinicalContextProcedure · object"},"type":"array","maxItems":50,"title":"Procedures","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].procedures","typeLabel":"ClinicalContextProcedure · object[]"},"note":{"oneOf":[{"type":"string","title":"Note","description":"All notes of the encounter, in time order. `null` clears the stored note; an absent `note` keeps it.","maxLength":10000,"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"type":"null","title":"Note","description":"All notes of the encounter, in time order. `null` clears the stored note; an absent `note` keeps it.","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX].note","typeLabel":"string | null"}},"additionalProperties":false,"type":"object","required":["id","startedAt"],"title":"PreviousEncounter","description":"An earlier encounter of this patient. It is stored as finished.","uniqueKey":"clinicalContext.oneOf.0.previousEncounters.items.[INDEX]","typeLabel":"PreviousEncounter · object"},"type":"array","maxItems":50,"title":"Previousencounters","uniqueKey":"clinicalContext.oneOf.0.previousEncounters","typeLabel":"PreviousEncounter · object[]"}},"additionalProperties":false,"uniqueKey":"clinicalContext.oneOf.0","typeLabel":"ClinicalContext · object"},{"type":"null","description":"Structured clinical data of the patient and the encounter: allergies, medications, conditions, the current encounter and previous encounters. See /scribe-api/consultations#clinical-context. `currentEncounter.id` is the `Encounter.id` of the visit; the scribe session attaches to that visit. The other fields need an API key that carries `scribe:write` and is bound to your institution; otherwise the call returns `403 permission_denied` and writes nothing. Field names are camelCase; an unknown field inside the block returns `400`. There is one current patient per doctor key, so the last call wins.","uniqueKey":"clinicalContext.oneOf.1","typeLabel":"null"}],"uniqueKey":"clinicalContext","typeLabel":"ClinicalContext · object | null"},"notes":{"oneOf":[{"type":"string","title":"Notes","maxLength":10000,"example":"Patient reports headache","uniqueKey":"notes.oneOf.0","typeLabel":"string"},{"type":"null","title":"Notes","example":"Patient reports headache","uniqueKey":"notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"notes","typeLabel":"string | null"},"pastMedicalHistory":{"oneOf":[{"type":"string","title":"Pastmedicalhistory","maxLength":10000,"example":"Hypertension, Diabetes Type 2","uniqueKey":"pastMedicalHistory.oneOf.0","typeLabel":"string"},{"type":"null","title":"Pastmedicalhistory","example":"Hypertension, Diabetes Type 2","uniqueKey":"pastMedicalHistory.oneOf.1","typeLabel":"null"}],"uniqueKey":"pastMedicalHistory","typeLabel":"string | null"},"consultationInternalId":{"oneOf":[{"type":"string","title":"Consultationinternalid","maxLength":128,"pattern":"^[A-Za-z0-9_-]{1,128}$","example":"CONSULT-12345","uniqueKey":"consultationInternalId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Consultationinternalid","example":"CONSULT-12345","uniqueKey":"consultationInternalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"consultationInternalId","typeLabel":"string | null"},"scribeSessionModality":{"oneOf":[{"type":"string","title":"ScribeSessionModality","description":"Supported scribe session modalities.","enum":["IN_PERSON","TELEMEDICINE","DICTATION"],"example":"IN_PERSON","uniqueKey":"scribeSessionModality.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","example":"IN_PERSON","uniqueKey":"scribeSessionModality.oneOf.1","typeLabel":"null"}],"uniqueKey":"scribeSessionModality","typeLabel":"enum\u003cstring> | null"},"institutionalBranchId":{"oneOf":[{"type":"string","title":"Institutionalbranchid","description":"Id of the institution branch for this consultation, returned by the create-branch endpoint. Stamped onto the scribe session at creation. Provide the id or the name.","maxLength":128,"example":"b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","uniqueKey":"institutionalBranchId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Institutionalbranchid","description":"Id of the institution branch for this consultation, returned by the create-branch endpoint. Stamped onto the scribe session at creation. Provide the id or the name.","example":"b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","uniqueKey":"institutionalBranchId.oneOf.1","typeLabel":"null"}],"uniqueKey":"institutionalBranchId","typeLabel":"string | null"},"institutionalBranch":{"oneOf":[{"type":"string","title":"Institutionalbranch","description":"Name of the institution branch for this consultation. Resolved when institutionalBranchId is not provided. Provide the id or the name.","maxLength":256,"example":"Sede Norte","uniqueKey":"institutionalBranch.oneOf.0","typeLabel":"string"},{"type":"null","title":"Institutionalbranch","description":"Name of the institution branch for this consultation. Resolved when institutionalBranchId is not provided. Provide the id or the name.","example":"Sede Norte","uniqueKey":"institutionalBranch.oneOf.1","typeLabel":"null"}],"uniqueKey":"institutionalBranch","typeLabel":"string | null"},"scribeSessionConfigurationId":{"oneOf":[{"type":"string","title":"Scribesessionconfigurationid","description":"Public id of a scribe session configuration (`ssc_` + 16 chars `[a-z0-9]`). Mutually exclusive with `medicalRecordConfigurationId` and `medicalRecordConfiguration`.","maxLength":128,"example":"ssc_a1b2c3d4e5f6g7h8","uniqueKey":"scribeSessionConfigurationId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Scribesessionconfigurationid","description":"Public id of a scribe session configuration (`ssc_` + 16 chars `[a-z0-9]`). Mutually exclusive with `medicalRecordConfigurationId` and `medicalRecordConfiguration`.","example":"ssc_a1b2c3d4e5f6g7h8","uniqueKey":"scribeSessionConfigurationId.oneOf.1","typeLabel":"null"}],"uniqueKey":"scribeSessionConfigurationId","typeLabel":"string | null"},"medicalRecordConfigurationId":{"oneOf":[{"type":"string","title":"Medicalrecordconfigurationid","description":"Public id of a medical record configuration (`mrc_` + 16 chars `[a-z0-9]`). Mutually exclusive with `scribeSessionConfigurationId` and `medicalRecordConfiguration`.","maxLength":128,"example":"mrc_a1b2c3d4e5f6g7h8","uniqueKey":"medicalRecordConfigurationId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Medicalrecordconfigurationid","description":"Public id of a medical record configuration (`mrc_` + 16 chars `[a-z0-9]`). Mutually exclusive with `scribeSessionConfigurationId` and `medicalRecordConfiguration`.","example":"mrc_a1b2c3d4e5f6g7h8","uniqueKey":"medicalRecordConfigurationId.oneOf.1","typeLabel":"null"}],"uniqueKey":"medicalRecordConfigurationId","typeLabel":"string | null"},"medicalRecordConfiguration":{"oneOf":[{"type":"object","title":"Medicalrecordconfiguration","description":"Inline medical record configuration JSON keyed by section name (e.g. 'chiefComplaint'). Auto-persisted and deduplicated by content hash; the resolved configuration id is attached to the doctor context buffer. Mutually exclusive with `medicalRecordConfigurationId` and `scribeSessionConfigurationId`.","additionalProperties":true,"uniqueKey":"medicalRecordConfiguration.oneOf.0","typeLabel":"Medicalrecordconfiguration · object"},{"type":"null","title":"Medicalrecordconfiguration","description":"Inline medical record configuration JSON keyed by section name (e.g. 'chiefComplaint'). Auto-persisted and deduplicated by content hash; the resolved configuration id is attached to the doctor context buffer. Mutually exclusive with `medicalRecordConfigurationId` and `scribeSessionConfigurationId`.","uniqueKey":"medicalRecordConfiguration.oneOf.1","typeLabel":"null"}],"uniqueKey":"medicalRecordConfiguration","typeLabel":"Medicalrecordconfiguration · object | null"}},"type":"object","title":"SetConsultationContextRequest","description":"Request body for setting consultation context.","examples":[{"clinicalContext":{"allergies":[{"code":{"system":"ATC","value":"J01CE01"},"id":"ALG-881","name":"Penicillin","note":"Hives and facial swelling"}],"conditions":[{"code":{"system":"ICD10","value":"I10"},"id":"CD-120","name":"Essential hypertension"},{"code":{"system":"ICD10","value":"E11"},"id":"CD-121","name":"Type 2 diabetes mellitus"}],"currentEncounter":{"chiefComplaint":"Severe headache for 2 days, worse in the morning","class":"EMERGENCY","diagnoses":[{"code":{"system":"ICD10","value":"R51"},"id":"DG-9001-1","name":"Headache"}],"id":"ATD-9001","note":"08:50 triage: alert and oriented, no focal deficit. 09:20 ER physician: head CT ordered.","procedures":[{"id":"PX-9001-1","name":"Head CT without contrast"}],"startedAt":"2026-10-15T08:40:00-05:00","triagePriority":"Yellow - urgent","vitals":{"diastolicBloodPressure":102,"heartRate":92,"measuredAt":"2026-10-15T08:55:00-05:00","oxygenSaturation":97,"painScore":8,"respiratoryRate":18,"systolicBloodPressure":168,"temperature":36.8}},"medications":[{"code":{"system":"ATC","value":"C09CA01"},"id":"RX-4410","name":"Losartan 50 mg, 1 tablet daily"},{"code":{"system":"ATC","value":"A10BA02"},"id":"RX-4411","name":"Metformin 850 mg, 1 tablet every 12 hours"},{"code":{"system":"ATC","value":"C07AA05"},"id":"RX-4412","name":"Propranolol 40 mg, 1 tablet every 12 hours"},{"id":"RX-3982","name":"Captopril 25 mg","status":"INACTIVE"}],"previousEncounters":[{"diagnoses":[{"code":{"system":"ICD10","value":"G43.0"},"id":"DG-7120-1","name":"Migraine without aura"}],"id":"ATD-7120","note":"Neurology visit. Started propranolol 40 mg every 12 hours. Follow-up in 3 months.","startedAt":"2025-05-02"},{"class":"EMERGENCY","diagnoses":[{"code":{"system":"ICD10","value":"N39.0"},"id":"DG-6044-1","name":"Urinary tract infection"}],"id":"ATD-6044","note":"Emergency room. Dysuria for 3 days, no fever. Nitrofurantoin for 7 days.","startedAt":"2024-11-18"}]},"consultationInternalId":"CONSULT-12345","idCountry":"COLOMBIA","idType":"PASSPORT","idValue":"A12345678","institutionalBranchId":"b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","internalCode":"MRN-000123","medicalRecordConfigurationId":"mrc_a1b2c3d4e5f6g7h8","name":"John Doe","notes":"Patient prefers morning appointments. Allergic to penicillin.","pastMedicalHistory":"Hypertension diagnosed 2020. Diabetes Type 2 controlled with metformin.","scribeSessionModality":"IN_PERSON"},{"consultationInternalId":"CONSULT-12345","idCountry":"COLOMBIA","idType":"PASSPORT","idValue":"A12345678","medicalRecordConfiguration":{"chiefComplaint":{"instructionSet":{"telepatiaPromptId":"CHIEF_COMPLAINT"},"schema":{"instructions":"Chief complaint","properties":{"chiefComplaint":{"instructions":"Patient's own words","type":"string"}},"type":"object"}}},"name":"John Doe","scribeSessionModality":"IN_PERSON"},{"consultationInternalId":"CONSULT-12345","idCountry":"COLOMBIA","idType":"PASSPORT","idValue":"A12345678","name":"John Doe","scribeSessionConfigurationId":"ssc_a1b2c3d4e5f6g7h8","scribeSessionModality":"IN_PERSON"},{"consultationInternalId":"CONSULT-12345","patientId":"sp_a1b2c3d4e5f6g7h8","scribeSessionConfigurationId":"ssc_a1b2c3d4e5f6g7h8","scribeSessionModality":"IN_PERSON"},{"consultationInternalId":"CONSULT-12345","institutionalBranchId":"b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","internalCode":"MRN-000123","scribeSessionConfigurationId":"ssc_a1b2c3d4e5f6g7h8","scribeSessionModality":"IN_PERSON"}],"uniqueKey":"","typeLabel":"SetConsultationContextRequest · object"},"example":{"clinicalContext":{"allergies":[{"code":{"system":"ATC","value":"J01CE01"},"id":"ALG-881","name":"Penicillin","note":"Hives and facial swelling"}],"conditions":[{"code":{"system":"ICD10","value":"I10"},"id":"CD-120","name":"Essential hypertension"},{"code":{"system":"ICD10","value":"E11"},"id":"CD-121","name":"Type 2 diabetes mellitus"}],"currentEncounter":{"chiefComplaint":"Severe headache for 2 days, worse in the morning","class":"EMERGENCY","diagnoses":[{"code":{"system":"ICD10","value":"R51"},"id":"DG-9001-1","name":"Headache"}],"id":"ATD-9001","note":"08:50 triage: alert and oriented, no focal deficit. 09:20 ER physician: head CT ordered.","procedures":[{"id":"PX-9001-1","name":"Head CT without contrast"}],"startedAt":"2026-10-15T08:40:00-05:00","triagePriority":"Yellow - urgent","vitals":{"diastolicBloodPressure":102,"heartRate":92,"measuredAt":"2026-10-15T08:55:00-05:00","oxygenSaturation":97,"painScore":8,"respiratoryRate":18,"systolicBloodPressure":168,"temperature":36.8}},"medications":[{"code":{"system":"ATC","value":"C09CA01"},"id":"RX-4410","name":"Losartan 50 mg, 1 tablet daily"},{"code":{"system":"ATC","value":"A10BA02"},"id":"RX-4411","name":"Metformin 850 mg, 1 tablet every 12 hours"},{"code":{"system":"ATC","value":"C07AA05"},"id":"RX-4412","name":"Propranolol 40 mg, 1 tablet every 12 hours"},{"id":"RX-3982","name":"Captopril 25 mg","status":"INACTIVE"}],"previousEncounters":[{"diagnoses":[{"code":{"system":"ICD10","value":"G43.0"},"id":"DG-7120-1","name":"Migraine without aura"}],"id":"ATD-7120","note":"Neurology visit. Started propranolol 40 mg every 12 hours. Follow-up in 3 months.","startedAt":"2025-05-02"},{"class":"EMERGENCY","diagnoses":[{"code":{"system":"ICD10","value":"N39.0"},"id":"DG-6044-1","name":"Urinary tract infection"}],"id":"ATD-6044","note":"Emergency room. Dysuria for 3 days, no fever. Nitrofurantoin for 7 days.","startedAt":"2024-11-18"}]},"consultationInternalId":"CONSULT-12345","idCountry":"COLOMBIA","idType":"PASSPORT","idValue":"A12345678","institutionalBranchId":"b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","internalCode":"MRN-000123","medicalRecordConfigurationId":"mrc_a1b2c3d4e5f6g7h8","name":"John Doe","notes":"Patient prefers morning appointments. Allergic to penicillin.","pastMedicalHistory":"Hypertension diagnosed 2020. Diabetes Type 2 controlled with metformin.","scribeSessionModality":"IN_PERSON"},"examples":{"Example":{"title":"Example","value":{"clinicalContext":{"allergies":[{"code":{"system":"ATC","value":"J01CE01"},"id":"ALG-881","name":"Penicillin","note":"Hives and facial swelling"}],"conditions":[{"code":{"system":"ICD10","value":"I10"},"id":"CD-120","name":"Essential hypertension"},{"code":{"system":"ICD10","value":"E11"},"id":"CD-121","name":"Type 2 diabetes mellitus"}],"currentEncounter":{"chiefComplaint":"Severe headache for 2 days, worse in the morning","class":"EMERGENCY","diagnoses":[{"code":{"system":"ICD10","value":"R51"},"id":"DG-9001-1","name":"Headache"}],"id":"ATD-9001","note":"08:50 triage: alert and oriented, no focal deficit. 09:20 ER physician: head CT ordered.","procedures":[{"id":"PX-9001-1","name":"Head CT without contrast"}],"startedAt":"2026-10-15T08:40:00-05:00","triagePriority":"Yellow - urgent","vitals":{"diastolicBloodPressure":102,"heartRate":92,"measuredAt":"2026-10-15T08:55:00-05:00","oxygenSaturation":97,"painScore":8,"respiratoryRate":18,"systolicBloodPressure":168,"temperature":36.8}},"medications":[{"code":{"system":"ATC","value":"C09CA01"},"id":"RX-4410","name":"Losartan 50 mg, 1 tablet daily"},{"code":{"system":"ATC","value":"A10BA02"},"id":"RX-4411","name":"Metformin 850 mg, 1 tablet every 12 hours"},{"code":{"system":"ATC","value":"C07AA05"},"id":"RX-4412","name":"Propranolol 40 mg, 1 tablet every 12 hours"},{"id":"RX-3982","name":"Captopril 25 mg","status":"INACTIVE"}],"previousEncounters":[{"diagnoses":[{"code":{"system":"ICD10","value":"G43.0"},"id":"DG-7120-1","name":"Migraine without aura"}],"id":"ATD-7120","note":"Neurology visit. Started propranolol 40 mg every 12 hours. Follow-up in 3 months.","startedAt":"2025-05-02"},{"class":"EMERGENCY","diagnoses":[{"code":{"system":"ICD10","value":"N39.0"},"id":"DG-6044-1","name":"Urinary tract infection"}],"id":"ATD-6044","note":"Emergency room. Dysuria for 3 days, no fever. Nitrofurantoin for 7 days.","startedAt":"2024-11-18"}]},"consultationInternalId":"CONSULT-12345","idCountry":"COLOMBIA","idType":"PASSPORT","idValue":"A12345678","institutionalBranchId":"b1f2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","internalCode":"MRN-000123","medicalRecordConfigurationId":"mrc_a1b2c3d4e5f6g7h8","name":"John Doe","notes":"Patient prefers morning appointments. Allergic to penicillin.","pastMedicalHistory":"Hypertension diagnosed 2020. Diabetes Type 2 controlled with metformin.","scribeSessionModality":"IN_PERSON"}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"00261070-4942-4144-aa4c-f07aefbe5d7d":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","title":"Success","examples":[true],"isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"consultationInternalId":{"type":"string","title":"Consultationinternalid","examples":["CONSULT-12345"],"isRequired":true,"uniqueKey":"consultationInternalId","typeLabel":"string"}},"type":"object","required":["success","consultationInternalId"],"title":"SetConsultationContextResponse","description":"Response body for setting consultation context.","examples":[{"consultationInternalId":"CONSULT-12345","success":true}],"uniqueKey":"","typeLabel":"SetConsultationContextResponse · object"},"example":{"consultationInternalId":"CONSULT-12345","success":true},"examples":{"Example":{"title":"Example","value":{"consultationInternalId":"CONSULT-12345","success":true}}},"exampleType":"examples"}},"exampleType":"examples"},"dba10449-8df2-400a-af7d-d97e174eec0f":{"description":"Bad Request — invalid parameters, validation failures, or missing fields.","content":{"application/json":{"examples":{"parameter_missing":{"title":"parameter_missing","summary":"Missing required field","value":{"error":{"type":"invalid_request_error","code":"parameter_missing","message":"name is required.","param":"name","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}},"parameter_invalid":{"title":"parameter_invalid","summary":"Invalid field value","value":{"error":{"type":"invalid_request_error","code":"parameter_invalid","message":"idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code.","param":"idCountry","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}},"account_invalid":{"title":"account_invalid","summary":"Invalid account","value":{"error":{"type":"invalid_request_error","code":"account_invalid","message":"Account has no valid authId.","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}}},"schema":{"description":"Standardized error response envelope.","properties":{"error":{"description":"Top-level error object: :class:`ErrorDetail` plus the request correlation id.\n\nKept as a subclass rather than a field on ``ErrorDetail`` because ``ErrorDetail`` is\nalso the per-item error shape inside the batch account-creation response\n(``BatchAccountResult.error``), which is serialized with nulls included. Adding the\nfield there would publish ``\"requestId\": null`` on an HTTP 200, and there is only\never one request id per batch anyway -- batch callers read the ``X-Request-ID``\nresponse header.","properties":{"type":{"description":"Broad error category for high-level handling.","examples":["invalid_request_error"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"description":"Machine-readable error code. Clients should switch on this value.","examples":["parameter_invalid"],"title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error message ending with a period.","examples":["idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code."],"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["type","code","message"],"title":"ErrorDetailWithRequestId","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetailWithRequestId · object"}},"required":["error"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"exampleType":"examples"}},"exampleType":"examples"},"118b9e54-cb15-42fb-b9a8-8a0058b7506d":{"description":"Unauthorized — missing or invalid API key.","content":{"application/json":{"examples":{"authentication_required":{"title":"authentication_required","summary":"Invalid or missing API key","value":{"error":{"type":"authentication_error","code":"authentication_required","message":"Invalid API key.","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}}},"schema":{"description":"Standardized error response envelope.","properties":{"error":{"description":"Top-level error object: :class:`ErrorDetail` plus the request correlation id.\n\nKept as a subclass rather than a field on ``ErrorDetail`` because ``ErrorDetail`` is\nalso the per-item error shape inside the batch account-creation response\n(``BatchAccountResult.error``), which is serialized with nulls included. Adding the\nfield there would publish ``\"requestId\": null`` on an HTTP 200, and there is only\never one request id per batch anyway -- batch callers read the ``X-Request-ID``\nresponse header.","properties":{"type":{"description":"Broad error category for high-level handling.","examples":["invalid_request_error"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"description":"Machine-readable error code. Clients should switch on this value.","examples":["parameter_invalid"],"title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error message ending with a period.","examples":["idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code."],"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["type","code","message"],"title":"ErrorDetailWithRequestId","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetailWithRequestId · object"}},"required":["error"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"exampleType":"examples"}},"exampleType":"examples"},"386811c2-be0a-4b9a-9d0a-bb7e22484572":{"description":"Forbidden — the API key is not allowed to perform this operation.","content":{"application/json":{"examples":{"permission_denied":{"title":"permission_denied","summary":"Caller lacks permission for this resource","value":{"error":{"type":"permission_error","code":"permission_denied","message":"You do not have permission to access this resource.","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}},"permission_denied_role":{"title":"permission_denied_role","summary":"API key's account role is not allowed this operation","value":{"error":{"type":"permission_error","code":"permission_denied","message":"Your API key is not allowed to create accounts. Account creation requires an institutional API key; this key is scoped to a doctor account.","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}}},"schema":{"description":"Standardized error response envelope.","properties":{"error":{"description":"Top-level error object: :class:`ErrorDetail` plus the request correlation id.\n\nKept as a subclass rather than a field on ``ErrorDetail`` because ``ErrorDetail`` is\nalso the per-item error shape inside the batch account-creation response\n(``BatchAccountResult.error``), which is serialized with nulls included. Adding the\nfield there would publish ``\"requestId\": null`` on an HTTP 200, and there is only\never one request id per batch anyway -- batch callers read the ``X-Request-ID``\nresponse header.","properties":{"type":{"description":"Broad error category for high-level handling.","examples":["invalid_request_error"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"description":"Machine-readable error code. Clients should switch on this value.","examples":["parameter_invalid"],"title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error message ending with a period.","examples":["idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code."],"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["type","code","message"],"title":"ErrorDetailWithRequestId","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetailWithRequestId · object"}},"required":["error"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"exampleType":"examples"}},"exampleType":"examples"},"8e7a562a-e155-4f86-ab41-a762f4616c3a":{"description":"Not Found — the requested resource does not exist.","content":{"application/json":{"examples":{"resource_not_found":{"title":"resource_not_found","summary":"Medical record configuration not found","value":{"error":{"type":"invalid_request_error","code":"resource_not_found","message":"Medical record configuration not found.","param":"medicalRecordConfigurationId","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}}},"schema":{"description":"Standardized error response envelope.","properties":{"error":{"description":"Top-level error object: :class:`ErrorDetail` plus the request correlation id.\n\nKept as a subclass rather than a field on ``ErrorDetail`` because ``ErrorDetail`` is\nalso the per-item error shape inside the batch account-creation response\n(``BatchAccountResult.error``), which is serialized with nulls included. Adding the\nfield there would publish ``\"requestId\": null`` on an HTTP 200, and there is only\never one request id per batch anyway -- batch callers read the ``X-Request-ID``\nresponse header.","properties":{"type":{"description":"Broad error category for high-level handling.","examples":["invalid_request_error"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"description":"Machine-readable error code. Clients should switch on this value.","examples":["parameter_invalid"],"title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error message ending with a period.","examples":["idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code."],"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["type","code","message"],"title":"ErrorDetailWithRequestId","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetailWithRequestId · object"}},"required":["error"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"exampleType":"examples"}},"exampleType":"examples"},"18d7e8a2-016d-4534-b2f5-c6a75858bee7":{"description":"Conflict — resource already exists or is in a conflicting state.","content":{"application/json":{"examples":{"resource_conflict":{"title":"resource_conflict","summary":"consultationInternalId already in use","value":{"error":{"type":"invalid_request_error","code":"resource_conflict","message":"consultationInternalId is already in use by a different consultation.","param":"consultationInternalId","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}},"resource_not_active":{"title":"resource_not_active","summary":"Medical record configuration exists but is not active","value":{"error":{"type":"invalid_request_error","code":"resource_not_active","message":"Medical record configuration 'mrc_a1b2c3d4e5f6g7h8' is not active yet.","param":"medicalRecordConfigurationId","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}}},"schema":{"description":"Standardized error response envelope.","properties":{"error":{"description":"Top-level error object: :class:`ErrorDetail` plus the request correlation id.\n\nKept as a subclass rather than a field on ``ErrorDetail`` because ``ErrorDetail`` is\nalso the per-item error shape inside the batch account-creation response\n(``BatchAccountResult.error``), which is serialized with nulls included. Adding the\nfield there would publish ``\"requestId\": null`` on an HTTP 200, and there is only\never one request id per batch anyway -- batch callers read the ``X-Request-ID``\nresponse header.","properties":{"type":{"description":"Broad error category for high-level handling.","examples":["invalid_request_error"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"description":"Machine-readable error code. Clients should switch on this value.","examples":["parameter_invalid"],"title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error message ending with a period.","examples":["idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code."],"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["type","code","message"],"title":"ErrorDetailWithRequestId","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetailWithRequestId · object"}},"required":["error"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"exampleType":"examples"}},"exampleType":"examples"},"c71757de-fba7-4791-825e-48040145c88e":{"description":"Content Too Large","content":{"application/json":{"examples":{"request_too_large":{"title":"request_too_large","summary":"clinicalContext above the maximum supported size","value":{"error":{"type":"invalid_request_error","code":"request_too_large","message":"clinicalContext exceeds the maximum supported size (1032192 bytes).","param":"clinicalContext","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}}},"schema":{"description":"Standardized error response envelope.","properties":{"error":{"description":"Top-level error object: :class:`ErrorDetail` plus the request correlation id.\n\nKept as a subclass rather than a field on ``ErrorDetail`` because ``ErrorDetail`` is\nalso the per-item error shape inside the batch account-creation response\n(``BatchAccountResult.error``), which is serialized with nulls included. Adding the\nfield there would publish ``\"requestId\": null`` on an HTTP 200, and there is only\never one request id per batch anyway -- batch callers read the ``X-Request-ID``\nresponse header.","properties":{"type":{"description":"Broad error category for high-level handling.","examples":["invalid_request_error"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"description":"Machine-readable error code. Clients should switch on this value.","examples":["parameter_invalid"],"title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error message ending with a period.","examples":["idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code."],"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["type","code","message"],"title":"ErrorDetailWithRequestId","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetailWithRequestId · object"}},"required":["error"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"exampleType":"examples"}},"exampleType":"examples"},"43dbf62a-0eb5-4b19-b8c0-0704ab1bc230":{"description":"Service Unavailable — an external dependency is down.","content":{"application/json":{"examples":{"service_unavailable":{"title":"service_unavailable","summary":"Failed to set consultation context","value":{"error":{"type":"api_error","code":"service_unavailable","message":"Failed to set consultation context. Please try again later.","requestId":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30"}}}},"schema":{"description":"Standardized error response envelope.","properties":{"error":{"description":"Top-level error object: :class:`ErrorDetail` plus the request correlation id.\n\nKept as a subclass rather than a field on ``ErrorDetail`` because ``ErrorDetail`` is\nalso the per-item error shape inside the batch account-creation response\n(``BatchAccountResult.error``), which is serialized with nulls included. Adding the\nfield there would publish ``\"requestId\": null`` on an HTTP 200, and there is only\never one request id per batch anyway -- batch callers read the ``X-Request-ID``\nresponse header.","properties":{"type":{"description":"Broad error category for high-level handling.","examples":["invalid_request_error"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"code":{"description":"Machine-readable error code. Clients should switch on this value.","examples":["parameter_invalid"],"title":"Code","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"description":"Human-readable error message ending with a period.","examples":["idCountry must be a valid country name, ISO alpha-2, or ISO alpha-3 code."],"title":"Message","type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The request field that caused the error, if applicable.","example":"idCountry","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","description":"Optional structured, machine-readable context for the error.","example":{"pendingConsultations":[{"sessionId":"abc123","url":"https://..."}]},"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"},"requestId":{"oneOf":[{"type":"string","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.0","typeLabel":"string"},{"type":"null","title":"Requestid","description":"Unique id for this request, identical to the X-Request-ID response header. Quote it when contacting support.","example":"3f9a1c2e-5b7d-4a21-9f0c-8e6d4b2a1c30","uniqueKey":"error.requestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.requestId","typeLabel":"string | null"}},"required":["type","code","message"],"title":"ErrorDetailWithRequestId","type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetailWithRequestId · object"}},"required":["error"],"title":"ErrorResponse","type":"object","uniqueKey":"","typeLabel":"ErrorResponse · object"},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6bf9cd60-baea-485b-8b96-511a17cb4085":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key passed as a Bearer token","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"9318f5c7-5fe5-4852-88d2-31c7ef523aca":{"url":"https://scribe-api.telepatia.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key passed as a Bearer token","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key passed as a Bearer token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"scribe-api/openapi.json"},"subdomain":"telepatia","siteName":"Telepatia Integration Hub","title":"Set Consultation Context - Telepatia Integration Hub","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/scribe-api/consultation/set-consultation-context","matchLevel":0},"es":{"href":"/es/scribe-api/consultation/set-consultation-context","matchLevel":1},"pt-BR":{"href":"/pt-br/scribe-api/consultation/set-consultation-context","matchLevel":1}}},"lastModified":"2026-11-17T21:28:23.445Z","originalFileLocation":"scribe-api/consultation/set-consultation-context.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Set consultation context for a patient session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Telepatia Integration Hub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set Consultation Context - Telepatia Integration Hub\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set consultation context for a patient session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Telepatia Integration Hub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://telepatia.mintlify.site/_mintlify/api/og/v2?division=Consultations\u0026amp;title=Set+Consultation+Context\u0026amp;description=Set+consultation+context+for+a+patient+session.\u0026amp;theme=0ec03f52733e0fdc96cf81ba\u0026amp;signature=e98371ac4a2c6c356b8f1475d54a3e876f1eb53e932f72d848c958144227db3c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set Consultation Context - Telepatia Integration Hub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set consultation context for a patient session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://telepatia.mintlify.site/_mintlify/api/og/v2?division=Consultations\u0026amp;title=Set+Consultation+Context\u0026amp;description=Set+consultation+context+for+a+patient+session.\u0026amp;theme=0ec03f52733e0fdc96cf81ba\u0026amp;signature=e98371ac4a2c6c356b8f1475d54a3e876f1eb53e932f72d848c958144227db3c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/telepatia/OLJIwBJRQDRP-xU6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Telepatia Integration Hub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#056F42\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/scribe-api/consultation/set-consultation-context.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.telepatia.ai/es/scribe-api/consultation/set-consultation-context\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.telepatia.ai/pt-br/scribe-api/consultation/set-consultation-context\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.telepatia.ai/#organization\",\"name\":\"Telepatia Integration Hub\",\"url\":\"https://docs.telepatia.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/telepatia/9kt4voitLfovraG3/logo/light.svg?fit=max\u0026auto=format\u0026n=9kt4voitLfovraG3\u0026q=85\u0026s=85910533c2a504f94c6caf838b5578c5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.telepatia.ai#website\",\"name\":\"Telepatia Integration Hub\",\"url\":\"https://docs.telepatia.ai\",\"publisher\":{\"@id\":\"https://docs.telepatia.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context#webpage\",\"url\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context\",\"name\":\"Set Consultation Context\",\"description\":\"Set consultation context for a patient session.\",\"dateModified\":\"2026-11-17T21:28:23.445Z\",\"isPartOf\":{\"@id\":\"https://docs.telepatia.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Telepatia Integration Hub\",\"item\":\"https://docs.telepatia.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set Consultation Context\",\"item\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context#apireference\",\"headline\":\"Set Consultation Context\",\"name\":\"Set Consultation Context\",\"description\":\"Set consultation context for a patient session.\",\"url\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context\",\"mainEntityOfPage\":{\"@id\":\"https://docs.telepatia.ai/scribe-api/consultation/set-consultation-context#webpage\"},\"dateModified\":\"2026-11-17T21:28:23.445Z\",\"publisher\":{\"@id\":\"https://docs.telepatia.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.telepatia.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Telepatia Integration Hub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Telepatia Integration Hub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/scribe-api/consultation/set-consultation-context.md","siteName":"Telepatia Integration Hub","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Scribe API","dropdowns":[{"dropdown":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Integrate your systems with Telepatia","sidebarTitle":"Integration Hub","mode":"wide","href":"/scribe-api"},{"title":"Scribe API Overview","href":"/scribe-api/overview"},{"title":"Doctor vs Institutional","href":"/scribe-api/doctor-vs-institutional"},{"title":"Quickstart","href":"/scribe-api/quickstart"},{"title":"Authentication","href":"/scribe-api/authentication"},{"title":"Single sign-on (SAML)","href":"/scribe-api/sso"}]},{"group":"Core Concepts","pages":[{"title":"Consultations","href":"/scribe-api/consultations"},{"title":"Scribe Sessions","href":"/scribe-api/scribe-sessions"},{"title":"Live Sessions","href":"/scribe-api/live-sessions"},{"title":"Medical Record Documents","href":"/scribe-api/medical-record-documents"},{"title":"Smart Templates","href":"/scribe-api/smart-templates"},{"title":"Sections","href":"/scribe-api/smart-templates-nodes"},{"title":"OutputSchema","href":"/scribe-api/smart-templates-output-schema"},{"title":"Field Recipes","href":"/scribe-api/smart-templates-recipes"},{"title":"Telepatia Prompts","href":"/scribe-api/telepatia-nodes"},{"title":"Clinical Decision Support","href":"/scribe-api/cdss-alerts"},{"title":"Webhooks","href":"/scribe-api/webhooks"},{"title":"Publisher document updates","href":"/scribe-api/publisher-updates"}]},{"group":"Accounts \u0026 Patients","pages":[{"title":"Accounts","href":"/scribe-api/accounts"},{"title":"Patients","href":"/scribe-api/patients"},{"title":"Appointments","href":"/scribe-api/appointments"},{"title":"Session Templates","href":"/scribe-api/session-templates"},{"title":"Audits","href":"/scribe-api/audits"}]},{"group":"Reference","pages":[{"title":"Localization","href":"/scribe-api/localization"},{"title":"Error Handling","href":"/scribe-api/errors"},{"title":"API Versioning","href":"/scribe-api/versioning"}]}]},{"dropdown":"Doctor API","groups":[{"group":"Authentication","pages":[{"title":"Login","description":"Login via API key. Returns a verification code.","deprecated":null,"version":null,"sidebarTitle":"Login","openapi":"/scribe-api/openapi.json post /v1/auth/login","href":"/scribe-api/authentication/login"}]},{"group":"Consultations","pages":[{"title":"Set Consultation Context","deprecated":null,"version":null,"sidebarTitle":"Set consultation context","openapi":"/scribe-api/openapi.json post /v1/set-consultation-context","href":"/scribe-api/consultation/set-consultation-context"}]},{"group":"Scribe Sessions","pages":[{"title":"Start a live consultation audio session","description":"Create a consultation and receive a WebSocket URL to stream the audio to. Body is `application/json` with the same metadata as the batch endpoint (`consultation`, `template`, `patient`, `context`); the `audio` block is not accepted. Stream to `live.url` as described on that field, then finish through the webhook + document GET contract shared with the batch endpoint. Retrying with the same consultation id while recording returns the same session with a fresh URL; finished consultations return 409.","deprecated":null,"version":null,"sidebarTitle":"Start a live consultation audio session","openapi":"/scribe-api/openapi.json post /v1/scribe-sessions/live","href":"/scribe-api/scribe-sessions/start-a-live-consultation-audio-session"},{"title":"Look Up Scribe Session","deprecated":null,"version":null,"sidebarTitle":"Look up scribe session","openapi":"/scribe-api/openapi.json get /v1/scribe-sessions/{id}","href":"/scribe-api/session-scribes/look-up-scribe-session"},{"title":"List Medical Record Documents","deprecated":null,"version":null,"sidebarTitle":"List medical record documents","openapi":"/scribe-api/openapi.json get /v1/scribe-sessions/{id}/medical-record-documents","href":"/scribe-api/medical-record-documents/list-medical-record-documents"}]},{"group":"Clinical Decision Support","pages":[{"title":"Accept a CDSS alert","deprecated":null,"version":null,"sidebarTitle":"Accept a cdss alert","openapi":"/scribe-api/openapi.json post /v1/cdss/alerts/{alert_id}/accept","href":"/scribe-api/cdss/accept-a-cdss-alert"},{"title":"Reject a CDSS alert","deprecated":null,"version":null,"sidebarTitle":"Reject a cdss alert","openapi":"/scribe-api/openapi.json post /v1/cdss/alerts/{alert_id}/reject","href":"/scribe-api/cdss/reject-a-cdss-alert"},{"title":"Record decisions for several CDSS alerts","deprecated":null,"version":null,"sidebarTitle":"Record decisions for several cdss alerts","openapi":"/scribe-api/openapi.json post /v1/cdss/decisions","href":"/scribe-api/cdss/record-decisions-for-several-cdss-alerts"}]},{"group":"Smart Templates","pages":[{"title":"Create a Smart Template","deprecated":null,"version":null,"sidebarTitle":"Create a smart template","openapi":"/scribe-api/openapi.json post /v1/medical-record-configurations","href":"/scribe-api/medical-record-configurations/create-a-smart-template"},{"title":"List Smart Templates","deprecated":null,"version":null,"sidebarTitle":"List smart templates","openapi":"/scribe-api/openapi.json get /v1/medical-record-configurations","href":"/scribe-api/medical-record-configurations/list-smart-templates"},{"title":"Get a Smart Template by ID","deprecated":null,"version":null,"sidebarTitle":"Get a smart template by id","openapi":"/scribe-api/openapi.json get /v1/medical-record-configurations/{configuration_id}","href":"/scribe-api/medical-record-configurations/get-a-smart-template-by-id"},{"title":"Update a Smart Template","deprecated":null,"version":null,"sidebarTitle":"Update a smart template","openapi":"/scribe-api/openapi.json put /v1/medical-record-configurations/{configuration_id}","href":"/scribe-api/medical-record-configurations/update-a-smart-template"},{"title":"Delete a Smart Template","deprecated":null,"version":null,"sidebarTitle":"Delete a smart template","openapi":"/scribe-api/openapi.json delete /v1/medical-record-configurations/{configuration_id}","href":"/scribe-api/medical-record-configurations/delete-a-smart-template"}]},{"group":"Session Templates","pages":[{"title":"List Scribe Session Configurations","deprecated":null,"version":null,"sidebarTitle":"List scribe session configurations","openapi":"/scribe-api/openapi.json get /v1/scribe-session-configurations","href":"/scribe-api/scribe-session-configurations/list-scribe-session-configurations"}]},{"group":"Patients","pages":[{"title":"Create a patient","deprecated":null,"version":null,"sidebarTitle":"Create a patient","openapi":"/scribe-api/openapi.json post /v1/patients","href":"/scribe-api/patients/create-a-patient"},{"title":"List patients","deprecated":null,"version":null,"sidebarTitle":"List patients","openapi":"/scribe-api/openapi.json get /v1/patients","href":"/scribe-api/patients/list-patients"},{"title":"Get a patient by ID","deprecated":null,"version":null,"sidebarTitle":"Get a patient by id","openapi":"/scribe-api/openapi.json get /v1/patients/{patient_id}","href":"/scribe-api/patients/get-a-patient-by-id"},{"title":"Update a patient","deprecated":null,"version":null,"sidebarTitle":"Update a patient","openapi":"/scribe-api/openapi.json patch /v1/patients/{patient_id}","href":"/scribe-api/patients/update-a-patient"},{"title":"Delete a patient","deprecated":null,"version":null,"sidebarTitle":"Delete a patient","openapi":"/scribe-api/openapi.json delete /v1/patients/{patient_id}","href":"/scribe-api/patients/delete-a-patient"},{"title":"List a patient's scribe sessions","deprecated":null,"version":null,"sidebarTitle":"List a patients scribe sessions","openapi":"/scribe-api/openapi.json get /v1/patients/{patient_id}/scribe-sessions","href":"/scribe-api/patients/list-a-patients-scribe-sessions"}]},{"group":"Appointments","pages":[{"title":"Create an appointment","deprecated":null,"version":null,"sidebarTitle":"Create an appointment","openapi":"/scribe-api/openapi.json post /v1/appointments","href":"/scribe-api/appointments/create-an-appointment"},{"title":"List appointments (agenda)","deprecated":null,"version":null,"sidebarTitle":"List appointments agenda","openapi":"/scribe-api/openapi.json get /v1/appointments","href":"/scribe-api/appointments/list-appointments-agenda"},{"title":"Get an appointment by id","deprecated":null,"version":null,"sidebarTitle":"Get an appointment by id","openapi":"/scribe-api/openapi.json get /v1/appointments/{appointment_id}","href":"/scribe-api/appointments/get-an-appointment-by-id"},{"title":"Update an appointment","deprecated":null,"version":null,"sidebarTitle":"Update an appointment","openapi":"/scribe-api/openapi.json patch /v1/appointments/{appointment_id}","href":"/scribe-api/appointments/update-an-appointment"}]},{"group":"Audits","pages":[{"title":"Get a session's audit","deprecated":null,"version":null,"sidebarTitle":"Get a sessions audit","openapi":"/scribe-api/openapi.json get /v1/scribe-sessions/{id}/audit","href":"/scribe-api/audits/get-a-sessions-audit"}]}]},{"dropdown":"Institutional API","groups":[{"group":"Authentication","pages":[{"title":"Login","deprecated":null,"version":null,"sidebarTitle":"Login","openapi":"/scribe-api/openapi-institutional.json post /v1/auth/login","href":"/scribe-api-institutional/authentication/login"}]},{"group":"Accounts","pages":[{"title":"Create a doctor account","deprecated":null,"version":null,"sidebarTitle":"Create a doctor account","openapi":"/scribe-api/openapi-institutional.json post /v1/institutional/accounts","href":"/scribe-api-institutional/institutional/create-a-doctor-account"},{"title":"Create doctor accounts in bulk","deprecated":null,"version":null,"sidebarTitle":"Create doctor accounts in bulk","openapi":"/scribe-api/openapi-institutional.json post /v1/institutional/accounts/batch","href":"/scribe-api-institutional/institutional/create-doctor-accounts-in-bulk"},{"title":"List the institution's accounts","deprecated":null,"version":null,"sidebarTitle":"List the institutions accounts","openapi":"/scribe-api/openapi-institutional.json get /v1/institutional/accounts","href":"/scribe-api-institutional/institutional/list-the-institutions-accounts"},{"title":"Get a doctor account","deprecated":null,"version":null,"sidebarTitle":"Get a doctor account","openapi":"/scribe-api/openapi-institutional.json get /v1/institutional/accounts/{account_id}","href":"/scribe-api-institutional/institutional/get-a-doctor-account"},{"title":"Update a doctor account","deprecated":null,"version":null,"sidebarTitle":"Update a doctor account","openapi":"/scribe-api/openapi-institutional.json patch /v1/institutional/accounts/{account_id}","href":"/scribe-api-institutional/institutional/update-a-doctor-account"},{"title":"Regenerate a doctor account's API key","deprecated":null,"version":null,"sidebarTitle":"Regenerate a doctor accounts api key","openapi":"/scribe-api/openapi-institutional.json post /v1/institutional/accounts/{account_id}/api-keys/regenerate","href":"/scribe-api-institutional/institutional/regenerate-a-doctor-accounts-api-key"}]},{"group":"Publishers","pages":[{"title":"Notify a changed document","deprecated":null,"version":null,"sidebarTitle":"Notify a changed document","openapi":"/scribe-api/openapi-institutional.json post /v1/publishers/documents/changed","href":"/scribe-api-institutional/publishers/notify-a-changed-document"}]},{"group":"Branches","pages":[{"title":"Create a branch","deprecated":null,"version":null,"sidebarTitle":"Create a branch","openapi":"/scribe-api/openapi-institutional.json post /v1/institutional/branches","href":"/scribe-api-institutional/institutional/create-a-branch"},{"title":"List the institution's branches","deprecated":null,"version":null,"sidebarTitle":"List the institutions branches","openapi":"/scribe-api/openapi-institutional.json get /v1/institutional/branches","href":"/scribe-api-institutional/institutional/list-the-institutions-branches"}]},{"group":"Scribe Sessions","pages":[{"title":"Start a live consultation audio session","deprecated":null,"version":null,"sidebarTitle":"Start a live consultation audio session","openapi":"/scribe-api/openapi-institutional.json post /v1/scribe-sessions/live","href":"/scribe-api-institutional/scribe-sessions/start-a-live-consultation-audio-session"},{"title":"Look Up Scribe Session","deprecated":null,"version":null,"sidebarTitle":"Look up scribe session","openapi":"/scribe-api/openapi-institutional.json get /v1/scribe-sessions/{id}","href":"/scribe-api-institutional/session-scribes/look-up-scribe-session"},{"title":"List Medical Record Documents","deprecated":null,"version":null,"sidebarTitle":"List medical record documents","openapi":"/scribe-api/openapi-institutional.json get /v1/scribe-sessions/{id}/medical-record-documents","href":"/scribe-api-institutional/medical-record-documents/list-medical-record-documents"}]},{"group":"Clinical Decision Support","pages":[{"title":"Accept a CDSS alert","deprecated":null,"version":null,"sidebarTitle":"Accept a cdss alert","openapi":"/scribe-api/openapi-institutional.json post /v1/cdss/alerts/{alert_id}/accept","href":"/scribe-api-institutional/cdss/accept-a-cdss-alert"},{"title":"Reject a CDSS alert","deprecated":null,"version":null,"sidebarTitle":"Reject a cdss alert","openapi":"/scribe-api/openapi-institutional.json post /v1/cdss/alerts/{alert_id}/reject","href":"/scribe-api-institutional/cdss/reject-a-cdss-alert"},{"title":"Record decisions for several CDSS alerts","deprecated":null,"version":null,"sidebarTitle":"Record decisions for several cdss alerts","openapi":"/scribe-api/openapi-institutional.json post /v1/cdss/decisions","href":"/scribe-api-institutional/cdss/record-decisions-for-several-cdss-alerts"}]},{"group":"Smart Templates","pages":[{"title":"Create a Smart Template","deprecated":null,"version":null,"sidebarTitle":"Create a smart template","openapi":"/scribe-api/openapi-institutional.json post /v1/medical-record-configurations","href":"/scribe-api-institutional/medical-record-configurations/create-a-smart-template"},{"title":"List Smart Templates","deprecated":null,"version":null,"sidebarTitle":"List smart templates","openapi":"/scribe-api/openapi-institutional.json get /v1/medical-record-configurations","href":"/scribe-api-institutional/medical-record-configurations/list-smart-templates"},{"title":"Get a Smart Template by ID","deprecated":null,"version":null,"sidebarTitle":"Get a smart template by id","openapi":"/scribe-api/openapi-institutional.json get /v1/medical-record-configurations/{configuration_id}","href":"/scribe-api-institutional/medical-record-configurations/get-a-smart-template-by-id"},{"title":"Update a Smart Template","deprecated":null,"version":null,"sidebarTitle":"Update a smart template","openapi":"/scribe-api/openapi-institutional.json put /v1/medical-record-configurations/{configuration_id}","href":"/scribe-api-institutional/medical-record-configurations/update-a-smart-template"},{"title":"Delete a Smart Template","deprecated":null,"version":null,"sidebarTitle":"Delete a smart template","openapi":"/scribe-api/openapi-institutional.json delete /v1/medical-record-configurations/{configuration_id}","href":"/scribe-api-institutional/medical-record-configurations/delete-a-smart-template"}]},{"group":"Session Templates","pages":[{"title":"List Scribe Session Configurations","deprecated":null,"version":null,"sidebarTitle":"List scribe session configurations","openapi":"/scribe-api/openapi-institutional.json get /v1/scribe-session-configurations","href":"/scribe-api-institutional/scribe-session-configurations/list-scribe-session-configurations"}]},{"group":"Webhooks","pages":[{"title":"Create a webhook subscription","deprecated":null,"version":null,"sidebarTitle":"Create a webhook subscription","openapi":"/scribe-api/openapi-institutional.json post /v1/webhooks","href":"/scribe-api-institutional/webhooks/create-a-webhook-subscription"},{"title":"List webhook subscriptions","deprecated":null,"version":null,"sidebarTitle":"List webhook subscriptions","openapi":"/scribe-api/openapi-institutional.json get /v1/webhooks","href":"/scribe-api-institutional/webhooks/list-webhook-subscriptions"},{"title":"Get a webhook subscription by ID","deprecated":null,"version":null,"sidebarTitle":"Get a webhook subscription by id","openapi":"/scribe-api/openapi-institutional.json get /v1/webhooks/{webhook_id}","href":"/scribe-api-institutional/webhooks/get-a-webhook-subscription-by-id"},{"title":"Update a webhook subscription","deprecated":null,"version":null,"sidebarTitle":"Update a webhook subscription","openapi":"/scribe-api/openapi-institutional.json patch /v1/webhooks/{webhook_id}","href":"/scribe-api-institutional/webhooks/update-a-webhook-subscription"},{"title":"Rotate a webhook signing secret","deprecated":null,"version":null,"sidebarTitle":"Rotate a webhook signing secret","openapi":"/scribe-api/openapi-institutional.json post /v1/webhooks/{webhook_id}/rotate-secret","href":"/scribe-api-institutional/webhooks/rotate-a-webhook-signing-secret"}]},{"group":"Patients","pages":[{"title":"Create a patient","deprecated":null,"version":null,"sidebarTitle":"Create a patient","openapi":"/scribe-api/openapi-institutional.json post /v1/patients","href":"/scribe-api-institutional/patients/create-a-patient"},{"title":"List patients","deprecated":null,"version":null,"sidebarTitle":"List patients","openapi":"/scribe-api/openapi-institutional.json get /v1/patients","href":"/scribe-api-institutional/patients/list-patients"},{"title":"Get a patient by ID","deprecated":null,"version":null,"sidebarTitle":"Get a patient by id","openapi":"/scribe-api/openapi-institutional.json get /v1/patients/{patient_id}","href":"/scribe-api-institutional/patients/get-a-patient-by-id"},{"title":"Update a patient","deprecated":null,"version":null,"sidebarTitle":"Update a patient","openapi":"/scribe-api/openapi-institutional.json patch /v1/patients/{patient_id}","href":"/scribe-api-institutional/patients/update-a-patient"},{"title":"Delete a patient","deprecated":null,"version":null,"sidebarTitle":"Delete a patient","openapi":"/scribe-api/openapi-institutional.json delete /v1/patients/{patient_id}","href":"/scribe-api-institutional/patients/delete-a-patient"},{"title":"List a patient's scribe sessions","deprecated":null,"version":null,"sidebarTitle":"List a patients scribe sessions","openapi":"/scribe-api/openapi-institutional.json get /v1/patients/{patient_id}/scribe-sessions","href":"/scribe-api-institutional/patients/list-a-patients-scribe-sessions"}]},{"group":"Appointments","pages":[{"title":"Create an appointment","deprecated":null,"version":null,"sidebarTitle":"Create an appointment","openapi":"/scribe-api/openapi-institutional.json post /v1/appointments","href":"/scribe-api-institutional/appointments/create-an-appointment"},{"title":"List appointments (agenda)","deprecated":null,"version":null,"sidebarTitle":"List appointments agenda","openapi":"/scribe-api/openapi-institutional.json get /v1/appointments","href":"/scribe-api-institutional/appointments/list-appointments-agenda"},{"title":"Get an appointment by id","deprecated":null,"version":null,"sidebarTitle":"Get an appointment by id","openapi":"/scribe-api/openapi-institutional.json get /v1/appointments/{appointment_id}","href":"/scribe-api-institutional/appointments/get-an-appointment-by-id"},{"title":"Update an appointment","deprecated":null,"version":null,"sidebarTitle":"Update an appointment","openapi":"/scribe-api/openapi-institutional.json patch /v1/appointments/{appointment_id}","href":"/scribe-api-institutional/appointments/update-an-appointment"}]},{"group":"Audits","pages":[{"title":"Get a session's audit","deprecated":null,"version":null,"sidebarTitle":"Get a sessions audit","openapi":"/scribe-api/openapi-institutional.json get /v1/scribe-sessions/{id}/audit","href":"/scribe-api-institutional/audits/get-a-sessions-audit"},{"title":"List audits","deprecated":null,"version":null,"sidebarTitle":"List audits","openapi":"/scribe-api/openapi-institutional.json get /v1/audits","href":"/scribe-api-institutional/audits/list-audits"},{"title":"List audit configurations","deprecated":null,"version":null,"sidebarTitle":"List audit configurations","openapi":"/scribe-api/openapi-institutional.json get /v1/audits/configurations","href":"/scribe-api-institutional/audits/list-audit-configurations"}]}]},{"dropdown":"AI Prompts","groups":[{"group":"Setup","pages":[{"title":"AI Prompts","href":"/scribe-api/prompts/setup"}]},{"group":"Doctor","pages":[{"title":"Login","href":"/scribe-api/prompts/login"},{"title":"Set Consultation Context","href":"/scribe-api/prompts/setConsultationContext"},{"title":"Start a live consultation audio session","href":"/scribe-api/prompts/startLiveScribeSession"},{"title":"Look Up Scribe Session","href":"/scribe-api/prompts/getScribeSession"},{"title":"List Medical Record Documents","href":"/scribe-api/prompts/listMedicalRecordDocuments"},{"title":"List Scribe Session Configurations","href":"/scribe-api/prompts/listScribeSessionConfigurations"},{"title":"Create a Smart Template","href":"/scribe-api/prompts/createSmartTemplate"},{"title":"List Smart Templates","href":"/scribe-api/prompts/listSmartTemplates"},{"title":"Get a Smart Template by ID","href":"/scribe-api/prompts/getSmartTemplate"},{"title":"Delete a Smart Template","href":"/scribe-api/prompts/deleteSmartTemplate"},{"title":"Create a patient","href":"/scribe-api/prompts/createPatient"},{"title":"List patients","href":"/scribe-api/prompts/listPatients"},{"title":"Get a patient by ID","href":"/scribe-api/prompts/getPatient"},{"title":"Update a patient","href":"/scribe-api/prompts/updatePatient"},{"title":"Delete a patient","href":"/scribe-api/prompts/deletePatient"},{"title":"List a patient's scribe sessions","href":"/scribe-api/prompts/listPatientScribeSessions"},{"title":"Create an appointment","href":"/scribe-api/prompts/createAppointment"},{"title":"List appointments (agenda)","href":"/scribe-api/prompts/listAppointments"},{"title":"Get an appointment by id","href":"/scribe-api/prompts/getAppointment"},{"title":"Update an appointment","href":"/scribe-api/prompts/updateAppointment"},{"title":"Get a session's audit","href":"/scribe-api/prompts/getSessionAudit"},{"title":"Accept a CDSS alert","href":"/scribe-api/prompts/acceptCdssAlert"},{"title":"Reject a CDSS alert","href":"/scribe-api/prompts/rejectCdssAlert"},{"title":"Record decisions for several CDSS alerts","href":"/scribe-api/prompts/submitCdssDecisions"}]},{"group":"Institutional","pages":[{"title":"Create a doctor account","href":"/scribe-api/prompts/createInstitutionalAccount"},{"title":"Get a doctor account","href":"/scribe-api/prompts/getInstitutionalAccount"},{"title":"Update a doctor account","href":"/scribe-api/prompts/updateInstitutionalAccount"},{"title":"Regenerate a doctor account's API key","href":"/scribe-api/prompts/regenerateAccountApiKey"},{"title":"Create a branch","href":"/scribe-api/prompts/createInstitutionalBranch"},{"title":"List the institution's branches","href":"/scribe-api/prompts/listInstitutionalBranches"},{"title":"List audits","href":"/scribe-api/prompts/listAudits"},{"title":"List audit configurations","href":"/scribe-api/prompts/listAuditConfigurations"}]},{"group":"Webhooks","pages":[{"title":"Create a webhook subscription","href":"/scribe-api/prompts/createWebhook"},{"title":"List webhook subscriptions","href":"/scribe-api/prompts/listWebhooks"},{"title":"Get a webhook subscription by ID","href":"/scribe-api/prompts/getWebhook"},{"title":"Update a webhook subscription","href":"/scribe-api/prompts/updateWebhook"},{"title":"Rotate a webhook signing secret","href":"/scribe-api/prompts/rotateWebhookSecret"}]}]}]},{"tab":"Embed","pages":[{"title":"Embed","href":"/telepatia-embed"}]},{"tab":"Web Companion","pages":[{"title":"Web Companion","href":"/scribe-web-companion"}]},{"tab":"Mobile App","pages":[{"title":"Mobile App","href":"/mobile-app"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/scribe-api/consultation/set-consultation-context"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-br/scribe-api/consultation/set-consultation-context"}]}]},"basePath":"","title":"Set Consultation Context - Telepatia Integration Hub","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}