{"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/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":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"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":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"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/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/weight-loss-enrollments":{"get":{"tags":["billing-v2"],"summary":"Clinic-wide weight-loss enrollment list","operationId":"list_weight_loss_enrollments_clinic_billing_weight_loss_enrollments_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"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/patients/{patient_id}/weight-loss-enrollment":{"get":{"tags":["billing-v2"],"summary":"Get active weight-loss enrollment","operationId":"get_weight_loss_enrollment_billing_patients__patient_id__weight_loss_enrollment_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":"Open weight-loss enrollment","operationId":"open_weight_loss_enrollment_billing_patients__patient_id__weight_loss_enrollment_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/WeightLossEnrollRequest"}}}},"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}/weight-loss-enrollment/history":{"get":{"tags":["billing-v2"],"summary":"List all weight-loss enrollments","operationId":"list_weight_loss_enrollments_billing_patients__patient_id__weight_loss_enrollment_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}/weight-loss-enrollment/{wl_enrollment_id}/close":{"patch":{"tags":["billing-v2"],"summary":"Close weight-loss enrollment","operationId":"close_weight_loss_enrollment_billing_patients__patient_id__weight_loss_enrollment__wl_enrollment_id__close_patch","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"wl_enrollment_id","in":"path","required":true,"schema":{"type":"string","title":"Wl 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/WeightLossCloseRequest"}}}},"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/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"}}}}}}},"/":{"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/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/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}/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.","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/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/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"}}}}}}}},"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_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"},"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"},"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"},"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"},"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"},"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":{"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"},"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"},"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"},"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"},"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":{"type":"string","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"},"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"},"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","carrier_name","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":{"type":"string","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"},"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"},"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","carrier_name","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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"WeightLossCloseRequest":{"properties":{"closed_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed Reason"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},"type":"object","title":"WeightLossCloseRequest"},"WeightLossEnrollRequest":{"properties":{"start_date":{"type":"string","title":"Start Date"},"membership_enrollment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Enrollment Id"},"pharmacy_enrollment_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pharmacy Enrollment Ref"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"waive_initial_fee":{"type":"boolean","title":"Waive Initial Fee","default":false}},"type":"object","required":["start_date"],"title":"WeightLossEnrollRequest"},"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"},"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"}}}}