Beta. The PracticeHub API is in Beta: the contract is additive within a version, but details may still be refined, and any change that affects an existing integration is announced in the changelog first.
The patient record end to end — creating, updating, contact details, referrals, blocking and deletion
patients is the account’s core record — practitioners, appointments, invoices and files all hang off a patient_id. Every write runs through PatientService, the same code PracticeHub’s own patient file uses, so a patient created by an integration is held to exactly the rules a receptionist is.
numbers[] and address are separate tables under the hood (numbers, address), but they are not separate resources to write — you write them nested inside a patients create or update, and they come back nested on every read. GET /numbers and GET /addresses exist for read-only bulk queries; the contract lives here.
Creating a patient
Only first_name and last_name are required — the same minimum every patient form in PracticeHub enforces:
Every phone number needs a type — mobile, home, work or other (matched case-insensitively on input, always lowercase on output). A number sent with no type is refused (422 phone_type_required); a type outside that list is not refused, it’s just stored as Mobile — historic data and free-text imports carry values PracticeHub itself never generates, and the write path doesn’t punish that.Numbers are normalised on the way in: country_code is stored without its leading +, iso2 is lower-cased, and an E.164 intl_number is derived automatically when you don’t supply one — send number and iso2 (or a number that already has a +countrycode prefix) and the API works out the rest. An unparsable number is still stored, with a best-effort intl_number — never refused, matching what the patient-file phone widget does.
This keeps number 5012 (with a new digit string) and adds a new Work number; any third number that existed on the patient and isn’t listed here is deleted. Sending an id that isn’t one of this patient’s numbers is a 422 phone_number_not_found — read the patient first rather than guessing ids.
A list with no ids at all still works — it replaces the whole set, but only writes anything if the new list actually differs from what’s stored, so re-sending an unchanged list is a safe no-op for simple clients that don’t want to track ids.
address is a true partial update: PATCH with only { "address": { "postal_code": "N1 9GH" } } changes the postcode and leaves every other line alone — unlike numbers[], there’s no reconciliation to think about, because there’s only ever one address row per patient.
Tags
Every patient read carries the file’s current tags:
Only active tags of the account are listed, each once. id is the tag (GET /tags lists the account’s tags — id, name, color, sort_order); patient_tag_id is this tag on this file. editable: false means a care plan put the tag there — the plan takes it off when it ends.Tags go on and come off through their own write-only resource (POST and DELETE; there is no GET /patient_tags — read a file’s tags here), never through a patient write (tags on a POST/PATCH /patients is a 422):
tag_id must be an active tag of the account (422 tag_not_found) and patient_id a live patient (422 patient_not_found). Putting on a tag the file already holds returns the existing row rather than a second one. Taking off a tag a care plan manages is refused (409 tag_locked). Either change announces patients.updated to your webhooks.
Referral sources
referral_source_id and referral_source_type travel together — send both or neither. referral_source_type is referral_source (a source from GET /referral_sources, must be active) or patient (another patient on the account, must be live and not this patient — 422 referral_self if it is).
PracticeHub’s public intake forms can record a patient referral by name alone, for staff to match to a real patient record later — that “referred by Jane, unmatched” state exists because a public form has no patient list to pick from. An API integration does have one: a patient referral written through the API must always name the referring patient’s id.referral_source_type: "patient" with no referral_source_id is refused (422 referral_patient_required), not left half-filled.Changing an unrelated field doesn’t force you to re-validate a referral you didn’t touch — a reference the update leaves alone is kept even if the referral source has since been deactivated.
Communication preferences
Only two notification toggles are exposed as patient attributes today, nested under communication_preferences:
Marketing email/SMS opt-in, the reminder/confirmation channel and other comms settings are account defaults and app-level preferences, not attributes this resource writes — GET /schema/patients is the source of truth for exactly what’s accepted.
Blocking online booking
blocked: true is the patient file’s own Block Online Booking toggle — it records that this patient shouldn’t be offered online self-booking. It is a plain flag on the record, not a rule this resource enforces: nothing in POST /appointments checks it, so a booking made through this API for a blocked patient succeeds exactly as it would for any other patient.
Duplicate strategy
There’s no built-in duplicate check on POST /patients — the same patient sent twice creates two records, so dedupe before you write:
Migrating from another system? Use the legacy-ID pattern — a metadata.legacy_id and a GET /patients?metadata[legacy_id]=eq:… lookup before every create. This is the recommended approach whenever you control the identifier.
No stable external id? Query by the attributes that are actually filterable on this resource — email or name:
Neither is a guarantee — patients share names, and email is optional — so treat a match as a candidate to confirm (against dob, phone) rather than an automatic merge.
Deletion semantics
DELETE /patients/{id} is the same soft delete the patient file’s own delete action performs, in one transaction:
The patient row is flagged deleted (not removed) and its mobile-app login is disconnected.
Every recall for the patient is deactivated.
Every future pending appointment for the patient is deleted too — the same rule appointment delete applies, so a pending visit that’s already carrying an active invoice (a late-reschedule fee, say) is left behind rather than silently dropped.
A patient-log entry records the deletion, and the patient is removed from search.
A snapshot — first_name, the last name’s first initial, and default_location_id — lands in deleted_entities before the flag is set, so a sync process that reads deleted_entities can still tell who a deleted id used to be. Deleting an already-deleted patient is a 404, not a no-op success.See Writing for the full field-by-field contract and error codes, and Data migration for importing patients in bulk.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"PracticeHub API","colors":{"primary":"#0A0A0A","light":"#FAFAFA","dark":"#0A0A0A"},"logo":{"light":"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/logo/light.svg?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=78b2f118e53c15b719c31b4d00d2366b","dark":"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/logo/dark.svg?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=cb3f16c686d7f7f75fd5dea17a7e04a3","href":"https://practicehub.io"},"favicon":"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/favicon.png?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=d31ed1c4146bc58e148f34fda98fb4f9","api":{"openapi":["openapi.json"],"playground":{"display":"simple"},"url":"full","mdx":{"auth":{"method":"bearer"},"server":"https://{clinic}.{region}.practicehub.io/v3/api"}},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"mailto:help@practicehub.io","label":"Support"}],"primary":{"type":"button","label":"PracticeHub","href":"https://practicehub.io"}},"footer":{"socials":{"website":"https://practicehub.io"}},"seo":{"indexing":"all"},"icons":{"library":"lucide"},"banner":{"content":"**Beta.** The PracticeHub API is in Beta: the contract is additive within a version, but details may still be refined, and any change that affects an existing integration is announced in the [changelog](/changelog) first.","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"practicehub","hasAudioNarration":false,"actualSubdomain":"practicehub","customDomains":["build.practicehub.io"],"gitSource":{"type":"github","owner":"odin-platform","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6ab300da36ba2601a207fc59","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":97},{"language":"default","tag":"Patients","count":35},{"language":"default","tag":"Guides","count":32},{"language":"default","tag":"Billing","count":30},{"language":"default","tag":"Getting started","count":14},{"language":"default","tag":"MCP Server","count":14},{"language":"default","tag":"Scheduling","count":14},{"language":"default","tag":"Admin \u0026 reference","count":14},{"language":"default","tag":"Working with the API","count":8},{"language":"default","tag":"Resource guides","count":5}]},"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":"resources-guide/patients","slug":"/resources-guide/patients","pageMetadata":{"title":"Patients","description":"The patient record end to end — creating, updating, contact details, referrals, blocking and deletion","href":"/resources-guide/patients"},"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 patient record end to end — creating, updating, contact details, referrals, blocking and deletion\"\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={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`patients`}),` is the account’s core record — practitioners, appointments, invoices and files all hang off a `,_jsx(_components.code,{children:`patient_id`}),`. Every write runs through `,_jsx(_components.code,{children:`PatientService`}),`, the same code PracticeHub’s own patient file uses, so a patient created by an integration is held to exactly the rules a receptionist is.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`numbers[]`}),` and `,_jsx(_components.code,{children:`address`}),` are separate tables under the hood (`,_jsx(_components.code,{children:`numbers`}),`, `,_jsx(_components.code,{children:`address`}),`), but they are not separate resources to write — you write them nested inside a `,_jsx(_components.code,{children:`patients`}),` create or update, and they come back nested on every read. `,_jsx(_components.code,{children:`GET /numbers`}),` and `,_jsx(_components.code,{children:`GET /addresses`}),` exist for read-only bulk queries; the contract lives here.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`creating-a-patient`,children:`Creating a patient`}),`\n`,_jsxs(_components.p,{children:[`Only `,_jsx(_components.code,{children:`first_name`}),` and `,_jsx(_components.code,{children:`last_name`}),` are required — the same minimum every patient form in PracticeHub enforces:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/patients`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"first_name\": \"Ada\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"last_name\": \"Lovelace\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dob\": \"1985-12-10\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sex\": \"female\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"ada@example.org\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"numbers\": [{ \"number\": \"+44 7700 900123\", \"type\": \"mobile\" }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"address\": { \"line_1\": \"12 Analytical Way\", \"city\": \"London\", \"postal_code\": \"N1 9GU\", \"country\": \"GB\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`first_name`}),`, `,_jsx(_components.code,{children:`last_name`})]}),_jsx(_components.td,{children:`Required`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`preferred_name`})}),_jsx(_components.td,{children:`Optional, ≤ 255 chars`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dob`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`YYYY-MM-DD`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{children:`Validated as an email address, ≤ 255 chars`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sex`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`male`}),`, `,_jsx(_components.code,{children:`female`}),`, `,_jsx(_components.code,{children:`other`}),` or `,_jsx(_components.code,{children:`prefer_not_to_say`}),` — words, never a stored code`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`note`})}),_jsx(_components.td,{children:`Free text — the patient file’s general note`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`custom_reference`})}),_jsxs(_components.td,{children:[`Your own reference string, ≤ 255 chars — a plain field on the patient record, distinct from `,_jsx(_components.code,{children:`metadata`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`locale`})}),_jsx(_components.td,{children:`Preferred language, ≤ 255 chars`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`default_location_id`})}),_jsxs(_components.td,{children:[`Must be one of the account’s own locations (`,_jsx(_components.code,{children:`GET /locations`}),`) — `,_jsx(_components.code,{children:`422 location_not_found`}),` otherwise`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`blocked`})}),_jsxs(_components.td,{children:[`See `,_jsx(_components.a,{href:`#blocking-online-booking`,children:`Blocking online booking`}),` below`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`contact-details-numbers-and-address`,children:`Contact details: numbers and address`}),`\n`,_jsxs(_components.p,{children:[`Every phone number needs a `,_jsx(_components.code,{children:`type`}),` — `,_jsx(_components.code,{children:`mobile`}),`, `,_jsx(_components.code,{children:`home`}),`, `,_jsx(_components.code,{children:`work`}),` or `,_jsx(_components.code,{children:`other`}),` (matched case-insensitively on input, always lowercase on output). A number sent with no type is refused (`,_jsx(_components.code,{children:`422 phone_type_required`}),`); a type outside that list is not refused, it’s just stored as `,_jsx(_components.code,{children:`Mobile`}),` — historic data and free-text imports carry values PracticeHub itself never generates, and the write path doesn’t punish that.`]}),`\n`,_jsxs(_components.p,{children:[`Numbers are normalised on the way in: `,_jsx(_components.code,{children:`country_code`}),` is stored without its leading `,_jsx(_components.code,{children:`+`}),`, `,_jsx(_components.code,{children:`iso2`}),` is lower-cased, and an E.164 `,_jsx(_components.code,{children:`intl_number`}),` is derived automatically when you don’t supply one — send `,_jsx(_components.code,{children:`number`}),` and `,_jsx(_components.code,{children:`iso2`}),` (or a number that already has a `,_jsx(_components.code,{children:`+countrycode`}),` prefix) and the API works out the rest. An unparsable number is still stored, with a best-effort `,_jsx(_components.code,{children:`intl_number`}),` — never refused, matching what the patient-file phone widget does.`]}),`\n`,_jsx(CodeBlock,{filename:``,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:`\"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"07700 900123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"iso2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mobile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`reads back as:`}),`\n`,_jsx(CodeBlock,{filename:``,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:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5012`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"07700 900123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"country_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"44\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"iso2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mobile\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"intl_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+447700900123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`address`}),` object accepts `,_jsx(_components.code,{children:`line_1`}),`, `,_jsx(_components.code,{children:`line_2`}),`, `,_jsx(_components.code,{children:`city`}),`, `,_jsx(_components.code,{children:`state`}),`, `,_jsx(_components.code,{children:`postal_code`}),`, `,_jsx(_components.code,{children:`country`}),` — all optional, all ≤ 255 chars.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`updating-numbers-read-the-id-back-first`,children:[`Updating numbers: read the `,_jsx(_components.code,{children:`id`}),` back first`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PATCH`}),` reconciles `,_jsx(_components.code,{children:`numbers[]`}),` by `,_jsx(_components.code,{children:`id`}),`, the same pattern `,_jsx(_components.code,{children:`invoices.line_items[]`}),` uses:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An entry with the `,_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`id`}),` you read back`]}),` is updated in place.`]}),`\n`,_jsxs(_components.li,{children:[`An entry with `,_jsxs(_components.strong,{children:[`no `,_jsx(_components.code,{children:`id`})]}),` is added.`]}),`\n`,_jsxs(_components.li,{children:[`A stored number you `,_jsx(_components.strong,{children:`leave out entirely`}),` is removed.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/patients/340`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"numbers\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"id\": 5012, \"number\": \"07700 900999\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"number\": \"020 7946 0999\", \"type\": \"Work\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This keeps number `,_jsx(_components.code,{children:`5012`}),` (with a new digit string) and adds a new `,_jsx(_components.code,{children:`Work`}),` number; any third number that existed on the patient and isn’t listed here is deleted. Sending an `,_jsx(_components.code,{children:`id`}),` that isn’t one of this patient’s numbers is a `,_jsx(_components.code,{children:`422 phone_number_not_found`}),` — read the patient first rather than guessing ids.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`A list with `,_jsx(_components.strong,{children:`no ids at all`}),` still works — it replaces the whole set, but only writes anything if the new list actually differs from what’s stored, so re-sending an unchanged list is a safe no-op for simple clients that don’t want to track ids.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`address`}),` is a true partial update: `,_jsx(_components.code,{children:`PATCH`}),` with only `,_jsx(_components.code,{children:`{ \"address\": { \"postal_code\": \"N1 9GH\" } }`}),` changes the postcode and leaves every other line alone — unlike `,_jsx(_components.code,{children:`numbers[]`}),`, there’s no reconciliation to think about, because there’s only ever one address row per patient.`]}),`\n`,_jsx(Heading,{level:`2`,id:`tags`,children:`Tags`}),`\n`,_jsx(_components.p,{children:`Every patient read carries the file’s current tags:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_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:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`18`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VIP\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#4F86C6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"patient_tag_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9021`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"editable\"`}),_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:`\"added_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-19T14:22:05Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_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:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`21`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Corrective care\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"patient_tag_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9034`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"editable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"added_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-01T08:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Only active tags of the account are listed, each once. `,_jsx(_components.code,{children:`id`}),` is the tag (`,_jsx(_components.code,{children:`GET /tags`}),` lists the account’s tags — `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`color`}),`, `,_jsx(_components.code,{children:`sort_order`}),`); `,_jsx(_components.code,{children:`patient_tag_id`}),` is this tag on this file. `,_jsx(_components.code,{children:`editable: false`}),` means a care plan put the tag there — the plan takes it off when it ends.`]}),`\n`,_jsxs(_components.p,{children:[`Tags go on and come off through their own write-only resource (`,_jsx(_components.code,{children:`POST`}),` and `,_jsx(_components.code,{children:`DELETE`}),`; there is no `,_jsx(_components.code,{children:`GET /patient_tags`}),` — read a file’s tags here), never through a patient write (`,_jsx(_components.code,{children:`tags`}),` on a `,_jsx(_components.code,{children:`POST`}),`/`,_jsx(_components.code,{children:`PATCH /patients`}),` is a `,_jsx(_components.code,{children:`422`}),`):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/patient_tags`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"patient_id\": 340, \"tag_id\": 18 }'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/patient_tags/9021`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`tag_id`}),` must be an active tag of the account (`,_jsx(_components.code,{children:`422 tag_not_found`}),`) and `,_jsx(_components.code,{children:`patient_id`}),` a live patient (`,_jsx(_components.code,{children:`422 patient_not_found`}),`). Putting on a tag the file already holds returns the existing row rather than a second one. Taking off a tag a care plan manages is refused (`,_jsx(_components.code,{children:`409 tag_locked`}),`). Either change announces `,_jsx(_components.code,{children:`patients.updated`}),` to your webhooks.`]}),`\n`,_jsx(Heading,{level:`2`,id:`referral-sources`,children:`Referral sources`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`referral_source_id`}),` and `,_jsx(_components.code,{children:`referral_source_type`}),` travel together — send both or neither. `,_jsx(_components.code,{children:`referral_source_type`}),` is `,_jsx(_components.code,{children:`referral_source`}),` (a source from `,_jsx(_components.code,{children:`GET /referral_sources`}),`, must be active) or `,_jsx(_components.code,{children:`patient`}),` (another patient on the account, must be live and not this patient — `,_jsx(_components.code,{children:`422 referral_self`}),` if it is).`]}),`\n`,_jsx(CodeBlock,{filename:``,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:`\"referral_source_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"referral_source_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"referral_source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`PracticeHub’s public intake forms can record a patient referral by name alone, for staff to match to a real patient record later — that “referred by `,_jsx(_components.em,{children:`Jane`}),`, unmatched” state exists because a public form has no patient list to pick from. An API integration does have one: `,_jsx(_components.strong,{children:`a patient referral written through the API must always name the referring patient’s id.`}),` `,_jsx(_components.code,{children:`referral_source_type: \"patient\"`}),` with no `,_jsx(_components.code,{children:`referral_source_id`}),` is refused (`,_jsx(_components.code,{children:`422 referral_patient_required`}),`), not left half-filled.`]}),`\n`,_jsx(_components.p,{children:`Changing an unrelated field doesn’t force you to re-validate a referral you didn’t touch — a reference the update leaves alone is kept even if the referral source has since been deactivated.`}),`\n`,_jsx(Heading,{level:`2`,id:`communication-preferences`,children:`Communication preferences`}),`\n`,_jsxs(_components.p,{children:[`Only two notification toggles are exposed as patient attributes today, nested under `,_jsx(_components.code,{children:`communication_preferences`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,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:`\"communication_preferences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"marketing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"push_notification\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"transactional\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"push_notification\"`}),_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`,_jsxs(_components.p,{children:[`Marketing email/SMS opt-in, the reminder/confirmation channel and other comms settings are account defaults and app-level preferences, not attributes this resource writes — `,_jsx(_components.code,{children:`GET /schema/patients`}),` is the source of truth for exactly what’s accepted.`]}),`\n`,_jsx(Heading,{level:`2`,id:`blocking-online-booking`,children:`Blocking online booking`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`blocked: true`}),` is the patient file’s own `,_jsx(_components.strong,{children:`Block Online Booking`}),` toggle — it records that this patient shouldn’t be offered online self-booking. It is a plain flag on the record, not a rule this resource enforces: nothing in `,_jsx(_components.code,{children:`POST /appointments`}),` checks it, so a booking made through this API for a blocked patient succeeds exactly as it would for any other patient.`]}),`\n`,_jsx(Heading,{level:`2`,id:`duplicate-strategy`,children:`Duplicate strategy`}),`\n`,_jsxs(_components.p,{children:[`There’s no built-in duplicate check on `,_jsx(_components.code,{children:`POST /patients`}),` — the same patient sent twice creates two records, so dedupe before you write:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Migrating from another system?`}),` Use the `,_jsx(_components.a,{href:`/guides/data-migration#the-legacy-id-pattern`,children:`legacy-ID pattern`}),` — a `,_jsx(_components.code,{children:`metadata.legacy_id`}),` and a `,_jsx(_components.code,{children:`GET /patients?metadata[legacy_id]=eq:…`}),` lookup before every create. This is the recommended approach whenever you control the identifier.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No stable external id?`}),` Query by the attributes that are actually filterable on this resource — `,_jsx(_components.code,{children:`email`}),` or name:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/patients?email=eq:ada@example.org\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/patients?first_name=eq:Ada\u0026last_name=eq:Lovelace\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Neither is a guarantee — patients share names, and email is optional — so treat a match as a candidate to confirm (against `,_jsx(_components.code,{children:`dob`}),`, phone) rather than an automatic merge.`]}),`\n`,_jsx(Heading,{level:`2`,id:`deletion-semantics`,children:`Deletion semantics`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`DELETE /patients/{id}`}),` is the same soft delete the patient file’s own delete action performs, in one transaction:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`The patient row is flagged `,_jsx(_components.code,{children:`deleted`}),` (not removed) and its mobile-app login is disconnected.`]}),`\n`,_jsx(_components.li,{children:`Every recall for the patient is deactivated.`}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Every future `,_jsx(_components.code,{children:`pending`}),` appointment for the patient is deleted too`]}),` — the same rule `,_jsx(_components.a,{href:`/resources-guide/appointments#deleting-an-appointment`,children:`appointment delete`}),` applies, so a pending visit that’s already carrying an active invoice (a late-reschedule fee, say) is left behind rather than silently dropped.`]}),`\n`,_jsx(_components.li,{children:`A patient-log entry records the deletion, and the patient is removed from search.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`A snapshot — `,_jsx(_components.code,{children:`first_name`}),`, the last name’s first initial, and `,_jsx(_components.code,{children:`default_location_id`}),` — lands in `,_jsx(_components.code,{children:`deleted_entities`}),` before the flag is set, so a sync process that reads `,_jsx(_components.code,{children:`deleted_entities`}),` can still tell who a deleted id used to be. Deleting an already-deleted patient is a `,_jsx(_components.code,{children:`404`}),`, not a no-op success.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/guides/writing#the-apps-rules-apply`,children:`Writing`}),` for the full field-by-field contract and error codes, and `,_jsx(_components.a,{href:`/guides/data-migration#1-patients`,children:`Data migration`}),` for importing patients in bulk.`]})]})}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":"Patients","description":"The patient record end to end — creating, updating, contact details, referrals, blocking and deletion","href":"/resources-guide/patients"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Creating a patient","slug":"creating-a-patient","depth":2,"children":[]},{"title":"Contact details: numbers and address","slug":"contact-details-numbers-and-address","depth":2,"children":[{"title":"Updating numbers: read the id back first","slug":"updating-numbers-read-the-id-back-first","depth":3,"children":[]}]},{"title":"Tags","slug":"tags","depth":2,"children":[]},{"title":"Referral sources","slug":"referral-sources","depth":2,"children":[]},{"title":"Communication preferences","slug":"communication-preferences","depth":2,"children":[]},{"title":"Blocking online booking","slug":"blocking-online-booking","depth":2,"children":[]},{"title":"Duplicate strategy","slug":"duplicate-strategy","depth":2,"children":[]},{"title":"Deletion semantics","slug":"deletion-semantics","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"practicehub","siteName":"PracticeHub API","title":"Patients - PracticeHub API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-22T09:02:57.224Z","originalFileLocation":"resources-guide/patients.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=\"system\"}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 patient record end to end — creating, updating, contact details, referrals, blocking and deletion\">\u003cmeta data-mint-head name=\"application-name\" content=\"PracticeHub 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/practicehub/tWea_gTXnCMo_QSS/_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/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_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/practicehub/tWea_gTXnCMo_QSS/_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/practicehub/tWea_gTXnCMo_QSS/_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/practicehub/tWea_gTXnCMo_QSS/_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/practicehub/tWea_gTXnCMo_QSS/_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/practicehub/tWea_gTXnCMo_QSS/_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/practicehub/tWea_gTXnCMo_QSS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Patients - PracticeHub API\">\u003cmeta data-mint-head property=\"og:description\" content=\"The patient record end to end — creating, updating, contact details, referrals, blocking and deletion\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PracticeHub API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://build.practicehub.io/resources-guide/patients\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://practicehub.mintlify.site/_mintlify/api/og/v2?division=Resource+guides\u0026amp;title=Patients\u0026amp;description=The+patient+record+end+to+end+%E2%80%94+creating%2C+updating%2C+contact+details%2C+referrals%2C+blocking+and+deletion\u0026amp;theme=28d8abad6d6dc7c82fd4bf6c\u0026amp;signature=24f3baab541e51d2fbd9679d352dd588295d8bfc60cd48b99e9d83fc9263083d\">\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=\"Patients - PracticeHub API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The patient record end to end — creating, updating, contact details, referrals, blocking and deletion\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://practicehub.mintlify.site/_mintlify/api/og/v2?division=Resource+guides\u0026amp;title=Patients\u0026amp;description=The+patient+record+end+to+end+%E2%80%94+creating%2C+updating%2C+contact+details%2C+referrals%2C+blocking+and+deletion\u0026amp;theme=28d8abad6d6dc7c82fd4bf6c\u0026amp;signature=24f3baab541e51d2fbd9679d352dd588295d8bfc60cd48b99e9d83fc9263083d\">\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/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PracticeHub API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://build.practicehub.io/resources-guide/patients\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/resources-guide/patients.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://build.practicehub.io/#organization\",\"name\":\"PracticeHub API\",\"url\":\"https://build.practicehub.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/logo/light.svg?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=78b2f118e53c15b719c31b4d00d2366b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://build.practicehub.io#website\",\"name\":\"PracticeHub API\",\"url\":\"https://build.practicehub.io\",\"publisher\":{\"@id\":\"https://build.practicehub.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://build.practicehub.io/resources-guide/patients#webpage\",\"url\":\"https://build.practicehub.io/resources-guide/patients\",\"name\":\"Patients\",\"description\":\"The patient record end to end — creating, updating, contact details, referrals, blocking and deletion\",\"dateModified\":\"2026-09-22T09:02:57.224Z\",\"isPartOf\":{\"@id\":\"https://build.practicehub.io#website\"},\"breadcrumb\":{\"@id\":\"https://build.practicehub.io/resources-guide/patients#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://build.practicehub.io/resources-guide/patients#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PracticeHub API\",\"item\":\"https://build.practicehub.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Patients\",\"item\":\"https://build.practicehub.io/resources-guide/patients\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://build.practicehub.io/resources-guide/patients#article\",\"headline\":\"Patients\",\"name\":\"Patients\",\"description\":\"The patient record end to end — creating, updating, contact details, referrals, blocking and deletion\",\"url\":\"https://build.practicehub.io/resources-guide/patients\",\"mainEntityOfPage\":{\"@id\":\"https://build.practicehub.io/resources-guide/patients#webpage\"},\"dateModified\":\"2026-09-22T09:02:57.224Z\",\"publisher\":{\"@id\":\"https://build.practicehub.io/#organization\"},\"isPartOf\":{\"@id\":\"https://build.practicehub.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PracticeHub API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PracticeHub API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/resources-guide/patients.md","siteName":"PracticeHub API","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Why this API","href":"/why-the-new-api"},{"title":"Authentication","href":"/authentication"},{"title":"Quickstart","href":"/quickstart"},{"title":"Postman collection","href":"/postman"},{"title":"Resources \u0026 roadmap","href":"/resources"},{"title":"Docs MCP","href":"/ai-tools"},{"title":"Security \u0026 data handling","href":"/security"},{"title":"Glossary","href":"/glossary"},{"title":"FAQ \u0026 troubleshooting","href":"/faq"}]},{"group":"Concepts","pages":[{"title":"The data model","href":"/concepts/data-model"},{"title":"Dates, timezones and currency","href":"/concepts/dates-timezones-currency"},{"title":"Rate limits","href":"/concepts/rate-limits"},{"title":"Versioning and stability","href":"/concepts/versioning-and-stability"}]},{"group":"Working with the API","pages":[{"title":"Querying","href":"/guides/querying"},{"title":"Writing","href":"/guides/writing"},{"title":"Booking","href":"/guides/booking"},{"title":"Metadata","href":"/guides/metadata"},{"title":"Errors","href":"/guides/errors"},{"title":"Webhooks","href":"/guides/webhooks"},{"title":"Best practices","href":"/guides/best-practices"},{"title":"Debugging","href":"/guides/debugging"}]},{"group":"Ship it","pages":[{"title":"Testing your integration","href":"/guides/testing-your-integration"},{"title":"Securing your integration","href":"/guides/integration-security"},{"title":"Launch checklist","description":"What to check before your integration touches a live clinic","href":"/guides/launch-checklist"}]},{"group":"Resource guides","pages":[{"title":"Patients","href":"/resources-guide/patients"},{"title":"Appointments","description":"The appointment lifecycle end to end — booking vs recording, statuses, groups, resources and rescheduling","href":"/resources-guide/appointments"},{"title":"Billing","href":"/resources-guide/billing"},{"title":"Files and patient history","href":"/resources-guide/files-and-history"},{"title":"Clinical notes","href":"/resources-guide/clinical-notes"}]},{"group":"Importing your data","pages":[{"title":"Importing your data","href":"/guides/importing-your-data"},{"title":"Data migration over REST","href":"/guides/data-migration"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/utility/liveness-check"}]},{"tab":"MCP Server","pages":[{"title":"MCP Server","href":"/mcp/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Patients - PracticeHub API","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["10e4515597"],"chunks":["BannerMarkdown-DMIpkWQi.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}