{"openapi":"3.1.0","info":{"title":"billing","version":"0.1.0"},"paths":{"/billing/accounts":{"get":{"tags":["billing-v2"],"summary":"List Accounts","operationId":"list_accounts_billing_accounts_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Account","operationId":"create_account_billing_accounts_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAccountCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/accounts/{billing_account_id}/members":{"post":{"tags":["billing-v2"],"summary":"Add Member","operationId":"add_member_billing_accounts__billing_account_id__members_post","parameters":[{"name":"billing_account_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Account Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAccountMemberCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/accounts/{billing_account_id}":{"get":{"tags":["billing-v2"],"summary":"Get Account","operationId":"get_account_billing_accounts__billing_account_id__get","parameters":[{"name":"billing_account_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Account Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing-v2"],"summary":"Patch Account","operationId":"patch_account_billing_accounts__billing_account_id__patch","parameters":[{"name":"billing_account_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Account Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAccountCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/cache-count":{"get":{"tags":["billing-v2"],"summary":"Patients Cache Count","description":"Return the number of patients in the billing patient cache for this clinic.","operationId":"patients_cache_count_billing_ui_patients_cache_count_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/search":{"get":{"tags":["billing-v2"],"summary":"Search Patients Ui","operationId":"search_patients_ui_billing_ui_patients_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/summary":{"get":{"tags":["billing-v2"],"summary":"Ui Patient Summary","description":"Billing summary for a patient: balance, open charges, recent payments, allocations.","operationId":"ui_patient_summary_billing_ui_patients__patient_id__summary_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/check-benefit-category":{"post":{"tags":["billing-v2"],"summary":"Check Benefit Category","description":"Run a live Optum Plan Benefit Category search for a patient's primary insurance.\n\nInteractive, staff-triggered — unlike Prior Auth/Referral Inquiry's soft-gate contract,\na missing prerequisite or Optum failure surfaces as a real HTTP error (422/502), not a\nsilent no-op, since this is a direct response to a button click.","operationId":"check_benefit_category_billing_ui_patients__patient_id__check_benefit_category_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckBenefitCategoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Benefit Category Billing Ui Patients  Patient Id  Check Benefit Category Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/check-benefit-language":{"post":{"tags":["billing-v2"],"summary":"Check Benefit Language","description":"Fetch full plan-language detail for one benefit found via a Plan Benefit Category search.\n\nInteractive, staff-triggered — same contract as check_benefit_category: a missing\nprerequisite or Optum failure surfaces as a real HTTP error (422/502), not a silent no-op,\nsince this is a direct response to a \"View language\" button click.","operationId":"check_benefit_language_billing_ui_patients__patient_id__check_benefit_language_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckBenefitLanguageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Benefit Language Billing Ui Patients  Patient Id  Check Benefit Language Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claim-ticket-search":{"post":{"tags":["billing-v2"],"summary":"Claim Ticket Search","description":"Run a live Optum Search Claim Ticket lookup — standalone, no patient/claim context.\n\nInteractive, staff-triggered — a missing prerequisite or Optum failure surfaces as a real\nHTTP error (422/502), not a silent no-op, since this is a direct response to a search-form\nsubmit.","operationId":"claim_ticket_search_billing_ui_claim_ticket_search_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchClaimTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Claim Ticket Search Billing Ui Claim Ticket Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/submit-claim-ticket":{"post":{"tags":["billing-v2"],"summary":"Submit Claim Ticket Standalone","description":"Resubmit/update a RECON/PEND/APPEAL ticket found via the standalone Claim Ticket\nSearch page. No claim/patient context — same claim-less resolution as Search Claim\nTicket.","operationId":"submit_claim_ticket_standalone_billing_ui_submit_claim_ticket_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitClaimTicketRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Claim Ticket Standalone Billing Ui Submit Claim Ticket Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/submit-claim-attachment":{"post":{"tags":["billing-v2"],"summary":"Submit Claim Attachment Standalone","description":"Upload a supporting document for a ticket found via the standalone Claim Ticket\nSearch page. No claim/patient context.","operationId":"submit_claim_attachment_standalone_billing_ui_submit_claim_attachment_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_claim_attachment_standalone_billing_ui_submit_claim_attachment_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Claim Attachment Standalone Billing Ui Submit Claim Attachment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/get-document":{"post":{"tags":["billing-v2"],"summary":"Get Document","description":"Download a document's base64 content — the biller-facing Download button on the\nstandalone Optum Ticket Lookup page's attachment list. No claim/patient context.\n\nInteractive, staff-triggered — a missing prerequisite or Optum failure surfaces as a real\nHTTP error (422/502), not a silent no-op, since this is a direct response to a Download\nclick.","operationId":"get_document_billing_ui_get_document_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__billing__app__router_v2__GetDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Document Billing Ui Get Document Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/document-search":{"post":{"tags":["billing-v2"],"summary":"Document Search","description":"Run a live Optum Document Search (documentMetadata) lookup — standalone, no\nclaim/patient context.\n\nInteractive, staff-triggered — a missing prerequisite or Optum failure surfaces as a real\nHTTP error (422/502), not a silent no-op, since this is a direct response to a search-form\nsubmit.","operationId":"document_search_billing_ui_document_search_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Document Search Billing Ui Document Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/profile":{"patch":{"tags":["billing-v2"],"summary":"Upsert Profile","operationId":"upsert_profile_billing_patients__patient_id__profile_patch","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientBillingProfileUpsertV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Upsert Profile","operationId":"upsert_profile_billing_patients__patient_id__profile_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientBillingProfileUpsertV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["billing-v2"],"summary":"Get Profile","operationId":"get_profile_billing_patients__patient_id__profile_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patient-billing-categories/catalog":{"get":{"tags":["billing-v2"],"summary":"List Billing Category Catalog","operationId":"list_billing_category_catalog_billing_patient_billing_categories_catalog_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patient-billing-categories/assignments":{"get":{"tags":["billing-v2"],"summary":"List Billing Category Assignments","operationId":"list_billing_category_assignments_billing_patient_billing_categories_assignments_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patient-billing-categories/patients":{"get":{"tags":["billing-v2"],"summary":"List Billing Style Patients","operationId":"list_billing_style_patients_billing_patient_billing_categories_patients_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"missing_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Missing Only"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patient-billing-categories/bulk-assign":{"post":{"tags":["billing-v2"],"summary":"Bulk Assign Billing Categories","operationId":"bulk_assign_billing_categories_billing_patient_billing_categories_bulk_assign_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCategoryBulkAssignV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patient-billing-categories/{patient_id}":{"put":{"tags":["billing-v2"],"summary":"Replace Patient Billing Categories","operationId":"replace_patient_billing_categories_billing_patient_billing_categories__patient_id__put","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCategoryAssignmentsReplaceV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/charges":{"get":{"tags":["billing-v2"],"summary":"List Charges","operationId":"list_charges_billing_charges_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/charges/manual":{"post":{"tags":["billing-v2"],"summary":"Create Manual Charge","operationId":"create_manual_charge_billing_charges_manual_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingChargeCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/charges/one-off-visit":{"post":{"tags":["billing-v2"],"summary":"Create One Off","operationId":"create_one_off_billing_charges_one_off_visit_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneOffVisitChargeRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/charges/lab-draw":{"post":{"tags":["billing-v2"],"summary":"Create Lab Draw","operationId":"create_lab_draw_billing_charges_lab_draw_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabDrawChargeRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payments":{"get":{"tags":["billing-v2"],"summary":"List Payments","operationId":"list_payments_billing_payments_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Payment","operationId":"create_payment_billing_payments_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPaymentCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payments/{payment_id}/allocate":{"post":{"tags":["billing-v2"],"summary":"Allocate Payment","operationId":"allocate_payment_billing_payments__payment_id__allocate_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentAllocateRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credits":{"get":{"tags":["billing-v2"],"summary":"List Credits","operationId":"list_credits_billing_credits_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credits/apply":{"post":{"tags":["billing-v2"],"summary":"Apply Credit","operationId":"apply_credit_billing_credits_apply_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditApplyRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payments/{payment_id}/refund":{"post":{"tags":["billing-v2"],"summary":"Refund Payment","description":"Refund a billing payment by creating a PatientCreditV2 for the refund amount.\nPayload (optional): {amount: str}  — omit to refund the full payment amount.","operationId":"refund_payment_billing_payments__payment_id__refund_post","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/referrals":{"get":{"tags":["billing-v2"],"summary":"List Referrals","operationId":"list_referrals_billing_referrals_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Referral","operationId":"create_referral_billing_referrals_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/referrals/{referral_id}/qualify":{"post":{"tags":["billing-v2"],"summary":"Qualify Referral","operationId":"qualify_referral_billing_referrals__referral_id__qualify_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralQualifyV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/referrals/{referral_id}":{"get":{"tags":["billing-v2"],"summary":"Get Referral","operationId":"get_referral_billing_referrals__referral_id__get","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing-v2"],"summary":"Patch Referral","operationId":"patch_referral_billing_referrals__referral_id__patch","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/referrals/{referral_id}/cancel":{"post":{"tags":["billing-v2"],"summary":"Cancel Referral","operationId":"cancel_referral_billing_referrals__referral_id__cancel_post","parameters":[{"name":"referral_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/referral-rewards":{"get":{"tags":["billing-v2"],"summary":"List Referral Rewards","operationId":"list_referral_rewards_billing_referral_rewards_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/referral-rewards/{reward_id}/apply":{"post":{"tags":["billing-v2"],"summary":"Apply Referral Reward","operationId":"apply_referral_reward_billing_referral_rewards__reward_id__apply_post","parameters":[{"name":"reward_id","in":"path","required":true,"schema":{"type":"string","title":"Reward Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewardApplyV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/run/monthly-memberships":{"post":{"tags":["billing-v2"],"summary":"Run Monthly Memberships","operationId":"run_monthly_memberships_billing_run_monthly_memberships_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunMonthlyRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/run/monthly-apcm":{"post":{"tags":["billing-v2"],"summary":"Run Monthly Apcm","operationId":"run_monthly_apcm_billing_run_monthly_apcm_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunMonthlyRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/run/monthly-pharmacy-aggregation":{"post":{"tags":["billing-v2"],"summary":"Run Monthly Pharmacy Aggregation","operationId":"run_monthly_pharmacy_aggregation_billing_run_monthly_pharmacy_aggregation_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunMonthlyRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/run/referral-qualification-check":{"post":{"tags":["billing-v2"],"summary":"Run Referral Qualification Check","operationId":"run_referral_qualification_check_billing_run_referral_qualification_check_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunMonthlyRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/draft-claims":{"get":{"tags":["billing-v2"],"summary":"List Draft Claims","operationId":"list_draft_claims_billing_draft_claims_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/draft-claims/{draft_claim_id}/mark-billed":{"post":{"tags":["billing-v2"],"summary":"Mark Billed","operationId":"mark_billed_billing_draft_claims__draft_claim_id__mark_billed_post","parameters":[{"name":"draft_claim_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/draft-claims/{draft_claim_id}":{"get":{"tags":["billing-v2"],"summary":"Get Draft Claim","operationId":"get_draft_claim_billing_draft_claims__draft_claim_id__get","parameters":[{"name":"draft_claim_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing-v2"],"summary":"Patch Draft Claim","operationId":"patch_draft_claim_billing_draft_claims__draft_claim_id__patch","parameters":[{"name":"draft_claim_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftClaimPatchV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/statements":{"get":{"tags":["billing-v2"],"summary":"List Statements","operationId":"list_statements_billing_statements_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/statements/{statement_id}":{"get":{"tags":["billing-v2"],"summary":"Get Statement","operationId":"get_statement_billing_statements__statement_id__get","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/statements/generate":{"post":{"tags":["billing-v2"],"summary":"Generate Statement","operationId":"generate_statement_billing_statements_generate_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementGenerateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/statements/{statement_id}/email":{"post":{"tags":["billing-v2"],"summary":"Email Statement","operationId":"email_statement_billing_statements__statement_id__email_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementEmailV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/statements/{statement_id}/print":{"post":{"tags":["billing-v2"],"summary":"Print Statement","operationId":"print_statement_billing_statements__statement_id__print_post","parameters":[{"name":"statement_id","in":"path","required":true,"schema":{"type":"string","title":"Statement Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/uploads":{"post":{"tags":["billing-v2"],"summary":"Upload Billing Document","operationId":"upload_billing_document_billing_uploads_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_billing_document_billing_uploads_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/upload":{"post":{"tags":["billing-v2"],"summary":"Upload And Create Intake Record","description":"Combined endpoint: store the file and create the intake record in a single request.\n\nThis eliminates the two-step upload → record-create round trip that the legacy\n/billing/uploads + /billing/document-intake/records flow required.  The response\nis a full DocumentIntakeRecordV2 JSON object.","operationId":"upload_and_create_intake_record_billing_document_intake_upload_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_and_create_intake_record_billing_document_intake_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records":{"post":{"tags":["billing-v2"],"summary":"Create Document Intake Record","operationId":"create_document_intake_record_billing_document_intake_records_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIntakeCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["billing-v2"],"summary":"List Document Intake Records","operationId":"list_document_intake_records_billing_document_intake_records_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"source_context","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Context"}},{"name":"review_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Status"}},{"name":"posting_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Status"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records/{document_intake_record_id}":{"get":{"tags":["billing-v2"],"summary":"Get Document Intake Record","operationId":"get_document_intake_record_billing_document_intake_records__document_intake_record_id__get","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing-v2"],"summary":"Patch Document Intake Record","operationId":"patch_document_intake_record_billing_document_intake_records__document_intake_record_id__patch","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIntakePatchV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["billing-v2"],"summary":"Delete Document Intake Record","operationId":"delete_document_intake_record_billing_document_intake_records__document_intake_record_id__delete","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records/{document_intake_record_id}/file":{"get":{"tags":["billing-v2"],"summary":"Get Document Intake File","operationId":"get_document_intake_file_billing_document_intake_records__document_intake_record_id__file_get","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records/{document_intake_record_id}/extract":{"post":{"tags":["billing-v2"],"summary":"Extract Document Intake Record","operationId":"extract_document_intake_record_billing_document_intake_records__document_intake_record_id__extract_post","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records/{document_intake_record_id}/rows":{"get":{"tags":["billing-v2"],"summary":"List Document Rows","operationId":"list_document_rows_billing_document_intake_records__document_intake_record_id__rows_get","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Add Document Row","operationId":"add_document_row_billing_document_intake_records__document_intake_record_id__rows_post","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentServiceRowCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/rows/{document_service_row_id}":{"patch":{"tags":["billing-v2"],"summary":"Patch Document Row","operationId":"patch_document_row_billing_document_intake_rows__document_service_row_id__patch","parameters":[{"name":"document_service_row_id","in":"path","required":true,"schema":{"type":"string","title":"Document Service Row Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentServiceRowPatchV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["billing-v2"],"summary":"Delete Document Row","operationId":"delete_document_row_billing_document_intake_rows__document_service_row_id__delete","parameters":[{"name":"document_service_row_id","in":"path","required":true,"schema":{"type":"string","title":"Document Service Row Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/rows/{document_service_row_id}/validate":{"post":{"tags":["billing-v2"],"summary":"Validate Document Row","operationId":"validate_document_row_billing_document_intake_rows__document_service_row_id__validate_post","parameters":[{"name":"document_service_row_id","in":"path","required":true,"schema":{"type":"string","title":"Document Service Row Id"}},{"name":"validated","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Validated"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/rows/{document_service_row_id}/matches":{"post":{"tags":["billing-v2"],"summary":"Add Document Row Match","operationId":"add_document_row_match_billing_document_intake_rows__document_service_row_id__matches_post","parameters":[{"name":"document_service_row_id","in":"path","required":true,"schema":{"type":"string","title":"Document Service Row Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentMatchCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records/{document_intake_record_id}/posting-records":{"get":{"tags":["billing-v2"],"summary":"List Document Posting Records","operationId":"list_document_posting_records_billing_document_intake_records__document_intake_record_id__posting_records_get","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records/{document_intake_record_id}/post":{"post":{"tags":["billing-v2"],"summary":"Post Document Intake Record","operationId":"post_document_intake_record_billing_document_intake_records__document_intake_record_id__post_post","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPostRequestV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/records/{document_intake_record_id}/audit":{"get":{"tags":["billing-v2"],"summary":"List Document Audit Events","operationId":"list_document_audit_events_billing_document_intake_records__document_intake_record_id__audit_get","parameters":[{"name":"document_intake_record_id","in":"path","required":true,"schema":{"type":"string","title":"Document Intake Record Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/ocr-overlays":{"get":{"tags":["billing-v2"],"summary":"List Document Ocr Overlays","operationId":"list_document_ocr_overlays_billing_document_intake_ocr_overlays_get","parameters":[{"name":"source_context","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Context"}},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/eras/upload":{"post":{"tags":["billing-v2"],"summary":"Upload Era","operationId":"upload_era_billing_eras_upload_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EraUploadV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/eras":{"get":{"tags":["billing-v2"],"summary":"List Eras","operationId":"list_eras_billing_eras_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/eras/{era_import_id}":{"get":{"tags":["billing-v2"],"summary":"Get Era","operationId":"get_era_billing_eras__era_import_id__get","parameters":[{"name":"era_import_id","in":"path","required":true,"schema":{"type":"string","title":"Era Import Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/eras/{era_import_id}/review":{"post":{"tags":["billing-v2"],"summary":"Extract Or Review Era","operationId":"extract_or_review_era_billing_eras__era_import_id__review_post","parameters":[{"name":"era_import_id","in":"path","required":true,"schema":{"type":"string","title":"Era Import Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/eras/{era_import_id}/extract":{"post":{"tags":["billing-v2"],"summary":"Extract Or Review Era","operationId":"extract_or_review_era_billing_eras__era_import_id__extract_post","parameters":[{"name":"era_import_id","in":"path","required":true,"schema":{"type":"string","title":"Era Import Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/eras/{era_import_id}/post":{"post":{"tags":["billing-v2"],"summary":"Post Era","operationId":"post_era_billing_eras__era_import_id__post_post","parameters":[{"name":"era_import_id","in":"path","required":true,"schema":{"type":"string","title":"Era Import Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/external-invoices/upload":{"post":{"tags":["billing-v2"],"summary":"Upload External Invoice","operationId":"upload_external_invoice_billing_external_invoices_upload_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalInvoiceUploadV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/external-invoices":{"get":{"tags":["billing-v2"],"summary":"List External Invoices","operationId":"list_external_invoices_billing_external_invoices_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/external-invoices/{external_invoice_id}":{"get":{"tags":["billing-v2"],"summary":"Get External Invoice","operationId":"get_external_invoice_billing_external_invoices__external_invoice_id__get","parameters":[{"name":"external_invoice_id","in":"path","required":true,"schema":{"type":"string","title":"External Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/external-invoices/{external_invoice_id}/review":{"post":{"tags":["billing-v2"],"summary":"Review External Invoice","operationId":"review_external_invoice_billing_external_invoices__external_invoice_id__review_post","parameters":[{"name":"external_invoice_id","in":"path","required":true,"schema":{"type":"string","title":"External Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/external-invoices/{external_invoice_id}/extract":{"post":{"tags":["billing-v2"],"summary":"Review External Invoice","operationId":"review_external_invoice_billing_external_invoices__external_invoice_id__extract_post","parameters":[{"name":"external_invoice_id","in":"path","required":true,"schema":{"type":"string","title":"External Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/external-invoices/{external_invoice_id}/post":{"post":{"tags":["billing-v2"],"summary":"Post External Invoice","operationId":"post_external_invoice_billing_external_invoices__external_invoice_id__post_post","parameters":[{"name":"external_invoice_id","in":"path","required":true,"schema":{"type":"string","title":"External Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-plans":{"get":{"tags":["billing-v2"],"summary":"List Payment Plans","operationId":"list_payment_plans_billing_payment_plans_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Payment Plan","operationId":"create_payment_plan_billing_payment_plans_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPlanCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-plans/{payment_plan_id}":{"patch":{"tags":["billing-v2"],"summary":"Patch Payment Plan","operationId":"patch_payment_plan_billing_payment_plans__payment_plan_id__patch","parameters":[{"name":"payment_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Plan Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPlanPatchV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-plan-reminders":{"get":{"tags":["billing-v2"],"summary":"List Payment Plan Reminders","operationId":"list_payment_plan_reminders_billing_payment_plan_reminders_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-plan-reminders/{reminder_id}/complete":{"post":{"tags":["billing-v2"],"summary":"Complete Payment Plan Reminder","operationId":"complete_payment_plan_reminder_billing_payment_plan_reminders__reminder_id__complete_post","parameters":[{"name":"reminder_id","in":"path","required":true,"schema":{"type":"string","title":"Reminder Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPlanReminderCompleteV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/failed-payments":{"get":{"tags":["billing-v2"],"summary":"List Failed Payments","operationId":"list_failed_payments_billing_failed_payments_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Failed Payment","operationId":"create_failed_payment_billing_failed_payments_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailedPaymentCreateV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/failed-payments/{event_id}/resolve":{"post":{"tags":["billing-v2"],"summary":"Resolve Failed Payment","operationId":"resolve_failed_payment_billing_failed_payments__event_id__resolve_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/termination-candidates/run":{"post":{"tags":["billing-v2"],"summary":"Run Termination Candidates","operationId":"run_termination_candidates_billing_termination_candidates_run_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/termination-candidates":{"get":{"tags":["billing-v2"],"summary":"List Termination Candidates","operationId":"list_termination_candidates_billing_termination_candidates_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/termination-candidates/{candidate_id}/generate-letter":{"post":{"tags":["billing-v2"],"summary":"Generate Termination Letter","operationId":"generate_termination_letter_billing_termination_candidates__candidate_id__generate_letter_post","parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","title":"Candidate Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/assign":{"post":{"tags":["billing-v2"],"summary":"Assign Patient","operationId":"assign_patient_billing_patients__patient_id__assign_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientAssignmentV2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/queries/run-safe":{"post":{"tags":["billing-v2"],"summary":"Run Safe Query","operationId":"run_safe_query_billing_queries_run_safe_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/metrics/summary":{"get":{"tags":["billing-v2"],"summary":"Metrics Summary","operationId":"metrics_summary_billing_metrics_summary_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/metrics/rejections":{"get":{"tags":["billing-v2"],"summary":"Metrics Rejections","operationId":"metrics_rejections_billing_metrics_rejections_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rejections/patterns":{"get":{"tags":["billing-v2"],"summary":"Rejection Patterns","operationId":"rejection_patterns_billing_rejections_patterns_get","parameters":[{"name":"payer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"carc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carc"}},{"name":"rarc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarc"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rejections/troubleshoot":{"get":{"tags":["billing-v2"],"summary":"Rejection Troubleshoot","operationId":"rejection_troubleshoot_billing_rejections_troubleshoot_get","parameters":[{"name":"payer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"carc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carc"}},{"name":"rarc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarc"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/metrics/ar-aging":{"get":{"tags":["billing-v2"],"summary":"Metrics Ar Aging","operationId":"metrics_ar_aging_billing_metrics_ar_aging_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/claim-knowledge/import":{"post":{"tags":["billing-v2"],"summary":"Claim Knowledge Import","operationId":"claim_knowledge_import_billing_claim_knowledge_import_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimKnowledgeImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/claim-knowledge/reindex":{"post":{"tags":["billing-v2"],"summary":"Claim Knowledge Reindex","operationId":"claim_knowledge_reindex_billing_claim_knowledge_reindex_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimKnowledgeImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/claim-knowledge/articles":{"get":{"tags":["billing-v2"],"summary":"Claim Knowledge Articles","operationId":"claim_knowledge_articles_billing_claim_knowledge_articles_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/claim-knowledge/articles/{article_id}":{"get":{"tags":["billing-v2"],"summary":"Claim Knowledge Article Detail","operationId":"claim_knowledge_article_detail_billing_claim_knowledge_articles__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","title":"Article Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/claim-knowledge/stats":{"get":{"tags":["billing-v2"],"summary":"Claim Knowledge Stats","operationId":"claim_knowledge_stats_billing_claim_knowledge_stats_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rejections/knowledge/search":{"post":{"tags":["billing-v2"],"summary":"Rejections Knowledge Search","operationId":"rejections_knowledge_search_billing_rejections_knowledge_search_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimKnowledgeSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rejections/knowledge/patterns":{"get":{"tags":["billing-v2"],"summary":"Rejections Knowledge Patterns","operationId":"rejections_knowledge_patterns_billing_rejections_knowledge_patterns_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rejections/knowledge/patterns/{pattern_id}":{"get":{"tags":["billing-v2"],"summary":"Rejections Knowledge Pattern Detail","operationId":"rejections_knowledge_pattern_detail_billing_rejections_knowledge_patterns__pattern_id__get","parameters":[{"name":"pattern_id","in":"path","required":true,"schema":{"type":"string","title":"Pattern Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rejections/troubleshoot-with-knowledge":{"post":{"tags":["billing-v2"],"summary":"Rejections Troubleshoot With Knowledge","operationId":"rejections_troubleshoot_with_knowledge_billing_rejections_troubleshoot_with_knowledge_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimKnowledgeSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/carc/{carc_code}":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Carc","operationId":"code_knowledge_carc_billing_code_knowledge_carc__carc_code__get","parameters":[{"name":"carc_code","in":"path","required":true,"schema":{"type":"string","title":"Carc Code"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/rarc/{rarc_code}":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Rarc","operationId":"code_knowledge_rarc_billing_code_knowledge_rarc__rarc_code__get","parameters":[{"name":"rarc_code","in":"path","required":true,"schema":{"type":"string","title":"Rarc Code"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/procedure/{code_system}/{code}":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Procedure","operationId":"code_knowledge_procedure_billing_code_knowledge_procedure__code_system___code__get","parameters":[{"name":"code_system","in":"path","required":true,"schema":{"type":"string","title":"Code System"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/diagnosis/{code_system}/{code}":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Diagnosis","operationId":"code_knowledge_diagnosis_billing_code_knowledge_diagnosis__code_system___code__get","parameters":[{"name":"code_system","in":"path","required":true,"schema":{"type":"string","title":"Code System"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/search":{"post":{"tags":["billing-v2"],"summary":"Code Knowledge Search","operationId":"code_knowledge_search_billing_code_knowledge_search_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeKnowledgeSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/troubleshoot":{"post":{"tags":["billing-v2"],"summary":"Code Knowledge Troubleshoot","operationId":"code_knowledge_troubleshoot_billing_code_knowledge_troubleshoot_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeKnowledgeTroubleshootRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/substitutions":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Substitutions","operationId":"code_knowledge_substitutions_billing_code_knowledge_substitutions_get","parameters":[{"name":"payer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Code Knowledge Create Substitution","operationId":"code_knowledge_create_substitution_billing_code_knowledge_substitutions_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedureSubstitutionUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/substitutions/{substitution_id}":{"patch":{"tags":["billing-v2"],"summary":"Code Knowledge Patch Substitution","operationId":"code_knowledge_patch_substitution_billing_code_knowledge_substitutions__substitution_id__patch","parameters":[{"name":"substitution_id","in":"path","required":true,"schema":{"type":"string","title":"Substitution Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedureSubstitutionUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/diagnosis-rules":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Diagnosis Rules","operationId":"code_knowledge_diagnosis_rules_billing_code_knowledge_diagnosis_rules_get","parameters":[{"name":"payer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Code Knowledge Create Diagnosis Rule","operationId":"code_knowledge_create_diagnosis_rule_billing_code_knowledge_diagnosis_rules_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisRuleUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/diagnosis-rules/{rule_id}":{"patch":{"tags":["billing-v2"],"summary":"Code Knowledge Patch Diagnosis Rule","operationId":"code_knowledge_patch_diagnosis_rule_billing_code_knowledge_diagnosis_rules__rule_id__patch","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisRuleUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/payer-behaviors":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Payer Behaviors","operationId":"code_knowledge_payer_behaviors_billing_code_knowledge_payer_behaviors_get","parameters":[{"name":"payer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"}},{"name":"procedure_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Procedure Code"}},{"name":"carc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carc"}},{"name":"rarc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarc"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/rebuild-analytics":{"post":{"tags":["billing-v2"],"summary":"Code Knowledge Rebuild Analytics","operationId":"code_knowledge_rebuild_analytics_billing_code_knowledge_rebuild_analytics_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/fix-history":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Fix History","operationId":"code_knowledge_fix_history_billing_code_knowledge_fix_history_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Code Knowledge Create Fix History","operationId":"code_knowledge_create_fix_history_billing_code_knowledge_fix_history_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimFixHistoryCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/code-knowledge/stats":{"get":{"tags":["billing-v2"],"summary":"Code Knowledge Stats","operationId":"code_knowledge_stats_billing_code_knowledge_stats_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/duplicates":{"get":{"tags":["billing-v2"],"summary":"Find Duplicate Patients","description":"Return groups of PatientsCache records that are likely duplicates.\nGrouping strategy:\n  1. Exact normalised full name match.\n  2. Same last name + same DOB (catches maiden/married name changes).\n  3. Same last name + first names share first 3 characters (catches nick-name pairs).\nGroups with 2+ members are returned; each patient appears at most once.","operationId":"find_duplicate_patients_billing_patients_duplicates_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/merge":{"post":{"tags":["billing-v2"],"summary":"Merge Patients","description":"Merge loser patient into winner patient.\n\nSteps:\n  1. Validate both records exist and belong to this clinic.\n  2. Apply any field_overrides (copy chosen fields from loser → winner).\n  3. Reassign all FK references: loser_id → winner_id across all billing tables.\n  4. Handle PatientBillingProfileV2 (patient_id is PK): upsert winner's profile\n     with loser's if winner has none; delete loser's profile.\n  5. Handle PatientAssignment (unique on clinic_id+patient_id): skip if winner\n     already has an assignment.\n  6. Mark loser PatientsCache as status='merged:{winner_id}'.\n  7. Commit and return summary.","operationId":"merge_patients_billing_patients_merge_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientMergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/financial/summary":{"get":{"tags":["billing-v2"],"summary":"Patient Financial Summary","description":"Return a patient-scoped financial summary: total balance, open statements, credits.","operationId":"patient_financial_summary_billing_patients__patient_id__financial_summary_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/financial/statements":{"get":{"tags":["billing-v2"],"summary":"Patient Statements","description":"List all billing statements for a patient.","operationId":"patient_statements_billing_patients__patient_id__financial_statements_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/financial/payments":{"get":{"tags":["billing-v2"],"summary":"Patient Payments","description":"List all payments for a patient.","operationId":"patient_payments_billing_patients__patient_id__financial_payments_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/membership/tiers":{"get":{"tags":["billing-v2"],"summary":"List membership tiers","operationId":"list_membership_tiers_billing_membership_tiers_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create membership tier","operationId":"create_membership_tier_billing_membership_tiers_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipTierCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/membership/tiers/{tier_id}":{"patch":{"tags":["billing-v2"],"summary":"Update membership tier","operationId":"update_membership_tier_billing_membership_tiers__tier_id__patch","parameters":[{"name":"tier_id","in":"path","required":true,"schema":{"type":"string","title":"Tier Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipTierUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/membership":{"get":{"tags":["billing-v2"],"summary":"Get active membership enrollment","operationId":"get_patient_membership_billing_patients__patient_id__membership_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Enroll patient in membership","operationId":"enroll_patient_membership_billing_patients__patient_id__membership_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipEnrollRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/membership/history":{"get":{"tags":["billing-v2"],"summary":"List all membership enrollments","operationId":"list_patient_membership_history_billing_patients__patient_id__membership_history_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/membership/{enrollment_id}":{"delete":{"tags":["billing-v2"],"summary":"Cancel membership enrollment","operationId":"cancel_patient_membership_billing_patients__patient_id__membership__enrollment_id__delete","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipCancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/oop-accumulator":{"get":{"tags":["billing-v2"],"summary":"Get OOP accumulator for current plan year","operationId":"get_oop_accumulator_billing_patients__patient_id__oop_accumulator_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"plan_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plan Year"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/writeoffs":{"post":{"tags":["billing-v2"],"summary":"Record a balance write-off","operationId":"create_writeoff_billing_writeoffs_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteoffCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/writeoffs":{"get":{"tags":["billing-v2"],"summary":"List write-offs for a patient","operationId":"list_patient_writeoffs_billing_patients__patient_id__writeoffs_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/writeoffs/annual-summary":{"get":{"tags":["billing-v2"],"summary":"Year-end writeoff summary for tax / charity care reporting","description":"Returns writeoff totals grouped by category and reason for the given calendar year.\nUse writeoff_category='charity_care' rows for IRS Schedule H community benefit reporting.","operationId":"writeoff_annual_summary_billing_writeoffs_annual_summary_get","parameters":[{"name":"year","in":"query","required":true,"schema":{"type":"integer","title":"Year"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/expenditures":{"post":{"tags":["billing-v2"],"summary":"Record a clinic expenditure for a patient","operationId":"create_expenditure_billing_expenditures_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicExpenditureCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/expenditures":{"get":{"tags":["billing-v2"],"summary":"List clinic expenditures for a patient","operationId":"list_patient_expenditures_billing_patients__patient_id__expenditures_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/reimbursables":{"post":{"tags":["billing-v2"],"summary":"Create a patient reimbursable record","operationId":"create_reimbursable_billing_reimbursables_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientReimbursableCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/patients/{patient_id}/reimbursables":{"get":{"tags":["billing-v2"],"summary":"List reimbursable records for a patient","operationId":"list_patient_reimbursables_billing_patients__patient_id__reimbursables_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/reimbursables/{reimbursable_id}/resolve":{"patch":{"tags":["billing-v2"],"summary":"Resolve a patient reimbursable","operationId":"resolve_reimbursable_billing_reimbursables__reimbursable_id__resolve_patch","parameters":[{"name":"reimbursable_id","in":"path","required":true,"schema":{"type":"string","title":"Reimbursable Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientReimbursableResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tasks/counts":{"get":{"tags":["billing-v2"],"summary":"Get Task Counts","operationId":"get_task_counts_billing_tasks_counts_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tasks":{"get":{"tags":["billing-v2"],"summary":"List Billing Tasks","operationId":"list_billing_tasks_billing_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"assigned_to_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BillingTaskResponse"},"title":"Response List Billing Tasks Billing Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Billing Task","operationId":"create_billing_task_billing_tasks_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tasks/{task_id}":{"get":{"tags":["billing-v2"],"summary":"Get Billing Task","operationId":"get_billing_task_billing_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing-v2"],"summary":"Update Billing Task","operationId":"update_billing_task_billing_tasks__task_id__patch","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tasks/{task_id}/action":{"post":{"tags":["billing-v2"],"summary":"Action Billing Task","operationId":"action_billing_task_billing_tasks__task_id__action_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/task-definitions":{"get":{"tags":["billing-v2"],"summary":"List Task Definitions","operationId":"list_task_definitions_billing_task_definitions_get","parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomTaskDefinitionResponse"},"title":"Response List Task Definitions Billing Task Definitions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Task Definition","operationId":"create_task_definition_billing_task_definitions_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomTaskDefinitionCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomTaskDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/task-definitions/{definition_id}":{"patch":{"tags":["billing-v2"],"summary":"Update Task Definition","operationId":"update_task_definition_billing_task_definitions__definition_id__patch","parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomTaskDefinitionUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomTaskDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["billing-v2"],"summary":"Deactivate Task Definition","operationId":"deactivate_task_definition_billing_task_definitions__definition_id__delete","parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/apcm/enrollments":{"get":{"tags":["billing-v2"],"summary":"List Apcm Enrollments","operationId":"list_apcm_enrollments_billing_apcm_enrollments_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApcmEnrollmentResponse"},"title":"Response List Apcm Enrollments Billing Apcm Enrollments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["billing-v2"],"summary":"Create Apcm Enrollment","operationId":"create_apcm_enrollment_billing_apcm_enrollments_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmEnrollRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/apcm/enrollments/{enrollment_id}":{"get":{"tags":["billing-v2"],"summary":"Get Apcm Enrollment","operationId":"get_apcm_enrollment_billing_apcm_enrollments__enrollment_id__get","parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing-v2"],"summary":"Update Apcm Enrollment","operationId":"update_apcm_enrollment_billing_apcm_enrollments__enrollment_id__patch","parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmEnrollmentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/apcm/enrollments/{enrollment_id}/suspend":{"post":{"tags":["billing-v2"],"summary":"Suspend Apcm Enrollment","operationId":"suspend_apcm_enrollment_billing_apcm_enrollments__enrollment_id__suspend_post","parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmSuspendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/apcm/enrollments/{enrollment_id}/terminate":{"post":{"tags":["billing-v2"],"summary":"Terminate Apcm Enrollment","operationId":"terminate_apcm_enrollment_billing_apcm_enrollments__enrollment_id__terminate_post","parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmTerminateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/apcm/monthly-records":{"get":{"tags":["billing-v2"],"summary":"List Apcm Monthly Records","operationId":"list_apcm_monthly_records_billing_apcm_monthly_records_get","parameters":[{"name":"service_month","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Service Month"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApcmMonthlyRecordResponse"},"title":"Response List Apcm Monthly Records Billing Apcm Monthly Records Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/apcm/run-batch":{"post":{"tags":["billing-v2"],"summary":"Run Apcm Batch","description":"Run the APCM monthly charge batch for all active enrollments.\n\nVerifies care plan status before generating each draft claim.\nIdempotent — skips patients whose record for this month already exists.\nEmits APCM_CAREPLAN_MISSING for any patient without a verified care plan.","operationId":"run_apcm_batch_billing_apcm_run_batch_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmBatchRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApcmBatchRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/dispatch/era":{"post":{"tags":["billing-v2"],"summary":"Dispatch Era Rows","description":"Dispatch selected ERA rows: create insurance payment + patient responsibility records.","operationId":"dispatch_era_rows_billing_document_intake_dispatch_era_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDispatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/dispatch/lab-invoice":{"post":{"tags":["billing-v2"],"summary":"Dispatch Lab Invoice Rows","description":"Dispatch selected lab/radiology invoice rows as billing charges.","operationId":"dispatch_lab_invoice_rows_billing_document_intake_dispatch_lab_invoice_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDispatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/document-intake/dispatch/medication-invoice":{"post":{"tags":["billing-v2"],"summary":"Dispatch Medication Invoice Rows","description":"Dispatch selected medication invoice rows as billing charges.\n\nRecords the cost in billing. Pharmacy inventory receive must be created\nseparately via the pharmacy procurement API (or via CSV import which runs\ninline during CSV extraction).","operationId":"dispatch_medication_invoice_rows_billing_document_intake_dispatch_medication_invoice_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDispatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tebra/encounters":{"get":{"tags":["billing-v2"],"summary":"List Tebra Encounters","operationId":"list_tebra_encounters_billing_tebra_encounters_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tebra/payments":{"get":{"tags":["billing-v2"],"summary":"List Tebra Payments","operationId":"list_tebra_payments_billing_tebra_payments_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tebra/transactions":{"get":{"tags":["billing-v2"],"summary":"List Tebra Transactions","operationId":"list_tebra_transactions_billing_tebra_transactions_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}},{"name":"transaction_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tebra/procedure-codes":{"get":{"tags":["billing-v2"],"summary":"List Tebra Procedure Codes","operationId":"list_tebra_procedure_codes_billing_tebra_procedure_codes_get","parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/tebra/procedure-codes/import":{"post":{"tags":["billing-v2"],"summary":"Import Tebra Procedure Codes","description":"Upsert a batch of Tebra procedure codes into tebra_procedure_codes.","operationId":"import_tebra_procedure_codes_billing_tebra_procedure_codes_import_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraProcedureCodeImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/clinic-profile":{"get":{"tags":["billing-v2"],"summary":"Get Clinic Profile","operationId":"get_clinic_profile_billing_clinic_profile_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["billing-v2"],"summary":"Patch Clinic Profile","description":"Update the clinic billing profile (practice name, address, NPI, phone).","operationId":"patch_clinic_profile_billing_clinic_profile_patch","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ClinicProfilePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/internal/credential-sync-status":{"get":{"tags":["billing-v2"],"summary":"Get Credential Sync Status","description":"Return last credential sync time and whether a sync is due (null or >30 days).","operationId":"get_credential_sync_status_billing_internal_credential_sync_status_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/internal/sync-credentials":{"post":{"tags":["billing-v2"],"summary":"Trigger Credential Sync","description":"Trigger a credential sync for the requesting clinic.\n\nFires immediately if force=True or if last sync was null / >30 days ago.\nReturns 200 with should_sync=false if sync is not due and force is not set.\nThe actual scan runs in a BackgroundTask so the response is immediate.","operationId":"trigger_credential_sync_billing_internal_sync_credentials_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-models":{"get":{"tags":["billing-v2"],"summary":"List Payment Models","description":"Return configuration for all 7 payment model types for this clinic.\nModels without a saved row are returned with defaults and is_enabled=False.","operationId":"list_payment_models_billing_payment_models_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-models/{model_key}":{"put":{"tags":["billing-v2"],"summary":"Upsert Payment Model","description":"Create or update the payment model configuration for this clinic.","operationId":"upsert_payment_model_billing_payment_models__model_key__put","parameters":[{"name":"model_key","in":"path","required":true,"schema":{"type":"string","title":"Model Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentModelSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/payment-models/{model_key}/tiers":{"get":{"tags":["billing-v2"],"summary":"List Payment Model Tiers","description":"List membership tiers associated with a payment model.","operationId":"list_payment_model_tiers_billing_payment_models__model_key__tiers_get","parameters":[{"name":"model_key","in":"path","required":true,"schema":{"type":"string","title":"Model Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/payment-model":{"patch":{"tags":["billing-v2"],"summary":"Assign Patient Payment Model","description":"Assign or change a patient's payment model key.","operationId":"assign_patient_payment_model_billing_ui_patients__patient_id__payment_model_patch","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/payment-model-summary":{"get":{"tags":["billing-v2"],"summary":"Get Patient Payment Model Summary","description":"Return the patient's current payment model, tier enrollment, and enabled model options.","operationId":"get_patient_payment_model_summary_billing_ui_patients__patient_id__payment_model_summary_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/run/hybrid-year-end-credit-sweep":{"post":{"tags":["billing-v2"],"summary":"Year-end Hybrid credit sweep","description":"Absorb Hybrid patient credits beyond a 2-month membership buffer.\nRecords each absorption as a charity_care writeoff for Schedule H reporting.\nExpects body: {\"year\": 2026}","operationId":"run_hybrid_credit_sweep_billing_run_hybrid_year_end_credit_sweep_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/status":{"get":{"summary":"Status","operationId":"status_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/readyz":{"get":{"summary":"Readyz","description":"Readiness probe — returns 200 only when the DB is reachable.\n\nCloud Run uses this to gate traffic routing.  A 503 causes the instance\nto be removed from the load balancer without a restart (unlike liveness).","operationId":"readyz_readyz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/authz/break-glass":{"post":{"summary":"Break Glass Endpoint","operationId":"break_glass_endpoint_authz_break_glass_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/carriers":{"get":{"tags":["credentialing"],"summary":"List Carriers","operationId":"list_carriers_billing_credentialing_carriers_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InsuranceCarrierResponse"},"title":"Response List Carriers Billing Credentialing Carriers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Carrier","operationId":"create_carrier_billing_credentialing_carriers_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCarrierCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCarrierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/carriers/{carrier_id}":{"get":{"tags":["credentialing"],"summary":"Get Carrier","operationId":"get_carrier_billing_credentialing_carriers__carrier_id__get","parameters":[{"name":"carrier_id","in":"path","required":true,"schema":{"type":"string","title":"Carrier Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCarrierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Carrier","operationId":"update_carrier_billing_credentialing_carriers__carrier_id__patch","parameters":[{"name":"carrier_id","in":"path","required":true,"schema":{"type":"string","title":"Carrier Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCarrierUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCarrierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Carrier","operationId":"delete_carrier_billing_credentialing_carriers__carrier_id__delete","parameters":[{"name":"carrier_id","in":"path","required":true,"schema":{"type":"string","title":"Carrier Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities":{"get":{"tags":["credentialing"],"summary":"List Entities","operationId":"list_entities_billing_credentialing_entities_get","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CredentialedEntityResponse"},"title":"Response List Entities Billing Credentialing Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Entity","operationId":"create_entity_billing_credentialing_entities_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialedEntityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialedEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}":{"get":{"tags":["credentialing"],"summary":"Get Entity","operationId":"get_entity_billing_credentialing_entities__entity_id__get","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialedEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Entity","operationId":"update_entity_billing_credentialing_entities__entity_id__patch","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialedEntityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialedEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Entity","operationId":"delete_entity_billing_credentialing_entities__entity_id__delete","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/npi-lookup":{"get":{"tags":["credentialing"],"summary":"Npi Lookup Standalone","description":"Look up an NPI from the CMS registry without needing an entity first.\n\nUsed by the NPI-first entity creation flow to pre-populate name and specialty.","operationId":"npi_lookup_standalone_billing_credentialing_npi_lookup_get","parameters":[{"name":"npi","in":"query","required":true,"schema":{"type":"string","description":"10-digit NPI to look up","title":"Npi"},"description":"10-digit NPI to look up"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NpiLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/link-user":{"post":{"tags":["credentialing"],"summary":"Link User To Entity","description":"Link a platform user account to a credentialed entity.\n\nIf sync_legal_name is True (default), the entity's legal_name is updated\nto the value in payload.legal_name (which the client pre-fills from the\nadmin user list).  credential_suffix (MD/DO/PA/NP/etc.) is stored on the\nentity so display names can be rendered consistently.","operationId":"link_user_to_entity_billing_credentialing_entities__entity_id__link_user_post","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialedEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/npi-lookup":{"post":{"tags":["credentialing"],"summary":"Npi Lookup For Entity","description":"Look up an NPI from the CMS registry and store the result on the entity.","operationId":"npi_lookup_for_entity_billing_credentialing_entities__entity_id__npi_lookup_post","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"npi","in":"query","required":true,"schema":{"type":"string","description":"NPI number to look up","title":"Npi"},"description":"NPI number to look up"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NpiLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/npi-search":{"get":{"tags":["credentialing"],"summary":"Npi Search","operationId":"npi_search_billing_credentialing_npi_search_get","parameters":[{"name":"first_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"}},{"name":"last_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"}},{"name":"organization_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"}},{"name":"taxonomy_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NpiSearchResult"},"title":"Response Npi Search Billing Credentialing Npi Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/caqh-sync":{"post":{"tags":["credentialing"],"summary":"Caqh Sync","description":"Pull latest data from CAQH ProView and store on the entity.","operationId":"caqh_sync_billing_credentialing_entities__entity_id__caqh_sync_post","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/caqh-push":{"post":{"tags":["credentialing"],"summary":"Caqh Push","description":"Push data from Prometheus to CAQH ProView.","operationId":"caqh_push_billing_credentialing_entities__entity_id__caqh_push_post","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/credential-types":{"get":{"tags":["credentialing"],"summary":"List Credential Types","operationId":"list_credential_types_billing_credentialing_credential_types_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CredentialTypeDefinitionResponse"},"title":"Response List Credential Types Billing Credentialing Credential Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Credential Type","operationId":"create_credential_type_billing_credentialing_credential_types_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialTypeDefinitionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialTypeDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/credential-types/{type_id}":{"delete":{"tags":["credentialing"],"summary":"Deactivate Credential Type","operationId":"deactivate_credential_type_billing_credentialing_credential_types__type_id__delete","parameters":[{"name":"type_id","in":"path","required":true,"schema":{"type":"string","title":"Type Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/credentials":{"get":{"tags":["credentialing"],"summary":"List Credentials","operationId":"list_credentials_billing_credentialing_credentials_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CredentialResponse"},"title":"Response List Credentials Billing Credentialing Credentials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Credential","operationId":"create_credential_billing_credentialing_credentials_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/credentials/{credential_id}":{"get":{"tags":["credentialing"],"summary":"Get Credential","operationId":"get_credential_billing_credentialing_credentials__credential_id__get","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"Credential Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Credential","operationId":"update_credential_billing_credentialing_credentials__credential_id__patch","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"Credential Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Credential","operationId":"delete_credential_billing_credentialing_credentials__credential_id__delete","parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"Credential Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/contracts":{"get":{"tags":["credentialing"],"summary":"List Contracts","operationId":"list_contracts_billing_credentialing_contracts_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"credentialing_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Status"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InsuranceContractResponse"},"title":"Response List Contracts Billing Credentialing Contracts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Contract","operationId":"create_contract_billing_credentialing_contracts_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceContractCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceContractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/contracts/{contract_id}":{"get":{"tags":["credentialing"],"summary":"Get Contract","operationId":"get_contract_billing_credentialing_contracts__contract_id__get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceContractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Contract","operationId":"update_contract_billing_credentialing_contracts__contract_id__patch","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceContractUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceContractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Contract","operationId":"delete_contract_billing_credentialing_contracts__contract_id__delete","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"string","title":"Contract Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/malpractice":{"get":{"tags":["credentialing"],"summary":"List Malpractice","operationId":"list_malpractice_billing_credentialing_malpractice_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MalpracticePolicyResponse"},"title":"Response List Malpractice Billing Credentialing Malpractice Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Malpractice","operationId":"create_malpractice_billing_credentialing_malpractice_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MalpracticePolicyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MalpracticePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/malpractice/{policy_id}":{"get":{"tags":["credentialing"],"summary":"Get Malpractice","operationId":"get_malpractice_billing_credentialing_malpractice__policy_id__get","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MalpracticePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Malpractice","operationId":"update_malpractice_billing_credentialing_malpractice__policy_id__patch","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MalpracticePolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MalpracticePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/malpractice/{policy_id}/providers":{"post":{"tags":["credentialing"],"summary":"Add Malpractice Provider","operationId":"add_malpractice_provider_billing_credentialing_malpractice__policy_id__providers_post","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MalpracticePolicyProviderAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MalpracticePolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/malpractice/{policy_id}/providers/{entity_id}":{"delete":{"tags":["credentialing"],"summary":"Remove Malpractice Provider","operationId":"remove_malpractice_provider_billing_credentialing_malpractice__policy_id__providers__entity_id__delete","parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/affiliations":{"get":{"tags":["credentialing"],"summary":"List Affiliations","operationId":"list_affiliations_billing_credentialing_affiliations_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HospitalAffiliationResponse"},"title":"Response List Affiliations Billing Credentialing Affiliations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Affiliation","operationId":"create_affiliation_billing_credentialing_affiliations_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HospitalAffiliationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HospitalAffiliationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/affiliations/{affiliation_id}":{"get":{"tags":["credentialing"],"summary":"Get Affiliation","operationId":"get_affiliation_billing_credentialing_affiliations__affiliation_id__get","parameters":[{"name":"affiliation_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HospitalAffiliationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Affiliation","operationId":"update_affiliation_billing_credentialing_affiliations__affiliation_id__patch","parameters":[{"name":"affiliation_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HospitalAffiliationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HospitalAffiliationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Affiliation","operationId":"delete_affiliation_billing_credentialing_affiliations__affiliation_id__delete","parameters":[{"name":"affiliation_id","in":"path","required":true,"schema":{"type":"string","title":"Affiliation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/cme/requirements":{"get":{"tags":["credentialing"],"summary":"List Cme Requirements","operationId":"list_cme_requirements_billing_credentialing_cme_requirements_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmeRequirementResponse"},"title":"Response List Cme Requirements Billing Credentialing Cme Requirements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Cme Requirement","operationId":"create_cme_requirement_billing_credentialing_cme_requirements_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmeRequirementCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmeRequirementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/cme/requirements/{req_id}":{"get":{"tags":["credentialing"],"summary":"Get Cme Requirement","operationId":"get_cme_requirement_billing_credentialing_cme_requirements__req_id__get","parameters":[{"name":"req_id","in":"path","required":true,"schema":{"type":"string","title":"Req Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmeRequirementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/cme/activities":{"get":{"tags":["credentialing"],"summary":"List Cme Activities","operationId":"list_cme_activities_billing_credentialing_cme_activities_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"requirement_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirement Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmeActivityResponse"},"title":"Response List Cme Activities Billing Credentialing Cme Activities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Cme Activity","operationId":"create_cme_activity_billing_credentialing_cme_activities_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmeActivityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CmeActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/cme/activities/{activity_id}":{"delete":{"tags":["credentialing"],"summary":"Delete Cme Activity","operationId":"delete_cme_activity_billing_credentialing_cme_activities__activity_id__delete","parameters":[{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","title":"Activity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/in-network-check":{"get":{"tags":["credentialing"],"summary":"In Network Check","description":"Check whether any credentialed entity is in-network with a carrier.\n\nAccepts either carrier_id (exact match) or payer_name (case-insensitive LIKE).\nReturns all matching active contracts for the clinic.\nUsed by NewPatientIntakePage as an informational badge (no gate).","operationId":"in_network_check_billing_credentialing_in_network_check_get","parameters":[{"name":"carrier_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Id"}},{"name":"payer_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InNetworkCheckResponse"},"title":"Response In Network Check Billing Credentialing In Network Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/reminders":{"get":{"tags":["credentialing"],"summary":"List Reminders","operationId":"list_reminders_billing_credentialing_reminders_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"record_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Type"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CredentialingReminderResponse"},"title":"Response List Reminders Billing Credentialing Reminders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/dashboard":{"get":{"tags":["credentialing"],"summary":"Dashboard","operationId":"dashboard_billing_credentialing_dashboard_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialingDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/import-from-tebra":{"post":{"tags":["credentialing"],"summary":"Import Entities From Tebra","description":"Create CredentialedEntity records from Tebra provider dicts.\n\nEach provider dict is expected to have: tebra_provider_id, first_name,\nlast_name, full_name, provider_type, specialty, npi, dea, license_number,\ndepartment_name, practice_name, is_active.\n\nProviders that already have a matching NPI in this clinic are skipped.\nReturns counts of imported, skipped, and any per-row errors.","operationId":"import_entities_from_tebra_billing_credentialing_entities_import_from_tebra_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/locations/import-from-tebra":{"post":{"tags":["credentialing"],"summary":"Import Locations From Tebra","description":"Upsert ClinicLocation records from Tebra service location dicts.\n\nEach dict is expected to have: service_location_id, name, billing_name,\naddress_line1/2, city, state, zip_code, phone, fax, npi, clia_number,\nplace_of_service_code, is_active.\n\nDeduplicates on tebra_source_id, then NPI. Creates a review task for\neach location that has incomplete credentialing data.","operationId":"import_locations_from_tebra_billing_credentialing_locations_import_from_tebra_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/reemit-provider-events":{"post":{"tags":["credentialing"],"summary":"Reemit Provider Events","description":"One-off backfill: re-emit ProviderCredentialed for every active provider entity.\n\nAllows downstream projections (e.g. comms StaffUsersCache.credential_suffix)\nto populate without requiring a schema change or re-ingestion.  Safe to call\nmultiple times — each call simply appends new outbox events.","operationId":"reemit_provider_events_billing_credentialing_reemit_provider_events_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/payers":{"get":{"tags":["credentialing"],"summary":"List Payers","operationId":"list_payers_billing_credentialing_payers_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name or alias search","title":"Q"},"description":"Name or alias search"},{"name":"payer_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Type"}},{"name":"state_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PayerDirectoryResponse"},"title":"Response List Payers Billing Credentialing Payers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Payer","operationId":"create_payer_billing_credentialing_payers_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerDirectoryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerDirectoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/payers/{payer_id}":{"get":{"tags":["credentialing"],"summary":"Get Payer","operationId":"get_payer_billing_credentialing_payers__payer_id__get","parameters":[{"name":"payer_id","in":"path","required":true,"schema":{"type":"string","title":"Payer Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerDirectoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Payer","operationId":"update_payer_billing_credentialing_payers__payer_id__patch","parameters":[{"name":"payer_id","in":"path","required":true,"schema":{"type":"string","title":"Payer Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerDirectoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerDirectoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/payers/{payer_id}/aliases":{"get":{"tags":["credentialing"],"summary":"List Payer Aliases","operationId":"list_payer_aliases_billing_credentialing_payers__payer_id__aliases_get","parameters":[{"name":"payer_id","in":"path","required":true,"schema":{"type":"string","title":"Payer Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PayerAliasResponse"},"title":"Response List Payer Aliases Billing Credentialing Payers  Payer Id  Aliases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Add Payer Alias","operationId":"add_payer_alias_billing_credentialing_payers__payer_id__aliases_post","parameters":[{"name":"payer_id","in":"path","required":true,"schema":{"type":"string","title":"Payer Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerAliasAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerAliasResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/payers/{payer_id}/aliases/{alias_id}":{"delete":{"tags":["credentialing"],"summary":"Delete Payer Alias","operationId":"delete_payer_alias_billing_credentialing_payers__payer_id__aliases__alias_id__delete","parameters":[{"name":"payer_id","in":"path","required":true,"schema":{"type":"string","title":"Payer Id"}},{"name":"alias_id","in":"path","required":true,"schema":{"type":"string","title":"Alias Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/payers/import-from-tebra":{"post":{"tags":["credentialing"],"summary":"Import Payers From Tebra","description":"Pull payers from the Tebra API and upsert into payer_directory.\n\nMatches on edi_payer_id when present; skips duplicates.\nReturns counts of imported, updated, and skipped entries.","operationId":"import_payers_from_tebra_billing_credentialing_payers_import_from_tebra_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/mac-jurisdictions":{"get":{"tags":["credentialing"],"summary":"List Mac Jurisdictions","description":"Return all MAC jurisdictions. Optionally filter to the one covering a given state.","operationId":"list_mac_jurisdictions_billing_credentialing_mac_jurisdictions_get","parameters":[{"name":"state_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to the MAC covering this state","title":"State Code"},"description":"Filter to the MAC covering this state"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MacJurisdictionResponse"},"title":"Response List Mac Jurisdictions Billing Credentialing Mac Jurisdictions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/provider-groups":{"get":{"tags":["credentialing"],"summary":"List Provider Groups","operationId":"list_provider_groups_billing_credentialing_provider_groups_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderGroupResponse"},"title":"Response List Provider Groups Billing Credentialing Provider Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Provider Group","operationId":"create_provider_group_billing_credentialing_provider_groups_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/provider-groups/{group_id}":{"get":{"tags":["credentialing"],"summary":"Get Provider Group","operationId":"get_provider_group_billing_credentialing_provider_groups__group_id__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Provider Group","operationId":"update_provider_group_billing_credentialing_provider_groups__group_id__patch","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderGroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Provider Group","operationId":"delete_provider_group_billing_credentialing_provider_groups__group_id__delete","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/provider-groups/{group_id}/members":{"post":{"tags":["credentialing"],"summary":"Add Group Member","operationId":"add_group_member_billing_credentialing_provider_groups__group_id__members_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderGroupMemberAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/provider-groups/{group_id}/members/{entity_id}":{"delete":{"tags":["credentialing"],"summary":"Remove Group Member","operationId":"remove_group_member_billing_credentialing_provider_groups__group_id__members__entity_id__delete","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/enrollments":{"get":{"tags":["credentialing"],"summary":"List Enrollments","operationId":"list_enrollments_billing_credentialing_enrollments_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"payer_directory_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PayerEnrollmentResponse"},"title":"Response List Enrollments Billing Credentialing Enrollments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Enrollment","operationId":"create_enrollment_billing_credentialing_enrollments_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerEnrollmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/enrollments/{enrollment_id}":{"get":{"tags":["credentialing"],"summary":"Get Enrollment","operationId":"get_enrollment_billing_credentialing_enrollments__enrollment_id__get","parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Enrollment","operationId":"update_enrollment_billing_credentialing_enrollments__enrollment_id__patch","parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerEnrollmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayerEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Enrollment","operationId":"delete_enrollment_billing_credentialing_enrollments__enrollment_id__delete","parameters":[{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/locations":{"get":{"tags":["credentialing"],"summary":"List Locations","operationId":"list_locations_billing_credentialing_locations_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClinicLocationResponse"},"title":"Response List Locations Billing Credentialing Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Location","operationId":"create_location_billing_credentialing_locations_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicLocationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicLocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/locations/{location_id}":{"get":{"tags":["credentialing"],"summary":"Get Location","operationId":"get_location_billing_credentialing_locations__location_id__get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicLocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["credentialing"],"summary":"Update Location","operationId":"update_location_billing_credentialing_locations__location_id__patch","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicLocationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicLocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Location","operationId":"delete_location_billing_credentialing_locations__location_id__delete","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/locations/{location_id}":{"post":{"tags":["credentialing"],"summary":"Link Provider Location","description":"Link a provider (CredentialedEntity) to a ClinicLocation.","operationId":"link_provider_location_billing_credentialing_entities__entity_id__locations__location_id__post","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderLocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Unlink Provider Location","operationId":"unlink_provider_location_billing_credentialing_entities__entity_id__locations__location_id__delete","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/locations/{location_id}/npi-lookup":{"post":{"tags":["credentialing"],"summary":"Npi Lookup For Location","description":"Look up a Type-2 (organization) NPI from CMS registry and store on the location.","operationId":"npi_lookup_for_location_billing_credentialing_locations__location_id__npi_lookup_post","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"npi","in":"query","required":true,"schema":{"type":"string","description":"Type-2 NPI to look up","title":"Npi"},"description":"Type-2 NPI to look up"},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NpiLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/locations":{"get":{"tags":["credentialing"],"summary":"List Provider Locations","description":"Return all location links for a provider.","operationId":"list_provider_locations_billing_credentialing_entities__entity_id__locations_get","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderLocationResponse"},"title":"Response List Provider Locations Billing Credentialing Entities  Entity Id  Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/state-enrollments":{"get":{"tags":["credentialing"],"summary":"List Provider State Enrollments","operationId":"list_provider_state_enrollments_billing_credentialing_entities__entity_id__state_enrollments_get","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StateEnrollmentResponse"},"title":"Response List Provider State Enrollments Billing Credentialing Entities  Entity Id  State Enrollments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Provider State Enrollment","operationId":"create_provider_state_enrollment_billing_credentialing_entities__entity_id__state_enrollments_post","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/entities/{entity_id}/state-enrollments/{enrollment_id}":{"patch":{"tags":["credentialing"],"summary":"Update Provider State Enrollment","operationId":"update_provider_state_enrollment_billing_credentialing_entities__entity_id__state_enrollments__enrollment_id__patch","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Provider State Enrollment","operationId":"delete_provider_state_enrollment_billing_credentialing_entities__entity_id__state_enrollments__enrollment_id__delete","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}},{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/locations/{location_id}/state-enrollments":{"get":{"tags":["credentialing"],"summary":"List Location State Enrollments","operationId":"list_location_state_enrollments_billing_credentialing_locations__location_id__state_enrollments_get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StateEnrollmentResponse"},"title":"Response List Location State Enrollments Billing Credentialing Locations  Location Id  State Enrollments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentialing"],"summary":"Create Location State Enrollment","operationId":"create_location_state_enrollment_billing_credentialing_locations__location_id__state_enrollments_post","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credentialing/locations/{location_id}/state-enrollments/{enrollment_id}":{"patch":{"tags":["credentialing"],"summary":"Update Location State Enrollment","operationId":"update_location_state_enrollment_billing_credentialing_locations__location_id__state_enrollments__enrollment_id__patch","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentialing"],"summary":"Delete Location State Enrollment","operationId":"delete_location_state_enrollment_billing_credentialing_locations__location_id__state_enrollments__enrollment_id__delete","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Enrollment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/insurance":{"get":{"tags":["patient-insurance"],"summary":"List Insurance Profiles","operationId":"list_insurance_profiles_billing_ui_patients__patient_id__insurance_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InsuranceProfileResponse"},"title":"Response List Insurance Profiles Billing Ui Patients  Patient Id  Insurance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["patient-insurance"],"summary":"Create Insurance Profile","operationId":"create_insurance_profile_billing_ui_patients__patient_id__insurance_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProfileCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/insurance/{profile_id}":{"get":{"tags":["patient-insurance"],"summary":"Get Insurance Profile","operationId":"get_insurance_profile_billing_ui_patients__patient_id__insurance__profile_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["patient-insurance"],"summary":"Update Insurance Profile","operationId":"update_insurance_profile_billing_ui_patients__patient_id__insurance__profile_id__patch","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["patient-insurance"],"summary":"Delete Insurance Profile","operationId":"delete_insurance_profile_billing_ui_patients__patient_id__insurance__profile_id__delete","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/insurance/{profile_id}/set-primary":{"post":{"tags":["patient-insurance"],"summary":"Set Primary Insurance","description":"Promote a profile to priority 1, shifting existing profiles down.\n\nResult order after promotion:\n  - The specified profile becomes priority 1.\n  - The previous primary becomes priority 2.\n  - The previous secondary (if any) becomes priority 3.\nAny profiles beyond priority 3 are deactivated.\nReturns the updated list sorted by priority.","operationId":"set_primary_insurance_billing_ui_patients__patient_id__insurance__profile_id__set_primary_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InsuranceProfileResponse"},"title":"Response Set Primary Insurance Billing Ui Patients  Patient Id  Insurance  Profile Id  Set Primary Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/clinic-profile":{"post":{"tags":["provision-internal"],"summary":"Provision Clinic Profile","description":"Upsert the billing profile for a clinic. Called by MC on clinic creation or update.","operationId":"provision_clinic_profile_internal_provision_clinic_profile_post","parameters":[{"name":"X-MC-Provision-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Mc-Provision-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicProfileProvisionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicProfileProvisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/clinic-profile/{clinic_id}":{"get":{"tags":["provision-internal"],"summary":"Get Clinic Profile","description":"Read the billing profile for a clinic.","operationId":"get_clinic_profile_internal_provision_clinic_profile__clinic_id__get","parameters":[{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","title":"Clinic Id"}},{"name":"X-MC-Provision-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Mc-Provision-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicProfileProvisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/review-queue":{"get":{"tags":["claim-review"],"summary":"Review Queue","description":"Return claims enriched with patient/payer info for the biller review queue.","operationId":"review_queue_billing_ui_claims_review_queue_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/ai-coding-feedback":{"get":{"tags":["claim-review"],"summary":"Ai Coding Feedback","description":"Aggregate AI coding acceptance metrics for the clinic.","operationId":"ai_coding_feedback_billing_ui_claims_ai_coding_feedback_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}":{"get":{"tags":["claim-review"],"summary":"Get Claim","operationId":"get_claim_billing_ui_claims__claim_id__get","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["claim-review"],"summary":"Update Claim Meta","operationId":"update_claim_meta_billing_ui_claims__claim_id__patch","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimMetaUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/precheck":{"post":{"tags":["claim-review"],"summary":"Rerun Pre Check","description":"Manually re-run Claim Pre-Check — e.g. after a transient Optum error, or after the\nbiller fixes something upstream (like resolving a TIN mismatch).","operationId":"rerun_pre_check_billing_ui_claims__claim_id__precheck_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/claim-inquiry":{"post":{"tags":["claim-review"],"summary":"Check Claim Inquiry","description":"Manually check a claim's status via Optum Search Claim — the biller-facing\n\"Check Optum status\" button. Only meaningful for Optum-routed claims (payer has\noptum_payer_id set); returns 400 otherwise.","operationId":"check_claim_inquiry_billing_ui_claims__claim_id__claim_inquiry_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/search-277ca":{"post":{"tags":["claim-review"],"summary":"Check Claim 277Ca","description":"Manually check the current 277CA acknowledgment status for a claim's recorded Optum\ntransaction — the biller-facing \"Check 277CA\" button. Only meaningful for claims with a\nprecheck_transaction_id on file (i.e. Claim Pre-Check has already run); returns 400\notherwise. No DB writes — never touches precheck_status/precheck_edits.","operationId":"check_claim_277ca_billing_ui_claims__claim_id__search_277ca_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/get-claim-line-action":{"post":{"tags":["claim-review"],"summary":"Get Claim Line Action","description":"Report which service lines on a claim are eligible for a RECON/PEND/APPEAL ticket —\nthe biller-facing \"Get Line Actions\" button on the Claim Detail section. claim_action_identifier\nand line_keys come from the frontend's already-fetched Search Claim result, not any DB\nfield. No DB writes.","operationId":"get_claim_line_action_billing_ui_claims__claim_id__get_claim_line_action_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetClaimLineActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/submit-claim-ticket":{"post":{"tags":["claim-review"],"summary":"Submit Claim Ticket","description":"Create (ticket_action=\"Create\") a RECON/PEND/APPEAL ticket from the claim-scoped Get\nLine Actions panel. Writes claim.optum_ticket_number/optum_ticket_status on success.","operationId":"submit_claim_ticket_billing_ui_claims__claim_id__submit_claim_ticket_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitClaimTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/submit-claim-attachment":{"post":{"tags":["claim-review"],"summary":"Submit Claim Attachment","description":"Upload a supporting document for a RECON/PEND/APPEAL ticket, claim-scoped. No DB\nwrites — the attachment itself is never persisted locally.","operationId":"submit_claim_attachment_billing_ui_claims__claim_id__submit_claim_attachment_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_claim_attachment_billing_ui_claims__claim_id__submit_claim_attachment_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/get-document":{"post":{"tags":["claim-review"],"summary":"Claim Get Document","description":"Download a document's base64 content — the biller-facing Download button on the Claim\nDetail section's Documents list. document_id comes from the frontend's already-fetched\nSearch Claim result, not any DB field. No DB writes.","operationId":"claim_get_document_billing_ui_claims__claim_id__get_document_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__billing__app__claim_review__router__GetDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/lines":{"post":{"tags":["claim-review"],"summary":"Add Line","operationId":"add_line_billing_ui_claims__claim_id__lines_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/lines/{line_id}":{"patch":{"tags":["claim-review"],"summary":"Update Line","operationId":"update_line_billing_ui_claims__claim_id__lines__line_id__patch","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"line_id","in":"path","required":true,"schema":{"type":"string","title":"Line Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["claim-review"],"summary":"Delete Line","operationId":"delete_line_billing_ui_claims__claim_id__lines__line_id__delete","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"line_id","in":"path","required":true,"schema":{"type":"string","title":"Line Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/diagnoses":{"post":{"tags":["claim-review"],"summary":"Add Diagnosis","operationId":"add_diagnosis_billing_ui_claims__claim_id__diagnoses_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/diagnoses/{diag_id}":{"patch":{"tags":["claim-review"],"summary":"Update Diagnosis","operationId":"update_diagnosis_billing_ui_claims__claim_id__diagnoses__diag_id__patch","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"diag_id","in":"path","required":true,"schema":{"type":"string","title":"Diag Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["claim-review"],"summary":"Delete Diagnosis","operationId":"delete_diagnosis_billing_ui_claims__claim_id__diagnoses__diag_id__delete","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"diag_id","in":"path","required":true,"schema":{"type":"string","title":"Diag Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/approve":{"post":{"tags":["claim-review"],"summary":"Approve Claim","description":"Validate claim inline and approve it.\n\nOn successful approval, if the biller didn't edit lines/diagnoses, an\nauto-approval rule is recorded for this patient+code combo.","operationId":"approve_claim_billing_ui_claims__claim_id__approve_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/return":{"post":{"tags":["claim-review"],"summary":"Return Claim","description":"Return claim to provider for correction, adding a reason note.","operationId":"return_claim_billing_ui_claims__claim_id__return_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/resubmit":{"post":{"tags":["claim-review"],"summary":"Resubmit Claim","description":"Clone a rejected or denied claim as a new biller_review draft for correction and resubmission.","operationId":"resubmit_claim_billing_ui_claims__claim_id__resubmit_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/forward-cob":{"post":{"tags":["claim-review"],"summary":"Forward Cob","description":"Manually trigger COB secondary claim creation for a partially-paid claim.","operationId":"forward_cob_billing_ui_claims__claim_id__forward_cob_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches":{"get":{"tags":["rcw-batches"],"summary":"List Batches","operationId":"list_batches_billing_ui_batches_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Batches Billing Ui Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches/{batch_id}":{"get":{"tags":["rcw-batches"],"summary":"Get Batch","operationId":"get_batch_billing_ui_batches__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Batch Billing Ui Batches  Batch Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches/trigger":{"post":{"tags":["rcw-batches"],"summary":"Trigger Batch","description":"Create + generate + submit a batch for all approved unbatched claims.\n\nOptum-routed claims each submit as their own single-claim batch; remaining claims batch\ntogether to Availity as one call — see run_batch_pipeline. Returns every batch created.","operationId":"trigger_batch_billing_ui_batches_trigger_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Batch Billing Ui Batches Trigger Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches/{batch_id}/generate":{"post":{"tags":["rcw-batches"],"summary":"Regenerate X12","description":"(Re)generate the X12 payload for an existing batch without resubmitting.","operationId":"regenerate_x12_billing_ui_batches__batch_id__generate_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Regenerate X12 Billing Ui Batches  Batch Id  Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches/{batch_id}/submit":{"post":{"tags":["rcw-batches"],"summary":"Submit Batch","description":"Submit a generated batch to Availity.","operationId":"submit_batch_billing_ui_batches__batch_id__submit_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Batch Billing Ui Batches  Batch Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches/{batch_id}/download":{"get":{"tags":["rcw-batches"],"summary":"Download X12","description":"Download the raw X12 837P payload as a text file.","operationId":"download_x12_billing_ui_batches__batch_id__download_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches/{batch_id}/poll-ack":{"post":{"tags":["rcw-batches"],"summary":"Poll Ack","description":"Poll Availity for 277CA acknowledgment and update batch + claim statuses.","operationId":"poll_ack_billing_ui_batches__batch_id__poll_ack_post","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Poll Ack Billing Ui Batches  Batch Id  Poll Ack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/batches/835/upload":{"post":{"tags":["rcw-batches"],"summary":"Upload 835","description":"Accept a raw X12 835 ERA file body and apply EOB payment data to claims.\n\nPOST the raw EDI text as the request body (Content-Type: text/plain).","operationId":"upload_835_billing_ui_batches_835_upload_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload 835 Billing Ui Batches 835 Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/payers":{"get":{"tags":["availity-payers"],"summary":"List Payers","description":"Search the payer directory. Supports free-text search on name/IDs.","operationId":"list_payers_billing_ui_payers_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"payer_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Type"}},{"name":"real_time_eligibility","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Real Time Eligibility"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Payers Billing Ui Payers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/payers/sync":{"post":{"tags":["availity-payers"],"summary":"Trigger Payer Sync","description":"Manually trigger an Availity payer list sync for this clinic.","operationId":"trigger_payer_sync_billing_ui_payers_sync_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Payer Sync Billing Ui Payers Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/claims/{claim_id}/check-eligibility":{"post":{"tags":["availity-eligibility"],"summary":"Check Eligibility","description":"Run a live 270/271 eligibility check for the claim's insurance profile.\n\nPolls Availity synchronously (up to 10s), writes results to the insurance\nprofile and sets claim.eligibility_status.  Returns the benefit summary.","operationId":"check_eligibility_billing_ui_claims__claim_id__check_eligibility_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Eligibility Billing Ui Claims  Claim Id  Check Eligibility Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/referral-actions/search-providers":{"post":{"tags":["referral-actions-ui"],"summary":"Search Referral Providers","description":"Search Optum's servicing-provider directory for this patient's payer.","operationId":"search_referral_providers_billing_ui_patients__patient_id__referral_actions_search_providers_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProvidersUIRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Referral Providers Billing Ui Patients  Patient Id  Referral Actions Search Providers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/referral-actions/submit-referral":{"post":{"tags":["referral-actions-ui"],"summary":"Submit Patient Referral","description":"Submit a referral to Optum for this patient and persist the result.","operationId":"submit_patient_referral_billing_ui_patients__patient_id__referral_actions_submit_referral_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitReferralUIRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralActionUIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/referral-actions":{"get":{"tags":["referral-actions-ui"],"summary":"List Patient Referral Actions","description":"List this clinic's own submitted referrals for a patient (local rows,\nnot a live Optum search — see this feature's implementation plan).\n\nTwo mutually-exclusive query modes:\n- `pophealth_referral_id` set: return every action linked to that one clinical\n  referral, no date range needed (used by the referral detail view's\n  \"Authorization\" line).\n- `pophealth_referral_id` absent: the original date-range mode (`start_date`/\n  `end_date` required), used by the billing-side Referral History panel. The\n  date range filters on submitted_at (when the referral was submitted to the\n  vendor), not the referral's service start_date — those are different time\n  axes, and the UI's date-range picker (and its \"Last 3/6/12 months\" presets,\n  always anchored to today) communicates \"when did I submit this,\" not \"when\n  does the service start.\" Filtering on start_date would hide referrals with\n  a future-dated service start until that date arrived, even though they were\n  submitted (and approved) today.","operationId":"list_patient_referral_actions_billing_ui_patients__patient_id__referral_actions_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"ALL","title":"Status"}},{"name":"pophealth_referral_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pophealth Referral Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Patient Referral Actions Billing Ui Patients  Patient Id  Referral Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/patients/{patient_id}/referral-actions/{referral_action_id}/pdf":{"get":{"tags":["referral-actions-ui"],"summary":"Get Referral Action Pdf","operationId":"get_referral_action_pdf_billing_ui_patients__patient_id__referral_actions__referral_action_id__pdf_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"referral_action_id","in":"path","required":true,"schema":{"type":"string","title":"Referral Action Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Referral Action Pdf Billing Ui Patients  Patient Id  Referral Actions  Referral Action Id  Pdf Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-inquiry":{"post":{"tags":["internal"],"summary":"Referral Inquiry","description":"Cross-service endpoint: does this patient's payer require a referral?\n\nCalled by pophealth before sending a referral (in a later, separate slice — pophealth\ndoesn't call this yet). Never 500s for an Optum-side failure — that's a normal 200 with\nchecked=False. Only request-validation failures (bad/missing token, missing required\nfields) return a real HTTP error.","operationId":"referral_inquiry_internal_referral_inquiry_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralInquiryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralInquiryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-actions/search-providers":{"post":{"tags":["internal"],"summary":"Referral Actions Search Providers","operationId":"referral_actions_search_providers_internal_referral_actions_search_providers_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProvidersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProvidersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-actions/submit-referral":{"post":{"tags":["internal"],"summary":"Referral Actions Submit Referral","operationId":"referral_actions_submit_referral_internal_referral_actions_submit_referral_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitReferralRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-actions/search-referrals":{"post":{"tags":["internal"],"summary":"Referral Actions Search Referrals","operationId":"referral_actions_search_referrals_internal_referral_actions_search_referrals_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchReferralsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchReferralsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-actions/search-prior-auths":{"post":{"tags":["internal"],"summary":"Referral Actions Search Prior Auths","operationId":"referral_actions_search_prior_auths_internal_referral_actions_search_prior_auths_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchPriorAuthsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchPriorAuthsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-actions/submit-service-review":{"post":{"tags":["internal"],"summary":"Referral Actions Submit Service Review","operationId":"referral_actions_submit_service_review_internal_referral_actions_submit_service_review_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitServiceReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-actions/search-service-reviews":{"post":{"tags":["internal"],"summary":"Referral Actions Search Service Reviews","operationId":"referral_actions_search_service_reviews_internal_referral_actions_search_service_reviews_post","parameters":[{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchServiceReviewsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchServiceReviewsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/referral-actions/service-reviews/{review_id}":{"get":{"tags":["internal"],"summary":"Referral Actions Get Service Review","operationId":"referral_actions_get_service_review_internal_referral_actions_service_reviews__review_id__get","parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"clinic_id","in":"query","required":true,"schema":{"type":"string","title":"Clinic Id"}},{"name":"X-Internal-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetServiceReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/address/autocomplete":{"get":{"tags":["address"],"summary":"Address Autocomplete","description":"Return up to 5 address autocomplete suggestions.","operationId":"address_autocomplete_billing_ui_address_autocomplete_get","parameters":[{"name":"input","in":"query","required":true,"schema":{"type":"string","minLength":3,"title":"Input"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Address Autocomplete Billing Ui Address Autocomplete Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/address/details":{"get":{"tags":["address"],"summary":"Address Details","description":"Return structured address fields for a place_id (call after user selects a suggestion).","operationId":"address_details_billing_ui_address_details_get","parameters":[{"name":"place_id","in":"query","required":true,"schema":{"type":"string","title":"Place Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Address Details Billing Ui Address Details Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/url-check":{"get":{"tags":["address"],"summary":"Url Check","description":"HEAD-check whether a URL is reachable. Normalises http/https prefix.","operationId":"url_check_billing_ui_url_check_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","minLength":4,"title":"Url"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Url Check Billing Ui Url Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/ui/address/validate":{"post":{"tags":["address"],"summary":"Validate Address","description":"CASS-validate a complete address via Google Address Validation API.","operationId":"validate_address_billing_ui_address_validate_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAddressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Validate Address Billing Ui Address Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/connect":{"get":{"tags":["quickbooks"],"summary":"Connect","description":"Redirect clinic admin to QuickBooks OAuth authorization page.","operationId":"connect_quickbooks_connect_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/connect-url":{"get":{"tags":["quickbooks"],"summary":"Connect Url","description":"Return the QuickBooks OAuth authorization URL as JSON (for frontend fetch + redirect).","operationId":"connect_url_quickbooks_connect_url_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/oauth/callback":{"get":{"tags":["quickbooks"],"summary":"Oauth Callback","description":"Handle OAuth redirect from QuickBooks. Exchanges code for tokens.","operationId":"oauth_callback_quickbooks_oauth_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}},{"name":"realmId","in":"query","required":true,"schema":{"type":"string","title":"Realmid"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/status":{"get":{"tags":["quickbooks"],"summary":"Connection Status","operationId":"connection_status_quickbooks_status_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/settings":{"patch":{"tags":["quickbooks"],"summary":"Update Settings","description":"Update QB integration settings (deposit/income account routing for insurance payments).","operationId":"update_settings_quickbooks_settings_patch","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/disconnect":{"post":{"tags":["quickbooks"],"summary":"Disconnect","operationId":"disconnect_quickbooks_disconnect_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/token/refresh":{"post":{"tags":["quickbooks"],"summary":"Force Token Refresh","operationId":"force_token_refresh_quickbooks_token_refresh_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/backfill-customers":{"post":{"tags":["quickbooks"],"summary":"Backfill Customers","description":"Ensure every patient in the cache has a QB Customer record.\n\nIdempotent — skips patients that already have a mapping. Safe to re-run.\nReturns {synced, skipped, failed, total}.","operationId":"backfill_customers_quickbooks_backfill_customers_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/patients/{patient_id}/sync-customer":{"post":{"tags":["quickbooks"],"summary":"Sync Patient Customer","description":"Ensure a QB Customer exists for this patient. Creates one if needed.","operationId":"sync_patient_customer_quickbooks_patients__patient_id__sync_customer_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/patients/{patient_id}/customer":{"get":{"tags":["quickbooks"],"summary":"Get Patient Customer","operationId":"get_patient_customer_quickbooks_patients__patient_id__customer_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/invoices":{"post":{"tags":["quickbooks"],"summary":"Create Invoice","description":"Create a QB Invoice from billing charges.\n\nPayload:\n  patient_id: str           — Prometheus patient UUID\n  charge_ids: list[str]     — billing charge IDs to include\n  lines: list[dict]         — QB line items (amount, description, item_ref optional)\n  due_date: str | None      — YYYY-MM-DD\n  doc_number: str | None    — invoice number (auto-assigned by QB if omitted)\n  email: str | None         — patient email to pre-populate; send separately\n  memo: str | None          — customer-visible memo","operationId":"create_invoice_quickbooks_invoices_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["quickbooks"],"summary":"List Invoices","operationId":"list_invoices_quickbooks_invoices_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/invoices/{invoice_id}":{"get":{"tags":["quickbooks"],"summary":"Get Invoice","operationId":"get_invoice_quickbooks_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/invoices/{invoice_id}/send":{"post":{"tags":["quickbooks"],"summary":"Send Invoice","description":"Email the invoice to the patient. Payload: {email: str}","operationId":"send_invoice_quickbooks_invoices__invoice_id__send_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/invoices/{invoice_id}/void":{"post":{"tags":["quickbooks"],"summary":"Void Invoice","operationId":"void_invoice_quickbooks_invoices__invoice_id__void_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/invoices/{invoice_id}/record-payment":{"post":{"tags":["quickbooks"],"summary":"Record Cash Check Payment","description":"Record a cash or check payment against a QB invoice via the Accounting API.\nDoes NOT use the Payments API — no card tokenization involved.\n\nPayload: {amount, method: \"Cash\"|\"Check\", reference_number?, memo?}","operationId":"record_cash_check_payment_quickbooks_invoices__invoice_id__record_payment_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/invoices/{invoice_id}/line-items":{"get":{"tags":["quickbooks"],"summary":"Get Invoice Line Items","description":"Return the BillingChargeV2 line items tracked in this invoice.","operationId":"get_invoice_line_items_quickbooks_invoices__invoice_id__line_items_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/invoices/{invoice_id}/refresh":{"post":{"tags":["quickbooks"],"summary":"Refresh Invoice","description":"Re-pull invoice state from QB and update local record.","operationId":"refresh_invoice_quickbooks_invoices__invoice_id__refresh_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/patients/{patient_id}/generate-invoice":{"post":{"tags":["quickbooks"],"summary":"Generate Invoice From Charges","description":"Auto-generate a QB invoice from all unbilled open charges for a patient.\n\nQueries BillingChargeV2 for charges with status \"open\" and a non-zero\npatient_responsibility_amount that are not already referenced in an\nexisting QuickBooksInvoice. Each charge becomes a QB line item using\nits description, code, and service date.","operationId":"generate_invoice_from_charges_quickbooks_patients__patient_id__generate_invoice_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/patients/{patient_id}/consolidate-invoices":{"post":{"tags":["quickbooks"],"summary":"Consolidate Patient Invoices","description":"Merge all open invoices for a patient into a single QB invoice, then void\nthe originals. Requires at least 2 open invoices.","operationId":"consolidate_patient_invoices_quickbooks_patients__patient_id__consolidate_invoices_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/payments/config":{"get":{"tags":["quickbooks"],"summary":"Payments Config","description":"Return the QB.js initialization config for this clinic.\n\nThe frontend uses this to bootstrap Intuit's hosted payment fields.\nOnly the public client_id and environment flag are returned — never the\nclient_secret or any tokens.","operationId":"payments_config_quickbooks_payments_config_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/patients/{patient_id}/payment-methods":{"post":{"tags":["quickbooks"],"summary":"Add Payment Method","description":"Store a tokenized card or bank account for a patient.\n\nPayload:\n  token: str         — single-use token from QB.js hosted fields\n  pm_type: str       — \"card\" | \"ach\"\n  nickname: str | None   — patient-supplied label (\"HSA card\", etc.)\n\nRaw card/account numbers must never be sent here — only the QB.js token.\nThe QB API stores the payment method and returns display-safe metadata\n(last4, card brand) which is all we persist.","operationId":"add_payment_method_quickbooks_patients__patient_id__payment_methods_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["quickbooks"],"summary":"List Payment Methods","description":"List all active stored payment methods for a patient.\n\nReturns display-safe metadata only (last4, brand). No card numbers or\naccount numbers are ever returned by this endpoint or stored in the DB.","operationId":"list_payment_methods_quickbooks_patients__patient_id__payment_methods_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/patients/{patient_id}/payment-methods/{pm_id}":{"patch":{"tags":["quickbooks"],"summary":"Update Payment Method","description":"Update nickname or set as default. Cannot change card/account details.","operationId":"update_payment_method_quickbooks_patients__patient_id__payment_methods__pm_id__patch","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"pm_id","in":"path","required":true,"schema":{"type":"string","title":"Pm Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["quickbooks"],"summary":"Remove Payment Method","description":"Remove a stored payment method from QB and mark it inactive locally.","operationId":"remove_payment_method_quickbooks_patients__patient_id__payment_methods__pm_id__delete","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"pm_id","in":"path","required":true,"schema":{"type":"string","title":"Pm Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/portal/{patient_id}/invoices":{"get":{"tags":["quickbooks"],"summary":"Portal Patient Invoices","description":"Return open invoices for a patient — used by the patient portal.\n\nReturns invoices with status draft, sent, or partial (i.e. anything with\na non-zero balance that the patient can pay).","operationId":"portal_patient_invoices_quickbooks_portal__patient_id__invoices_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/portal/{patient_id}/pay":{"post":{"tags":["quickbooks"],"summary":"Portal Pay Invoice","description":"Patient portal: pay an invoice using a stored payment method or a new token.\n\nPayload (one of):\n  payment_method_id: str   — Prometheus stored PM id (no re-entry of card details)\n  token: str               — new single-use QB.js token (guest / no saved method)\nPlus:\n  invoice_id: str          — Prometheus QB invoice id to pay\n  amount: str | None       — partial payment amount; omit to pay full balance","operationId":"portal_pay_invoice_quickbooks_portal__patient_id__pay_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/payments/charge":{"post":{"tags":["quickbooks"],"summary":"Process Charge","description":"Process a card or ACH charge through QB Payments API.\n\nPayload:\n  patient_id: str        — Prometheus patient UUID\n  token: str             — QB tokenized card or bank account\n  amount: str            — e.g. \"125.00\"\n  payment_method: str    — \"card\" | \"ach\"\n  qb_invoice_id: str | None  — Prometheus qb_invoice id to link (optional)\n  description: str | None","operationId":"process_charge_quickbooks_payments_charge_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/payments/charges/{charge_id}":{"get":{"tags":["quickbooks"],"summary":"Get Charge","operationId":"get_charge_quickbooks_payments_charges__charge_id__get","parameters":[{"name":"charge_id","in":"path","required":true,"schema":{"type":"string","title":"Charge Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/payments/charges/{charge_id}/refund":{"post":{"tags":["quickbooks"],"summary":"Refund Charge","description":"Refund a charge (full or partial).\nPayload: {amount: str | None}  — omit for full refund.","operationId":"refund_charge_quickbooks_payments_charges__charge_id__refund_post","parameters":[{"name":"charge_id","in":"path","required":true,"schema":{"type":"string","title":"Charge Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/sync/accounts":{"post":{"tags":["quickbooks"],"summary":"Sync Accounts","description":"Pull chart of accounts from QB and cache locally.","operationId":"sync_accounts_quickbooks_sync_accounts_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/accounts":{"get":{"tags":["quickbooks"],"summary":"List Accounts","operationId":"list_accounts_quickbooks_accounts_get","parameters":[{"name":"account_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/reports/profit-and-loss":{"get":{"tags":["quickbooks"],"summary":"Profit And Loss Report","description":"Fetch a Profit & Loss report from QuickBooks.\nDefaults to year-to-date if no dates supplied.\n\nReturns structured sections (Income, Expenses, NetIncome, etc.) with\nper-account line items — suitable for rendering a P&L summary view.","operationId":"profit_and_loss_report_quickbooks_reports_profit_and_loss_get","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"accounting_method","in":"query","required":false,"schema":{"type":"string","default":"Accrual","title":"Accounting Method"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/reports/aged-receivables":{"get":{"tags":["quickbooks"],"summary":"Aged Receivables Report","description":"Fetch a live AgedReceivableDetail report from QuickBooks.\nReturns open invoice rows with pre-computed aging buckets and a bucket summary.\nDefaults to today if no as_of_date supplied.","operationId":"aged_receivables_report_quickbooks_reports_aged_receivables_get","parameters":[{"name":"as_of_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As Of Date"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/sync/invoices":{"post":{"tags":["quickbooks"],"summary":"Sync Invoices","description":"Pull QB invoices created/modified since a date and upsert local records.\nPayload: {from_date: \"YYYY-MM-DD\", full_sync: bool}\nfull_sync=true uses a 2-year lookback; otherwise defaults to last 30 days.\nImports all QBO invoices regardless of whether they originated in Prometheus.","operationId":"sync_invoices_quickbooks_sync_invoices_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/sync/payments":{"post":{"tags":["quickbooks"],"summary":"Sync Qb Payments","description":"Pull QB Payment records and update linked invoice balances.\nPayload: {from_date: \"YYYY-MM-DD\"}","operationId":"sync_qb_payments_quickbooks_sync_payments_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/insurance-payments/push":{"post":{"tags":["quickbooks"],"summary":"Push Insurance Payments","description":"Push unlinked insurance payments (source=insurance_era / insurance_document) to QB\nas Deposit records in the configured insurance bank account.\n\nPayload: {payment_ids: list[str] | None} — omit to push all unpushed payments.","operationId":"push_insurance_payments_quickbooks_insurance_payments_push_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/insurance-payments/reconcile":{"post":{"tags":["quickbooks"],"summary":"Reconcile Insurance Payments","description":"Check QB Deposits we created for insurance payments and mark bank_reconciled_at\nwhen the deposit's TxnDate is at least 1 business day in the past (funds expected\nto have cleared).  Billing staff can also manually confirm via PATCH /insurance-payments/{id}.","operationId":"reconcile_insurance_payments_quickbooks_insurance_payments_reconcile_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/insurance-payments/{payment_id}/confirm":{"patch":{"tags":["quickbooks"],"summary":"Confirm Insurance Payment Bank Receipt","description":"Manually mark an insurance payment as confirmed in the bank.","operationId":"confirm_insurance_payment_bank_receipt_quickbooks_insurance_payments__payment_id__confirm_patch","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/insurance-payments":{"get":{"tags":["quickbooks"],"summary":"List Insurance Payments","description":"List insurance payments with their QB deposit and bank reconciliation status.","operationId":"list_insurance_payments_quickbooks_insurance_payments_get","parameters":[{"name":"reconciled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reconciled"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/sales-receipts":{"post":{"tags":["quickbooks"],"summary":"Create Sales Receipt","description":"Record a direct patient payment (no invoice) as a QB SalesReceipt.\nUseful for copays collected at time of service.\n\nPayload:\n  patient_id: str\n  lines: list[dict]  — same format as invoice lines\n  txn_date: str | None    — YYYY-MM-DD\n  deposit_account_id: str | None  — QB account to deposit to\n  email: str | None","operationId":"create_sales_receipt_quickbooks_sales_receipts_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/credit-memos":{"post":{"tags":["quickbooks"],"summary":"Create Credit Memo","description":"Create a QB CreditMemo for insurance adjustments or patient refunds.\n\nPayload:\n  patient_id: str\n  lines: list[dict]\n  txn_date: str | None\n  memo: str | None","operationId":"create_credit_memo_quickbooks_credit_memos_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quickbooks/webhooks":{"post":{"tags":["quickbooks"],"summary":"Handle Webhook","description":"Receive QB webhook notifications. Verifies HMAC-SHA256 signature,\nthen fetches the updated entity from QB to reflect changes locally.\n\nQB webhook payloads are trigger-only — they don't contain the changed data.","operationId":"handle_webhook_quickbooks_webhooks_post","parameters":[{"name":"intuit-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intuit-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/chargemaster/meta":{"get":{"tags":["chargemaster"],"summary":"Get Meta","operationId":"get_meta_billing_chargemaster_meta_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/chargemaster":{"get":{"tags":["chargemaster"],"summary":"List Chargemaster","operationId":"list_chargemaster_billing_chargemaster_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search code or name","title":"Q"},"description":"Search code or name"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"type_of_service","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Service"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"is_custom","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Custom"}},{"name":"has_charge","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only codes where clinic_charge IS NOT NULL","title":"Has Charge"},"description":"Only codes where clinic_charge IS NOT NULL"},{"name":"no_charge","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only codes where clinic_charge IS NULL","title":"No Charge"},"description":"Only codes where clinic_charge IS NULL"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChargemasterEntryResponse"},"title":"Response List Chargemaster Billing Chargemaster Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chargemaster"],"summary":"Create Entry","operationId":"create_entry_billing_chargemaster_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargemasterCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargemasterEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/chargemaster/{entry_id}":{"patch":{"tags":["chargemaster"],"summary":"Patch Entry","operationId":"patch_entry_billing_chargemaster__entry_id__patch","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargemasterPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargemasterEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chargemaster"],"summary":"Delete Entry","operationId":"delete_entry_billing_chargemaster__entry_id__delete","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/chargemaster/bulk-update":{"post":{"tags":["chargemaster"],"summary":"Bulk Update","operationId":"bulk_update_billing_chargemaster_bulk_update_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/chargemaster/import-tebra":{"post":{"tags":["chargemaster"],"summary":"Import From Tebra","operationId":"import_from_tebra_billing_chargemaster_import_tebra_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFromTebraRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/chargemaster/import-file":{"post":{"tags":["chargemaster"],"summary":"Import From File","description":"Upload a Kareo/Tebra fee schedule (XLS or XLSX) and upsert into the chargemaster.\n\nExpects the standard 4-column Kareo layout: Procedure Code | Modifier | Fee | Description.\nRows 0 (title) and 1 (header) are skipped automatically.\nZero-dollar and blank fees are stored as NULL so they don't overwrite existing rates.","operationId":"import_from_file_billing_chargemaster_import_file_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_from_file_billing_chargemaster_import_file_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/chargemaster/{entry_id}/plan-rates/{plan_name}":{"put":{"tags":["chargemaster"],"summary":"Upsert Plan Rate","operationId":"upsert_plan_rate_billing_chargemaster__entry_id__plan_rates__plan_name__put","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"plan_name","in":"path","required":true,"schema":{"type":"string","title":"Plan Name"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanRateUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Plan Rate Billing Chargemaster  Entry Id  Plan Rates  Plan Name  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chargemaster"],"summary":"Delete Plan Rate","operationId":"delete_plan_rate_billing_chargemaster__entry_id__plan_rates__plan_name__delete","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"plan_name","in":"path","required":true,"schema":{"type":"string","title":"Plan Name"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/hcpcs/search":{"get":{"tags":["hcpcs"],"summary":"Search Hcpcs","description":"Search HCPCS codes. Returns from local cache; falls back to NLM API on miss.","operationId":"search_hcpcs_billing_hcpcs_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Code prefix or description keywords","title":"Q"},"description":"Code prefix or description keywords"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/hcpcs/{code}":{"get":{"tags":["hcpcs"],"summary":"Get Hcpcs Code","description":"Return a single HCPCS code by exact code string. Fetches from NLM if not cached.","operationId":"get_hcpcs_code_billing_hcpcs__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/hcpcs/refresh":{"post":{"tags":["hcpcs"],"summary":"Refresh Cache","description":"Force a cache refresh from NLM for the given query term.","operationId":"refresh_cache_billing_hcpcs_refresh_post","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Q"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ApcmBatchRunRequest":{"properties":{"service_month":{"type":"string","format":"date","title":"Service Month"}},"type":"object","required":["service_month"],"title":"ApcmBatchRunRequest"},"ApcmBatchRunResponse":{"properties":{"service_month":{"type":"string","title":"Service Month"},"generated":{"type":"integer","title":"Generated"},"care_plan_missing":{"type":"integer","title":"Care Plan Missing"},"skipped_already_run":{"type":"integer","title":"Skipped Already Run"},"total_enrollments":{"type":"integer","title":"Total Enrollments"}},"type":"object","required":["service_month","generated","care_plan_missing","skipped_already_run","total_enrollments"],"title":"ApcmBatchRunResponse"},"ApcmEnrollRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"g_code":{"type":"string","title":"G Code"},"plan_type":{"type":"string","title":"Plan Type"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"is_qmb":{"type":"boolean","title":"Is Qmb","default":false},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","g_code","plan_type"],"title":"ApcmEnrollRequest"},"ApcmEnrollmentResponse":{"properties":{"enrollment_id":{"type":"string","title":"Enrollment Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"enrolled_at":{"type":"string","format":"date-time","title":"Enrolled At"},"enrolled_by_user_id":{"type":"string","title":"Enrolled By User Id"},"status":{"type":"string","title":"Status"},"g_code":{"type":"string","title":"G Code"},"plan_type":{"type":"string","title":"Plan Type"},"is_qmb":{"type":"boolean","title":"Is Qmb"},"care_plan_active":{"type":"boolean","title":"Care Plan Active"},"care_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Care Plan Id"},"care_plan_last_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Care Plan Last Updated At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suspended At"},"terminated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminated At"},"termination_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["enrollment_id","clinic_id","patient_id","enrolled_at","enrolled_by_user_id","status","g_code","plan_type","is_qmb","care_plan_active","created_at","updated_at"],"title":"ApcmEnrollmentResponse"},"ApcmEnrollmentUpdateRequest":{"properties":{"g_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"G Code"},"is_qmb":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Qmb"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ApcmEnrollmentUpdateRequest"},"ApcmMonthlyRecordResponse":{"properties":{"record_id":{"type":"string","title":"Record Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"enrollment_id":{"type":"string","title":"Enrollment Id"},"service_month":{"type":"string","format":"date","title":"Service Month"},"g_code":{"type":"string","title":"G Code"},"status":{"type":"string","title":"Status"},"care_plan_verified":{"type":"boolean","title":"Care Plan Verified"},"care_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Care Plan Id"},"draft_claim_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Claim Id"},"charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Charge Id"},"run_by_user_id":{"type":"string","title":"Run By User Id"},"run_at":{"type":"string","format":"date-time","title":"Run At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["record_id","clinic_id","patient_id","enrollment_id","service_month","g_code","status","care_plan_verified","run_by_user_id","run_at","created_at"],"title":"ApcmMonthlyRecordResponse"},"ApcmSuspendRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ApcmSuspendRequest"},"ApcmTerminateRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ApcmTerminateRequest"},"ApprovePayload":{"properties":{"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"create_auto_rule":{"type":"boolean","title":"Create Auto Rule","default":true}},"type":"object","title":"ApprovePayload"},"BillingAccountCreateV2":{"properties":{"account_type":{"type":"string","title":"Account Type","default":"individual"},"guarantor_patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantor Patient Id"},"guarantor_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantor Contact Name"},"guarantor_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantor Contact Email"},"guarantor_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantor Contact Phone"},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","title":"BillingAccountCreateV2"},"BillingAccountMemberCreateV2":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"relationship_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Type"},"is_guarantor":{"type":"boolean","title":"Is Guarantor","default":false}},"type":"object","required":["patient_id"],"title":"BillingAccountMemberCreateV2"},"BillingCategoryAssignmentItemV2":{"properties":{"category_code":{"type":"string","title":"Category Code"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json"}},"type":"object","required":["category_code"],"title":"BillingCategoryAssignmentItemV2"},"BillingCategoryAssignmentsReplaceV2":{"properties":{"assignments":{"items":{"$ref":"#/components/schemas/BillingCategoryAssignmentItemV2"},"type":"array","title":"Assignments"}},"type":"object","title":"BillingCategoryAssignmentsReplaceV2"},"BillingCategoryBulkAssignV2":{"properties":{"patient_ids":{"items":{"type":"string"},"type":"array","title":"Patient Ids"},"category_codes":{"items":{"type":"string"},"type":"array","title":"Category Codes"},"metadata_by_category":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Metadata By Category"}},"type":"object","title":"BillingCategoryBulkAssignV2"},"BillingChargeCreateV2":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"source_module":{"type":"string","title":"Source Module","default":"billing"},"category":{"type":"string","title":"Category"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"quantity":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Quantity","default":"1"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount","default":"0"},"patient_responsibility_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Patient Responsibility Amount"},"insurance_expected_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Insurance Expected Amount"},"credit_eligible":{"type":"boolean","title":"Credit Eligible","default":true},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Service Date"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"status":{"type":"string","title":"Status","default":"open"},"related_entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Entity Type"},"related_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Entity Id"},"provider_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider User Id"},"clinic_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Location Id"},"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"}},"type":"object","required":["patient_id","category"],"title":"BillingChargeCreateV2"},"BillingPaymentCreateV2":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"source":{"type":"string","title":"Source","default":"patient"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received At"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Number"},"applied_as_credit":{"type":"boolean","title":"Applied As Credit","default":false}},"type":"object","required":["amount"],"title":"BillingPaymentCreateV2"},"BillingTaskActionRequest":{"properties":{"action":{"type":"string","title":"Action"},"assigned_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"},"escalation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Reason"}},"type":"object","required":["action"],"title":"BillingTaskActionRequest"},"BillingTaskCountResponse":{"properties":{"total":{"type":"integer","title":"Total"},"open":{"type":"integer","title":"Open"},"in_progress":{"type":"integer","title":"In Progress"},"escalated":{"type":"integer","title":"Escalated"}},"type":"object","required":["total","open","in_progress","escalated"],"title":"BillingTaskCountResponse"},"BillingTaskCreateRequest":{"properties":{"task_type":{"type":"string","title":"Task Type"},"title":{"type":"string","title":"Title"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"type":"string","title":"Priority","default":"normal"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"assigned_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"},"related_entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Entity Type"},"related_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Entity Id"}},"type":"object","required":["task_type","title"],"title":"BillingTaskCreateRequest"},"BillingTaskResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"task_type":{"type":"string","title":"Task Type"},"status":{"type":"string","title":"Status"},"priority":{"type":"string","title":"Priority"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"assigned_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"},"related_entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Entity Type"},"related_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Entity Id"},"source_event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Event Type"},"custom_definition_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Definition Id"},"escalated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Escalated At"},"escalation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Reason"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["task_id","clinic_id","task_type","status","priority","title","created_at","updated_at"],"title":"BillingTaskResponse"},"BillingTaskUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"assigned_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"}},"type":"object","title":"BillingTaskUpdateRequest"},"Body_import_from_file_billing_chargemaster_import_file_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_from_file_billing_chargemaster_import_file_post"},"Body_submit_claim_attachment_billing_ui_claims__claim_id__submit_claim_attachment_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"document_type_code":{"type":"string","title":"Document Type Code"},"ticket_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Number"},"claim_action_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Action Identifier"}},"type":"object","required":["file","document_type_code"],"title":"Body_submit_claim_attachment_billing_ui_claims__claim_id__submit_claim_attachment_post"},"Body_submit_claim_attachment_standalone_billing_ui_submit_claim_attachment_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"payer_id":{"type":"string","title":"Payer Id"},"document_type_code":{"type":"string","title":"Document Type Code"},"ticket_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Number"},"claim_action_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Action Identifier"}},"type":"object","required":["file","payer_id","document_type_code"],"title":"Body_submit_claim_attachment_standalone_billing_ui_submit_claim_attachment_post"},"Body_upload_and_create_intake_record_billing_document_intake_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"source_context":{"type":"string","title":"Source Context","default":"billing"},"document_type":{"type":"string","title":"Document Type","default":"other"},"confirmed_module":{"type":"string","title":"Confirmed Module","default":""},"confirmed_doc_type":{"type":"string","title":"Confirmed Doc Type","default":""}},"type":"object","required":["file"],"title":"Body_upload_and_create_intake_record_billing_document_intake_upload_post"},"Body_upload_billing_document_billing_uploads_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"source_context":{"type":"string","title":"Source Context","default":"billing"},"document_type":{"type":"string","title":"Document Type","default":"other"}},"type":"object","required":["file"],"title":"Body_upload_billing_document_billing_uploads_post"},"BulkUpdateRequest":{"properties":{"ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ids"},"operation":{"type":"string","title":"Operation"},"pct":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Pct"},"use_facility_rate":{"type":"boolean","title":"Use Facility Rate","default":false},"charge":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Charge"}},"type":"object","required":["operation"],"title":"BulkUpdateRequest"},"ChargemasterCreate":{"properties":{"procedure_code":{"type":"string","title":"Procedure Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"type_of_service":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Service"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"default_units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Units"},"ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc"},"drug_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drug Name"},"clinic_charge":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Clinic Charge"},"charge_effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Charge Effective Date"}},"type":"object","required":["procedure_code","name"],"title":"ChargemasterCreate"},"ChargemasterEntryResponse":{"properties":{"id":{"type":"string","title":"Id"},"procedure_code":{"type":"string","title":"Procedure Code"},"billable_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billable Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"official_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Name"},"local_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"official_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"type_of_service":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Service"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"default_units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Units"},"ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc"},"drug_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drug Name"},"amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount"},"clinic_charge":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Clinic Charge"},"medicare_national_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Medicare National Rate"},"medicare_facility_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Medicare Facility Rate"},"medicare_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Medicare Pct"},"charge_effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Charge Effective Date"},"is_custom":{"type":"boolean","title":"Is Custom"},"is_active":{"type":"boolean","title":"Is Active"},"tebra_code_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tebra Code Id"},"plan_overrides":{"items":{"$ref":"#/components/schemas/PlanOverrideResponse"},"type":"array","title":"Plan Overrides","default":[]}},"type":"object","required":["id","procedure_code","is_custom","is_active"],"title":"ChargemasterEntryResponse"},"ChargemasterPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"type_of_service":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Service"},"revenue_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Code"},"default_units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Units"},"ndc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc"},"drug_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drug Name"},"clinic_charge":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Clinic Charge"},"medicare_national_rate":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Medicare National Rate"},"medicare_facility_rate":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Medicare Facility Rate"},"medicare_pct":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Medicare Pct"},"charge_effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Charge Effective Date"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"ChargemasterPatch"},"CheckBenefitCategoryRequest":{"properties":{"search_phrase":{"type":"string","title":"Search Phrase"}},"type":"object","required":["search_phrase"],"title":"CheckBenefitCategoryRequest"},"CheckBenefitLanguageRequest":{"properties":{"eligibility_transaction_id":{"type":"string","title":"Eligibility Transaction Id"},"benefit_id":{"type":"string","title":"Benefit Id"}},"type":"object","required":["eligibility_transaction_id","benefit_id"],"title":"CheckBenefitLanguageRequest"},"ClaimFixHistoryCreateRequest":{"properties":{"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"original_charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Charge Id"},"original_draft_claim_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Draft Claim Id"},"original_procedure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Procedure Code"},"updated_procedure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated Procedure Code"},"carc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carc Code"},"rarc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarc Code"},"fix_type":{"type":"string","title":"Fix Type"},"fix_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix Description"},"outcome":{"type":"string","title":"Outcome","default":"pending"}},"type":"object","required":["fix_type"],"title":"ClaimFixHistoryCreateRequest"},"ClaimKnowledgeImportRequest":{"properties":{"force":{"type":"boolean","title":"Force","default":false},"snapshot_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Dir"}},"type":"object","title":"ClaimKnowledgeImportRequest"},"ClaimKnowledgeSearchRequest":{"properties":{"rejection_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Message"},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"carc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carc"},"rarc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarc"},"patient_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Patient Context"}},"type":"object","title":"ClaimKnowledgeSearchRequest"},"ClaimMetaUpdate":{"properties":{"service_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date"},"place_of_service_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service Code"},"payer_directory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"},"patient_insurance_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Insurance Profile Id"},"secondary_insurance_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Insurance Profile Id"},"provider_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider User Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ClaimMetaUpdate"},"ClinicExpenditureCreateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"service_type":{"type":"string","title":"Service Type"},"cost_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Cost Amount"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"service_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Date"},"related_charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Charge Id"}},"type":"object","required":["patient_id","service_type","cost_amount"],"title":"ClinicExpenditureCreateRequest"},"ClinicLocationCreate":{"properties":{"name":{"type":"string","title":"Name"},"billing_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Name"},"bills_separately":{"type":"boolean","title":"Bills Separately","default":false},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"npi_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Npi Verified At"},"npi_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Npi Data"},"taxonomy_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Code"},"taxonomy_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"},"tebra_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tebra Source Id"},"clia_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clia Number"},"clia_issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Clia Issued Date"},"clia_expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Clia Expiration Date"},"medicare_ptan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Ptan"},"medicare_ccn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Ccn"},"operating_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Operating Hours"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fax"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"is_virtual_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Virtual Only"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"},"appointment_scheduling_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Scheduling Website"},"phone_extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Extension"},"tax_id_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id Type"},"type_of_practice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Practice"},"group_medicare_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Medicare Number"},"group_medicaid_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Medicaid Number"},"accepts_workers_comp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepts Workers Comp"},"phone_24_7":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Phone 24 7"},"caqh_accessibility":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Accessibility"},"caqh_languages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Languages"},"caqh_telehealth":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Telehealth"},"caqh_services":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Services"},"caqh_billing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Billing"},"caqh_office_personnel":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Office Personnel"},"caqh_mailing_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Mailing Address"},"caqh_phone_coverage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Phone Coverage"}},"type":"object","required":["name"],"title":"ClinicLocationCreate"},"ClinicLocationResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"name":{"type":"string","title":"Name"},"billing_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Name"},"bills_separately":{"type":"boolean","title":"Bills Separately"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"npi_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Npi Verified At"},"npi_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Npi Data"},"taxonomy_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Code"},"taxonomy_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"},"tebra_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tebra Source Id"},"clia_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clia Number"},"clia_issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Clia Issued Date"},"clia_expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Clia Expiration Date"},"medicare_ptan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Ptan"},"medicare_ccn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Ccn"},"operating_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Operating Hours"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fax"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"is_primary":{"type":"boolean","title":"Is Primary"},"is_active":{"type":"boolean","title":"Is Active"},"provider_count":{"type":"integer","title":"Provider Count","default":0},"is_virtual_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Virtual Only"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"},"appointment_scheduling_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Scheduling Website"},"phone_extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Extension"},"tax_id_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id Type"},"type_of_practice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Practice"},"group_medicare_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Medicare Number"},"group_medicaid_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Medicaid Number"},"accepts_workers_comp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepts Workers Comp"},"phone_24_7":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Phone 24 7"},"caqh_accessibility":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Accessibility"},"caqh_languages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Languages"},"caqh_telehealth":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Telehealth"},"caqh_services":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Services"},"caqh_billing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Billing"},"caqh_office_personnel":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Office Personnel"},"caqh_mailing_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Mailing Address"},"caqh_phone_coverage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Phone Coverage"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","clinic_id","name","bills_separately","is_primary","is_active","created_at","updated_at"],"title":"ClinicLocationResponse"},"ClinicLocationUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"billing_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Name"},"bills_separately":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bills Separately"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"npi_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Npi Verified At"},"npi_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Npi Data"},"taxonomy_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Code"},"taxonomy_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"},"tebra_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tebra Source Id"},"clia_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clia Number"},"clia_issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Clia Issued Date"},"clia_expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Clia Expiration Date"},"medicare_ptan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Ptan"},"medicare_ccn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Ccn"},"operating_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Operating Hours"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fax"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_virtual_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Virtual Only"},"county":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"},"appointment_scheduling_website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Scheduling Website"},"phone_extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Extension"},"tax_id_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id Type"},"type_of_practice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Practice"},"group_medicare_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Medicare Number"},"group_medicaid_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Medicaid Number"},"accepts_workers_comp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepts Workers Comp"},"phone_24_7":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Phone 24 7"},"caqh_accessibility":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Accessibility"},"caqh_languages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Languages"},"caqh_telehealth":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Telehealth"},"caqh_services":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Services"},"caqh_billing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Billing"},"caqh_office_personnel":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Office Personnel"},"caqh_mailing_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Mailing Address"},"caqh_phone_coverage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Phone Coverage"}},"type":"object","title":"ClinicLocationUpdate"},"ClinicProfileProvisionRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"billing_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Npi"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fax"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","required":["clinic_id"],"title":"ClinicProfileProvisionRequest"},"ClinicProfileProvisionResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"billing_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Npi"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fax"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["clinic_id","created"],"title":"ClinicProfileProvisionResponse"},"CmeActivityCreate":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"requirement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirement Id"},"activity_type":{"type":"string","title":"Activity Type"},"title":{"type":"string","title":"Title"},"provider_organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Organization"},"completion_date":{"type":"string","format":"date","title":"Completion Date"},"credits_earned":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Credits Earned"},"credit_type":{"type":"string","title":"Credit Type","default":"AMA_PRA_1"},"cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Cost","default":"0"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"accreditation_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accreditation Number"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["entity_id","activity_type","title","completion_date","credits_earned"],"title":"CmeActivityCreate"},"CmeActivityResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"type":"string","title":"Entity Id"},"requirement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirement Id"},"activity_type":{"type":"string","title":"Activity Type"},"title":{"type":"string","title":"Title"},"provider_organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Organization"},"completion_date":{"type":"string","format":"date","title":"Completion Date"},"credits_earned":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Credits Earned"},"credit_type":{"type":"string","title":"Credit Type"},"cost":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Cost"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"accreditation_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accreditation Number"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","clinic_id","entity_id","activity_type","title","completion_date","credits_earned","credit_type","cost","created_at"],"title":"CmeActivityResponse"},"CmeRequirementCreate":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"credential_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Id"},"requirement_name":{"type":"string","title":"Requirement Name"},"required_hours":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Required Hours"},"period_months":{"type":"integer","title":"Period Months"},"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"}},"type":"object","required":["entity_id","requirement_name","required_hours","period_months","period_start","period_end"],"title":"CmeRequirementCreate"},"CmeRequirementResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"type":"string","title":"Entity Id"},"credential_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Id"},"requirement_name":{"type":"string","title":"Requirement Name"},"required_hours":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Required Hours"},"period_months":{"type":"integer","title":"Period Months"},"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"hours_completed":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Hours Completed"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","clinic_id","entity_id","requirement_name","required_hours","period_months","period_start","period_end","hours_completed","is_active","created_at"],"title":"CmeRequirementResponse"},"CodeKnowledgeSearchRequest":{"properties":{"carc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carc"},"rarc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarc"},"procedure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Procedure Code"},"procedure_code_system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Procedure Code System"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer"},"rejection_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Message"}},"type":"object","title":"CodeKnowledgeSearchRequest"},"CodeKnowledgeTroubleshootRequest":{"properties":{"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer"},"rejection_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Message"},"procedure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Procedure Code"},"procedure_code_system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Procedure Code System"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"carc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carc"},"rarc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rarc"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Charge Id"},"draft_claim_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Claim Id"}},"type":"object","title":"CodeKnowledgeTroubleshootRequest"},"CredentialCreate":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"credential_type_id":{"type":"string","title":"Credential Type Id"},"credential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Number"},"issuing_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing Authority"},"issuing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing State"},"issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Issued Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"renewal_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Renewal Date"},"status":{"type":"string","title":"Status","default":"active"},"annual_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"cost_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Notes"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["entity_id","credential_type_id"],"title":"CredentialCreate"},"CredentialResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"type":"string","title":"Entity Id"},"credential_type_id":{"type":"string","title":"Credential Type Id"},"credential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Number"},"issuing_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing Authority"},"issuing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing State"},"issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Issued Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"renewal_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Renewal Date"},"status":{"type":"string","title":"Status"},"annual_cost":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"cost_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Notes"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"last_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Verified At"},"verified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified By"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"credential_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Type Name"},"credential_type_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Type Category"}},"type":"object","required":["id","clinic_id","entity_id","credential_type_id","status","created_by","created_at","updated_at"],"title":"CredentialResponse"},"CredentialTypeDefinitionCreate":{"properties":{"name":{"type":"string","title":"Name"},"entity_types":{"items":{"type":"string"},"type":"array","title":"Entity Types"},"category":{"type":"string","title":"Category"},"reminder_thresholds":{"items":{"type":"integer"},"type":"array","title":"Reminder Thresholds","default":[90,60,30]},"requires_cost_tracking":{"type":"boolean","title":"Requires Cost Tracking","default":false},"requires_document":{"type":"boolean","title":"Requires Document","default":false},"cme_required_hours":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cme Required Hours"},"cme_period_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cme Period Months"}},"type":"object","required":["name","entity_types","category"],"title":"CredentialTypeDefinitionCreate"},"CredentialTypeDefinitionResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"name":{"type":"string","title":"Name"},"entity_types":{"items":{"type":"string"},"type":"array","title":"Entity Types"},"category":{"type":"string","title":"Category"},"reminder_thresholds":{"items":{"type":"integer"},"type":"array","title":"Reminder Thresholds"},"requires_cost_tracking":{"type":"boolean","title":"Requires Cost Tracking"},"requires_document":{"type":"boolean","title":"Requires Document"},"cme_required_hours":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cme Required Hours"},"cme_period_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cme Period Months"},"is_system_default":{"type":"boolean","title":"Is System Default"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","entity_types","category","reminder_thresholds","requires_cost_tracking","requires_document","is_system_default","is_active","created_at"],"title":"CredentialTypeDefinitionResponse"},"CredentialUpdate":{"properties":{"credential_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Number"},"issuing_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing Authority"},"issuing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing State"},"issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Issued Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"renewal_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Renewal Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"annual_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"cost_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Notes"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"CredentialUpdate"},"CredentialedEntityCreate":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"name_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Suffix"},"legal_name":{"type":"string","title":"Legal Name","default":""},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"credential_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Suffix"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"dea_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dea Number"},"medicare_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Number"},"medicaid_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicaid Number"},"ncpdp_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ncpdp Number"},"caqh_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caqh Provider Id"},"supervising_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supervising Entity Id"},"supervision_required":{"type":"boolean","title":"Supervision Required","default":false}},"type":"object","required":["entity_type"],"title":"CredentialedEntityCreate"},"CredentialedEntityResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_type":{"type":"string","title":"Entity Type"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"name_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Suffix"},"legal_name":{"type":"string","title":"Legal Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"credential_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Suffix"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"taxonomy_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Code"},"taxonomy_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"},"dea_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dea Number"},"dea_issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dea Issued Date"},"dea_expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dea Expiration Date"},"personal_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Phone"},"work_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Phone"},"work_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Email"},"personal_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Email"},"medicare_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Number"},"medicaid_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicaid Number"},"ncpdp_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ncpdp Number"},"owcp_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owcp Provider Id"},"fmcsa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fmcsa Id"},"npi_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Npi Verified At"},"npi_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Npi Data"},"caqh_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caqh Provider Id"},"caqh_last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Caqh Last Sync At"},"caqh_sync_status":{"type":"string","title":"Caqh Sync Status"},"supervising_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supervising Entity Id"},"supervision_required":{"type":"boolean","title":"Supervision Required"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","clinic_id","entity_type","legal_name","caqh_sync_status","supervision_required","is_active","created_at","updated_at"],"title":"CredentialedEntityResponse"},"CredentialedEntityUpdate":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"name_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Suffix"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"credential_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Suffix"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"dea_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dea Number"},"dea_issued_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dea Issued Date"},"dea_expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dea Expiration Date"},"personal_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Phone"},"work_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Phone"},"work_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Email"},"personal_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Email"},"medicare_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicare Number"},"medicaid_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medicaid Number"},"ncpdp_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ncpdp Number"},"owcp_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owcp Provider Id"},"fmcsa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fmcsa Id"},"caqh_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caqh Provider Id"},"supervising_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supervising Entity Id"},"supervision_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supervision Required"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"CredentialedEntityUpdate"},"CredentialingDashboardResponse":{"properties":{"total_active_entities":{"type":"integer","title":"Total Active Entities"},"expiring_30_days":{"type":"integer","title":"Expiring 30 Days"},"expiring_60_days":{"type":"integer","title":"Expiring 60 Days"},"expired":{"type":"integer","title":"Expired"},"contracts_pending_credentialing":{"type":"integer","title":"Contracts Pending Credentialing"},"caqh_needs_update":{"type":"integer","title":"Caqh Needs Update"},"open_tasks":{"type":"integer","title":"Open Tasks"}},"type":"object","required":["total_active_entities","expiring_30_days","expiring_60_days","expired","contracts_pending_credentialing","caqh_needs_update","open_tasks"],"title":"CredentialingDashboardResponse"},"CredentialingReminderResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"type":"string","title":"Entity Id"},"record_type":{"type":"string","title":"Record Type"},"record_id":{"type":"string","title":"Record Id"},"days_before_expiration":{"type":"integer","title":"Days Before Expiration"},"reminder_sent_at":{"type":"string","format":"date-time","title":"Reminder Sent At"},"sent_via":{"items":{"type":"string"},"type":"array","title":"Sent Via"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["id","clinic_id","entity_id","record_type","record_id","days_before_expiration","reminder_sent_at","sent_via"],"title":"CredentialingReminderResponse"},"CreditApplyRequestV2":{"properties":{"credit_id":{"type":"string","title":"Credit Id"},"charge_id":{"type":"string","title":"Charge Id"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"}},"type":"object","required":["credit_id","charge_id","amount"],"title":"CreditApplyRequestV2"},"CustomTaskDefinitionCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"task_title_template":{"type":"string","title":"Task Title Template"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"trigger_event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Event Type"},"conditions_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conditions Json"},"task_description_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Description Template"},"default_priority":{"type":"string","title":"Default Priority","default":"normal"},"default_due_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Due Days"}},"type":"object","required":["name","task_title_template"],"title":"CustomTaskDefinitionCreateRequest"},"CustomTaskDefinitionResponse":{"properties":{"definition_id":{"type":"string","title":"Definition Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"trigger_event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Event Type"},"conditions_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conditions Json"},"task_title_template":{"type":"string","title":"Task Title Template"},"task_description_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Description Template"},"default_priority":{"type":"string","title":"Default Priority"},"default_due_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Due Days"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["definition_id","clinic_id","name","task_title_template","default_priority","is_active","created_by_user_id","created_at","updated_at"],"title":"CustomTaskDefinitionResponse"},"CustomTaskDefinitionUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"trigger_event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Event Type"},"conditions_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conditions Json"},"task_title_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Title Template"},"task_description_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Description Template"},"default_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Priority"},"default_due_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Due Days"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"CustomTaskDefinitionUpdateRequest"},"DiagCreate":{"properties":{"icd10_code":{"type":"string","title":"Icd10 Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_principal":{"type":"boolean","title":"Is Principal","default":false}},"type":"object","required":["icd10_code"],"title":"DiagCreate"},"DiagUpdate":{"properties":{"icd10_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icd10 Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_principal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Principal"},"is_accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Accepted"}},"type":"object","title":"DiagUpdate"},"DiagnosisRuleUpsertRequest":{"properties":{"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"procedure_code":{"type":"string","title":"Procedure Code"},"procedure_code_system":{"type":"string","title":"Procedure Code System"},"diagnosis_code":{"type":"string","title":"Diagnosis Code"},"diagnosis_code_system":{"type":"string","title":"Diagnosis Code System","default":"ICD10CM"},"rule_type":{"type":"string","title":"Rule Type","default":"informational"},"evidence_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Source"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Confidence Score","default":"0.5000"}},"type":"object","required":["procedure_code","procedure_code_system","diagnosis_code"],"title":"DiagnosisRuleUpsertRequest"},"DocumentDispatchRequest":{"properties":{"record_id":{"type":"string","title":"Record Id"},"row_ids":{"items":{"type":"string"},"type":"array","title":"Row Ids"}},"type":"object","required":["record_id","row_ids"],"title":"DocumentDispatchRequest"},"DocumentIntakeCreateV2":{"properties":{"original_file_name":{"type":"string","title":"Original File Name"},"file_reference":{"type":"string","title":"File Reference"},"file_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Content Type"},"source_context":{"type":"string","title":"Source Context","default":"billing"},"document_type_predicted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Predicted"},"document_type_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Confirmed"},"classification_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Classification Confidence"},"extraction_meta_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extraction Meta Json"}},"type":"object","required":["original_file_name","file_reference"],"title":"DocumentIntakeCreateV2"},"DocumentIntakePatchV2":{"properties":{"document_type_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type Confirmed"},"review_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Status"},"posting_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Status"},"error_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error State"},"extraction_meta_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extraction Meta Json"},"routing_target_module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Target Module"}},"type":"object","title":"DocumentIntakePatchV2"},"DocumentMatchCreateV2":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"match_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Match Confidence"},"match_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Rationale"},"confirmed":{"type":"boolean","title":"Confirmed","default":true},"was_added_manually":{"type":"boolean","title":"Was Added Manually","default":true}},"type":"object","required":["patient_id"],"title":"DocumentMatchCreateV2"},"DocumentPostRequestV2":{"properties":{"allow_unvalidated":{"type":"boolean","title":"Allow Unvalidated","default":false}},"type":"object","title":"DocumentPostRequestV2"},"DocumentSearchRequest":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"from_date":{"type":"string","title":"From Date"},"to_date":{"type":"string","title":"To Date"},"categories":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Categories"},"patient_account_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Account Number"},"claim_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Number"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"},"check_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check Id"},"notification_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Id"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"}},"type":"object","required":["payer_id","from_date","to_date"],"title":"DocumentSearchRequest"},"DocumentServiceRowCreateV2":{"properties":{"patient_name_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Name Confirmed"},"patient_dob_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Patient Dob Confirmed"},"member_id_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Id Confirmed"},"patient_id_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id Confirmed"},"dos_start_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dos Start Confirmed"},"dos_end_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dos End Confirmed"},"service_description_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Description Confirmed"},"cpt_code_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpt Code Confirmed"},"allowed_amount_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Allowed Amount Confirmed"},"paid_amount_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Paid Amount Confirmed"},"patient_responsibility_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Patient Responsibility Confirmed"},"remark_codes_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark Codes Confirmed"},"payer_name_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name Confirmed"},"claim_number_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Number Confirmed"},"control_number_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Number Confirmed"},"vendor_name_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name Confirmed"},"total_cost_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Cost Confirmed"},"line_status":{"type":"string","title":"Line Status","default":"unreviewed"},"source_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Page"},"source_region_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Region Reference"}},"type":"object","title":"DocumentServiceRowCreateV2"},"DocumentServiceRowPatchV2":{"properties":{"patient_name_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Name Confirmed"},"patient_dob_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Patient Dob Confirmed"},"member_id_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Id Confirmed"},"patient_id_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id Confirmed"},"dos_start_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dos Start Confirmed"},"dos_end_confirmed":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dos End Confirmed"},"service_description_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Description Confirmed"},"cpt_code_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpt Code Confirmed"},"allowed_amount_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Allowed Amount Confirmed"},"paid_amount_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Paid Amount Confirmed"},"patient_responsibility_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Patient Responsibility Confirmed"},"remark_codes_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remark Codes Confirmed"},"payer_name_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name Confirmed"},"claim_number_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Number Confirmed"},"control_number_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Number Confirmed"},"vendor_name_confirmed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name Confirmed"},"total_cost_confirmed":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Cost Confirmed"},"line_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Status"},"source_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Page"},"source_region_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Region Reference"}},"type":"object","title":"DocumentServiceRowPatchV2"},"DraftClaimPatchV2":{"properties":{"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"claim_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Status"},"billed_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billed By User Id"}},"type":"object","title":"DraftClaimPatchV2"},"EraUploadV2":{"properties":{"file_object_key":{"type":"string","title":"File Object Key"}},"type":"object","required":["file_object_key"],"title":"EraUploadV2"},"ExternalInvoiceUploadV2":{"properties":{"vendor_name":{"type":"string","title":"Vendor Name"},"file_object_key":{"type":"string","title":"File Object Key"}},"type":"object","required":["vendor_name","file_object_key"],"title":"ExternalInvoiceUploadV2"},"FailedPaymentCreateV2":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"payment_method_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method Type"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"outreach_status":{"type":"string","title":"Outreach Status","default":"pending"}},"type":"object","title":"FailedPaymentCreateV2"},"GetClaimLineActionRequest":{"properties":{"claim_action_identifier":{"type":"string","title":"Claim Action Identifier"},"line_keys":{"items":{"type":"string"},"type":"array","title":"Line Keys"}},"type":"object","required":["claim_action_identifier","line_keys"],"title":"GetClaimLineActionRequest"},"GetServiceReviewResponse":{"properties":{"checked":{"type":"boolean","title":"Checked"},"review":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Review"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["checked","review"],"title":"GetServiceReviewResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HospitalAffiliationCreate":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"hospital_name":{"type":"string","title":"Hospital Name"},"hospital_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hospital Npi"},"affiliation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation Type"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"annual_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"credentialing_status":{"type":"string","title":"Credentialing Status","default":"active"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["entity_id","hospital_name"],"title":"HospitalAffiliationCreate"},"HospitalAffiliationResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"type":"string","title":"Entity Id"},"hospital_name":{"type":"string","title":"Hospital Name"},"hospital_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hospital Npi"},"affiliation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation Type"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"annual_cost":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"credentialing_status":{"type":"string","title":"Credentialing Status"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","clinic_id","entity_id","hospital_name","credentialing_status","created_at","updated_at"],"title":"HospitalAffiliationResponse"},"HospitalAffiliationUpdate":{"properties":{"hospital_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hospital Name"},"hospital_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hospital Npi"},"affiliation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation Type"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"annual_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"credentialing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Status"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"HospitalAffiliationUpdate"},"ImportFromTebraRequest":{"properties":{"records":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"ImportFromTebraRequest"},"InNetworkCheckResponse":{"properties":{"carrier_id":{"type":"string","title":"Carrier Id"},"carrier_name":{"type":"string","title":"Carrier Name"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"is_in_network":{"type":"boolean","title":"Is In Network"},"contract_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Type"},"credentialing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Status"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"}},"type":"object","required":["carrier_id","carrier_name","is_in_network"],"title":"InNetworkCheckResponse"},"InsuranceCarrierCreate":{"properties":{"name":{"type":"string","title":"Name"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"accepts_electronic_claims":{"type":"boolean","title":"Accepts Electronic Claims","default":true},"credentialing_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Name"},"credentialing_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Phone"},"credentialing_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Email"},"caqh_required":{"type":"boolean","title":"Caqh Required","default":false},"re_credentialing_period_months":{"type":"integer","title":"Re Credentialing Period Months","default":24}},"type":"object","required":["name"],"title":"InsuranceCarrierCreate"},"InsuranceCarrierResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"accepts_electronic_claims":{"type":"boolean","title":"Accepts Electronic Claims"},"credentialing_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Name"},"credentialing_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Phone"},"credentialing_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Email"},"caqh_required":{"type":"boolean","title":"Caqh Required"},"re_credentialing_period_months":{"type":"integer","title":"Re Credentialing Period Months"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","accepts_electronic_claims","caqh_required","re_credentialing_period_months","is_active","created_at","updated_at"],"title":"InsuranceCarrierResponse"},"InsuranceCarrierUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"accepts_electronic_claims":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepts Electronic Claims"},"credentialing_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Name"},"credentialing_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Phone"},"credentialing_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Contact Email"},"caqh_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Caqh Required"},"re_credentialing_period_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Re Credentialing Period Months"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"InsuranceCarrierUpdate"},"InsuranceContractCreate":{"properties":{"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"carrier_id":{"type":"string","title":"Carrier Id"},"payer_directory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"},"contract_scope":{"type":"string","title":"Contract Scope","default":"clinic"},"provider_group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Group Id"},"contract_type":{"type":"string","title":"Contract Type"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"contract_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Number"},"credentialing_status":{"type":"string","title":"Credentialing Status","default":"active"},"re_credentialing_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Re Credentialing Due Date"},"annual_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["carrier_id","contract_type","effective_date"],"title":"InsuranceContractCreate"},"InsuranceContractResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"carrier_id":{"type":"string","title":"Carrier Id"},"payer_directory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"},"contract_scope":{"type":"string","title":"Contract Scope"},"provider_group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Group Id"},"contract_type":{"type":"string","title":"Contract Type"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"contract_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Number"},"credentialing_status":{"type":"string","title":"Credentialing Status"},"re_credentialing_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Re Credentialing Due Date"},"annual_cost":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"carrier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Name"},"payer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name"}},"type":"object","required":["id","clinic_id","carrier_id","contract_scope","contract_type","effective_date","credentialing_status","created_at","updated_at"],"title":"InsuranceContractResponse"},"InsuranceContractUpdate":{"properties":{"payer_directory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"},"contract_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Scope"},"provider_group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Group Id"},"contract_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Type"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"contract_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Number"},"credentialing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialing Status"},"re_credentialing_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Re Credentialing Due Date"},"annual_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Cost"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"InsuranceContractUpdate"},"InsuranceProfileCreate":{"properties":{"priority":{"type":"integer","title":"Priority","default":1},"payer_directory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"},"payer_name_on_card":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name On Card"},"subscriber_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Id"},"group_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Number"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"plan_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Type"},"subscriber_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Name"},"subscriber_dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscriber Dob"},"subscriber_relationship":{"type":"string","title":"Subscriber Relationship","default":"self"},"copay_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Copay Amount"},"deductible_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deductible Amount"},"deductible_met":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deductible Met"},"oop_max":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Oop Max"},"oop_met":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Oop Met"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"}},"type":"object","title":"InsuranceProfileCreate"},"InsuranceProfileResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"priority":{"type":"integer","title":"Priority"},"payer_directory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"},"payer_name_on_card":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name On Card"},"payer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name"},"payer_edi_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Edi Id"},"payer_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Type"},"subscriber_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Id"},"group_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Number"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"plan_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Type"},"subscriber_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Name"},"subscriber_dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscriber Dob"},"subscriber_relationship":{"type":"string","title":"Subscriber Relationship"},"copay_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Copay Amount"},"deductible_amount":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deductible Amount"},"deductible_met":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deductible Met"},"oop_max":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Oop Max"},"oop_met":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Oop Met"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"benefit_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Benefit Verified At"},"is_active":{"type":"boolean","title":"Is Active"},"added_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","clinic_id","patient_id","priority","subscriber_relationship","is_active","created_at","updated_at"],"title":"InsuranceProfileResponse"},"InsuranceProfileUpdate":{"properties":{"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"payer_directory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Directory Id"},"payer_name_on_card":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name On Card"},"subscriber_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Id"},"group_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Number"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"plan_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Type"},"subscriber_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Name"},"subscriber_dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscriber Dob"},"subscriber_relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriber Relationship"},"copay_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Copay Amount"},"deductible_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deductible Amount"},"deductible_met":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deductible Met"},"oop_max":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Oop Max"},"oop_met":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Oop Met"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"InsuranceProfileUpdate"},"LabDrawChargeRequestV2":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"plan_type":{"type":"string","title":"Plan Type"},"total_lab_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Total Lab Cost"},"compounded_weight_loss":{"type":"boolean","title":"Compounded Weight Loss","default":false},"has_balance":{"type":"boolean","title":"Has Balance","default":false},"days_since_payment":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Payment"}},"type":"object","required":["patient_id","plan_type","total_lab_cost"],"title":"LabDrawChargeRequestV2"},"LineCreate":{"properties":{"cpt_code":{"type":"string","title":"Cpt Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"modifier_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 1"},"modifier_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 2"},"modifier_3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 3"},"modifier_4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 4"},"quantity":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Quantity","default":"1"},"unit_charge":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Unit Charge"},"place_of_service_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service Code"}},"type":"object","required":["cpt_code"],"title":"LineCreate"},"LineDetailInput":{"properties":{"line_key":{"type":"string","title":"Line Key"},"line_amount_owed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Amount Owed"}},"type":"object","required":["line_key"],"title":"LineDetailInput"},"LineDetailInputV2":{"properties":{"line_key":{"type":"string","title":"Line Key"},"line_amount_owed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Amount Owed"}},"type":"object","required":["line_key"],"title":"LineDetailInputV2"},"LineUpdate":{"properties":{"cpt_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cpt Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"modifier_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 1"},"modifier_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 2"},"modifier_3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 3"},"modifier_4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modifier 4"},"quantity":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quantity"},"unit_charge":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Unit Charge"},"place_of_service_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service Code"},"is_accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Accepted"}},"type":"object","title":"LineUpdate"},"LinkUserRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"credential_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Suffix"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"sync_legal_name":{"type":"boolean","title":"Sync Legal Name","default":true}},"type":"object","required":["user_id"],"title":"LinkUserRequest"},"MacJurisdictionResponse":{"properties":{"jurisdiction_code":{"type":"string","title":"Jurisdiction Code"},"contractor_name":{"type":"string","title":"Contractor Name"},"part_a_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part A Payer Id"},"part_b_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part B Payer Id"},"state_codes":{"items":{"type":"string"},"type":"array","title":"State Codes"}},"type":"object","required":["jurisdiction_code","contractor_name","state_codes"],"title":"MacJurisdictionResponse"},"MalpracticePolicyCreate":{"properties":{"policy_type":{"type":"string","title":"Policy Type"},"carrier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Name"},"policy_number":{"type":"string","title":"Policy Number"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiration_date":{"type":"string","format":"date","title":"Expiration Date"},"original_effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Original Effective Date"},"per_occurrence_limit":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Per Occurrence Limit"},"aggregate_limit":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Aggregate Limit"},"unlimited_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unlimited Coverage","default":false},"coverage_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Type"},"tail_nose_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tail Nose Coverage"},"individual_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Individual Coverage","default":true},"self_insured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Insured","default":false},"ftca_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ftca Coverage","default":false},"institution_affiliation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Affiliation"},"covered_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Covered Location Id"},"carrier_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Address"},"carrier_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier City"},"carrier_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier State"},"carrier_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Zip"},"carrier_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Phone"},"carrier_phone_ext":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Phone Ext"},"carrier_fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Fax"},"annual_premium":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Premium"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"entity_ids":{"items":{"type":"string"},"type":"array","title":"Entity Ids","default":[]}},"type":"object","required":["policy_type","policy_number","effective_date","expiration_date"],"title":"MalpracticePolicyCreate"},"MalpracticePolicyProviderAdd":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"coverage_start":{"type":"string","format":"date","title":"Coverage Start"},"is_primary":{"type":"boolean","title":"Is Primary","default":true}},"type":"object","required":["entity_id","coverage_start"],"title":"MalpracticePolicyProviderAdd"},"MalpracticePolicyProviderLink":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"coverage_start":{"type":"string","format":"date","title":"Coverage Start"},"coverage_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Coverage End"},"is_primary":{"type":"boolean","title":"Is Primary"}},"type":"object","required":["entity_id","coverage_start","is_primary"],"title":"MalpracticePolicyProviderLink"},"MalpracticePolicyResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"policy_type":{"type":"string","title":"Policy Type"},"carrier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Name"},"policy_number":{"type":"string","title":"Policy Number"},"effective_date":{"type":"string","format":"date","title":"Effective Date"},"expiration_date":{"type":"string","format":"date","title":"Expiration Date"},"original_effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Original Effective Date"},"per_occurrence_limit":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Per Occurrence Limit"},"aggregate_limit":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Aggregate Limit"},"unlimited_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unlimited Coverage"},"coverage_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Type"},"tail_nose_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tail Nose Coverage"},"individual_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Individual Coverage"},"self_insured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Insured"},"ftca_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ftca Coverage"},"institution_affiliation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Affiliation"},"covered_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Covered Location Id"},"carrier_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Address"},"carrier_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier City"},"carrier_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier State"},"carrier_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Zip"},"carrier_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Phone"},"carrier_phone_ext":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Phone Ext"},"carrier_fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Fax"},"annual_premium":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Premium"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"provider_links":{"items":{"$ref":"#/components/schemas/MalpracticePolicyProviderLink"},"type":"array","title":"Provider Links","default":[]}},"type":"object","required":["id","clinic_id","policy_type","policy_number","effective_date","expiration_date","created_at","updated_at"],"title":"MalpracticePolicyResponse"},"MalpracticePolicyUpdate":{"properties":{"carrier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Name"},"policy_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Number"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"original_effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Original Effective Date"},"per_occurrence_limit":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Per Occurrence Limit"},"aggregate_limit":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Aggregate Limit"},"unlimited_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unlimited Coverage"},"coverage_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Type"},"tail_nose_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tail Nose Coverage"},"individual_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Individual Coverage"},"self_insured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Insured"},"ftca_coverage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ftca Coverage"},"institution_affiliation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Affiliation"},"covered_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Covered Location Id"},"carrier_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Address"},"carrier_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier City"},"carrier_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier State"},"carrier_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Zip"},"carrier_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Phone"},"carrier_phone_ext":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Phone Ext"},"carrier_fax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier Fax"},"annual_premium":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Premium"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"MalpracticePolicyUpdate"},"MembershipCancelRequest":{"properties":{"cancellation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancellation Reason"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},"type":"object","title":"MembershipCancelRequest"},"MembershipEnrollRequest":{"properties":{"tier_id":{"type":"string","title":"Tier Id"},"start_date":{"type":"string","title":"Start Date"},"billing_cadence":{"type":"string","title":"Billing Cadence","default":"monthly"},"fee_override":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Fee Override"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"}},"type":"object","required":["tier_id","start_date"],"title":"MembershipEnrollRequest"},"MembershipTierCreateRequest":{"properties":{"tier_code":{"type":"string","title":"Tier Code"},"tier_name":{"type":"string","title":"Tier Name"},"monthly_fee":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Monthly Fee"},"annual_fee":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Fee"},"family_child_monthly_fee":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Family Child Monthly Fee"},"annual_oop_cap":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Oop Cap"},"benefits_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Benefits Json"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["tier_code","tier_name","monthly_fee"],"title":"MembershipTierCreateRequest"},"MembershipTierUpdateRequest":{"properties":{"tier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier Name"},"monthly_fee":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Monthly Fee"},"annual_fee":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Fee"},"family_child_monthly_fee":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Family Child Monthly Fee"},"annual_oop_cap":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annual Oop Cap"},"benefits_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Benefits Json"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"MembershipTierUpdateRequest"},"NpiLookupResponse":{"properties":{"npi":{"type":"string","title":"Npi"},"entity_type":{"type":"string","title":"Entity Type"},"legal_name":{"type":"string","title":"Legal Name"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"credential":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"taxonomy_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Code"},"taxonomy_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"},"primary_practice_address":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Primary Practice Address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"enumeration_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enumeration Date"},"last_updated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated"},"raw":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raw"}},"type":"object","required":["npi","entity_type","legal_name"],"title":"NpiLookupResponse"},"NpiSearchResult":{"properties":{"npi":{"type":"string","title":"Npi"},"entity_type":{"type":"string","title":"Entity Type"},"legal_name":{"type":"string","title":"Legal Name"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"credential":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential"},"taxonomy_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},"type":"object","required":["npi","entity_type","legal_name"],"title":"NpiSearchResult"},"OneOffVisitChargeRequestV2":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"minutes":{"type":"integer","exclusiveMinimum":0.0,"title":"Minutes"},"has_insurance":{"type":"boolean","title":"Has Insurance","default":false},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Service Date"}},"type":"object","required":["patient_id","minutes"],"title":"OneOffVisitChargeRequestV2"},"OperatorInput":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"}},"type":"object","title":"OperatorInput"},"OperatorInputV2":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"}},"type":"object","title":"OperatorInputV2"},"PatientAssignmentV2":{"properties":{"provider_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider User Id"},"clinic_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Location Id"},"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"}},"type":"object","title":"PatientAssignmentV2"},"PatientBillingProfileUpsertV2":{"properties":{"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"billing_plan_type":{"type":"string","title":"Billing Plan Type","default":"one_off"},"membership_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Tier"},"membership_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Membership Start Date"},"age_at_membership_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age At Membership Start"},"family_child_rate_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Family Child Rate Eligible"},"family_child_rate_expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Family Child Rate Expires On"},"provider_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider User Id"},"clinic_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Location Id"},"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"},"dsnp_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dsnp Status"},"active_payment_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Payment Plan Id"},"card_on_file_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Card On File Status"}},"type":"object","title":"PatientBillingProfileUpsertV2"},"PatientMergeRequest":{"properties":{"winner_id":{"type":"string","title":"Winner Id"},"loser_id":{"type":"string","title":"Loser Id"},"field_overrides":{"additionalProperties":{"type":"string"},"type":"object","title":"Field Overrides","default":{}}},"type":"object","required":["winner_id","loser_id"],"title":"PatientMergeRequest"},"PatientReimbursableCreateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"reason":{"type":"string","title":"Reason"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"source_charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Charge Id"},"source_payment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Payment Id"}},"type":"object","required":["patient_id","amount","reason"],"title":"PatientReimbursableCreateRequest"},"PatientReimbursableResolveRequest":{"properties":{"resolution":{"type":"string","title":"Resolution"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["resolution"],"title":"PatientReimbursableResolveRequest"},"PayerAliasAdd":{"properties":{"alias_name":{"type":"string","title":"Alias Name"}},"type":"object","required":["alias_name"],"title":"PayerAliasAdd"},"PayerAliasResponse":{"properties":{"id":{"type":"string","title":"Id"},"payer_directory_id":{"type":"string","title":"Payer Directory Id"},"alias_name":{"type":"string","title":"Alias Name"},"is_system_seed":{"type":"boolean","title":"Is System Seed"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","payer_directory_id","alias_name","is_system_seed","created_at"],"title":"PayerAliasResponse"},"PayerDirectoryCreate":{"properties":{"payer_name":{"type":"string","title":"Payer Name"},"edi_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edi Payer Id"},"availity_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availity Payer Id"},"payer_type":{"type":"string","title":"Payer Type"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"mac_jurisdiction_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mac Jurisdiction Code"},"accepts_electronic_claims":{"type":"boolean","title":"Accepts Electronic Claims","default":true}},"type":"object","required":["payer_name","payer_type"],"title":"PayerDirectoryCreate"},"PayerDirectoryResponse":{"properties":{"id":{"type":"string","title":"Id"},"payer_name":{"type":"string","title":"Payer Name"},"edi_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edi Payer Id"},"availity_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availity Payer Id"},"payer_type":{"type":"string","title":"Payer Type"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"mac_jurisdiction_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mac Jurisdiction Code"},"accepts_electronic_claims":{"type":"boolean","title":"Accepts Electronic Claims"},"is_active":{"type":"boolean","title":"Is Active"},"is_system_seed":{"type":"boolean","title":"Is System Seed"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"aliases":{"items":{"$ref":"#/components/schemas/PayerAliasResponse"},"type":"array","title":"Aliases","default":[]}},"type":"object","required":["id","payer_name","payer_type","accepts_electronic_claims","is_active","is_system_seed","created_at","updated_at"],"title":"PayerDirectoryResponse"},"PayerDirectoryUpdate":{"properties":{"payer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name"},"edi_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edi Payer Id"},"availity_payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availity Payer Id"},"payer_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Type"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"mac_jurisdiction_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mac Jurisdiction Code"},"accepts_electronic_claims":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepts Electronic Claims"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"PayerDirectoryUpdate"},"PayerEnrollmentCreate":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"payer_directory_id":{"type":"string","title":"Payer Directory Id"},"contract_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Id"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"status":{"type":"string","title":"Status","default":"applied"},"application_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Application Date"},"credentialing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Credentialing Date"},"go_live_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Go Live Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"payer_assigned_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Assigned Provider Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["entity_id","payer_directory_id"],"title":"PayerEnrollmentCreate"},"PayerEnrollmentResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"type":"string","title":"Entity Id"},"payer_directory_id":{"type":"string","title":"Payer Directory Id"},"contract_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Id"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"status":{"type":"string","title":"Status"},"application_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Application Date"},"credentialing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Credentialing Date"},"go_live_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Go Live Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"payer_assigned_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Assigned Provider Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"payer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Name"},"entity_legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Legal Name"},"is_oon":{"type":"boolean","title":"Is Oon","default":false}},"type":"object","required":["id","clinic_id","entity_id","payer_directory_id","status","created_by_user_id","created_at","updated_at"],"title":"PayerEnrollmentResponse"},"PayerEnrollmentUpdate":{"properties":{"contract_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"application_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Application Date"},"credentialing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Credentialing Date"},"go_live_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Go Live Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"payer_assigned_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Assigned Provider Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PayerEnrollmentUpdate"},"PaymentAllocateRequestV2":{"properties":{"allocations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Allocations"}},"type":"object","required":["allocations"],"title":"PaymentAllocateRequestV2"},"PaymentModelSettingsUpdate":{"properties":{"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"}},"type":"object","title":"PaymentModelSettingsUpdate"},"PaymentPlanCreateV2":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"monthly_cap_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Monthly Cap Amount"},"excluded_categories_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Excluded Categories Json"},"billing_schedule_json":{"additionalProperties":true,"type":"object","title":"Billing Schedule Json"},"amount_rules_json":{"additionalProperties":true,"type":"object","title":"Amount Rules Json"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","required":["billing_schedule_json","amount_rules_json","start_date"],"title":"PaymentPlanCreateV2"},"PaymentPlanPatchV2":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"monthly_cap_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Monthly Cap Amount"},"excluded_categories_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Excluded Categories Json"},"billing_schedule_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Billing Schedule Json"},"amount_rules_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Amount Rules Json"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"PaymentPlanPatchV2"},"PaymentPlanReminderCompleteV2":{"properties":{"status":{"type":"string","title":"Status","default":"completed"}},"type":"object","title":"PaymentPlanReminderCompleteV2"},"PlanOverrideResponse":{"properties":{"id":{"type":"string","title":"Id"},"plan_name":{"type":"string","title":"Plan Name"},"charge":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Charge"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","plan_name","charge"],"title":"PlanOverrideResponse"},"PlanRateUpsert":{"properties":{"charge":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Charge"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["charge"],"title":"PlanRateUpsert"},"ProcedureSubstitutionUpsertRequest":{"properties":{"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"payer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer Id"},"original_code":{"type":"string","title":"Original Code"},"original_code_system":{"type":"string","title":"Original Code System"},"substitute_code":{"type":"string","title":"Substitute Code"},"substitute_code_system":{"type":"string","title":"Substitute Code System"},"rationale_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale Text"},"source_type":{"type":"string","title":"Source Type","default":"manual"},"confidence_score":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Confidence Score","default":"0.5000"},"success_rate":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Success Rate"}},"type":"object","required":["original_code","original_code_system","substitute_code","substitute_code_system"],"title":"ProcedureSubstitutionUpsertRequest"},"ProviderGroupCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"ProviderGroupCreate"},"ProviderGroupMemberAdd":{"properties":{"entity_id":{"type":"string","title":"Entity Id"}},"type":"object","required":["entity_id"],"title":"ProviderGroupMemberAdd"},"ProviderGroupResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"member_count":{"type":"integer","title":"Member Count","default":0}},"type":"object","required":["id","clinic_id","name","is_active","created_by_user_id","created_at","updated_at"],"title":"ProviderGroupResponse"},"ProviderGroupUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"ProviderGroupUpdate"},"ProviderLocationResponse":{"properties":{"id":{"type":"string","title":"Id"},"entity_id":{"type":"string","title":"Entity Id"},"location_id":{"type":"string","title":"Location Id"},"is_primary_location":{"type":"boolean","title":"Is Primary Location"},"affiliation_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliation Description"},"provider_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Provider Start Date"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"},"subspecialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subspecialty"},"continue_to_practice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Continue To Practice"},"clinical_narrative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinical Narrative"},"caqh_patients":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Patients"},"caqh_health_plans":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Caqh Health Plans"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","entity_id","location_id","is_primary_location","created_at"],"title":"ProviderLocationResponse"},"ReferralActionResponse":{"properties":{"id":{"type":"string","title":"Id"},"vendor":{"type":"string","title":"Vendor"},"vendor_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Reference Id"},"status":{"type":"string","title":"Status"},"vendor_status_raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Status Raw"}},"type":"object","required":["id","vendor","vendor_reference_id","status","vendor_status_raw"],"title":"ReferralActionResponse"},"ReferralActionUIResponse":{"properties":{"id":{"type":"string","title":"Id"},"vendor":{"type":"string","title":"Vendor"},"vendor_reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Reference Id"},"status":{"type":"string","title":"Status"},"vendor_status_raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Status Raw"}},"type":"object","required":["id","vendor","vendor_reference_id","status","vendor_status_raw"],"title":"ReferralActionUIResponse"},"ReferralCreateV2":{"properties":{"referrer_patient_id":{"type":"string","title":"Referrer Patient Id"},"referred_patient_id":{"type":"string","title":"Referred Patient Id"},"referral_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referral Source"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["referrer_patient_id","referred_patient_id"],"title":"ReferralCreateV2"},"ReferralInquiryRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"referring_provider_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referring Provider User Id"},"referred_to_provider_name":{"type":"string","title":"Referred To Provider Name"},"referred_to_provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referred To Provider Npi"}},"type":"object","required":["clinic_id","patient_id","referred_to_provider_name"],"title":"ReferralInquiryRequest"},"ReferralInquiryResponse":{"properties":{"checked":{"type":"boolean","title":"Checked"},"referral_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Referral Required"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["checked","referral_required"],"title":"ReferralInquiryResponse"},"ReferralQualifyV2":{"properties":{"qualification_month_number":{"type":"integer","title":"Qualification Month Number","default":3}},"type":"object","title":"ReferralQualifyV2"},"ReturnPayload":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"ReturnPayload"},"RewardApplyV2":{"properties":{"charge_id":{"type":"string","title":"Charge Id"}},"type":"object","required":["charge_id"],"title":"RewardApplyV2"},"RunMonthlyRequestV2":{"properties":{"service_month":{"type":"string","format":"date","title":"Service Month"}},"type":"object","required":["service_month"],"title":"RunMonthlyRequestV2"},"SafeQueryRequest":{"properties":{"question":{"type":"string","title":"Question"}},"type":"object","required":["question"],"title":"SafeQueryRequest"},"SearchClaimTicketRequest":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"ticket_type":{"type":"string","enum":["RECON","PEND","APPEAL"],"title":"Ticket Type"},"ticket_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Number"},"ticket_from_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket From Date"},"ticket_to_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket To Date"}},"type":"object","required":["payer_id","ticket_type"],"title":"SearchClaimTicketRequest"},"SearchPriorAuthsRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"provider_search":{"additionalProperties":true,"type":"object","title":"Provider Search"},"service_reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Reference Number"}},"type":"object","required":["clinic_id","patient_id","provider_search"],"title":"SearchPriorAuthsRequest"},"SearchPriorAuthsResponse":{"properties":{"checked":{"type":"boolean","title":"Checked"},"cases":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Cases"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["checked","cases"],"title":"SearchPriorAuthsResponse"},"SearchProvidersRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"search_type":{"type":"string","title":"Search Type"},"provider_criteria":{"additionalProperties":true,"type":"object","title":"Provider Criteria"}},"type":"object","required":["clinic_id","patient_id","search_type","provider_criteria"],"title":"SearchProvidersRequest"},"SearchProvidersResponse":{"properties":{"checked":{"type":"boolean","title":"Checked"},"providers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Providers"},"pagination":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pagination"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["checked","providers"],"title":"SearchProvidersResponse"},"SearchProvidersUIRequest":{"properties":{"provider_criteria":{"additionalProperties":true,"type":"object","title":"Provider Criteria"}},"type":"object","required":["provider_criteria"],"title":"SearchProvidersUIRequest"},"SearchReferralsRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"service_start_date":{"type":"string","title":"Service Start Date"},"service_end_date":{"type":"string","title":"Service End Date"},"status":{"type":"string","title":"Status","default":"ALL"}},"type":"object","required":["clinic_id","patient_id","service_start_date","service_end_date"],"title":"SearchReferralsRequest"},"SearchReferralsResponse":{"properties":{"checked":{"type":"boolean","title":"Checked"},"referrals":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Referrals"},"pagination":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pagination"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["checked","referrals"],"title":"SearchReferralsResponse"},"SearchServiceReviewsRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"from_date":{"type":"string","title":"From Date"},"to_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"}},"type":"object","required":["clinic_id","patient_id","from_date"],"title":"SearchServiceReviewsRequest"},"SearchServiceReviewsResponse":{"properties":{"checked":{"type":"boolean","title":"Checked"},"reviews":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Reviews"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["checked","reviews"],"title":"SearchServiceReviewsResponse"},"StateEnrollmentCreate":{"properties":{"state_code":{"type":"string","title":"State Code"},"program":{"type":"string","title":"Program"},"provider_number":{"type":"string","title":"Provider Number"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["state_code","program","provider_number"],"title":"StateEnrollmentCreate"},"StateEnrollmentResponse":{"properties":{"id":{"type":"string","title":"Id"},"state_code":{"type":"string","title":"State Code"},"program":{"type":"string","title":"Program"},"provider_number":{"type":"string","title":"Provider Number"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","state_code","program","provider_number","created_at","updated_at"],"title":"StateEnrollmentResponse"},"StateEnrollmentUpdate":{"properties":{"provider_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Number"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Date"},"termination_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Termination Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"StateEnrollmentUpdate"},"StatementEmailV2":{"properties":{"to_email":{"type":"string","title":"To Email"}},"type":"object","required":["to_email"],"title":"StatementEmailV2"},"StatementGenerateV2":{"properties":{"billing_account_id":{"type":"string","title":"Billing Account Id"},"guarantor_patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantor Patient Id"},"statement_period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Statement Period Start"},"statement_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Statement Period End"}},"type":"object","required":["billing_account_id"],"title":"StatementGenerateV2"},"SubmitClaimTicketRequest":{"properties":{"ticket_type":{"type":"string","enum":["PEND","RECON","APPEAL"],"title":"Ticket Type"},"ticket_action":{"type":"string","enum":["Create","Resubmit/Update"],"title":"Ticket Action"},"line_details":{"items":{"$ref":"#/components/schemas/LineDetailInput"},"type":"array","title":"Line Details"},"claim_action_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Action Identifier"},"ticket_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Number"},"provider_comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Comments"},"has_attachment":{"type":"boolean","title":"Has Attachment","default":false},"operator":{"anyOf":[{"$ref":"#/components/schemas/OperatorInput"},{"type":"null"}]},"claim_amount_owed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Amount Owed"},"request_reconsideration_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Reconsideration Reason"},"place_of_service_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service State"},"is_appeal_on_behalf_of_member":{"type":"boolean","title":"Is Appeal On Behalf Of Member","default":false},"is_external_review_appeal":{"type":"boolean","title":"Is External Review Appeal","default":false}},"type":"object","required":["ticket_type","ticket_action","line_details"],"title":"SubmitClaimTicketRequest"},"SubmitClaimTicketRequestV2":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"ticket_type":{"type":"string","enum":["PEND","RECON","APPEAL"],"title":"Ticket Type"},"ticket_action":{"type":"string","enum":["Create","Resubmit/Update"],"title":"Ticket Action"},"line_details":{"items":{"$ref":"#/components/schemas/LineDetailInputV2"},"type":"array","title":"Line Details"},"claim_action_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Action Identifier"},"ticket_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Number"},"provider_comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Comments"},"has_attachment":{"type":"boolean","title":"Has Attachment","default":false},"operator":{"anyOf":[{"$ref":"#/components/schemas/OperatorInputV2"},{"type":"null"}]},"claim_amount_owed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Amount Owed"},"request_reconsideration_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Reconsideration Reason"},"place_of_service_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service State"},"is_appeal_on_behalf_of_member":{"type":"boolean","title":"Is Appeal On Behalf Of Member","default":false},"is_external_review_appeal":{"type":"boolean","title":"Is External Review Appeal","default":false}},"type":"object","required":["payer_id","ticket_type","ticket_action","line_details"],"title":"SubmitClaimTicketRequestV2"},"SubmitReferralRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"servicing_provider":{"additionalProperties":true,"type":"object","title":"Servicing Provider"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"quantity":{"type":"integer","title":"Quantity"},"qualifier":{"type":"string","title":"Qualifier"},"start_date":{"type":"string","title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["clinic_id","patient_id","servicing_provider","diagnosis_codes","quantity","qualifier","start_date"],"title":"SubmitReferralRequest"},"SubmitReferralUIRequest":{"properties":{"servicing_provider":{"additionalProperties":true,"type":"object","title":"Servicing Provider"},"diagnosis_codes":{"items":{"type":"string"},"type":"array","title":"Diagnosis Codes"},"quantity":{"type":"integer","title":"Quantity"},"start_date":{"type":"string","title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"pophealth_referral_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pophealth Referral Id"}},"type":"object","required":["servicing_provider","diagnosis_codes","quantity","start_date"],"title":"SubmitReferralUIRequest"},"SubmitServiceReviewRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"rendering_providers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rendering Providers"},"diagnosis_code":{"type":"string","title":"Diagnosis Code"},"diagnosis_description":{"type":"string","title":"Diagnosis Description"},"service_type_code":{"type":"string","title":"Service Type Code"},"from_date":{"type":"string","title":"From Date"}},"type":"object","required":["clinic_id","patient_id","rendering_providers","diagnosis_code","diagnosis_description","service_type_code","from_date"],"title":"SubmitServiceReviewRequest"},"TebraProcedureCodeImportRequest":{"properties":{"records":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"TebraProcedureCodeImportRequest"},"TriggerRequest":{"properties":{"is_production":{"type":"boolean","title":"Is Production","default":false}},"type":"object","title":"TriggerRequest"},"ValidateAddressRequest":{"properties":{"address_line1":{"type":"string","title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"type":"string","title":"City"},"state_code":{"type":"string","title":"State Code"},"zip_code":{"type":"string","title":"Zip Code"}},"type":"object","required":["address_line1","city","state_code","zip_code"],"title":"ValidateAddressRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WriteoffCreateRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"reason":{"type":"string","title":"Reason"},"writeoff_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Writeoff Category"},"charge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Charge Id"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","amount","reason"],"title":"WriteoffCreateRequest"},"_ClinicProfilePatch":{"properties":{"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"},"npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npi"},"billing_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Npi"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Code"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","title":"_ClinicProfilePatch"},"services__billing__app__claim_review__router__GetDocumentRequest":{"properties":{"document_id":{"type":"string","title":"Document Id"}},"type":"object","required":["document_id"],"title":"GetDocumentRequest"},"services__billing__app__router_v2__GetDocumentRequest":{"properties":{"payer_id":{"type":"string","title":"Payer Id"},"document_id":{"type":"string","title":"Document Id"}},"type":"object","required":["payer_id","document_id"],"title":"GetDocumentRequest"}}}}