The tools Emma calls mid-conversation to register a new patient and handle billing questions
These aren’t called from your own app — Vapi’s voice agent calls them directly, in real time, while Emma is on the phone with a new patient walking through registration. They’re part of the same sandbox data as the FHIR facade above, so anything a caller gives Emma over the phone shows up immediately if you look the patient up through Patient/$match.
Authentication here is different from every other page in this reference. There’s no dashboard JWT — a phone call has no logged-in user. Every request instead carries a shared secret in an x-vapi-secret header, checked against Emma’s server-side webhook secret (one shared value, not per clinic). Which patient and clinic a call belongs to is resolved on the server from the call’s own metadata, never from anything in the request body.
Request shape
Every tool is the same route with a different toolName, and Vapi can batch more than one tool call into a single request — so the response always echoes back one result per call, matched by toolCallId.
registrationStatus flips to “COMPLETE” once name, phone, email, and every field above are on file — that’s also the moment the patient goes from a placeholder record to a real, visible one on your Patients list.
submit_insurance_info
Passes the caller’s insurance details to the clinic’s insurance-verification system and records the outcome.
This tool relays a verification result — it doesn’t decide eligibility itself. errorMessage is present when verification failed.
record_self_pay_decision
Records what the caller chose after being told about a self-pay price (a price Emma looks up via the Knowledge Base earlier in the call, not this tool).
string
required
“self_pay_continue” or “billing_escalation”
number
The price Emma quoted, for the record
Result
{ "success": true }
escalate_billing
Bundles up everything known about the call so far, onto the patient’s record for staff to pick up. It doesn’t transfer the call itself; Emma still does that as a separate step.
string
Free-text reason for the escalation
Result
{ "success": true }
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Emma EMR Sandbox API","colors":{"primary":"#cf5673","light":"#cf5673","dark":"#803142"},"logo":{"light":"https://mintcdn.com/techdome-52f7dfa9/MLuBnDqOXT5iaDMs/images/emma-logo.png?fit=max\u0026auto=format\u0026n=MLuBnDqOXT5iaDMs\u0026q=85\u0026s=23154dfb44dbdb91f8ebdc132f119101","dark":"https://mintcdn.com/techdome-52f7dfa9/MLuBnDqOXT5iaDMs/images/emma-logo.png?fit=max\u0026auto=format\u0026n=MLuBnDqOXT5iaDMs\u0026q=85\u0026s=23154dfb44dbdb91f8ebdc132f119101"},"favicon":{"light":"https://mintcdn.com/techdome-52f7dfa9/MLuBnDqOXT5iaDMs/images/emma-logo.png?fit=max\u0026auto=format\u0026n=MLuBnDqOXT5iaDMs\u0026q=85\u0026s=23154dfb44dbdb91f8ebdc132f119101","dark":"https://mintcdn.com/techdome-52f7dfa9/MLuBnDqOXT5iaDMs/images/emma-logo.png?fit=max\u0026auto=format\u0026n=MLuBnDqOXT5iaDMs\u0026q=85\u0026s=23154dfb44dbdb91f8ebdc132f119101"},"appearance":{"default":"dark"},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://app.mintlify.com"}},"contextual":{"options":["copy","view","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"techdome-52f7dfa9","hasAudioNarration":false,"actualSubdomain":"techdome-52f7dfa9","customDomains":[],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-techdome-52f7dfa9-82969cbe","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aba3461b873ba1b86961be2","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Emma EMR Sandbox API","count":11},{"language":"default","tag":"Live-Call Tools","count":4},{"language":"default","tag":"FHIR Resources","count":4},{"language":"default","tag":"Overview","count":2},{"language":"default","tag":"Guides","count":1}]},"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/live-call-tools/patient-journey","slug":"/api-reference/live-call-tools/patient-journey","pageMetadata":{"title":"Patient Journey Tools","sidebarTitle":"Patient Journey","description":"The tools Emma calls mid-conversation to register a new patient and handle billing questions","href":"/api-reference/live-call-tools/patient-journey"},"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: \"The tools Emma calls mid-conversation to register a new patient and handle billing questions\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`These aren’t called from your own app — Vapi’s voice agent calls them directly, in real time, while Emma is on the phone with a new patient walking through registration. They’re part of the same sandbox data as the FHIR facade above, so anything a caller gives Emma over the phone shows up immediately if you look the patient up through Patient/$match.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Authentication here is different from every other page in this reference. There’s no dashboard JWT — a phone call has no logged-in user. Every request instead carries a shared secret in an x-vapi-secret header, checked against Emma’s server-side webhook secret (one shared value, not per clinic). Which patient and clinic a call belongs to is resolved on the server from the call’s own metadata, never from anything in the request body.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-shape`,children:`Request shape`}),`\n`,_jsx(_components.p,{children:`Every tool is the same route with a different toolName, and Vapi can batch more than one tool call into a single request — so the response always echoes back one result per call, matched by toolCallId.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /patient-journey/:toolName`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{filename:`Request`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"toolCalls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [ { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"function\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"arguments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"statedName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jordan Lee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"statedPhone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+14085551234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } } } ] } }`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:`Response`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [ { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"toolCallId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`success`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:true,`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`patientType`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`NEW`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } ] }`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Each result is itself a JSON string — decode it to get the shape documented below for that tool.`}),`\n`,_jsx(Heading,{level:`2`,id:`resolve_patient_identity`,children:`resolve_patient_identity`}),`\n`,_jsx(_components.p,{children:`Checks whether the caller matches an existing patient at this clinic, by name or phone.`}),`\n`,_jsx(ParamField,{body:`statedName`,type:`string`,id:`param-stated-name`,children:_jsx(_components.p,{children:`The name the caller gave`})}),`\n`,_jsx(ParamField,{body:`statedPhone`,type:`string`,id:`param-stated-phone`,children:_jsx(_components.p,{children:`The phone number the caller gave`})}),`\n`,_jsx(ParamField,{body:`statedDateOfBirth`,type:`string`,id:`param-stated-date-of-birth`,children:_jsx(_components.p,{children:`Not currently used in the match — accepted for future use`})}),`\n`,_jsx(_components.p,{children:`At least one of statedName or statedPhone is required.`}),`\n`,_jsx(CodeBlock,{filename:`Result`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"patientType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EXISTING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`patientType is “NEW” or “EXISTING”. A match never merges records mid-call — it’s just recorded for staff to see later.`}),`\n`,_jsx(Heading,{level:`2`,id:`update_registration_field`,children:`update_registration_field`}),`\n`,_jsx(_components.p,{children:`Saves one or more registration fields as the caller gives them — Emma calls this repeatedly through the conversation, not once at the end.`}),`\n`,_jsx(ParamField,{body:`firstName`,type:`string`,id:`param-first-name`}),`\n`,_jsx(ParamField,{body:`lastName`,type:`string`,id:`param-last-name`}),`\n`,_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`}),`\n`,_jsx(ParamField,{body:`preferredLocation`,type:`string`,id:`param-preferred-location`}),`\n`,_jsx(ParamField,{body:`medicareStatus`,type:`string`,id:`param-medicare-status`}),`\n`,_jsx(ParamField,{body:`healthPlanName`,type:`string`,id:`param-health-plan-name`}),`\n`,_jsx(ParamField,{body:`referralSource`,type:`string`,id:`param-referral-source`}),`\n`,_jsx(ParamField,{body:`commsConsent`,type:`boolean`,id:`param-comms-consent`}),`\n`,_jsx(CodeBlock,{filename:`Result`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"registrationStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACTION_REQUIRED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"missingFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"commsConsent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] }`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`registrationStatus flips to “COMPLETE” once name, phone, email, and every field above are on file — that’s also the moment the patient goes from a placeholder record to a real, visible one on your Patients list.`}),`\n`,_jsx(Heading,{level:`2`,id:`submit_insurance_info`,children:`submit_insurance_info`}),`\n`,_jsx(_components.p,{children:`Passes the caller’s insurance details to the clinic’s insurance-verification system and records the outcome.`}),`\n`,_jsx(ParamField,{body:`payerName`,type:`string`,required:true,id:`param-payer-name`}),`\n`,_jsx(ParamField,{body:`memberId`,type:`string`,required:true,id:`param-member-id`}),`\n`,_jsx(ParamField,{body:`groupId`,type:`string`,id:`param-group-id`}),`\n`,_jsx(ParamField,{body:`subscriberName`,type:`string`,id:`param-subscriber-name`}),`\n`,_jsx(CodeBlock,{filename:`Result`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VERIFIED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"copayCents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This tool relays a verification result — it doesn’t decide eligibility itself. errorMessage is present when verification failed.`}),`\n`,_jsx(Heading,{level:`2`,id:`record_self_pay_decision`,children:`record_self_pay_decision`}),`\n`,_jsx(_components.p,{children:`Records what the caller chose after being told about a self-pay price (a price Emma looks up via the Knowledge Base earlier in the call, not this tool).`}),`\n`,_jsx(ParamField,{body:`decision`,type:`string`,required:true,id:`param-decision`,children:_jsx(_components.p,{children:`“self_pay_continue” or “billing_escalation”`})}),`\n`,_jsx(ParamField,{body:`selfPayPriceCents`,type:`number`,id:`param-self-pay-price-cents`,children:_jsx(_components.p,{children:`The price Emma quoted, for the record`})}),`\n`,_jsx(CodeBlock,{filename:`Result`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`escalate_billing`,children:`escalate_billing`}),`\n`,_jsx(_components.p,{children:`Bundles up everything known about the call so far, onto the patient’s record for staff to pick up. It doesn’t transfer the call itself; Emma still does that as a separate step.`}),`\n`,_jsx(ParamField,{body:`reason`,type:`string`,id:`param-reason`,children:_jsx(_components.p,{children:`Free-text reason for the escalation`})}),`\n`,_jsx(CodeBlock,{filename:`Result`,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Patient Journey Tools","sidebarTitle":"Patient Journey","description":"The tools Emma calls mid-conversation to register a new patient and handle billing questions","href":"/api-reference/live-call-tools/patient-journey"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request shape","slug":"request-shape","depth":2,"children":[]},{"title":"resolve_patient_identity","slug":"resolve_patient_identity","depth":2,"children":[]},{"title":"update_registration_field","slug":"update_registration_field","depth":2,"children":[]},{"title":"submit_insurance_info","slug":"submit_insurance_info","depth":2,"children":[]},{"title":"record_self_pay_decision","slug":"record_self_pay_decision","depth":2,"children":[]},{"title":"escalate_billing","slug":"escalate_billing","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"techdome-52f7dfa9","siteName":"Emma EMR Sandbox API","title":"Patient Journey Tools - Emma EMR Sandbox API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T09:33:24.553Z","originalFileLocation":"api-reference/live-call-tools/patient-journey.mdx"},"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=\"The tools Emma calls mid-conversation to register a new patient and handle billing questions\">\u003cmeta data-mint-head name=\"application-name\" content=\"Emma EMR Sandbox API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Patient Journey Tools - Emma EMR Sandbox API\">\u003cmeta data-mint-head property=\"og:description\" content=\"The tools Emma calls mid-conversation to register a new patient and handle billing questions\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Emma EMR Sandbox API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://techdome-52f7dfa9.mintlify.site/_mintlify/api/og/v2?division=Live-Call+Tools\u0026amp;title=Patient+Journey+Tools\u0026amp;description=The+tools+Emma+calls+mid-conversation+to+register+a+new+patient+and+handle+billing+questions\u0026amp;theme=798d2c6cb6bc2002bb879e00\u0026amp;signature=a4ed489452dc37fbbcd3d9be101b0903f987b1e54c7a9dec12a1e541460e9587\">\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=\"Patient Journey Tools - Emma EMR Sandbox API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The tools Emma calls mid-conversation to register a new patient and handle billing questions\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://techdome-52f7dfa9.mintlify.site/_mintlify/api/og/v2?division=Live-Call+Tools\u0026amp;title=Patient+Journey+Tools\u0026amp;description=The+tools+Emma+calls+mid-conversation+to+register+a+new+patient+and+handle+billing+questions\u0026amp;theme=798d2c6cb6bc2002bb879e00\u0026amp;signature=a4ed489452dc37fbbcd3d9be101b0903f987b1e54c7a9dec12a1e541460e9587\">\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/techdome-52f7dfa9/n-WKuKs6s5GdWJkz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Emma EMR Sandbox API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#cf5673\">\u003clink data-mint-head rel=\"canonical\" href=\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/live-call-tools/patient-journey.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://techdome-52f7dfa9.mintlify.app/#organization\",\"name\":\"Emma EMR Sandbox API\",\"url\":\"https://techdome-52f7dfa9.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/techdome-52f7dfa9/MLuBnDqOXT5iaDMs/images/emma-logo.png?fit=max\u0026auto=format\u0026n=MLuBnDqOXT5iaDMs\u0026q=85\u0026s=23154dfb44dbdb91f8ebdc132f119101\"}},{\"@type\":\"WebSite\",\"@id\":\"https://techdome-52f7dfa9.mintlify.app#website\",\"name\":\"Emma EMR Sandbox API\",\"url\":\"https://techdome-52f7dfa9.mintlify.app\",\"publisher\":{\"@id\":\"https://techdome-52f7dfa9.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey#webpage\",\"url\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey\",\"name\":\"Patient Journey Tools\",\"description\":\"The tools Emma calls mid-conversation to register a new patient and handle billing questions\",\"dateModified\":\"2026-09-28T09:33:24.553Z\",\"isPartOf\":{\"@id\":\"https://techdome-52f7dfa9.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Emma EMR Sandbox API\",\"item\":\"https://techdome-52f7dfa9.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Patient Journey Tools\",\"item\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey#article\",\"headline\":\"Patient Journey Tools\",\"name\":\"Patient Journey Tools\",\"description\":\"The tools Emma calls mid-conversation to register a new patient and handle billing questions\",\"url\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey\",\"mainEntityOfPage\":{\"@id\":\"https://techdome-52f7dfa9.mintlify.app/api-reference/live-call-tools/patient-journey#webpage\"},\"dateModified\":\"2026-09-28T09:33:24.553Z\",\"publisher\":{\"@id\":\"https://techdome-52f7dfa9.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://techdome-52f7dfa9.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Emma EMR Sandbox API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Emma EMR Sandbox API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/live-call-tools/patient-journey.md","siteName":"Emma EMR Sandbox API","nav":{"global":null,"tabs":[{"tab":"Emma EMR Sandbox API","groups":[{"group":"Overview","pages":[{"title":"Overview","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"FHIR Resources","pages":[{"title":"Patient Matching","href":"/api-reference/resources/patient"},{"title":"Managing Appointments","href":"/api-reference/resources/appointment"},{"title":"Finding Availability","href":"/api-reference/resources/finding-availability"},{"title":"Clinical Documentation","href":"/api-reference/resources/document-reference"}]},{"group":"Guides","pages":[{"title":"Sandbox Configuration","description":"Turn the EMR sandbox on or off for your clinic","href":"/api-reference/guides/sandbox-configuration"}]},{"group":"Live-Call Tools","pages":[{"title":"Patient Journey Tools","sidebarTitle":"Patient Journey","href":"/api-reference/live-call-tools/patient-journey"},{"title":"Patient Intake Tools","sidebarTitle":"Patient Intake","description":"The tools Emma calls mid-conversation to validate and submit a caller's intake details","href":"/api-reference/live-call-tools/patient-intake"},{"sidebarTitle":"EMR Scheduling","title":"EMR Scheduling Tools","href":"/api-reference/live-call-tools/emr-scheduling"},{"title":"Abandonment Recovery Tools","sidebarTitle":"Abandonment Recovery","href":"/api-reference/live-call-tools/abandonment-recovery"}]}]}]},"basePath":"","title":"Patient Journey Tools - Emma EMR Sandbox API","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}