Permission:patients:write Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.
A unique value you choose for this request, such as a UUID. Sending the same key again returns the first answer instead of doing the work twice, so a timed-out request is safe to retry. Reusing a key for a different request is refused with 409 idempotency_key_conflict, and retrying while the first request is still running with 409 idempotency_key_reused. See Retries and idempotency.
Unknown top-level fields, and every named read-only field (mrn, portal_access_enabled, admission_status, client_status, insurance, pharmacies, care_providers, couple, profile_image, notification_settings — the last refused with the distinct code notification_settings_not_writable), are refused BY NAME, never silently dropped — enforced by the database, not this schema. allergies, current_medications and chronic_conditions are not accepted here either: they are the clinic's reviewed clinical record, so they are refused by name. Send allergies to createAllergy and conditions to createCondition; each is held for a clinician to confirm. They are still returned when you read a patient.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ClinikEHR API","description":"Reference and guides for the ClinikEHR API — read a clinic's own inventory from your own systems.","colors":{"primary":"#0D9488","light":"#2DD4BF","dark":"#0F766E"},"logo":{"light":"https://mintcdn.com/clinikehrapi/yWDcCtWZLvQferdo/logo/light.svg?fit=max\u0026auto=format\u0026n=yWDcCtWZLvQferdo\u0026q=85\u0026s=1c5da83101c773651a555abca64ef883","dark":"https://mintcdn.com/clinikehrapi/yWDcCtWZLvQferdo/logo/dark.svg?fit=max\u0026auto=format\u0026n=yWDcCtWZLvQferdo\u0026q=85\u0026s=6c05e14b5874038f79df529085e321f8","href":"https://clinikehr.com"},"favicon":"https://mintcdn.com/clinikehrapi/yWDcCtWZLvQferdo/favicon.png?fit=max\u0026auto=format\u0026n=yWDcCtWZLvQferdo\u0026q=85\u0026s=be1f63bf62da11aedb3dfd672a98f8d5","api":{"playground":{"display":"simple"},"examples":{"defaults":"all","languages":["curl","javascript","python"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://help.clinikehr.com","label":"Help Center"},{"href":"https://status.clinikehr.com","label":"Status"},{"href":"mailto:[email protected]","label":"Contact support"}],"primary":{"type":"button","label":"Open developer portal","href":"https://developer.clinikehr.com"}},"footer":{"socials":{"website":"https://clinikehr.com","x":"https://x.com/clinikehr","linkedin":"https://www.linkedin.com/company/clinikehr"},"links":[{"header":"Product","items":[{"label":"ClinikEHR","href":"https://clinikehr.com"},{"label":"Pricing","href":"https://clinikehr.com/pricing"}]},{"header":"Resources","items":[{"label":"Help Center","href":"https://help.clinikehr.com"},{"label":"Developer portal","href":"https://developer.clinikehr.com"},{"label":"Status","href":"https://status.clinikehr.com"}]},{"header":"Company","items":[{"label":"Contact support","href":"mailto:[email protected]"},{"label":"Privacy","href":"https://clinikehr.com/privacy"},{"label":"Terms","href":"https://clinikehr.com/terms"}]}]},"seo":{"metatags":{"og:site_name":"ClinikEHR API"},"indexing":"navigable"},"fonts":{"family":"Geist"},"styling":{"eyebrows":"section","codeblocks":"system","latex":false},"integrations":{"posthog":{"apiKey":"phc_817t39VWvmzFeNxvLBBOVQM0CnsuX5INS2qERVGXmIY","apiHost":"https://eu.i.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"clinikehrapi","hasAudioNarration":false,"actualSubdomain":"clinikehrapi","customDomains":["docs.clinikehr.com"],"gitSource":{"type":"github","owner":"clinikehr","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af297a5e44c8040cf970c65","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"API reference","count":121},{"language":"default","tag":"Documentation","count":48},{"language":"default","tag":"Resources","count":20},{"language":"default","tag":"Inventory","count":20},{"language":"default","tag":"HMO insurance","count":14},{"language":"default","tag":"Patients","count":11},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Appointments","count":8},{"language":"default","tag":"CRM","count":8},{"language":"default","tag":"Building an integration","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--ck-teal-50: #f0fdfa;--ck-teal-100: #ccfbf1;--ck-teal-500: #14b8a6;--ck-teal-600: #0d9488;--ck-teal-700: #0f766e;--ck-surface: #ffffff;--ck-surface-muted: #f8fafc;--ck-border: #e2e8f0;--ck-text: #0f172a;--ck-text-muted: #64748b;--ck-edition-clinic: #0d9488;--ck-edition-pharmacy: #7c3aed;--ck-edition-lims: #0284c7;--ck-edition-portal: #db2777}.dark{--ck-surface: #0b1120;--ck-surface-muted: #111827;--ck-border: #1f2937;--ck-text: #e2e8f0;--ck-text-muted: #94a3b8;--ck-edition-clinic: #2dd4bf;--ck-edition-pharmacy: #a78bfa;--ck-edition-lims: #38bdf8;--ck-edition-portal: #f472b6}.ck-avail{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;margin:1.25rem 0 1.75rem;padding:0.75rem 0.9rem;border:1px solid var(--ck-border);border-radius:0.75rem;background:var(--ck-surface-muted);font-size:0.8125rem;line-height:1.4}.ck-avail__label{font-weight:600;color:var(--ck-text-muted);text-transform:uppercase;letter-spacing:0.04em;font-size:0.6875rem;margin-right:0.15rem}.ck-pill{display:inline-flex;align-items:center;gap:0.35rem;padding:0.2rem 0.6rem;border-radius:999px;border:1px solid currentColor;font-weight:600;font-size:0.75rem;white-space:nowrap}.ck-pill--clinic{color:var(--ck-edition-clinic)}.ck-pill--pharmacy{color:var(--ck-edition-pharmacy)}.ck-pill--lims{color:var(--ck-edition-lims)}.ck-pill--portal{color:var(--ck-edition-portal)}.ck-pill--plan{color:var(--ck-text-muted);border-style:dashed}.ck-pill--role{color:var(--ck-text-muted);border-color:var(--ck-border);background:var(--ck-surface)}.ck-avail__note{flex-basis:100%;color:var(--ck-text-muted)}.ck-callout{margin:1.5rem 0;padding:0.9rem 1rem;border-radius:0.75rem;border:1px solid var(--ck-border);border-left-width:3px;background:var(--ck-surface-muted)}.ck-callout--note{border-left-color:var(--ck-teal-600)}.ck-callout--info{border-left-color:#6366f1}.dark .ck-callout--note{border-left-color:var(--ck-teal-500)}.dark .ck-callout--info{border-left-color:#818cf8}.ck-callout__body{margin:0;font-size:0.9375rem;line-height:1.6;color:var(--ck-text)}.ck-callout__body a{color:var(--ck-teal-700);text-decoration:underline;text-underline-offset:2px}.dark .ck-callout__body a{color:var(--ck-teal-500)}.ck-task{display:grid;gap:0.75rem;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));margin:1.5rem 0}.ck-task__cell{border:1px solid var(--ck-border);border-radius:0.75rem;padding:0.85rem 1rem;background:var(--ck-surface)}.ck-task__title{font-size:0.6875rem;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--ck-teal-600);margin-bottom:0.35rem}.dark .ck-task__title{color:var(--ck-teal-500)}.ck-task__body{font-size:0.875rem;color:var(--ck-text);margin:0}.ck-path{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.35rem;padding:0.3rem 0.6rem;border-radius:0.5rem;background:var(--ck-teal-50);border:1px solid var(--ck-teal-100);font-size:0.8125rem;font-weight:500;color:var(--ck-teal-700)}.dark .ck-path{background:rgba(13, 148, 136, 0.12);border-color:rgba(45, 212, 191, 0.28);color:var(--ck-teal-500)}.ck-path__sep{opacity:0.55}#sidebar li>a,#sidebar li>div{font-size:0.8125rem}#content-area a[href]>div.group,#content-area .card{transition:transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease}#content-area a[href]:hover>div.group,#content-area .card:hover{transform:translateY(-2px);box-shadow:0 8px 24px -12px rgba(15, 23, 42, 0.25);border-color:var(--ck-teal-500)}.dark #content-area a[href]:hover>div.group,.dark #content-area .card:hover{box-shadow:0 8px 24px -12px rgba(0, 0, 0, 0.6)}#content-area table{display:block;overflow-x:auto;max-width:100%}#content-area thead th{font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em;color:var(--ck-text-muted)}#content-area .steps .step-number,#content-area [class*=\"step\"]>div[class*=\"rounded-full\"]{background-color:var(--ck-teal-600);color:#fff}@media (max-width: 768px){#content-area table{font-size:0.8125rem}#content-area th,#content-area td{padding-left:0.6rem;padding-right:0.6rem}}@media (max-width: 640px){.ck-avail{padding:0.6rem 0.7rem;gap:0.4rem;font-size:0.78rem}.ck-pill{padding:0.15rem 0.5rem;font-size:0.7rem}.ck-task{grid-template-columns:1fr;gap:0.5rem}.ck-task__cell{padding:0.7rem 0.85rem}.ck-path{font-size:0.78rem;line-height:1.9}.ck-callout{padding:0.75rem 0.85rem;margin:1.1rem 0}}@media (pointer: coarse){#content-area .card,#content-area a[href]>div.group{min-height:44px}#sidebar li>a{padding-top:0.45rem;padding-bottom:0.45rem}}"}],"page":{"pagePath":"api-reference/patients/create-a-patient","slug":"/api-reference/patients/create-a-patient","pageMetadata":{"title":"Create a patient","description":"**Permission:** `patients:write` Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/patients","href":"/api-reference/patients/create-a-patient","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Permission:\"\n }), \" \", _jsx(_components.code, {\n children: \"patients:write\"\n }), \" Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Create a patient","description":"**Permission:** `patients:write` Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/patients","href":"/api-reference/patients/create-a-patient","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createPatient","tags":["Patients"],"summary":"Create a patient","description":"**Permission:** `patients:write` Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.","security":["029b26e0-4073-424e-ac59-4fbeb5ef087c"],"parameters":["c87bb0c7-e5b5-4d3c-957d-4d825f7d43e7","b2b58b41-3a6a-4f7c-a760-c876fd3e94a4"],"requestBody":"51eac6dd-25d2-447d-8247-327157ab8b6a","responses":{"200":"99f5d04a-fe07-4b0c-830e-ff3758e5b307","400":"6c86e950-d2f2-44a9-b35a-f1ca042fa966","401":"bf0a1d5d-d50d-4a7a-8906-e1cf7c425701","403":"a305c7af-b45d-4be3-a259-969fc9fb7515","404":"f6726096-524c-4794-ad9a-f53280561311","409":"6bfa092b-f103-486e-904a-9834da6a5778","429":"859e8fb2-cfa1-4587-8271-8745736dde87"},"method":"post","type":"path","servers":["6b4925f0-63ab-4b39-afe9-988d83d8bf2e"],"path":"/v1/clinics/{clinic_id}/patients","baseUrlOptions":["https://api.clinikehr.com"],"title":"Create a patient","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c87bb0c7-e5b5-4d3c-957d-4d825f7d43e7":{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique value you choose for this request, such as a UUID. Sending the same key again returns the first answer instead of doing the work twice, so a timed-out request is safe to retry. Reusing a key for a different request is refused with `409 idempotency_key_conflict`, and retrying while the first request is still running with `409 idempotency_key_reused`. See Retries and idempotency.","schema":{"type":"string","minLength":1,"isRequired":true,"description":"A unique value you choose for this request, such as a UUID. Sending the same key again returns the first answer instead of doing the work twice, so a timed-out request is safe to retry. Reusing a key for a different request is refused with `409 idempotency_key_conflict`, and retrying while the first request is still running with `409 idempotency_key_reused`. See Retries and idempotency.","uniqueKey":"","typeLabel":"string"}},"b2b58b41-3a6a-4f7c-a760-c876fd3e94a4":{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Unknown top-level fields, and every named read-only field (mrn, portal_access_enabled, admission_status, client_status, insurance, pharmacies, care_providers, couple, profile_image, notification_settings — the last refused with the distinct code notification_settings_not_writable), are refused BY NAME, never silently dropped — enforced by the database, not this schema. `allergies`, `current_medications` and `chronic_conditions` are not accepted here either: they are the clinic's reviewed clinical record, so they are refused by name. Send allergies to `createAllergy` and conditions to `createCondition`; each is held for a clinician to confirm. They are still returned when you read a patient.","required":["first_name","last_name","client_type"],"properties":{"first_name":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"first_name","typeLabel":"string"},"last_name":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"last_name","typeLabel":"string"},"client_type":{"type":"string","enum":["adult","minor"],"isRequired":true,"uniqueKey":"client_type","typeLabel":"enum\u003cstring>"},"middle_name":{"type":"string","uniqueKey":"middle_name","typeLabel":"string"},"preferred_name":{"type":"string","uniqueKey":"preferred_name","typeLabel":"string"},"title":{"type":"string","uniqueKey":"title","typeLabel":"string"},"suffix":{"type":"string","uniqueKey":"suffix","typeLabel":"string"},"date_of_birth":{"type":"string","format":"date","uniqueKey":"date_of_birth","typeLabel":"string\u003cdate>"},"gender":{"type":"string","enum":["male","female","other"],"uniqueKey":"gender","typeLabel":"enum\u003cstring>"},"marital_status":{"type":"string","enum":["single","married","divorced","widowed","separated"],"uniqueKey":"marital_status","typeLabel":"enum\u003cstring>"},"email":{"type":"string","format":"email","uniqueKey":"email","typeLabel":"string\u003cemail>"},"phone":{"type":"string","uniqueKey":"phone","typeLabel":"string"},"secondary_phone":{"type":"string","uniqueKey":"secondary_phone","typeLabel":"string"},"country":{"type":"string","uniqueKey":"country","typeLabel":"string"},"nationality":{"type":"string","uniqueKey":"nationality","typeLabel":"string"},"occupation":{"type":"string","uniqueKey":"occupation","typeLabel":"string"},"residential_address":{"type":"string","uniqueKey":"residential_address","typeLabel":"string"},"work_address":{"type":"string","uniqueKey":"work_address","typeLabel":"string"},"city":{"type":"string","uniqueKey":"city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"state","typeLabel":"string"},"zip":{"type":"string","uniqueKey":"zip","typeLabel":"string"},"next_of_kin":{"type":"object","properties":{"name":{"oneOf":[{"type":"string","uniqueKey":"next_of_kin.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"next_of_kin.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_of_kin.name","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"next_of_kin.phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"next_of_kin.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_of_kin.phone","typeLabel":"string | null"},"address":{"oneOf":[{"type":"string","uniqueKey":"next_of_kin.address.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"next_of_kin.address.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_of_kin.address","typeLabel":"string | null"}},"uniqueKey":"next_of_kin","typeLabel":"object"},"national_id":{"type":"string","uniqueKey":"national_id","typeLabel":"string"},"preferred_language":{"type":"string","uniqueKey":"preferred_language","typeLabel":"string"},"referred_by":{"type":"string","uniqueKey":"referred_by","typeLabel":"string"},"referral_source_id":{"type":"string","format":"uuid","uniqueKey":"referral_source_id","typeLabel":"string\u003cuuid>"},"employment":{"type":"object","properties":{"status":{"oneOf":[{"type":"string","uniqueKey":"employment.status.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employment.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"employment.status","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","uniqueKey":"employment.company.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employment.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"employment.company","typeLabel":"string | null"},"role":{"oneOf":[{"type":"string","uniqueKey":"employment.role.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"employment.role.oneOf.1","typeLabel":"null"}],"uniqueKey":"employment.role","typeLabel":"string | null"}},"uniqueKey":"employment","typeLabel":"object"},"is_dependent":{"type":"boolean","uniqueKey":"is_dependent","typeLabel":"boolean"},"is_waitlist":{"type":"boolean","uniqueKey":"is_waitlist","typeLabel":"boolean"},"sponsor_id":{"type":"string","format":"uuid","uniqueKey":"sponsor_id","typeLabel":"string\u003cuuid>"},"billing":{"type":"object","properties":{"individual_type":{"oneOf":[{"type":"string","enum":["self_pay","insurance",null],"uniqueKey":"billing.individual_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["self_pay","insurance",null],"uniqueKey":"billing.individual_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing.individual_type","typeLabel":"enum\u003cstring> | null"},"group_type":{"oneOf":[{"type":"string","enum":["self_pay","insurance",null],"uniqueKey":"billing.group_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["self_pay","insurance",null],"uniqueKey":"billing.group_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing.group_type","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"billing","typeLabel":"object"},"medical_history":{"type":"string","uniqueKey":"medical_history","typeLabel":"string"},"blood_type":{"type":"string","enum":["O+","O-","A+","A-","B+","B-","AB+","AB-"],"uniqueKey":"blood_type","typeLabel":"enum\u003cstring>"},"genotype":{"type":"string","enum":["AA","AS","SS","AC","SC"],"uniqueKey":"genotype","typeLabel":"enum\u003cstring>"},"family_history":{"type":"string","uniqueKey":"family_history","typeLabel":"string"},"smoking_status":{"type":"string","uniqueKey":"smoking_status","typeLabel":"string"},"alcohol_use":{"type":"string","uniqueKey":"alcohol_use","typeLabel":"string"},"recreational_drug_use":{"type":"string","uniqueKey":"recreational_drug_use","typeLabel":"string"},"physical_activity":{"type":"string","uniqueKey":"physical_activity","typeLabel":"string"},"living_arrangement":{"type":"string","uniqueKey":"living_arrangement","typeLabel":"string"},"status":{"type":"string","enum":["active","prospect","inactive","blocked"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"is_vip":{"type":"boolean","uniqueKey":"is_vip","typeLabel":"boolean"},"primary_location_id":{"type":"string","format":"uuid","uniqueKey":"primary_location_id","typeLabel":"string\u003cuuid>"},"emails":{"type":"array","items":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"emails.items.[INDEX].email","typeLabel":"string\u003cemail>"},"type":{"oneOf":[{"type":"string","uniqueKey":"emails.items.[INDEX].type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"emails.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"emails.items.[INDEX].type","typeLabel":"string | null"},"permission":{"oneOf":[{"type":"string","enum":["email_ok","no_email",null],"uniqueKey":"emails.items.[INDEX].permission.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["email_ok","no_email",null],"uniqueKey":"emails.items.[INDEX].permission.oneOf.1","typeLabel":"null"}],"uniqueKey":"emails.items.[INDEX].permission","typeLabel":"enum\u003cstring> | null"},"is_primary":{"type":"boolean","default":false,"uniqueKey":"emails.items.[INDEX].is_primary","typeLabel":"boolean"}},"uniqueKey":"emails.items.[INDEX]","typeLabel":"object"},"uniqueKey":"emails","typeLabel":"object[]"},"phones":{"type":"array","items":{"type":"object","required":["phone_number"],"properties":{"phone_number":{"type":"string","isRequired":true,"uniqueKey":"phones.items.[INDEX].phone_number","typeLabel":"string"},"type":{"oneOf":[{"type":"string","uniqueKey":"phones.items.[INDEX].type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"phones.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"phones.items.[INDEX].type","typeLabel":"string | null"},"permission":{"oneOf":[{"type":"string","enum":["text_voicemail_ok","text_ok","voicemail_ok","no_call",null],"uniqueKey":"phones.items.[INDEX].permission.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["text_voicemail_ok","text_ok","voicemail_ok","no_call",null],"uniqueKey":"phones.items.[INDEX].permission.oneOf.1","typeLabel":"null"}],"uniqueKey":"phones.items.[INDEX].permission","typeLabel":"enum\u003cstring> | null"},"is_primary":{"type":"boolean","default":false,"uniqueKey":"phones.items.[INDEX].is_primary","typeLabel":"boolean"}},"uniqueKey":"phones.items.[INDEX]","typeLabel":"object"},"uniqueKey":"phones","typeLabel":"object[]"},"guardians":{"type":"array","items":{"type":"object","properties":{"guardian_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"guardians.items.[INDEX].guardian_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"guardians.items.[INDEX].guardian_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"guardians.items.[INDEX].guardian_id","typeLabel":"string\u003cuuid> | null"},"first_name":{"oneOf":[{"type":"string","uniqueKey":"guardians.items.[INDEX].first_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"guardians.items.[INDEX].first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"guardians.items.[INDEX].first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","uniqueKey":"guardians.items.[INDEX].last_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"guardians.items.[INDEX].last_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"guardians.items.[INDEX].last_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"guardians.items.[INDEX].email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"guardians.items.[INDEX].email.oneOf.1","typeLabel":"null"}],"uniqueKey":"guardians.items.[INDEX].email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"guardians.items.[INDEX].phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"guardians.items.[INDEX].phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"guardians.items.[INDEX].phone","typeLabel":"string | null"},"relationship":{"oneOf":[{"type":"string","enum":["parent","grandparent","sibling","aunt_uncle","legal_guardian","foster_parent","step_parent","other",null],"uniqueKey":"guardians.items.[INDEX].relationship.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["parent","grandparent","sibling","aunt_uncle","legal_guardian","foster_parent","step_parent","other",null],"uniqueKey":"guardians.items.[INDEX].relationship.oneOf.1","typeLabel":"null"}],"uniqueKey":"guardians.items.[INDEX].relationship","typeLabel":"enum\u003cstring> | null"},"is_responsible_for_billing":{"type":"boolean","default":false,"uniqueKey":"guardians.items.[INDEX].is_responsible_for_billing","typeLabel":"boolean"},"is_primary":{"type":"boolean","default":false,"uniqueKey":"guardians.items.[INDEX].is_primary","typeLabel":"boolean"},"can_access_records":{"type":"boolean","default":false,"uniqueKey":"guardians.items.[INDEX].can_access_records","typeLabel":"boolean"},"is_emergency_contact":{"type":"boolean","default":true,"uniqueKey":"guardians.items.[INDEX].is_emergency_contact","typeLabel":"boolean"},"can_schedule_appointments":{"type":"boolean","default":false,"uniqueKey":"guardians.items.[INDEX].can_schedule_appointments","typeLabel":"boolean"},"notes":{"oneOf":[{"type":"string","uniqueKey":"guardians.items.[INDEX].notes.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"guardians.items.[INDEX].notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"guardians.items.[INDEX].notes","typeLabel":"string | null"}},"uniqueKey":"guardians.items.[INDEX]","typeLabel":"object"},"uniqueKey":"guardians","typeLabel":"object[]"},"run_automations":{"type":"boolean","default":false,"description":"Default false suppresses the patient.created Agent Studio dispatch.","uniqueKey":"run_automations","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"first_name":"\u003cstring>","last_name":"\u003cstring>","middle_name":"\u003cstring>","preferred_name":"\u003cstring>","title":"\u003cstring>","suffix":"\u003cstring>","date_of_birth":"2023-12-25","email":"[email protected]","phone":"\u003cstring>","secondary_phone":"\u003cstring>","country":"\u003cstring>","nationality":"\u003cstring>","occupation":"\u003cstring>","residential_address":"\u003cstring>","work_address":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","zip":"\u003cstring>","next_of_kin":{"name":"\u003cstring>","phone":"\u003cstring>","address":"\u003cstring>"},"national_id":"\u003cstring>","preferred_language":"\u003cstring>","referred_by":"\u003cstring>","referral_source_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","employment":{"status":"\u003cstring>","company":"\u003cstring>","role":"\u003cstring>"},"is_dependent":true,"is_waitlist":true,"sponsor_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","billing":{},"medical_history":"\u003cstring>","family_history":"\u003cstring>","smoking_status":"\u003cstring>","alcohol_use":"\u003cstring>","recreational_drug_use":"\u003cstring>","physical_activity":"\u003cstring>","living_arrangement":"\u003cstring>","is_vip":true,"primary_location_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","emails":[{"email":"[email protected]","type":"\u003cstring>","is_primary":false}],"phones":[{"phone_number":"\u003cstring>","type":"\u003cstring>","is_primary":false}],"guardians":[{"guardian_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","is_responsible_for_billing":false,"is_primary":false,"can_access_records":false,"is_emergency_contact":true,"can_schedule_appointments":false,"notes":"\u003cstring>"}],"run_automations":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"99f5d04a-fe07-4b0c-830e-ff3758e5b307":{"description":"OK. `data` carries `duplicate_candidates` alongside the created record when a possible match was found.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","first_name","last_name"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"first_name":{"type":"string","isRequired":true,"uniqueKey":"data.first_name","typeLabel":"string"},"last_name":{"type":"string","isRequired":true,"uniqueKey":"data.last_name","typeLabel":"string"},"mrn":{"oneOf":[{"type":"string","uniqueKey":"data.mrn.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.mrn.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.mrn","typeLabel":"string | null"},"middle_name":{"oneOf":[{"type":"string","uniqueKey":"data.middle_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.middle_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.middle_name","typeLabel":"string | null"},"preferred_name":{"oneOf":[{"type":"string","uniqueKey":"data.preferred_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.preferred_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.preferred_name","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"data.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.title","typeLabel":"string | null"},"suffix":{"oneOf":[{"type":"string","uniqueKey":"data.suffix.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.suffix.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.suffix","typeLabel":"string | null"},"date_of_birth":{"oneOf":[{"type":"string","format":"date","uniqueKey":"data.date_of_birth.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","uniqueKey":"data.date_of_birth.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.date_of_birth","typeLabel":"string\u003cdate> | null"},"gender":{"oneOf":[{"type":"string","enum":["male","female","other",null],"uniqueKey":"data.gender.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["male","female","other",null],"uniqueKey":"data.gender.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.gender","typeLabel":"enum\u003cstring> | null"},"marital_status":{"oneOf":[{"type":"string","enum":["single","married","divorced","widowed","separated",null],"uniqueKey":"data.marital_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["single","married","divorced","widowed","separated",null],"uniqueKey":"data.marital_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.marital_status","typeLabel":"enum\u003cstring> | null"},"client_type":{"oneOf":[{"type":"string","enum":["adult","minor","couple",null],"uniqueKey":"data.client_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["adult","minor","couple",null],"uniqueKey":"data.client_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client_type","typeLabel":"enum\u003cstring> | null"},"client_status":{"oneOf":[{"type":"string","description":"Read-only global status (patients.client_status).","uniqueKey":"data.client_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Read-only global status (patients.client_status).","uniqueKey":"data.client_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client_status","typeLabel":"string | null"},"is_dependent":{"type":"boolean","uniqueKey":"data.is_dependent","typeLabel":"boolean"},"email":{"oneOf":[{"type":"string","uniqueKey":"data.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"data.phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.phone","typeLabel":"string | null"},"secondary_phone":{"oneOf":[{"type":"string","uniqueKey":"data.secondary_phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.secondary_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.secondary_phone","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"data.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.country","typeLabel":"string | null"},"nationality":{"oneOf":[{"type":"string","uniqueKey":"data.nationality.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.nationality.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.nationality","typeLabel":"string | null"},"occupation":{"oneOf":[{"type":"string","uniqueKey":"data.occupation.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.occupation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.occupation","typeLabel":"string | null"},"residential_address":{"oneOf":[{"type":"string","uniqueKey":"data.residential_address.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.residential_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.residential_address","typeLabel":"string | null"},"work_address":{"oneOf":[{"type":"string","uniqueKey":"data.work_address.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.work_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.work_address","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","uniqueKey":"data.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.city","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","uniqueKey":"data.state.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.state","typeLabel":"string | null"},"zip":{"oneOf":[{"type":"string","uniqueKey":"data.zip.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.zip.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.zip","typeLabel":"string | null"},"next_of_kin":{"type":"object","properties":{"name":{"oneOf":[{"type":"string","uniqueKey":"data.next_of_kin.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.next_of_kin.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.next_of_kin.name","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"data.next_of_kin.phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.next_of_kin.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.next_of_kin.phone","typeLabel":"string | null"},"address":{"oneOf":[{"type":"string","uniqueKey":"data.next_of_kin.address.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.next_of_kin.address.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.next_of_kin.address","typeLabel":"string | null"}},"uniqueKey":"data.next_of_kin","typeLabel":"object"},"national_id":{"oneOf":[{"type":"string","uniqueKey":"data.national_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.national_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.national_id","typeLabel":"string | null"},"preferred_language":{"oneOf":[{"type":"string","uniqueKey":"data.preferred_language.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.preferred_language.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.preferred_language","typeLabel":"string | null"},"referred_by":{"oneOf":[{"type":"string","uniqueKey":"data.referred_by.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.referred_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.referred_by","typeLabel":"string | null"},"referral_source_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.referral_source_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.referral_source_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.referral_source_id","typeLabel":"string\u003cuuid> | null"},"employment":{"type":"object","properties":{"status":{"oneOf":[{"type":"string","uniqueKey":"data.employment.status.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.employment.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.employment.status","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","uniqueKey":"data.employment.company.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.employment.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.employment.company","typeLabel":"string | null"},"role":{"oneOf":[{"type":"string","uniqueKey":"data.employment.role.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.employment.role.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.employment.role","typeLabel":"string | null"}},"uniqueKey":"data.employment","typeLabel":"object"},"is_waitlist":{"type":"boolean","uniqueKey":"data.is_waitlist","typeLabel":"boolean"},"billing":{"type":"object","properties":{"individual_type":{"oneOf":[{"type":"string","enum":["self_pay","insurance",null],"uniqueKey":"data.billing.individual_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["self_pay","insurance",null],"uniqueKey":"data.billing.individual_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.billing.individual_type","typeLabel":"enum\u003cstring> | null"},"group_type":{"oneOf":[{"type":"string","enum":["self_pay","insurance",null],"uniqueKey":"data.billing.group_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["self_pay","insurance",null],"uniqueKey":"data.billing.group_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.billing.group_type","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"data.billing","typeLabel":"object"},"sponsor_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.sponsor_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.sponsor_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sponsor_id","typeLabel":"string\u003cuuid> | null"},"allergies":{"type":"array","items":{"type":"string","uniqueKey":"data.allergies.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.allergies","typeLabel":"string[]"},"medical_history":{"oneOf":[{"type":"string","uniqueKey":"data.medical_history.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.medical_history.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.medical_history","typeLabel":"string | null"},"current_medications":{"type":"array","items":{"type":"string","uniqueKey":"data.current_medications.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.current_medications","typeLabel":"string[]"},"chronic_conditions":{"type":"array","items":{"type":"string","uniqueKey":"data.chronic_conditions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.chronic_conditions","typeLabel":"string[]"},"blood_type":{"oneOf":[{"type":"string","enum":["O+","O-","A+","A-","B+","B-","AB+","AB-",null],"uniqueKey":"data.blood_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["O+","O-","A+","A-","B+","B-","AB+","AB-",null],"uniqueKey":"data.blood_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.blood_type","typeLabel":"enum\u003cstring> | null"},"genotype":{"oneOf":[{"type":"string","enum":["AA","AS","SS","AC","SC",null],"uniqueKey":"data.genotype.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["AA","AS","SS","AC","SC",null],"uniqueKey":"data.genotype.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.genotype","typeLabel":"enum\u003cstring> | null"},"family_history":{"oneOf":[{"type":"string","uniqueKey":"data.family_history.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.family_history.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.family_history","typeLabel":"string | null"},"smoking_status":{"oneOf":[{"type":"string","uniqueKey":"data.smoking_status.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.smoking_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.smoking_status","typeLabel":"string | null"},"alcohol_use":{"oneOf":[{"type":"string","uniqueKey":"data.alcohol_use.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.alcohol_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.alcohol_use","typeLabel":"string | null"},"recreational_drug_use":{"oneOf":[{"type":"string","uniqueKey":"data.recreational_drug_use.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.recreational_drug_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.recreational_drug_use","typeLabel":"string | null"},"physical_activity":{"oneOf":[{"type":"string","uniqueKey":"data.physical_activity.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.physical_activity.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.physical_activity","typeLabel":"string | null"},"living_arrangement":{"oneOf":[{"type":"string","uniqueKey":"data.living_arrangement.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.living_arrangement.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.living_arrangement","typeLabel":"string | null"},"has_profile_image":{"type":"boolean","description":"Read-only. Whether the patient has a profile picture on file. The picture itself is not available through the API yet.","uniqueKey":"data.has_profile_image","typeLabel":"boolean"},"profile_image_path":{"oneOf":[{"type":"string","description":"Read-only. Not available through the API yet - this value cannot be used to download the picture.","uniqueKey":"data.profile_image_path.oneOf.0","typeLabel":"string"},{"type":"null","description":"Read-only. Not available through the API yet - this value cannot be used to download the picture.","uniqueKey":"data.profile_image_path.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.profile_image_path","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","enum":["active","prospect","inactive","blocked",null],"uniqueKey":"data.status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["active","prospect","inactive","blocked",null],"uniqueKey":"data.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.status","typeLabel":"enum\u003cstring> | null"},"is_vip":{"type":"boolean","uniqueKey":"data.is_vip","typeLabel":"boolean"},"primary_location_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.primary_location_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.primary_location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.primary_location_id","typeLabel":"string\u003cuuid> | null"},"portal_access_enabled":{"oneOf":[{"type":"boolean","description":"Read-only.","uniqueKey":"data.portal_access_enabled.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Read-only.","uniqueKey":"data.portal_access_enabled.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.portal_access_enabled","typeLabel":"boolean | null"},"admission_status":{"oneOf":[{"type":"string","description":"Read-only, ward-only.","uniqueKey":"data.admission_status.oneOf.0","typeLabel":"string"},{"type":"null","description":"Read-only, ward-only.","uniqueKey":"data.admission_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.admission_status","typeLabel":"string | null"},"couple":{"oneOf":[{"type":"object","description":"Read-only — a couple registration is a separate two-patient transaction this API does not perform.","properties":{"partner_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.couple.oneOf.0.partner_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.couple.oneOf.0.partner_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.couple.oneOf.0.partner_id","typeLabel":"string\u003cuuid> | null"},"responsible_for_billing":{"oneOf":[{"type":"boolean","uniqueKey":"data.couple.oneOf.0.responsible_for_billing.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"data.couple.oneOf.0.responsible_for_billing.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.couple.oneOf.0.responsible_for_billing","typeLabel":"boolean | null"},"relationship_status":{"oneOf":[{"type":"string","uniqueKey":"data.couple.oneOf.0.relationship_status.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.couple.oneOf.0.relationship_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.couple.oneOf.0.relationship_status","typeLabel":"string | null"}},"uniqueKey":"data.couple.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.couple.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.couple","typeLabel":"object | null"},"emails":{"type":"array","items":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"data.emails.items.[INDEX].email","typeLabel":"string\u003cemail>"},"type":{"oneOf":[{"type":"string","uniqueKey":"data.emails.items.[INDEX].type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.emails.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.emails.items.[INDEX].type","typeLabel":"string | null"},"permission":{"oneOf":[{"type":"string","enum":["email_ok","no_email",null],"uniqueKey":"data.emails.items.[INDEX].permission.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["email_ok","no_email",null],"uniqueKey":"data.emails.items.[INDEX].permission.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.emails.items.[INDEX].permission","typeLabel":"enum\u003cstring> | null"},"is_primary":{"type":"boolean","default":false,"uniqueKey":"data.emails.items.[INDEX].is_primary","typeLabel":"boolean"}},"uniqueKey":"data.emails.items.[INDEX]","typeLabel":"object"},"description":"Write REPLACES the whole set.","uniqueKey":"data.emails","typeLabel":"object[]"},"phones":{"type":"array","items":{"type":"object","required":["phone_number"],"properties":{"phone_number":{"type":"string","isRequired":true,"uniqueKey":"data.phones.items.[INDEX].phone_number","typeLabel":"string"},"type":{"oneOf":[{"type":"string","uniqueKey":"data.phones.items.[INDEX].type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.phones.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.phones.items.[INDEX].type","typeLabel":"string | null"},"permission":{"oneOf":[{"type":"string","enum":["text_voicemail_ok","text_ok","voicemail_ok","no_call",null],"uniqueKey":"data.phones.items.[INDEX].permission.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["text_voicemail_ok","text_ok","voicemail_ok","no_call",null],"uniqueKey":"data.phones.items.[INDEX].permission.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.phones.items.[INDEX].permission","typeLabel":"enum\u003cstring> | null"},"is_primary":{"type":"boolean","default":false,"uniqueKey":"data.phones.items.[INDEX].is_primary","typeLabel":"boolean"}},"uniqueKey":"data.phones.items.[INDEX]","typeLabel":"object"},"description":"Write REPLACES the whole set.","uniqueKey":"data.phones","typeLabel":"object[]"},"guardians":{"type":"array","items":{"type":"object","properties":{"guardian_id":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.guardians.items.[INDEX].guardian_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.guardians.items.[INDEX].guardian_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.guardians.items.[INDEX].guardian_id","typeLabel":"string\u003cuuid> | null"},"first_name":{"oneOf":[{"type":"string","uniqueKey":"data.guardians.items.[INDEX].first_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.guardians.items.[INDEX].first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.guardians.items.[INDEX].first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","uniqueKey":"data.guardians.items.[INDEX].last_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.guardians.items.[INDEX].last_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.guardians.items.[INDEX].last_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"data.guardians.items.[INDEX].email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.guardians.items.[INDEX].email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.guardians.items.[INDEX].email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"data.guardians.items.[INDEX].phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.guardians.items.[INDEX].phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.guardians.items.[INDEX].phone","typeLabel":"string | null"},"relationship":{"oneOf":[{"type":"string","enum":["parent","grandparent","sibling","aunt_uncle","legal_guardian","foster_parent","step_parent","other",null],"uniqueKey":"data.guardians.items.[INDEX].relationship.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["parent","grandparent","sibling","aunt_uncle","legal_guardian","foster_parent","step_parent","other",null],"uniqueKey":"data.guardians.items.[INDEX].relationship.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.guardians.items.[INDEX].relationship","typeLabel":"enum\u003cstring> | null"},"is_responsible_for_billing":{"type":"boolean","default":false,"uniqueKey":"data.guardians.items.[INDEX].is_responsible_for_billing","typeLabel":"boolean"},"is_primary":{"type":"boolean","default":false,"uniqueKey":"data.guardians.items.[INDEX].is_primary","typeLabel":"boolean"},"can_access_records":{"type":"boolean","default":false,"uniqueKey":"data.guardians.items.[INDEX].can_access_records","typeLabel":"boolean"},"is_emergency_contact":{"type":"boolean","default":true,"uniqueKey":"data.guardians.items.[INDEX].is_emergency_contact","typeLabel":"boolean"},"can_schedule_appointments":{"type":"boolean","default":false,"uniqueKey":"data.guardians.items.[INDEX].can_schedule_appointments","typeLabel":"boolean"},"notes":{"oneOf":[{"type":"string","uniqueKey":"data.guardians.items.[INDEX].notes.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.guardians.items.[INDEX].notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.guardians.items.[INDEX].notes","typeLabel":"string | null"}},"uniqueKey":"data.guardians.items.[INDEX]","typeLabel":"object"},"description":"Write REPLACES the whole set. Only accepted when client_type=minor.","uniqueKey":"data.guardians","typeLabel":"object[]"},"insurance":{"type":"array","items":{"type":"object","uniqueKey":"data.insurance.items.[INDEX]","typeLabel":"object"},"description":"Read-only. Own module, own save action — never written here.","uniqueKey":"data.insurance","typeLabel":"object[]"},"pharmacies":{"type":"array","items":{"type":"object","uniqueKey":"data.pharmacies.items.[INDEX]","typeLabel":"object"},"description":"Read-only. Populated by intake extraction only.","uniqueKey":"data.pharmacies","typeLabel":"object[]"},"care_providers":{"type":"array","items":{"type":"object","uniqueKey":"data.care_providers.items.[INDEX]","typeLabel":"object"},"description":"Read-only. Populated by intake extraction only.","uniqueKey":"data.care_providers","typeLabel":"object[]"},"notification_settings":{"oneOf":[{"type":"object","description":"Read-only — refused (notification_settings_not_writable) if sent on a write.","properties":{"upcoming_appointments_enabled":{"oneOf":[{"type":"boolean","uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_enabled.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_enabled.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_enabled","typeLabel":"boolean | null"},"upcoming_appointments_email_option":{"oneOf":[{"type":"string","uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_email_option.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_email_option.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_email_option","typeLabel":"string | null"},"upcoming_appointments_phone_option":{"oneOf":[{"type":"string","uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_phone_option.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_phone_option.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.upcoming_appointments_phone_option","typeLabel":"string | null"},"incomplete_documents_enabled":{"oneOf":[{"type":"boolean","uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_enabled.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_enabled.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_enabled","typeLabel":"boolean | null"},"incomplete_documents_email_option":{"oneOf":[{"type":"string","uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_email_option.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_email_option.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_email_option","typeLabel":"string | null"},"incomplete_documents_phone_option":{"oneOf":[{"type":"string","uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_phone_option.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_phone_option.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.incomplete_documents_phone_option","typeLabel":"string | null"},"cancellations_enabled":{"oneOf":[{"type":"boolean","uniqueKey":"data.notification_settings.oneOf.0.cancellations_enabled.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.cancellations_enabled.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.cancellations_enabled","typeLabel":"boolean | null"},"cancellations_email_option":{"oneOf":[{"type":"string","uniqueKey":"data.notification_settings.oneOf.0.cancellations_email_option.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.cancellations_email_option.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.cancellations_email_option","typeLabel":"string | null"},"cancellations_phone_option":{"oneOf":[{"type":"string","uniqueKey":"data.notification_settings.oneOf.0.cancellations_phone_option.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.0.cancellations_phone_option.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings.oneOf.0.cancellations_phone_option","typeLabel":"string | null"}},"uniqueKey":"data.notification_settings.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.notification_settings.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.notification_settings","typeLabel":"object | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time> | null"},"duplicate_candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"data.duplicate_candidates.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"mrn":{"oneOf":[{"type":"string","uniqueKey":"data.duplicate_candidates.items.[INDEX].mrn.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.duplicate_candidates.items.[INDEX].mrn.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.duplicate_candidates.items.[INDEX].mrn","typeLabel":"string | null"},"first_name":{"oneOf":[{"type":"string","uniqueKey":"data.duplicate_candidates.items.[INDEX].first_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.duplicate_candidates.items.[INDEX].first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.duplicate_candidates.items.[INDEX].first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","uniqueKey":"data.duplicate_candidates.items.[INDEX].last_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.duplicate_candidates.items.[INDEX].last_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.duplicate_candidates.items.[INDEX].last_name","typeLabel":"string | null"},"similarity":{"oneOf":[{"type":"number","uniqueKey":"data.duplicate_candidates.items.[INDEX].similarity.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.duplicate_candidates.items.[INDEX].similarity.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.duplicate_candidates.items.[INDEX].similarity","typeLabel":"number | null"}},"uniqueKey":"data.duplicate_candidates.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.duplicate_candidates","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","first_name":"\u003cstring>","last_name":"\u003cstring>","mrn":"\u003cstring>","middle_name":"\u003cstring>","preferred_name":"\u003cstring>","title":"\u003cstring>","suffix":"\u003cstring>","date_of_birth":"2023-12-25","gender":"male","marital_status":"single","client_type":"adult","client_status":"\u003cstring>","is_dependent":true,"email":"\u003cstring>","phone":"\u003cstring>","secondary_phone":"\u003cstring>","country":"\u003cstring>","nationality":"\u003cstring>","occupation":"\u003cstring>","residential_address":"\u003cstring>","work_address":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","zip":"\u003cstring>","next_of_kin":{"name":"\u003cstring>","phone":"\u003cstring>","address":"\u003cstring>"},"national_id":"\u003cstring>","preferred_language":"\u003cstring>","referred_by":"\u003cstring>","referral_source_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","employment":{"status":"\u003cstring>","company":"\u003cstring>","role":"\u003cstring>"},"is_waitlist":true,"billing":{"individual_type":"self_pay","group_type":"self_pay"},"sponsor_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","allergies":["\u003cstring>"],"medical_history":"\u003cstring>","current_medications":["\u003cstring>"],"chronic_conditions":["\u003cstring>"],"blood_type":"O+","genotype":"AA","family_history":"\u003cstring>","smoking_status":"\u003cstring>","alcohol_use":"\u003cstring>","recreational_drug_use":"\u003cstring>","physical_activity":"\u003cstring>","living_arrangement":"\u003cstring>","has_profile_image":true,"profile_image_path":"\u003cstring>","status":"active","is_vip":true,"primary_location_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","portal_access_enabled":true,"admission_status":"\u003cstring>","couple":{"partner_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","responsible_for_billing":true,"relationship_status":"\u003cstring>"},"emails":[{"email":"[email protected]","type":"\u003cstring>","permission":"email_ok","is_primary":false}],"phones":[{"phone_number":"\u003cstring>","type":"\u003cstring>","permission":"text_voicemail_ok","is_primary":false}],"guardians":[{"guardian_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","relationship":"parent","is_responsible_for_billing":false,"is_primary":false,"can_access_records":false,"is_emergency_contact":true,"can_schedule_appointments":false,"notes":"\u003cstring>"}],"insurance":[{}],"pharmacies":[{}],"care_providers":[{}],"notification_settings":{"upcoming_appointments_enabled":true,"upcoming_appointments_email_option":"\u003cstring>","upcoming_appointments_phone_option":"\u003cstring>","incomplete_documents_enabled":true,"incomplete_documents_email_option":"\u003cstring>","incomplete_documents_phone_option":"\u003cstring>","cancellations_enabled":true,"cancellations_email_option":"\u003cstring>","cancellations_phone_option":"\u003cstring>"},"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","duplicate_candidates":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","mrn":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","similarity":123}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"6c86e950-d2f2-44a9-b35a-f1ca042fa966":{"description":"The request failed validation (unknown query parameter, limit out of range, malformed body, a write-off sent without its reason — `reason_required`, or a `gtin` identifier that is not a valid GTIN — `invalid_gtin`).","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 application/problem+json.","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["pointer","message"],"properties":{"pointer":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","request_id":"\u003cstring>","detail":"\u003cstring>","errors":[{"pointer":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"bf0a1d5d-d50d-4a7a-8906-e1cf7c425701":{"description":"Missing, malformed, unknown, revoked or expired key, or the wrong secret.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 application/problem+json.","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["pointer","message"],"properties":{"pointer":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","request_id":"\u003cstring>","detail":"\u003cstring>","errors":[{"pointer":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"a305c7af-b45d-4be3-a259-969fc9fb7515":{"description":"The key or connection lacks the required scope, the plan does not include this resource, the request came from an address this key's IP allow-list does not permit, a TEST-environment workspace key asked for a clinic_id other than its own workspace's sandbox (`sandbox_only`), or a LIVE workspace key asked for a real clinic while its workspace's verification has lapsed (`not_verified`) — the response never names which addresses ARE allowed, nor which clinic actually is the sandbox.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 application/problem+json.","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["pointer","message"],"properties":{"pointer":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","request_id":"\u003cstring>","detail":"\u003cstring>","errors":[{"pointer":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"f6726096-524c-4794-ad9a-f53280561311":{"description":"The record is absent, or out of the key's scope — one message for both.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 application/problem+json.","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["pointer","message"],"properties":{"pointer":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","request_id":"\u003cstring>","detail":"\u003cstring>","errors":[{"pointer":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"6bfa092b-f103-486e-904a-9834da6a5778":{"description":"The request is well-formed but conflicts with the CURRENT STATE of the record — a double-booked slot (`slot_taken`), a clinician's calendar blocked at that time (`out_of_office`), nobody eligible free (`no_provider_available`), an item that still has stock (`item_has_stock`), an item that has been used and so cannot be deleted (`item_has_history`), a ledger movement that cannot be covered (`insufficient_stock`, `expired_stock_not_transferable`), a note already signed or clinician-touched (`note_not_editable`), an Idempotency-Key already used for a different request or still in flight (`idempotency_key_conflict`, `idempotency_key_reused`), or an external-stock batch rejected as structurally invalid or a suspicious shrink versus the clinic's last accepted batch (`batch_rejected`), a stock report sent to a pharmacy that is not set to take one from another system (`external_stock_mode_required`), or an outside record that conflicts with what was already submitted or decided: the same `client_reference` sent again with different content (`client_reference_conflict`), or a submission a clinician has already decided (`submission_not_pending`), or an insurance write that conflicts with the clinic's setup or the coverage's state: the patient already has a coverage for that payer (`coverage_exists`, the existing coverage's id is in `detail` when the caller can see that patient), a payer the clinic has not enabled in Settings → Insurance (`payer_not_enabled`), or `coverage_active: true` sent through the API (`activation_requires_staff` — only clinic staff activate a coverage), or a change to an outside care provider the clinic added rather than an app (`care_provider_clinic_managed` — only the clinic can change or remove it).","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 application/problem+json.","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["pointer","message"],"properties":{"pointer":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","request_id":"\u003cstring>","detail":"\u003cstring>","errors":[{"pointer":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"859e8fb2-cfa1-4587-8271-8745736dde87":{"description":"Rate limited. See the Retry-After header.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 application/problem+json.","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"detail":{"type":"string","uniqueKey":"detail","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","required":["pointer","message"],"properties":{"pointer":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].pointer","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","request_id":"\u003cstring>","detail":"\u003cstring>","errors":[{"pointer":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"029b26e0-4073-424e-ac59-4fbeb5ef087c":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"ehr_live_\u003ckeyId>_\u003csecret> or ehr_test_\u003ckeyId>_\u003csecret>","scopes":[],"schemeName":"ApiKey"}}},"servers":{"6b4925f0-63ab-4b39-afe9-988d83d8bf2e":{"url":"https://api.clinikehr.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"ehr_live_\u003ckeyId>_\u003csecret> or ehr_test_\u003ckeyId>_\u003csecret>","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKey","name":"Authorization"}],"title":"ApiKey"}]},"originalFileLocation":"openapi/ehr-api.v1.yaml"},"subdomain":"clinikehrapi","siteName":"ClinikEHR API","title":"Create a patient - ClinikEHR API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-01T00:01:37.841Z","originalFileLocation":"api-reference/patients/create-a-patient.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=\"Permission: patients:write Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ClinikEHR 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/clinikehrapi/7-ZhjGEqSsWHGBLc/_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/clinikehrapi/7-ZhjGEqSsWHGBLc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/clinikehrapi/7-ZhjGEqSsWHGBLc/_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/clinikehrapi/7-ZhjGEqSsWHGBLc/_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/clinikehrapi/7-ZhjGEqSsWHGBLc/_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/clinikehrapi/7-ZhjGEqSsWHGBLc/_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/clinikehrapi/7-ZhjGEqSsWHGBLc/_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/clinikehrapi/7-ZhjGEqSsWHGBLc/_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/clinikehrapi/7-ZhjGEqSsWHGBLc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a patient - ClinikEHR API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Permission: patients:write Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ClinikEHR API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.clinikehr.com/api-reference/patients/create-a-patient\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://clinikehrapi.mintlify.site/_mintlify/api/og/v2?division=Patients\u0026amp;title=Create+a+patient\u0026amp;description=**Permission%3A**+%60patients%3Awrite%60+Create+a+patient.+Possible+duplicates+are+flagged+for+staff+review%2C+never+silently+merged+or+refused.+run_automations+defaults+\u0026amp;theme=db10b84d30f87e3825f88ac9\u0026amp;signature=ba0af0eb8b1390353589d3c66df892c094da222cf1f3252ed42346290ae163fa\">\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=\"Create a patient - ClinikEHR API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Permission: patients:write Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://clinikehrapi.mintlify.site/_mintlify/api/og/v2?division=Patients\u0026amp;title=Create+a+patient\u0026amp;description=**Permission%3A**+%60patients%3Awrite%60+Create+a+patient.+Possible+duplicates+are+flagged+for+staff+review%2C+never+silently+merged+or+refused.+run_automations+defaults+\u0026amp;theme=db10b84d30f87e3825f88ac9\u0026amp;signature=ba0af0eb8b1390353589d3c66df892c094da222cf1f3252ed42346290ae163fa\">\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/clinikehrapi/7-ZhjGEqSsWHGBLc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ClinikEHR API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9488\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.clinikehr.com/api-reference/patients/create-a-patient\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/patients/create-a-patient.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.clinikehr.com/#organization\",\"name\":\"ClinikEHR API\",\"url\":\"https://docs.clinikehr.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/clinikehrapi/yWDcCtWZLvQferdo/logo/light.svg?fit=max\u0026auto=format\u0026n=yWDcCtWZLvQferdo\u0026q=85\u0026s=1c5da83101c773651a555abca64ef883\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.clinikehr.com#website\",\"name\":\"ClinikEHR API\",\"url\":\"https://docs.clinikehr.com\",\"publisher\":{\"@id\":\"https://docs.clinikehr.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient#webpage\",\"url\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient\",\"name\":\"Create a patient\",\"description\":\"Permission: patients:write Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.\",\"dateModified\":\"2026-11-01T00:01:37.841Z\",\"isPartOf\":{\"@id\":\"https://docs.clinikehr.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Patients\",\"item\":\"https://docs.clinikehr.com/api-reference/patients/list-patients\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a patient\",\"item\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient#apireference\",\"headline\":\"Create a patient\",\"name\":\"Create a patient\",\"description\":\"Permission: patients:write Create a patient. Possible duplicates are flagged for staff review, never silently merged or refused. run_automations defaults false, suppressing the patient.created Agent Studio dispatch.\",\"url\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient\",\"mainEntityOfPage\":{\"@id\":\"https://docs.clinikehr.com/api-reference/patients/create-a-patient#webpage\"},\"dateModified\":\"2026-11-01T00:01:37.841Z\",\"publisher\":{\"@id\":\"https://docs.clinikehr.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.clinikehr.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ClinikEHR API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ClinikEHR API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/patients/create-a-patient.md","siteName":"ClinikEHR API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"API reference","icon":"https://mintlify.s3.us-west-1.amazonaws.com/clinikehrapi/images/icons/code.svg","href":"/api-reference/overview"}]},{"group":"Your key","pages":[{"title":"Get the current key","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/me","href":"/api-reference/me/get-the-current-key"}]},{"group":"Connections","pages":[{"title":"List connections","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/connections","href":"/api-reference/connections/list-connections"}]},{"group":"Patients","pages":[{"title":"List patients","description":"**Permission:** `patients:read` List patients in scope for this key's connection. Restricted/access-controlled patients never appear.","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/patients","href":"/api-reference/patients/list-patients"},{"title":"Create a patient","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/patients","href":"/api-reference/patients/create-a-patient"},{"title":"Get a patient","description":"**Permission:** `patients:read`\n\nGet one patient by id.\n\nA restricted patient, or one in another clinic, answers not_found — identical to absent (I-3).","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/patients/{patient_id}","href":"/api-reference/patients/get-a-patient"},{"title":"Update a patient","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/patients/{patient_id}","href":"/api-reference/patients/update-a-patient"},{"title":"Archive a patient","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/patients/{patient_id}/archive","href":"/api-reference/patients/archive-a-patient"},{"title":"List possible duplicate patients","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/patients/duplicate_flags","href":"/api-reference/patients/list-possible-duplicate-patients"},{"title":"Search patients","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/patients/search","href":"/api-reference/patients/search-patients"},{"title":"List patient imports","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/patient-imports","href":"/api-reference/patients/list-patient-imports"},{"title":"Start a patient import","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/patient-imports","href":"/api-reference/patients/start-a-patient-import"},{"title":"Get a patient import","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/patient-imports/{job_id}","href":"/api-reference/patients/get-a-patient-import"},{"title":"Import the valid rows","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/patient-imports/{job_id}/run-valid","href":"/api-reference/patients/import-the-valid-rows"}]},{"group":"Appointments","pages":[{"title":"List bookable services","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/appointments/services","href":"/api-reference/appointments/list-bookable-services"},{"title":"List bookable clinicians","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/appointments/clinicians","href":"/api-reference/appointments/list-bookable-clinicians"},{"title":"Get available slots","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/appointments/availability","href":"/api-reference/appointments/get-available-slots"},{"title":"List appointments","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/appointments","href":"/api-reference/appointments/list-appointments"},{"title":"Book an appointment","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/appointments","href":"/api-reference/appointments/book-an-appointment"},{"title":"Get an appointment","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/appointments/{appointment_id}","href":"/api-reference/appointments/get-an-appointment"},{"title":"Update an appointment","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/appointments/{appointment_id}","href":"/api-reference/appointments/update-an-appointment"},{"title":"Cancel an appointment","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/appointments/{appointment_id}/cancel","href":"/api-reference/appointments/cancel-an-appointment"}]},{"group":"Encounters","pages":[{"title":"List encounters","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/encounters","href":"/api-reference/encounters/list-encounters"},{"title":"Open an encounter","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/encounters","href":"/api-reference/encounters/open-an-encounter"},{"title":"Get an encounter","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/encounters/{encounter_id}","href":"/api-reference/encounters/get-an-encounter"},{"title":"Update an encounter","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/encounters/{encounter_id}","href":"/api-reference/encounters/update-an-encounter"}]},{"group":"Notes","pages":[{"title":"List notes","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/notes","href":"/api-reference/notes/list-notes"},{"title":"Create a draft note","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/notes","href":"/api-reference/notes/create-a-draft-note"},{"title":"Get a note","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/notes/{note_id}","href":"/api-reference/notes/get-a-note"},{"title":"Update a draft note","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/notes/{note_id}","href":"/api-reference/notes/update-a-draft-note"},{"title":"List note templates","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/note-templates","href":"/api-reference/notes/list-note-templates"},{"title":"Get a note template","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/note-templates/{template_key}","href":"/api-reference/notes/get-a-note-template"},{"title":"List note clinicians","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/note-clinicians","href":"/api-reference/notes/list-note-clinicians"}]},{"group":"Conditions","pages":[{"title":"List conditions","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/conditions","href":"/api-reference/conditions/list-conditions"},{"title":"Submit a condition","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/conditions","href":"/api-reference/conditions/submit-a-condition"},{"title":"Get a condition","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/conditions/{condition_id}","href":"/api-reference/conditions/get-a-condition"},{"title":"Update or retract a condition","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/conditions/{condition_id}","href":"/api-reference/conditions/update-or-retract-a-condition"}]},{"group":"Allergies","pages":[{"title":"List allergies","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/allergies","href":"/api-reference/allergies/list-allergies"},{"title":"Submit an allergy","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/allergies","href":"/api-reference/allergies/submit-an-allergy"},{"title":"Get an allergy","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/allergies/{allergy_id}","href":"/api-reference/allergies/get-an-allergy"},{"title":"Update or retract an allergy","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/allergies/{allergy_id}","href":"/api-reference/allergies/update-or-retract-an-allergy"}]},{"group":"Medications","pages":[{"title":"List reported medicines","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/medication-statements","href":"/api-reference/medications/list-reported-medicines"},{"title":"Submit a reported medicine","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/medication-statements","href":"/api-reference/medications/submit-a-reported-medicine"},{"title":"Get a reported medicine","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/medication-statements/{medication_statement_id}","href":"/api-reference/medications/get-a-reported-medicine"},{"title":"Update or retract a reported medicine","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/medication-statements/{medication_statement_id}","href":"/api-reference/medications/update-or-retract-a-reported-medicine"},{"title":"List prescriptions","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/prescriptions","href":"/api-reference/medications/list-prescriptions"},{"title":"Get a prescription","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/prescriptions/{prescription_id}","href":"/api-reference/medications/get-a-prescription"}]},{"group":"Referrals","pages":[{"title":"List referrals","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/referrals","href":"/api-reference/referrals/list-referrals"},{"title":"Submit a referral","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/referrals","href":"/api-reference/referrals/submit-a-referral"},{"title":"Get a referral","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/referrals/{referral_id}","href":"/api-reference/referrals/get-a-referral"},{"title":"Update or retract a referral","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/referrals/{referral_id}","href":"/api-reference/referrals/update-or-retract-a-referral"}]},{"group":"Submissions","pages":[{"title":"Get a submission","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/submissions/{submission_id}","href":"/api-reference/submissions/get-a-submission"}]},{"group":"Providers","pages":[{"title":"List providers","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/providers","href":"/api-reference/providers/list-providers"},{"title":"Get a provider","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/providers/{provider_id}","href":"/api-reference/providers/get-a-provider"}]},{"group":"Care providers","pages":[{"title":"List outside care providers","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/care-providers","href":"/api-reference/careproviders/list-outside-care-providers"},{"title":"Add an outside care provider","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/care-providers","href":"/api-reference/careproviders/add-an-outside-care-provider"},{"title":"Get an outside care provider","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/care-providers/{care_provider_id}","href":"/api-reference/careproviders/get-an-outside-care-provider"},{"title":"Update an outside care provider","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/care-providers/{care_provider_id}","href":"/api-reference/careproviders/update-an-outside-care-provider"},{"title":"Remove an outside care provider","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml delete /v1/clinics/{clinic_id}/care-providers/{care_provider_id}","href":"/api-reference/careproviders/remove-an-outside-care-provider"}]},{"group":"Insurance payers","pages":[{"title":"List payers","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/payers","href":"/api-reference/payers/list-payers"},{"title":"Get a payer","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/payers/{payer_id}","href":"/api-reference/payers/get-a-payer"}]},{"group":"Insurance coverage","pages":[{"title":"List coverages","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/coverages","href":"/api-reference/coverages/list-coverages"},{"title":"Create a coverage","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/coverages","href":"/api-reference/coverages/create-a-coverage"},{"title":"Get a coverage","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/coverages/{coverage_id}","href":"/api-reference/coverages/get-a-coverage"},{"title":"Update or end a coverage","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/coverages/{coverage_id}","href":"/api-reference/coverages/update-or-end-a-coverage"}]},{"group":"HMO insurance","pages":[{"title":"List insurer enrollees","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/enrollees","href":"/api-reference/hmo-insurance/list-insurer-enrollees"},{"title":"Get an insurer enrollee","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/enrollees/{enrollee_id}","href":"/api-reference/hmo-insurance/get-an-insurer-enrollee"},{"title":"List insurer plans","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/plans","href":"/api-reference/hmo-insurance/list-insurer-plans"},{"title":"Get an insurer plan","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/plans/{plan_id}","href":"/api-reference/hmo-insurance/get-an-insurer-plan"},{"title":"List insurer claims","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/claims","href":"/api-reference/hmo-insurance/list-insurer-claims"},{"title":"Submit an insurance claim","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/insurance/claims","href":"/api-reference/hmo-insurance/submit-an-insurance-claim"},{"title":"Get an insurer claim","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/claims/{claim_id}","href":"/api-reference/hmo-insurance/get-an-insurer-claim"},{"title":"Vet an insurance claim","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/insurance/claims/{claim_id}/adjudication","href":"/api-reference/hmo-insurance/vet-an-insurance-claim"},{"title":"List pre-authorization requests","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/pre-authorizations","href":"/api-reference/hmo-insurance/list-pre-authorization-requests"},{"title":"Send a pre-authorization request","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/insurance/pre-authorizations","href":"/api-reference/hmo-insurance/send-a-pre-authorization-request"},{"title":"Get a pre-authorization request","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/pre-authorizations/{pa_id}","href":"/api-reference/hmo-insurance/get-a-pre-authorization-request"},{"title":"Decide a pre-authorization request","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/insurance/pre-authorizations/{pa_id}/decision","href":"/api-reference/hmo-insurance/decide-a-pre-authorization-request"},{"title":"List payment advices","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/insurance/payment-advices","href":"/api-reference/hmo-insurance/list-payment-advices"},{"title":"Send a payment advice","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/insurance/payment-advices","href":"/api-reference/hmo-insurance/send-a-payment-advice"}]},{"group":"Inventory","pages":[{"title":"List stock locations","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/inventory/locations","href":"/api-reference/inventory/list-stock-locations"},{"title":"List catalogue items","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/inventory/items","href":"/api-reference/inventory/list-catalogue-items"},{"title":"Create a catalogue item","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/items","href":"/api-reference/inventory/create-a-catalogue-item"},{"title":"Get a catalogue item","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/inventory/items/{item_id}","href":"/api-reference/inventory/get-a-catalogue-item"},{"title":"Update a catalogue item","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/inventory/items/{item_id}","href":"/api-reference/inventory/update-a-catalogue-item"},{"title":"Delete an unused item","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml delete /v1/clinics/{clinic_id}/inventory/items/{item_id}","href":"/api-reference/inventory/delete-an-unused-item"},{"title":"Check item availability","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/availability","href":"/api-reference/inventory/check-item-availability"},{"title":"List stock quantities","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/inventory/stock","href":"/api-reference/inventory/list-stock-quantities"},{"title":"Upload an external stock batch","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/external-stock/batches","href":"/api-reference/inventory/upload-an-external-stock-batch"},{"title":"Get an external stock batch","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/inventory/external-stock/batches/{batch_id}","href":"/api-reference/inventory/get-an-external-stock-batch"},{"title":"Archive a catalogue item","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/items/{item_id}/archive","href":"/api-reference/inventory/archive-a-catalogue-item"},{"title":"Restore a catalogue item","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/items/{item_id}/restore","href":"/api-reference/inventory/restore-a-catalogue-item"},{"title":"Write off a lot","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/lots/{lot_id}/write-off","href":"/api-reference/inventory/write-off-a-lot"},{"title":"Receive stock","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/receive","href":"/api-reference/inventory/receive-stock"},{"title":"Adjust stock","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/adjust","href":"/api-reference/inventory/adjust-stock"},{"title":"Transfer stock","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/transfer","href":"/api-reference/inventory/transfer-stock"},{"title":"List your medicine codes","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/inventory/codes","href":"/api-reference/inventory/list-your-medicine-codes"},{"title":"Upload medicine codes","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/inventory/codes","href":"/api-reference/inventory/upload-medicine-codes"},{"title":"Get a medicine code","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/inventory/codes/{code_entry_id}","href":"/api-reference/inventory/get-a-medicine-code"},{"title":"Delete a medicine code","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml delete /v1/clinics/{clinic_id}/inventory/codes/{code_entry_id}","href":"/api-reference/inventory/delete-a-medicine-code"}]},{"group":"Dispensing","pages":[{"title":"List dispensing history","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/dispensing/history","href":"/api-reference/dispensing/list-dispensing-history"},{"title":"List dispensing flags","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/dispensing/flags","href":"/api-reference/dispensing/list-dispensing-flags"}]},{"group":"Drug requests","pages":[{"title":"List drug requests","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/drug_requests","href":"/api-reference/drug-requests/list-drug-requests"},{"title":"Send a drug request","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/drug_requests","href":"/api-reference/drug-requests/send-a-drug-request"},{"title":"Get a drug request","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/drug_requests/{request_id}","href":"/api-reference/drug-requests/get-a-drug-request"},{"title":"Cancel a drug request","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/drug_requests/{request_id}/cancel","href":"/api-reference/drug-requests/cancel-a-drug-request"},{"title":"Answer a substitution","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/drug_requests/{request_id}/confirm_substitution","href":"/api-reference/drug-requests/answer-a-substitution"}]},{"group":"Pharmacy listings","pages":[{"title":"List reachable pharmacies","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/listings/pharmacies","href":"/api-reference/listing/list-reachable-pharmacies"},{"title":"Search listed pharmacies","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/listings/search","href":"/api-reference/listing/search-listed-pharmacies"},{"title":"Send search feedback","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/listings/feedback","href":"/api-reference/listing/send-search-feedback"},{"title":"List a pharmacy's listed items","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/listing/items","href":"/api-reference/listing/list-a-pharmacys-listed-items"},{"title":"Get a pharmacy's listing profile","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/listing/profile","href":"/api-reference/listing/get-a-pharmacys-listing-profile"}]},{"group":"CRM","pages":[{"title":"List pipelines","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/crm/pipelines","href":"/api-reference/crm/list-pipelines"},{"title":"List contacts","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/crm/contacts","href":"/api-reference/crm/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/crm/contacts","href":"/api-reference/crm/create-a-contact"},{"title":"Search contacts","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/crm/contacts/search","href":"/api-reference/crm/search-contacts"},{"title":"Get a contact","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/crm/contacts/{contact_id}","href":"/api-reference/crm/get-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml patch /v1/clinics/{clinic_id}/crm/contacts/{contact_id}","href":"/api-reference/crm/update-a-contact"},{"title":"List a contact's activities","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/crm/contacts/{contact_id}/activities","href":"/api-reference/crm/list-a-contacts-activities"},{"title":"Log an activity","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml post /v1/clinics/{clinic_id}/crm/contacts/{contact_id}/activities","href":"/api-reference/crm/log-an-activity"}]},{"group":"Events","pages":[{"title":"List events","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/clinics/{clinic_id}/events","href":"/api-reference/events/list-events"}]},{"group":"FHIR","pages":[{"title":"Get the FHIR capability statement","deprecated":null,"version":null,"openapi":"/openapi/ehr-api.v1.yaml get /v1/metadata","href":"/api-reference/fhir/get-the-fhir-capability-statement"}]}]}]},"basePath":"","title":"Create a patient - ClinikEHR API","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CDiBsYGW.js","utils-KF9rPlmF.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C26urKTX.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BdjmJAC1.js","snippetPresets-3IpDBjt3.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-D4x_2vvo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BIWdc5Pa.js","shallow-LQqfiMNd.js","getApiPlaygroundDisplay-DryzlOZG.js","CodeSnippet-tcJujU4r.js","CodeSnippets-BHp0nVLL.js","Page-1CZdsdAn.js","getPastedJson-DU-1ayUv.js","icon-CZK2hPr4.js","MethodPill-DOaqmTFC.js","DuplicateIcon-B5-nUxxl.js","createIcon-CDP_U77G.js","DynamicMarkdown-GHvayGOn.js","SectionHeading-BYvpkmUD.js","axios-vUo_bRtp.js","Markdown-uxhlayGT.js","clsx-B35qUV0p.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BvrGG8gU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CAf0yVYe.js"]}