{"openapi":"3.1.0","info":{"title":"pophealth","version":"0.1.0"},"paths":{"/care-plans/{care_plan_id}/patient-updates":{"post":{"tags":["care-plan-updates"],"summary":"Submit Patient Update","description":"Queue an inbound patient-plane CarePlan update for clinician review.","operationId":"submit_patient_update_care_plans__care_plan_id__patient_updates_post","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care 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/SubmitPatientUpdateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["care-plan-updates"],"summary":"List Plan Updates","description":"List patient-submitted updates for a specific care plan.","operationId":"list_plan_updates_care_plans__care_plan_id__patient_updates_get","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care Plan 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"}}}}}}},"/care-plans/patient-updates/pending":{"get":{"tags":["care-plan-updates"],"summary":"List Clinic Pending Updates","description":"List all pending patient-submitted updates across the clinic.","operationId":"list_clinic_pending_updates_care_plans_patient_updates_pending_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"}}}}}}},"/care-plans/patient-updates/{update_id}/review":{"post":{"tags":["care-plan-updates"],"summary":"Review Patient Update","description":"Approve or reject a pending patient-submitted CarePlan update.\n\nOn approval, the changes in fhir_payload_json are applied to the CarePlan\nvia the existing revise_care_plan domain service, which handles revision\ntracking and emits the CARE_PLAN_REVISED outbox event.","operationId":"review_patient_update_care_plans_patient_updates__update_id__review_post","parameters":[{"name":"update_id","in":"path","required":true,"schema":{"type":"string","title":"Update Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/ccda":{"post":{"tags":["ccda"],"summary":"Generate Ccda","description":"Generate a Continuity of Care Document (CCD) for the patient.\n\nReturns the C-CDA XML document with Content-Type application/xml.\nAlso stores the job in ccda_export_jobs for audit trail.","operationId":"generate_ccda_patients__patient_id__ccda_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ccda"],"summary":"List Ccda Jobs","description":"List CCD export history for a patient (metadata only, no XML body).","operationId":"list_ccda_jobs_patients__patient_id__ccda_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"}}}}}}},"/patients/{patient_id}/ccda/{job_id}":{"get":{"tags":["ccda"],"summary":"Get Ccda Job","description":"Retrieve the XML from a previously generated CCD export.","operationId":"get_ccda_job_patients__patient_id__ccda__job_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/patients/{patient_id}/consent/revoke":{"post":{"tags":["pophealth-consent"],"summary":"Revoke Consent","operationId":"revoke_consent_pophealth_patients__patient_id__consent_revoke_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/ConsentRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/patients/{patient_id}/consent/restore":{"post":{"tags":["pophealth-consent"],"summary":"Restore Consent","operationId":"restore_consent_pophealth_patients__patient_id__consent_restore_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/ConsentRestoreRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/patients/{patient_id}/consent":{"get":{"tags":["pophealth-consent"],"summary":"Get Consent Status","operationId":"get_consent_status_pophealth_patients__patient_id__consent_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":{"$ref":"#/components/schemas/ConsentStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinics":{"get":{"summary":"List Clinics","operationId":"list_clinics_clinics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClinicResponse"},"title":"Response List Clinics Clinics Get"}}}}}},"post":{"summary":"Create Clinic","operationId":"create_clinic_clinics_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clinics/{clinic_id}":{"get":{"summary":"Get Clinic","operationId":"get_clinic_clinics__clinic_id__get","parameters":[{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","title":"Clinic Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/ClinicResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients":{"post":{"summary":"Create Patient","operationId":"create_patient_patients_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientIdentityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/search":{"get":{"summary":"Search Patients","operationId":"search_patients_patients_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"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/PatientSearchResult"},"title":"Response Search Patients Patients Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}":{"get":{"summary":"Get Patient","operationId":"get_patient_patients__patient_id__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":{"$ref":"#/components/schemas/PatientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Patient","operationId":"patch_patient_patients__patient_id__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/PatientPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/demographics":{"get":{"summary":"Get Patient Demographics","operationId":"get_patient_demographics_patients__patient_id__demographics_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":{"$ref":"#/components/schemas/PatientDemographicsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Upsert Patient Demographics","operationId":"upsert_patient_demographics_patients__patient_id__demographics_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/PatientDemographicsWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientDemographicsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/external-ids":{"post":{"summary":"Link External Id","operationId":"link_external_id_patients__patient_id__external_ids_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalIdInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalIdLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/external-ids/lookup":{"get":{"summary":"Lookup External Id","operationId":"lookup_external_id_external_ids_lookup_get","parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","title":"Source"}},{"name":"external_id","in":"query","required":true,"schema":{"type":"string","title":"External Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/ExternalIdLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/resync-billing-patients":{"post":{"summary":"Resync Billing Patients","description":"Emit PATIENT_UPDATED outbox events for all active patients in the clinic.\n\nTriggers the billing service to (re)populate its patients_cache projection\nfor this clinic. Safe to run any number of times — upsert-idempotent on\nthe billing side.  Events are batched in commits of 200 to avoid\noversized transactions.","operationId":"resync_billing_patients_admin_resync_billing_patients_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"}}}}}}},"/pophealth/patients/{patient_id}/problems":{"get":{"tags":["pophealth-problems"],"summary":"List Patient Problems","operationId":"list_patient_problems_pophealth_patients__patient_id__problems_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":"include_confidential","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Confidential"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["pophealth-problems"],"summary":"Create Problem","operationId":"create_problem_pophealth_patients__patient_id__problems_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/ProblemCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/patients/{patient_id}/problems/graph":{"get":{"tags":["pophealth-problems"],"summary":"Get Patient Problem Graph","description":"Return the full problem node/edge graph for a patient.","operationId":"get_patient_problem_graph_pophealth_patients__patient_id__problems_graph_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"include_confidential","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Confidential"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/problems/{problem_id}":{"get":{"tags":["pophealth-problems"],"summary":"Get Problem","operationId":"get_problem_pophealth_problems__problem_id__get","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["pophealth-problems"],"summary":"Update Problem","operationId":"update_problem_pophealth_problems__problem_id__patch","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ProblemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/resolve":{"post":{"tags":["pophealth-problems"],"summary":"Resolve Problem","operationId":"resolve_problem_pophealth_problems__problem_id__resolve_post","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ProblemResolvePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/reopen":{"post":{"tags":["pophealth-problems"],"summary":"Reopen Problem","operationId":"reopen_problem_pophealth_problems__problem_id__reopen_post","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/problems/{problem_id}/merge":{"post":{"tags":["pophealth-problems"],"summary":"Merge Problems","description":"Absorb losing_problem_id into problem_id. Losing problem is retired.","operationId":"merge_problems_pophealth_problems__problem_id__merge_post","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ProblemMergePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/confidential":{"patch":{"tags":["pophealth-problems"],"summary":"Mark Problem Confidential","operationId":"mark_problem_confidential_pophealth_problems__problem_id__confidential_patch","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ProblemConfidentialPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/branches":{"get":{"tags":["pophealth-problems"],"summary":"Get Problem Branches","description":"Return direct downstream problems — those this problem caused or contributed to.","operationId":"get_problem_branches_pophealth_problems__problem_id__branches_get","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["pophealth-problems"],"summary":"Branch From Problem","description":"Create a new problem as a downstream branch of this one.\n\nAtomically creates the child problem and the connecting edge.\nThe patient_id is inherited from the parent problem.\nReturns {parent, branch, edge}.","operationId":"branch_from_problem_pophealth_problems__problem_id__branches_post","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/BranchFromPayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/ancestors":{"get":{"tags":["pophealth-problems"],"summary":"Get Problem Ancestors","description":"Return direct upstream problems — those that caused or contributed to this one.","operationId":"get_problem_ancestors_pophealth_problems__problem_id__ancestors_get","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/problems/{problem_id}/edges":{"get":{"tags":["pophealth-problems"],"summary":"List Problem Edges","operationId":"list_problem_edges_pophealth_problems__problem_id__edges_get","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["pophealth-problems"],"summary":"Create Problem Edge","operationId":"create_problem_edge_pophealth_problems__problem_id__edges_post","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ProblemEdgeCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/edges/{edge_id}":{"delete":{"tags":["pophealth-problems"],"summary":"Delete Problem Edge","operationId":"delete_problem_edge_pophealth_problems__problem_id__edges__edge_id__delete","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"edge_id","in":"path","required":true,"schema":{"type":"string","title":"Edge Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/pophealth/problems/{problem_id}/links":{"get":{"tags":["pophealth-problems"],"summary":"List Problem Links","operationId":"list_problem_links_pophealth_problems__problem_id__links_get","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["pophealth-problems"],"summary":"Create Problem Link","operationId":"create_problem_link_pophealth_problems__problem_id__links_post","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ProblemLinkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/links/bulk":{"post":{"tags":["pophealth-problems"],"summary":"Bulk Create Problem Links","operationId":"bulk_create_problem_links_pophealth_problems__problem_id__links_bulk_post","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ProblemBulkLinkPayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/problems/{problem_id}/links/{link_id}":{"delete":{"tags":["pophealth-problems"],"summary":"Delete Problem Link","operationId":"delete_problem_link_pophealth_problems__problem_id__links__link_id__delete","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/pophealth/problems/{problem_id}/subgraph":{"get":{"tags":["pophealth-problems"],"summary":"Get Problem Subgraph","description":"BFS-traversal from a seed problem. Returns all reachable nodes + edges.","operationId":"get_problem_subgraph_pophealth_problems__problem_id__subgraph_get","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"max_depth","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":5,"title":"Max Depth"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/problems/{problem_id}/timeline":{"get":{"tags":["pophealth-problems"],"summary":"Problem Timeline","description":"Chronological timeline of all clinical resources linked to a problem.\n\nEach entry contains the resolved resource payload, a human-readable summary,\nand the clinically meaningful event date.  Sorted newest-first.","operationId":"problem_timeline_pophealth_problems__problem_id__timeline_get","parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a single resource type","title":"Resource Type"},"description":"Filter to a single resource type"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"include_confidential","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Confidential"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/problems/schema/relationship-types":{"get":{"tags":["pophealth-problems"],"summary":"Get Relationship Types","operationId":"get_relationship_types_pophealth_problems_schema_relationship_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pophealth/problems/schema/statuses":{"get":{"tags":["pophealth-problems"],"summary":"Get Problem Statuses","operationId":"get_problem_statuses_pophealth_problems_schema_statuses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pophealth/snomed/icd10/{snomed_code}":{"get":{"tags":["pophealth-problems"],"summary":"Lookup Snomed Icd10","description":"Return all cached ICD-10-CM mappings for a SNOMED code.\nTriggers an NLM lookup if no local entries exist and API key is configured.","operationId":"lookup_snomed_icd10_pophealth_snomed_icd10__snomed_code__get","parameters":[{"name":"snomed_code","in":"path","required":true,"schema":{"type":"string","title":"Snomed 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"}}}}}}},"/pophealth/snomed/icd10/seed":{"post":{"tags":["pophealth-problems"],"summary":"Seed Snomed Icd10 Mapping","description":"Manually seed or override a SNOMED → ICD-10-CM mapping.","operationId":"seed_snomed_icd10_mapping_pophealth_snomed_icd10_seed_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/SnomedMapSeedPayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mpi/match-candidates":{"post":{"tags":["mpi"],"summary":"Mpi Match Candidates","operationId":"mpi_match_candidates_mpi_match_candidates_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/MatchCandidateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MatchCandidateResponse"},"title":"Response Mpi Match Candidates Mpi Match Candidates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mpi/link":{"post":{"tags":["mpi"],"summary":"Mpi Link Patient","operationId":"mpi_link_patient_mpi_link_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkPatientRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientIdentityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mpi/merge":{"post":{"tags":["mpi"],"summary":"Mpi Merge Patients","operationId":"mpi_merge_patients_mpi_merge_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergePatientsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mpi/merges":{"get":{"tags":["mpi"],"summary":"Mpi List Merges","operationId":"mpi_list_merges_mpi_merges_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"include_undone","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Undone"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"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/PatientMergeResponse"},"title":"Response Mpi List Merges Mpi Merges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mpi/merge/{merge_id}/undo":{"post":{"tags":["mpi"],"summary":"Mpi Undo Merge","operationId":"mpi_undo_merge_mpi_merge__merge_id__undo_post","parameters":[{"name":"merge_id","in":"path","required":true,"schema":{"type":"string","title":"Merge Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UndoMergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/encounters":{"post":{"tags":["encounters"],"summary":"Create Encounter","operationId":"create_encounter_pophealth_encounters_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/EncounterCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["encounters"],"summary":"List Encounters","operationId":"list_encounters_pophealth_encounters_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"billing_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing 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"}}}}}}},"/pophealth/encounters/{encounter_id}":{"get":{"tags":["encounters"],"summary":"Get Encounter","operationId":"get_encounter_pophealth_encounters__encounter_id__get","parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["encounters"],"summary":"Update Encounter","operationId":"update_encounter_pophealth_encounters__encounter_id__patch","parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/EncounterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/encounters/{encounter_id}/ai-coding":{"post":{"tags":["encounters"],"summary":"Request Ai Coding","description":"Request AI coding suggestions for this encounter.\n\nCurrently a stub — marks status as completed with placeholder suggestions.\nFuture: invoke Claude with note content + problem list to suggest CPT/ICD-10.","operationId":"request_ai_coding_pophealth_encounters__encounter_id__ai_coding_post","parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/encounters/{encounter_id}/submit-to-billing":{"post":{"tags":["encounters"],"summary":"Submit To Billing","description":"Finalize encounter coding and send to billing draft queue.\n\nGenerates a draft_claim_id here so pophealth can store the cross-service\nreference; billing creates the DraftClaimV2 using that same ID.","operationId":"submit_to_billing_pophealth_encounters__encounter_id__submit_to_billing_post","parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/BillingSubmitPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/chart/{patient_id}/summary":{"get":{"tags":["pophealth-clinical"],"summary":"Chart Summary","operationId":"chart_summary_pophealth_chart__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"}}}}}}},"/pophealth/chart/{patient_id}/timeline":{"get":{"tags":["pophealth-clinical"],"summary":"Chart Timeline","operationId":"chart_timeline_pophealth_chart__patient_id__timeline_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"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"}}}}}}},"/pophealth/profiles/{patient_id}":{"post":{"tags":["pophealth-clinical"],"summary":"Upsert Profile","operationId":"upsert_profile_pophealth_profiles__patient_id__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/ClinicalProfilePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/trackers":{"post":{"tags":["pophealth-clinical"],"summary":"Create Tracker","operationId":"create_tracker_pophealth_trackers_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/TrackerReminderPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/reminders":{"post":{"tags":["pophealth-clinical"],"summary":"Create Reminder","operationId":"create_reminder_pophealth_reminders_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/TrackerReminderPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/communications/link":{"post":{"tags":["pophealth-clinical"],"summary":"Link Communication","operationId":"link_communication_pophealth_communications_link_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/CommunicationLinkPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/mips/profiles":{"post":{"tags":["pophealth-clinical"],"summary":"Upsert Mips Profile","operationId":"upsert_mips_profile_pophealth_mips_profiles_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/MipsProfilePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pophealth-clinical"],"summary":"List Mips Profiles","operationId":"list_mips_profiles_pophealth_mips_profiles_get","parameters":[{"name":"performance_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Performance 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"}}}}}}},"/pophealth/mips/profiles/{mips_profile_id}/run":{"post":{"tags":["pophealth-clinical"],"summary":"Run Mips Profile","operationId":"run_mips_profile_pophealth_mips_profiles__mips_profile_id__run_post","parameters":[{"name":"mips_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Mips 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/MipsRunPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/mips/recommendations":{"get":{"tags":["pophealth-clinical"],"summary":"List Mips Recommendations","operationId":"list_mips_recommendations_pophealth_mips_recommendations_get","parameters":[{"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"}}}}}}},"/pophealth/care-plans":{"post":{"tags":["pophealth-clinical"],"summary":"Create Care Plan","operationId":"create_care_plan_pophealth_care_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/CarePlanPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pophealth-clinical"],"summary":"List Care Plans","operationId":"list_care_plans_pophealth_care_plans_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"}}}}}}},"/pophealth/care-plans/{care_plan_id}":{"patch":{"tags":["pophealth-clinical"],"summary":"Revise Care Plan","operationId":"revise_care_plan_pophealth_care_plans__care_plan_id__patch","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care 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/CarePlanRevisionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/care-plans/{care_plan_id}/goals":{"post":{"tags":["pophealth-clinical"],"summary":"Add Care Plan Goal","operationId":"add_care_plan_goal_pophealth_care_plans__care_plan_id__goals_post","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care 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/CarePlanGoalPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pophealth-clinical"],"summary":"List Care Plan Goals","operationId":"list_care_plan_goals_pophealth_care_plans__care_plan_id__goals_get","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care 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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/care-plans/{care_plan_id}/interventions":{"post":{"tags":["pophealth-clinical"],"summary":"Add Care Plan Intervention","operationId":"add_care_plan_intervention_pophealth_care_plans__care_plan_id__interventions_post","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care 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/CarePlanInterventionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pophealth-clinical"],"summary":"List Care Plan Interventions","operationId":"list_care_plan_interventions_pophealth_care_plans__care_plan_id__interventions_get","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care 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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/care-plans/{care_plan_id}/revisions":{"get":{"tags":["pophealth-clinical"],"summary":"List Care Plan Revisions","operationId":"list_care_plan_revisions_pophealth_care_plans__care_plan_id__revisions_get","parameters":[{"name":"care_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Care 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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/{resource}":{"post":{"tags":["pophealth-clinical"],"summary":"Create Resource","operationId":"create_resource_pophealth__resource__post","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string","title":"Resource"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/GenericClinicalResourceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pophealth-clinical"],"summary":"List Resource","operationId":"list_resource_pophealth__resource__get","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string","title":"Resource"}},{"name":"patient_id","in":"query","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"}}}}}}},"/pophealth/{resource}/{resource_id}":{"patch":{"tags":["pophealth-clinical"],"summary":"Patch Resource","operationId":"patch_resource_pophealth__resource___resource_id__patch","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string","title":"Resource"}},{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/GenericPatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/spark/clinical-assist":{"post":{"tags":["pophealth-clinical"],"summary":"Spark Clinical Assist","operationId":"spark_clinical_assist_pophealth_spark_clinical_assist_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/SparkClinicalAssistPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/clinical-notes/{note_id}/confidential":{"patch":{"tags":["pophealth-clinical"],"summary":"Mark Note Confidential","operationId":"mark_note_confidential_pophealth_clinical_notes__note_id__confidential_patch","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ConfidentialPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/conditions/{condition_id}/confidential":{"patch":{"tags":["pophealth-clinical"],"summary":"Mark Condition Confidential","operationId":"mark_condition_confidential_pophealth_conditions__condition_id__confidential_patch","parameters":[{"name":"condition_id","in":"path","required":true,"schema":{"type":"string","title":"Condition Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ConfidentialPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/encounters/{encounter_id}/confidential":{"patch":{"tags":["pophealth-clinical"],"summary":"Mark Encounter Confidential","operationId":"mark_encounter_confidential_pophealth_encounters__encounter_id__confidential_patch","parameters":[{"name":"encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Encounter Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ConfidentialPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Auth Login","operationId":"auth_login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/oidc/exchange":{"post":{"tags":["auth"],"summary":"Auth Oidc Exchange","operationId":"auth_oidc_exchange_auth_oidc_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthOidcExchangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/mfa/verify":{"post":{"tags":["auth"],"summary":"Auth Mfa Verify","operationId":"auth_mfa_verify_auth_mfa_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthMfaVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/mfa/setup/start":{"post":{"tags":["auth"],"summary":"Auth Mfa Setup Start","operationId":"auth_mfa_setup_start_auth_mfa_setup_start_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"}}}}}}},"/auth/mfa/setup":{"post":{"tags":["auth"],"summary":"Auth Mfa Setup Start","operationId":"auth_mfa_setup_start_auth_mfa_setup_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"}}}}}}},"/auth/first-login/mfa/start":{"post":{"tags":["auth"],"summary":"Auth First Login Mfa Start","operationId":"auth_first_login_mfa_start_auth_first_login_mfa_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthFirstLoginMfaStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/first-login/complete":{"post":{"tags":["auth"],"summary":"Auth First Login Complete","operationId":"auth_first_login_complete_auth_first_login_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthFirstLoginCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/mfa/setup/confirm":{"post":{"tags":["auth"],"summary":"Auth Mfa Setup Confirm","operationId":"auth_mfa_setup_confirm_auth_mfa_setup_confirm_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/AuthMfaConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/mfa/confirm":{"post":{"tags":["auth"],"summary":"Auth Mfa Setup Confirm","operationId":"auth_mfa_setup_confirm_auth_mfa_confirm_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/AuthMfaConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password/change":{"post":{"tags":["auth"],"summary":"Auth Password Change","operationId":"auth_password_change_auth_password_change_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/AuthPasswordChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Auth Me","operationId":"auth_me_auth_me_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/AuthProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me/profile":{"get":{"tags":["auth"],"summary":"Auth Get My Profile","operationId":"auth_get_my_profile_auth_me_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":{"$ref":"#/components/schemas/MyProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["auth"],"summary":"Auth Update My Profile","operationId":"auth_update_my_profile_auth_me_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/MyProfileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/identity/link":{"post":{"tags":["auth"],"summary":"Auth Identity Link","operationId":"auth_identity_link_auth_identity_link_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/AuthIdentityLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/identity/unlink":{"post":{"tags":["auth"],"summary":"Auth Identity Unlink","operationId":"auth_identity_unlink_auth_identity_unlink_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"}}}}}}},"/auth/mfa/backup":{"post":{"tags":["auth"],"summary":"Auth Mfa Backup","description":"Exchange a single-use backup code for a session token.","operationId":"auth_mfa_backup_auth_mfa_backup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthMfaBackupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password/forgot":{"post":{"tags":["auth"],"summary":"Auth Forgot Password","description":"Generate a password-reset token. Always returns 200 to avoid leaking whether email exists.","operationId":"auth_forgot_password_auth_password_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password/reset-with-token":{"post":{"tags":["auth"],"summary":"Auth Reset Password With Token","description":"Reset password using a token from /password/forgot.","operationId":"auth_reset_password_with_token_auth_password_reset_with_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/pending-reset-token":{"get":{"tags":["admin"],"summary":"Admin Get Pending Reset Token","description":"Generate a new password-reset token for a user. Returns plaintext for admin to share manually.","operationId":"admin_get_pending_reset_token_admin_users__user_id__pending_reset_token_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/bootstrap":{"post":{"tags":["admin"],"summary":"Bootstrap Admin","operationId":"bootstrap_admin_admin_bootstrap_post","parameters":[{"name":"X-Bootstrap-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Bootstrap-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BootstrapAdminRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"tags":["admin-users"],"summary":"Admin List Users","operationId":"admin_list_users_admin_users_get","parameters":[{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/AdminUserSummary"},"title":"Response Admin List Users Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-users"],"summary":"Admin Create User","operationId":"admin_create_user_admin_users_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserWriteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}":{"get":{"tags":["admin-users"],"summary":"Admin Get User","operationId":"admin_get_user_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/AdminUserSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-users"],"summary":"Admin Update User","operationId":"admin_update_user_admin_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserWriteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-users"],"summary":"Admin Delete User","operationId":"admin_delete_user_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/users/{user_id}/mfa/reset":{"post":{"tags":["admin-users"],"summary":"Admin Reset User Mfa","operationId":"admin_reset_user_mfa_admin_users__user_id__mfa_reset_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/users/{user_id}/password/reset":{"post":{"tags":["admin-users"],"summary":"Admin Reset User Password","operationId":"admin_reset_user_password_admin_users__user_id__password_reset_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/AdminUserPasswordResetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/oidc/attempts":{"get":{"tags":["admin-users"],"summary":"Admin List Oidc Attempts","operationId":"admin_list_oidc_attempts_admin_oidc_attempts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","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/AdminOidcIdentityAttemptSummary"},"title":"Response Admin List Oidc Attempts Admin Oidc Attempts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/oidc/attempts/{attempt_id}/link":{"post":{"tags":["admin-users"],"summary":"Admin Link Oidc Attempt","operationId":"admin_link_oidc_attempt_admin_oidc_attempts__attempt_id__link_post","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","title":"Attempt Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/AdminOidcIdentityAttemptLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOidcIdentityAttemptSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/oidc/attempts/{attempt_id}":{"delete":{"tags":["admin-users"],"summary":"Admin Delete Oidc Attempt","operationId":"admin_delete_oidc_attempt_admin_oidc_attempts__attempt_id__delete","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","title":"Attempt Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/users/{user_id}/restore":{"post":{"tags":["admin-users"],"summary":"Admin Restore User","description":"Restore a soft-deleted (archived) user. Reactivates the account without touching OIDC;\nthe user will re-link on next login.","operationId":"admin_restore_user_admin_users__user_id__restore_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/AdminUserSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/oidc-link":{"delete":{"tags":["admin-users"],"summary":"Admin Unlink Oidc","operationId":"admin_unlink_oidc_admin_users__user_id__oidc_link_delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/roles":{"get":{"tags":["admin-users"],"summary":"Admin List Roles","operationId":"admin_list_roles_admin_roles_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/AdminRoleResponse"},"title":"Response Admin List Roles Admin Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clinics":{"get":{"tags":["admin-users"],"summary":"Admin List Clinics","operationId":"admin_list_clinics_admin_clinics_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/ClinicResponse"},"title":"Response Admin List Clinics Admin Clinics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clinics/merge":{"post":{"tags":["admin-users"],"summary":"Admin Merge Clinics","operationId":"admin_merge_clinics_admin_clinics_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/ClinicMergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicMergeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/panels":{"get":{"tags":["admin-users"],"summary":"Admin List Panels","operationId":"admin_list_panels_admin_panels_get","parameters":[{"name":"clinic_id","in":"query","required":true,"schema":{"type":"string","title":"Clinic Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/users/email-logs":{"get":{"tags":["admin-users"],"summary":"Admin List User Email Logs","operationId":"admin_list_user_email_logs_admin_users_email_logs_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"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/AdminAuthEmailLogResponse"},"title":"Response Admin List User Email Logs Admin Users Email Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user-email-logs":{"get":{"tags":["admin-users"],"summary":"Admin List User Email Logs","operationId":"admin_list_user_email_logs_admin_user_email_logs_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"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/AdminAuthEmailLogResponse"},"title":"Response Admin List User Email Logs Admin User Email Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spark/summary":{"get":{"tags":["admin-users"],"summary":"Admin Spark Summary","operationId":"admin_spark_summary_admin_spark_summary_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/interactions":{"get":{"tags":["admin-users"],"summary":"Admin Spark Interactions","operationId":"admin_spark_interactions_admin_spark_interactions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/interactions/{interaction_id}":{"get":{"tags":["admin-users"],"summary":"Admin Spark Interaction Detail","operationId":"admin_spark_interaction_detail_admin_spark_interactions__interaction_id__get","parameters":[{"name":"interaction_id","in":"path","required":true,"schema":{"type":"string","title":"Interaction Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/memory":{"get":{"tags":["admin-users"],"summary":"Admin Spark Memory","operationId":"admin_spark_memory_admin_spark_memory_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","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spark/analytics-plan-feedback":{"get":{"tags":["admin-users"],"summary":"Admin Spark Analytics Plan Feedback","operationId":"admin_spark_analytics_plan_feedback_admin_spark_analytics_plan_feedback_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","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spark/analytics-plan-memory":{"get":{"tags":["admin-users"],"summary":"Admin Spark Analytics Plan Memory","operationId":"admin_spark_analytics_plan_memory_admin_spark_analytics_plan_memory_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","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spark/analytics-plan-memory/{memory_id}":{"patch":{"tags":["admin-users"],"summary":"Admin Spark Analytics Plan Memory Review","operationId":"admin_spark_analytics_plan_memory_review_admin_spark_analytics_plan_memory__memory_id__patch","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/AnalyticsPlanMemoryReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spark/evals":{"get":{"tags":["admin-users"],"summary":"Admin Spark Evals","operationId":"admin_spark_evals_admin_spark_evals_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spark/analytics-eval-cases":{"get":{"tags":["admin-users"],"summary":"Admin Spark Analytics Eval Cases","operationId":"admin_spark_analytics_eval_cases_admin_spark_analytics_eval_cases_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","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spark/analytics-eval-cases/{eval_case_id}":{"get":{"tags":["admin-users"],"summary":"Admin Spark Analytics Eval Case Detail","operationId":"admin_spark_analytics_eval_case_detail_admin_spark_analytics_eval_cases__eval_case_id__get","parameters":[{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/evals/{eval_case_id}":{"get":{"tags":["admin-users"],"summary":"Admin Spark Eval Case","operationId":"admin_spark_eval_case_admin_spark_evals__eval_case_id__get","parameters":[{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":365,"title":"Days"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/helper-status":{"get":{"tags":["admin-users"],"summary":"Admin Spark Helper Status","operationId":"admin_spark_helper_status_admin_spark_helper_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"}}}}}}},"/admin/spark/trends/latency":{"get":{"tags":["admin-users"],"summary":"Admin Spark Trend Latency","operationId":"admin_spark_trend_latency_admin_spark_trends_latency_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/trends/outcomes":{"get":{"tags":["admin-users"],"summary":"Admin Spark Trend Outcomes","operationId":"admin_spark_trend_outcomes_admin_spark_trends_outcomes_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/trends/helper-usage":{"get":{"tags":["admin-users"],"summary":"Admin Spark Trend Helper Usage","operationId":"admin_spark_trend_helper_usage_admin_spark_trends_helper_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/spark/trends/fallbacks":{"get":{"tags":["admin-users"],"summary":"Admin Spark Trend Fallbacks","operationId":"admin_spark_trend_fallbacks_admin_spark_trends_fallbacks_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/analytics/registry/fields":{"get":{"tags":["analytics"],"summary":"Analytics Registry Fields","operationId":"analytics_registry_fields_analytics_registry_fields_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"}}}}}}},"/analytics/registry/measures":{"get":{"tags":["analytics"],"summary":"Analytics Registry Measures","operationId":"analytics_registry_measures_analytics_registry_measures_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"}}}}}}},"/analytics/registry/operators":{"get":{"tags":["analytics"],"summary":"Analytics Registry Operators","operationId":"analytics_registry_operators_analytics_registry_operators_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"}}}}}}},"/analytics/plan":{"post":{"tags":["analytics"],"summary":"Analytics Plan","operationId":"analytics_plan_analytics_plan_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/AnalyticsPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/validate-plan":{"post":{"tags":["analytics"],"summary":"Analytics Validate Plan","operationId":"analytics_validate_plan_analytics_validate_plan_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/AnalyticsPlanPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsPlanValidationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/normalize-plan":{"post":{"tags":["analytics"],"summary":"Analytics Normalize Plan","operationId":"analytics_normalize_plan_analytics_normalize_plan_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/AnalyticsPlanPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsPlanNormalizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/translate-plan":{"post":{"tags":["analytics"],"summary":"Analytics Translate Plan","operationId":"analytics_translate_plan_analytics_translate_plan_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/AnalyticsPlanPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsPlanTranslateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/prepare-plan":{"post":{"tags":["analytics"],"summary":"Analytics Prepare Plan","operationId":"analytics_prepare_plan_analytics_prepare_plan_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/AnalyticsPlanPrepareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsPlanPrepareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/plan-feedback":{"post":{"tags":["analytics"],"summary":"Analytics Plan Feedback","operationId":"analytics_plan_feedback_analytics_plan_feedback_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/AnalyticsPlanFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsPlanFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/metrics":{"post":{"tags":["analytics"],"summary":"Create Metric","operationId":"create_metric_analytics_metrics_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/MetricDefinitionCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["analytics"],"summary":"List Metrics","operationId":"list_metrics_analytics_metrics_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/MetricDefinitionResponse"},"title":"Response List Metrics Analytics Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/metrics/{metric_id}":{"get":{"tags":["analytics"],"summary":"Get Metric","operationId":"get_metric_analytics_metrics__metric_id__get","parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","title":"Metric Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/MetricDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/metrics/{metric_id}/run":{"post":{"tags":["analytics"],"summary":"Run Metric","operationId":"run_metric_analytics_metrics__metric_id__run_post","parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","title":"Metric Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/MetricRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/worklists":{"post":{"tags":["analytics"],"summary":"Create Worklist","operationId":"create_worklist_analytics_worklists_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/WorklistDefinitionCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorklistDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["analytics"],"summary":"List Worklists","operationId":"list_worklists_analytics_worklists_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/WorklistDefinitionResponse"},"title":"Response List Worklists Analytics Worklists Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/worklists/{worklist_id}":{"get":{"tags":["analytics"],"summary":"Get Worklist","operationId":"get_worklist_analytics_worklists__worklist_id__get","parameters":[{"name":"worklist_id","in":"path","required":true,"schema":{"type":"string","title":"Worklist Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/WorklistDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/worklists/{worklist_id}/run":{"post":{"tags":["analytics"],"summary":"Run Worklist","operationId":"run_worklist_analytics_worklists__worklist_id__run_post","parameters":[{"name":"worklist_id","in":"path","required":true,"schema":{"type":"string","title":"Worklist Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/WorklistRunResponseV2"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/action-batches":{"post":{"tags":["analytics"],"summary":"Create Action Batch","operationId":"create_action_batch_analytics_action_batches_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/ActionBatchCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/action-batches/{action_batch_id}":{"get":{"tags":["analytics"],"summary":"Get Action Batch","operationId":"get_action_batch_analytics_action_batches__action_batch_id__get","parameters":[{"name":"action_batch_id","in":"path","required":true,"schema":{"type":"string","title":"Action 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":{"$ref":"#/components/schemas/ActionBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/action-batches/{action_batch_id}/approve":{"post":{"tags":["analytics"],"summary":"Approve Action Batch","operationId":"approve_action_batch_analytics_action_batches__action_batch_id__approve_post","parameters":[{"name":"action_batch_id","in":"path","required":true,"schema":{"type":"string","title":"Action 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"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionBatchApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/action-batches/{action_batch_id}/execute":{"post":{"tags":["analytics"],"summary":"Execute Action Batch","operationId":"execute_action_batch_analytics_action_batches__action_batch_id__execute_post","parameters":[{"name":"action_batch_id","in":"path","required":true,"schema":{"type":"string","title":"Action 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":{"$ref":"#/components/schemas/ActionBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/analytics-assist":{"post":{"tags":["analytics"],"summary":"Spark Analytics Assist","operationId":"spark_analytics_assist_spark_analytics_assist_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/SparkAnalyticsAssistRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkAnalyticsAssistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/registry":{"get":{"tags":["admin-integrations"],"summary":"List Integrations Registry","operationId":"list_integrations_registry_admin_integrations_registry_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/AdminIntegrationSummaryResponse"},"title":"Response List Integrations Registry Admin Integrations Registry Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations":{"get":{"tags":["admin-integrations"],"summary":"List Integrations Registry Compat","operationId":"list_integrations_registry_compat_admin_integrations_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/AdminIntegrationSummaryResponse"},"title":"Response List Integrations Registry Compat Admin Integrations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/registry/{integration_key}":{"get":{"tags":["admin-integrations"],"summary":"Get Integration Registry Detail","operationId":"get_integration_registry_detail_admin_integrations_registry__integration_key__get","parameters":[{"name":"integration_key","in":"path","required":true,"schema":{"type":"string","title":"Integration Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-integrations"],"summary":"Patch Integration Registry Settings","operationId":"patch_integration_registry_settings_admin_integrations_registry__integration_key__patch","parameters":[{"name":"integration_key","in":"path","required":true,"schema":{"type":"string","title":"Integration Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/{integration_key}":{"get":{"tags":["admin-integrations"],"summary":"Get Integration Detail Compat","operationId":"get_integration_detail_compat_admin_integrations__integration_key__get","parameters":[{"name":"integration_key","in":"path","required":true,"schema":{"type":"string","title":"Integration Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/registry/{integration_key}/credentials":{"patch":{"tags":["admin-integrations"],"summary":"Patch Integration Registry Credentials","operationId":"patch_integration_registry_credentials_admin_integrations_registry__integration_key__credentials_patch","parameters":[{"name":"integration_key","in":"path","required":true,"schema":{"type":"string","title":"Integration Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationCredentialsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/registry/{integration_key}/schedule":{"patch":{"tags":["admin-integrations"],"summary":"Patch Integration Registry Schedule","operationId":"patch_integration_registry_schedule_admin_integrations_registry__integration_key__schedule_patch","parameters":[{"name":"integration_key","in":"path","required":true,"schema":{"type":"string","title":"Integration Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationScheduleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/registry/{integration_key}/mappings":{"patch":{"tags":["admin-integrations"],"summary":"Patch Integration Registry Mappings","operationId":"patch_integration_registry_mappings_admin_integrations_registry__integration_key__mappings_patch","parameters":[{"name":"integration_key","in":"path","required":true,"schema":{"type":"string","title":"Integration Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationMappingUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/registry/{integration_key}/test-connection":{"post":{"tags":["admin-integrations"],"summary":"Test Registry Integration Connection","operationId":"test_registry_integration_connection_admin_integrations_registry__integration_key__test_connection_post","parameters":[{"name":"integration_key","in":"path","required":true,"schema":{"type":"string","title":"Integration Key"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/registry/probe":{"get":{"tags":["admin-integrations"],"summary":"Probe Registry Integrations","operationId":"probe_registry_integrations_admin_integrations_registry_probe_get","parameters":[{"name":"live","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Live"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/AdminIntegrationProbeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/config":{"get":{"tags":["admin-integrations"],"summary":"Get Tebra Config","operationId":"get_tebra_config_admin_integrations_tebra_config_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-integrations"],"summary":"Save Tebra Config","operationId":"save_tebra_config_admin_integrations_tebra_config_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/TebraConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/auto-sync":{"get":{"tags":["admin-integrations"],"summary":"Get Tebra Auto Sync","operationId":"get_tebra_auto_sync_admin_integrations_tebra_auto_sync_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/TebraAutoSyncConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-integrations"],"summary":"Save Tebra Auto Sync","operationId":"save_tebra_auto_sync_admin_integrations_tebra_auto_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"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraAutoSyncConfigUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraAutoSyncConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/auto-sync/run-now":{"post":{"tags":["admin-integrations"],"summary":"Run Tebra Auto Sync Now","operationId":"run_tebra_auto_sync_now_admin_integrations_tebra_auto_sync_run_now_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":{"$ref":"#/components/schemas/TebraSyncPatientsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/auto-sync/rules":{"get":{"tags":["admin-integrations"],"summary":"List Tebra Auto Sync Rules","operationId":"list_tebra_auto_sync_rules_admin_integrations_tebra_auto_sync_rules_get","parameters":[{"name":"include_disabled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Disabled"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/TebraAutoSyncRuleResponse"},"title":"Response List Tebra Auto Sync Rules Admin Integrations Tebra Auto Sync Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/auto-sync/rules/{clinic_id}":{"post":{"tags":["admin-integrations"],"summary":"Save Tebra Auto Sync Rule For Clinic","operationId":"save_tebra_auto_sync_rule_for_clinic_admin_integrations_tebra_auto_sync_rules__clinic_id__post","parameters":[{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","title":"Clinic Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/TebraAutoSyncConfigUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraAutoSyncRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-integrations"],"summary":"Delete Tebra Auto Sync Rule For Clinic","operationId":"delete_tebra_auto_sync_rule_for_clinic_admin_integrations_tebra_auto_sync_rules__clinic_id__delete","parameters":[{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","title":"Clinic Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/integrations/tebra/test-connection":{"post":{"tags":["admin-integrations"],"summary":"Test Tebra Connection","operationId":"test_tebra_connection_admin_integrations_tebra_test_connection_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":{"$ref":"#/components/schemas/TebraConnectionTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/fhir/config":{"get":{"tags":["admin-integrations"],"summary":"Get Tebra Fhir Config Endpoint","operationId":"get_tebra_fhir_config_endpoint_admin_integrations_tebra_fhir_config_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraFhirConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-integrations"],"summary":"Save Tebra Fhir Config Endpoint","operationId":"save_tebra_fhir_config_endpoint_admin_integrations_tebra_fhir_config_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/TebraFhirConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraFhirConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/fhir/validate":{"post":{"tags":["admin-integrations"],"summary":"Validate Tebra Fhir Connection","description":"Test Tebra FHIR R4 credentials and return capability summary.\n\nReads credentials from ``IntegrationConfig`` (``integration_name=\"tebra_fhir\"``),\nfalling back to settings-level defaults.  Returns the same structure as\n``TebraFhirClient.validate_connection()``.","operationId":"validate_tebra_fhir_connection_admin_integrations_tebra_fhir_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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/tebra/fhir/capability":{"get":{"tags":["admin-integrations"],"summary":"Get Tebra Fhir Capability","description":"Fetch the raw FHIR CapabilityStatement from Tebra's FHIR R4 server.\n\nDoes not require authentication against Tebra — the CapabilityStatement\nendpoint is unauthenticated on most FHIR servers.","operationId":"get_tebra_fhir_capability_admin_integrations_tebra_fhir_capability_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"}}}}}}},"/integrations/tebra/practices":{"get":{"tags":["integrations"],"summary":"List Tebra Practices","operationId":"list_tebra_practices_integrations_tebra_practices_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/TebraPracticeResponse"},"title":"Response List Tebra Practices Integrations Tebra Practices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/sync/patients":{"post":{"tags":["integrations"],"summary":"Sync Tebra Patients","operationId":"sync_tebra_patients_integrations_tebra_sync_patients_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/TebraSyncPatientsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TebraSyncPatientsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/sync/appointments":{"post":{"tags":["integrations"],"summary":"Sync Tebra Appointments","operationId":"sync_tebra_appointments_integrations_tebra_sync_appointments_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/TebraSyncPatientsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/providers":{"get":{"tags":["integrations"],"summary":"List Tebra Providers","operationId":"list_tebra_providers_integrations_tebra_providers_get","parameters":[{"name":"practice_name","in":"query","required":true,"schema":{"type":"string","title":"Practice Name"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/sync/appointment-reasons":{"post":{"tags":["integrations"],"summary":"Sync Tebra Appointment Reasons","operationId":"sync_tebra_appointment_reasons_integrations_tebra_sync_appointment_reasons_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"}}}}}}},"/integrations/tebra/sync/service-locations":{"post":{"tags":["integrations"],"summary":"Sync Tebra Service Locations","operationId":"sync_tebra_service_locations_integrations_tebra_sync_service_locations_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}}}}},"/integrations/tebra/sync/encounters":{"post":{"tags":["integrations"],"summary":"Sync Tebra Encounters","operationId":"sync_tebra_encounters_integrations_tebra_sync_encounters_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"}}}}}}},"/integrations/tebra/sync/payments":{"post":{"tags":["integrations"],"summary":"Sync Tebra Payments","operationId":"sync_tebra_payments_integrations_tebra_sync_payments_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/sync/transactions":{"post":{"tags":["integrations"],"summary":"Sync Tebra Transactions","operationId":"sync_tebra_transactions_integrations_tebra_sync_transactions_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"}}}}}}},"/integrations/tebra/procedure-codes":{"get":{"tags":["integrations"],"summary":"List Tebra Procedure Codes","operationId":"list_tebra_procedure_codes_integrations_tebra_procedure_codes_get","parameters":[{"name":"practice_name","in":"query","required":true,"schema":{"type":"string","title":"Practice Name"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/appointment-write-capability":{"get":{"tags":["integrations"],"summary":"Tebra Appointment Write Capability","operationId":"tebra_appointment_write_capability_integrations_tebra_appointment_write_capability_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"}}}}}}},"/integrations/tebra/sync/fhir/{patient_id}":{"post":{"tags":["integrations"],"summary":"Sync Patient Fhir","description":"Manually trigger a full FHIR sync for a single patient.\n\nSteps performed:\n1. Generate a local FHIR Patient resource from Prometheus + TebraPatientDetail.\n2. Pull all clinical resources (Conditions, Observations, MedicationRequests,\n   AllergyIntolerances, DocumentReferences, Appointments) from Tebra FHIR R4\n   and import them via ``FhirBundleImportService``.\n\nThe clinical pull only runs if Tebra FHIR R4 credentials are configured.","operationId":"sync_patient_fhir_integrations_tebra_sync_fhir__patient_id__post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/push/patient/create":{"post":{"tags":["integrations"],"summary":"Push Tebra Patient Create","description":"Push a new patient from Prometheus to Tebra.\n\nRequired payload fields: ``practice_name``, ``first_name``, ``last_name``.\nOptional: ``dob``, ``sex``, ``address1``, ``address2``, ``city``, ``state``,\n``zip_code``, ``home_phone``, ``mobile_phone``, ``work_phone``, ``email``,\n``middle_name``, ``marital_status``, ``primary_insurance_plan_name``,\n``primary_insurance_member_id``, ``primary_insurance_group_number``.","operationId":"push_tebra_patient_create_integrations_tebra_push_patient_create_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"}}}}}}},"/integrations/tebra/push/patient/{tebra_patient_id}/update":{"post":{"tags":["integrations"],"summary":"Push Tebra Patient Update","description":"Push patient demographics changes from Prometheus to Tebra.","operationId":"push_tebra_patient_update_integrations_tebra_push_patient__tebra_patient_id__update_post","parameters":[{"name":"tebra_patient_id","in":"path","required":true,"schema":{"type":"string","title":"Tebra Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/push/patient/{tebra_patient_id}/insurance":{"post":{"tags":["integrations"],"summary":"Push Tebra Insurance Update","description":"Push primary insurance (patient case) changes from Prometheus to Tebra.","operationId":"push_tebra_insurance_update_integrations_tebra_push_patient__tebra_patient_id__insurance_post","parameters":[{"name":"tebra_patient_id","in":"path","required":true,"schema":{"type":"string","title":"Tebra Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/push/appointment/create":{"post":{"tags":["integrations"],"summary":"Push Tebra Appointment Create","description":"Push a new appointment from Prometheus to Tebra.\n\nRequired: ``practice_name``, ``tebra_patient_id``, ``start_datetime``, ``end_datetime``.\nOptional: ``appointment_type``, ``resource_id``, ``resource_name``, ``location_name``,\n``notes``, ``status`` (default ``Scheduled``).","operationId":"push_tebra_appointment_create_integrations_tebra_push_appointment_create_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"}}}}}}},"/integrations/tebra/push/appointment/{tebra_appointment_id}/update":{"post":{"tags":["integrations"],"summary":"Push Tebra Appointment Update","description":"Push an appointment update from Prometheus to Tebra.","operationId":"push_tebra_appointment_update_integrations_tebra_push_appointment__tebra_appointment_id__update_post","parameters":[{"name":"tebra_appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Tebra Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/integrations/tebra/push/appointment/{tebra_appointment_id}/delete":{"post":{"tags":["integrations"],"summary":"Push Tebra Appointment Delete","description":"Delete (cancel) an appointment in Tebra.","operationId":"push_tebra_appointment_delete_integrations_tebra_push_appointment__tebra_appointment_id__delete_post","parameters":[{"name":"tebra_appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Tebra Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/integrations/tebra/push/encounter/create":{"post":{"tags":["integrations"],"summary":"Push Tebra Encounter Create","description":"Push a new encounter/visit from Prometheus to Tebra.\n\nRequired: ``practice_name``, ``tebra_patient_id``, ``encounter_date``.\nOptional: ``provider_id``, ``provider_name``, ``procedure_code``,\n``diagnosis_code``, ``notes``, ``location_name``.","operationId":"push_tebra_encounter_create_integrations_tebra_push_encounter_create_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"}}}}}}},"/integrations/tebra/push/encounter/{tebra_encounter_id}/update":{"post":{"tags":["integrations"],"summary":"Push Tebra Encounter Update","description":"Push an encounter update from Prometheus to Tebra.","operationId":"push_tebra_encounter_update_integrations_tebra_push_encounter__tebra_encounter_id__update_post","parameters":[{"name":"tebra_encounter_id","in":"path","required":true,"schema":{"type":"string","title":"Tebra Encounter Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/integrations/tebra/push/document/create":{"post":{"tags":["integrations"],"summary":"Push Tebra Document Create","description":"Upload a document from Prometheus to Tebra.\n\nRequired: ``practice_name``, ``tebra_patient_id``, ``document_name``, ``document_date``.\nOptional: ``document_type``, ``document_body_base64``, ``notes``.","operationId":"push_tebra_document_create_integrations_tebra_push_document_create_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"}}}}}}},"/integrations/tebra/push/document/{tebra_document_id}/delete":{"post":{"tags":["integrations"],"summary":"Push Tebra Document Delete","description":"Remove a document from Tebra.","operationId":"push_tebra_document_delete_integrations_tebra_push_document__tebra_document_id__delete_post","parameters":[{"name":"tebra_document_id","in":"path","required":true,"schema":{"type":"string","title":"Tebra Document Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/integrations/tebra/push/payment/create":{"post":{"tags":["integrations"],"summary":"Push Tebra Payment Create","description":"Record a payment in Tebra from Prometheus.\n\nRequired: ``practice_name``, ``tebra_patient_id``, ``payment_amount``, ``payment_date``.\nOptional: ``payment_method``, ``check_number``, ``notes``, ``card_last_four``.","operationId":"push_tebra_payment_create_integrations_tebra_push_payment_create_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"}}}}}}},"/integrations/patients/{patient_id}/sync/tebra":{"post":{"tags":["integrations"],"summary":"Force Tebra Patient Sync","description":"Immediately sync a patient's clinical data from Tebra FHIR R4.\n\nRoles: Provider, Nurse, Front Desk (anyone with pophealth.patient.write).\nReturns the sync result including resources updated and any errors.\nThis is a synchronous call — the response is not returned until the pull completes.","operationId":"force_tebra_patient_sync_integrations_patients__patient_id__sync_tebra_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/patients/{patient_id}/sync/tebra/status":{"get":{"tags":["integrations"],"summary":"Get Patient Tebra Sync Status","description":"Return the last Tebra FHIR sync timestamp and whether the patient is Tebra-linked.","operationId":"get_patient_tebra_sync_status_integrations_patients__patient_id__sync_tebra_status_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"}}}}}}},"/integrations/patients/{patient_id}/tebra-charges":{"get":{"tags":["integrations"],"summary":"Get Patient Tebra Charges","description":"Return individual Tebra charge records for a patient in billing-UI-compatible format.","operationId":"get_patient_tebra_charges_integrations_patients__patient_id__tebra_charges_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"}}}}}}},"/integrations/tebra/sync-financials":{"post":{"tags":["integrations"],"summary":"Trigger Tebra Financial Sync","description":"Trigger a full charges sync for all Tebra-linked patients in this clinic.\n\nRuns in the background so the response returns immediately.\nCheck /tebra/financial-sync-status for last completed timestamp.","operationId":"trigger_tebra_financial_sync_integrations_tebra_sync_financials_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"}}}}}}},"/integrations/tebra/morning-sync":{"post":{"tags":["integrations"],"summary":"Tebra Morning Sync","description":"Fire-and-forget SOAP patient sync for the first login of the day.\n\nReturns immediately. The caller (client app) should track the last trigger\ndate in localStorage to avoid repeat calls within the same calendar day.\nServer-side guard also prevents double-execution if multiple browsers race.","operationId":"tebra_morning_sync_integrations_tebra_morning_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/patients/{patient_id}/sync/tebra-billing":{"post":{"tags":["integrations"],"summary":"Trigger Patient Tebra Billing Sync","description":"Trigger a per-patient Tebra billing sync (charges + transactions).\n\nLooks up the patient's Tebra external ID, then fetches only that patient's\ncharges and transactions from Tebra SOAP. Runs in background.","operationId":"trigger_patient_tebra_billing_sync_integrations_patients__patient_id__sync_tebra_billing_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/tebra/financial-sync-status":{"get":{"tags":["integrations"],"summary":"Get Financial Sync Status","description":"Return the most recent charges sync timestamp across all patients in this clinic.","operationId":"get_financial_sync_status_integrations_tebra_financial_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"}}}}}}},"/communications/ringcentral/webhook":{"post":{"tags":["communications"],"summary":"Ringcentral Webhook","operationId":"ringcentral_webhook_communications_ringcentral_webhook_post","parameters":[{"name":"Validation-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation-Token"}},{"name":"X-RingCentral-Validation-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ringcentral-Validation-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/faxes/sync":{"post":{"tags":["communications"],"summary":"Communications Sync Faxes","operationId":"communications_sync_faxes_communications_faxes_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/faxes":{"get":{"tags":["communications"],"summary":"List Faxes","operationId":"list_faxes_communications_faxes_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"assignee","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"}},{"name":"patient","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient"}},{"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"}}}}}}},"/communications/faxes/{fax_id}":{"get":{"tags":["communications"],"summary":"Get Fax","operationId":"get_fax_communications_faxes__fax_id__get","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/faxes/{fax_id}/document":{"get":{"tags":["communications"],"summary":"Get Fax Document","operationId":"get_fax_document_communications_faxes__fax_id__document_get","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/faxes/{fax_id}/ocr":{"post":{"tags":["communications"],"summary":"Rerun Fax Ocr","operationId":"rerun_fax_ocr_communications_faxes__fax_id__ocr_post","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/faxes/{fax_id}/classify":{"post":{"tags":["communications"],"summary":"Rerun Fax Classification","operationId":"rerun_fax_classification_communications_faxes__fax_id__classify_post","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/faxes/{fax_id}/patient-candidates/refresh":{"post":{"tags":["communications"],"summary":"Refresh Candidates","operationId":"refresh_candidates_communications_faxes__fax_id__patient_candidates_refresh_post","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/faxes/{fax_id}/review":{"post":{"tags":["communications"],"summary":"Review Fax","operationId":"review_fax_communications_faxes__fax_id__review_post","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/tasks":{"get":{"tags":["communications"],"summary":"List Tasks","operationId":"list_tasks_communications_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"assignee","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"linked_patient","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Patient"}},{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source 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"}}}}}},"post":{"tags":["communications"],"summary":"Create Task","operationId":"create_task_communications_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":{"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"}}}}}}},"/communications/tasks/{thread_id}":{"get":{"tags":["communications"],"summary":"Get Task","operationId":"get_task_communications_tasks__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["communications"],"summary":"Patch Task","operationId":"patch_task_communications_tasks__thread_id__patch","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/tasks/{thread_id}/assign":{"post":{"tags":["communications"],"summary":"Assign Task","operationId":"assign_task_communications_tasks__thread_id__assign_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/tasks/{thread_id}/messages":{"post":{"tags":["communications"],"summary":"Add Task Message","operationId":"add_task_message_communications_tasks__thread_id__messages_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/tasks/{thread_id}/attachments":{"post":{"tags":["communications"],"summary":"Attach File To Task","operationId":"attach_file_to_task_communications_tasks__thread_id__attachments_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/tasks/{thread_id}/complete":{"post":{"tags":["communications"],"summary":"Complete Task","operationId":"complete_task_communications_tasks__thread_id__complete_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/tasks/{thread_id}/reopen":{"post":{"tags":["communications"],"summary":"Reopen Task","operationId":"reopen_task_communications_tasks__thread_id__reopen_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/faxes/{fax_id}/reply":{"post":{"tags":["communications"],"summary":"Reply Fax","operationId":"reply_fax_communications_faxes__fax_id__reply_post","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/faxes/outbound":{"post":{"tags":["communications"],"summary":"Create Outbound Fax","operationId":"create_outbound_fax_communications_faxes_outbound_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"}}}}}}},"/communications/outbound/{job_id}":{"get":{"tags":["communications"],"summary":"Get Outbound Job","operationId":"get_outbound_job_communications_outbound__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/outbound/{job_id}/resend":{"post":{"tags":["communications"],"summary":"Resend Outbound","operationId":"resend_outbound_communications_outbound__job_id__resend_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/uploads":{"post":{"tags":["communications"],"summary":"Communications Upload","operationId":"communications_upload_communications_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_communications_upload_communications_uploads_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/uploads/commit":{"post":{"tags":["communications"],"summary":"Commit Upload","operationId":"commit_upload_communications_uploads_commit_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"}}}}}}},"/communications":{"get":{"tags":["communications"],"summary":"Communications Dashboard","operationId":"communications_dashboard_communications_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"}}}}}}},"/communications/notifications":{"get":{"tags":["communications"],"summary":"Communications Notifications","operationId":"communications_notifications_communications_notifications_get","parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread 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"}}}}}}},"/communications/me/ringcentral-profile":{"get":{"tags":["communications"],"summary":"Get My Ringcentral Profile","operationId":"get_my_ringcentral_profile_communications_me_ringcentral_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"}}}}}},"post":{"tags":["communications"],"summary":"Upsert My Ringcentral Profile","operationId":"upsert_my_ringcentral_profile_communications_me_ringcentral_profile_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"}}}}}}},"/communications/sms/sync":{"post":{"tags":["communications"],"summary":"Sync Sms","operationId":"sync_sms_communications_sms_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/sms/conversations":{"get":{"tags":["communications"],"summary":"List Sms Conversations","operationId":"list_sms_conversations_communications_sms_conversations_get","parameters":[{"name":"match_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match 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"}}}}}}},"/communications/sms/conversations/{sms_conversation_id}":{"get":{"tags":["communications"],"summary":"Get Sms Conversation","operationId":"get_sms_conversation_communications_sms_conversations__sms_conversation_id__get","parameters":[{"name":"sms_conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Sms Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/sms/conversations/{sms_conversation_id}/review":{"post":{"tags":["communications"],"summary":"Review Sms Conversation","operationId":"review_sms_conversation_communications_sms_conversations__sms_conversation_id__review_post","parameters":[{"name":"sms_conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Sms Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/sms/send":{"post":{"tags":["communications"],"summary":"Send Sms","operationId":"send_sms_communications_sms_send_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"}}}}}}},"/communications/sms/conversations/{sms_conversation_id}/link-patient":{"post":{"tags":["communications"],"summary":"Link Sms Patient","operationId":"link_sms_patient_communications_sms_conversations__sms_conversation_id__link_patient_post","parameters":[{"name":"sms_conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Sms Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/sms/conversations/{sms_conversation_id}/assign-review":{"post":{"tags":["communications"],"summary":"Assign Sms Review","operationId":"assign_sms_review_communications_sms_conversations__sms_conversation_id__assign_review_post","parameters":[{"name":"sms_conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Sms Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/threads":{"get":{"tags":["communications"],"summary":"List Communication Threads","operationId":"list_communication_threads_communications_threads_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"linked_patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Patient Id"}},{"name":"thread_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread 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"}}}}}},"post":{"tags":["communications"],"summary":"Create Communication Thread","operationId":"create_communication_thread_communications_threads_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"}}}}}}},"/communications/threads/{thread_id}":{"get":{"tags":["communications"],"summary":"Get Communication Thread","operationId":"get_communication_thread_communications_threads__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/threads/{thread_id}/attachments":{"post":{"tags":["communications"],"summary":"Attach File To Thread","operationId":"attach_file_to_thread_communications_threads__thread_id__attachments_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/tasks/{thread_id}/dependencies":{"post":{"tags":["communications"],"summary":"Add Task Dependency","operationId":"add_task_dependency_communications_tasks__thread_id__dependencies_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/communications/calls/initiate":{"post":{"tags":["communications"],"summary":"Initiate Call","operationId":"initiate_call_communications_calls_initiate_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"}}}}}}},"/communications/calls/history":{"get":{"tags":["communications"],"summary":"List Call History","operationId":"list_call_history_communications_calls_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"}}}}}}},"/communications/calls/{call_id}":{"get":{"tags":["communications"],"summary":"Get Call","operationId":"get_call_communications_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/integrations/ringcentral/status":{"get":{"tags":["communications"],"summary":"Ringcentral Status","operationId":"ringcentral_status_communications_integrations_ringcentral_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"}}}}}}},"/communications/integrations/ringcentral/test":{"post":{"tags":["communications"],"summary":"Ringcentral Test","operationId":"ringcentral_test_communications_integrations_ringcentral_test_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"}}}}}}},"/communications/integrations/ringcentral/webhooks/subscribe":{"post":{"tags":["communications"],"summary":"Ringcentral Subscribe","operationId":"ringcentral_subscribe_communications_integrations_ringcentral_webhooks_subscribe_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"}}}}}}},"/communications/faxes/{fax_id}/confidential":{"patch":{"tags":["communications"],"summary":"Mark Fax Confidential","operationId":"mark_fax_confidential_communications_faxes__fax_id__confidential_patch","parameters":[{"name":"fax_id","in":"path","required":true,"schema":{"type":"string","title":"Fax Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/FaxConfidentialPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/intake/upload":{"post":{"tags":["communications"],"summary":"Intake Upload","description":"Direct upload into the unified intake queue (staff-initiated or pophealth-context uploads).","operationId":"intake_upload_communications_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_intake_upload_communications_intake_upload_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/intake/queue":{"get":{"tags":["communications"],"summary":"List Intake Queue","description":"List items in the unified document intake queue.","operationId":"list_intake_queue_communications_intake_queue_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/intake/queue/{queue_id}/route":{"patch":{"tags":["communications"],"summary":"Route Intake Item","description":"Confirm routing for a queue item (module + doc type + patient links).","operationId":"route_intake_item_communications_intake_queue__queue_id__route_patch","parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","title":"Queue Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/IntakeRoutePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/intake/queue/{queue_id}":{"get":{"tags":["communications"],"summary":"Get Intake Item","description":"Get a single intake queue item.","operationId":"get_intake_item_communications_intake_queue__queue_id__get","parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","title":"Queue Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}},"delete":{"tags":["communications"],"summary":"Delete Intake Item","description":"Permanently delete a document from the intake queue.","operationId":"delete_intake_item_communications_intake_queue__queue_id__delete","parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","title":"Queue Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/communications/intake/queue/{queue_id}/document":{"get":{"tags":["communications"],"summary":"Get Intake Document","description":"Stream the source document for a queue item.","operationId":"get_intake_document_communications_intake_queue__queue_id__document_get","parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","title":"Queue Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/intake/queue/{queue_id}/extract":{"post":{"tags":["communications"],"summary":"Extract Intake Item","description":"Re-run type-specific field extraction on a queue item's stored OCR text.","operationId":"extract_intake_item_communications_intake_queue__queue_id__extract_post","parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","title":"Queue Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/intake/queue/{queue_id}/reroute":{"post":{"tags":["communications"],"summary":"Reroute Intake Item","description":"Reset a dispatched or confirmed item back to re_routing status so staff can choose a different module.","operationId":"reroute_intake_item_communications_intake_queue__queue_id__reroute_post","parameters":[{"name":"queue_id","in":"path","required":true,"schema":{"type":"string","title":"Queue Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/communications/intake/knowledge":{"get":{"tags":["communications"],"summary":"List Routing Knowledge","description":"List routing knowledge entries for this clinic.","operationId":"list_routing_knowledge_communications_intake_knowledge_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"module","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module"}},{"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/intake/knowledge/{knowledge_id}":{"patch":{"tags":["communications"],"summary":"Update Routing Knowledge","description":"Approve (active) or reject a routing knowledge entry.","operationId":"update_routing_knowledge_communications_intake_knowledge__knowledge_id__patch","parameters":[{"name":"knowledge_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/KnowledgePatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/intake/analytics":{"get":{"tags":["communications"],"summary":"Intake Analytics","description":"Routing accuracy statistics for the intake queue.","operationId":"intake_analytics_communications_intake_analytics_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"}}}}}}},"/communications/intake/platform-knowledge":{"get":{"tags":["communications"],"summary":"List Platform Knowledge","description":"List global platform knowledge entries. Superuser required.","operationId":"list_platform_knowledge_communications_intake_platform_knowledge_get","parameters":[{"name":"knowledge_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/intake/platform-knowledge/{knowledge_id}":{"patch":{"tags":["communications"],"summary":"Update Platform Knowledge","description":"Approve or reject a global platform knowledge entry. Superuser required.","operationId":"update_platform_knowledge_communications_intake_platform_knowledge__knowledge_id__patch","parameters":[{"name":"knowledge_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Id"}}],"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"}}}}}}},"/communications/intake/platform-analytics":{"get":{"tags":["communications"],"summary":"Platform Analytics","description":"Global platform knowledge health stats. Superuser required.","operationId":"platform_analytics_communications_intake_platform_analytics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/document-intake/dispatch/lab-result":{"post":{"tags":["communications"],"summary":"Dispatch Lab Result","description":"Create ClinicalObservation records from extracted lab result rows.\n\nEach entry in observations becomes one ClinicalObservation. Value is stored\nas numeric when parseable, otherwise as text. Source is set to\n'document_intake' with the billing record_id as source reference.","operationId":"dispatch_lab_result_communications_document_intake_dispatch_lab_result_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/LabResultDispatchRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/communications/document-intake/dispatch/note-for-signing":{"post":{"tags":["communications"],"summary":"Dispatch Note For Signing","description":"Create a provider worklist task for a document that requires signing.\n\nOpens a TaskThread assigned to no specific provider (unassigned) so that\nany provider in the clinic can claim it from the worklist. The document\nreference_id and return fax number are stored in the thread description so\nthe provider can download the document and fax back the signed copy.","operationId":"dispatch_note_for_signing_communications_document_intake_dispatch_note_for_signing_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/NoteForSigningDispatchRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices":{"get":{"tags":["office-devices"],"summary":"List Office Devices","operationId":"list_office_devices_office_devices_get","parameters":[{"name":"device_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device 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"}}}}}},"post":{"tags":["office-devices"],"summary":"Create Office Device","operationId":"create_office_device_office_devices_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/OfficeDeviceCreatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/{device_id}":{"get":{"tags":["office-devices"],"summary":"Get Office Device","operationId":"get_office_device_office_devices__device_id__get","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["office-devices"],"summary":"Patch Office Device","operationId":"patch_office_device_office_devices__device_id__patch","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/OfficeDevicePatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/{device_id}/test":{"post":{"tags":["office-devices"],"summary":"Test Office Device","operationId":"test_office_device_office_devices__device_id__test_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/office-devices/routes":{"get":{"tags":["office-devices"],"summary":"List Device Routes","operationId":"list_device_routes_office_devices_routes_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":["office-devices"],"summary":"Create Device Route","operationId":"create_device_route_office_devices_routes_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/DeviceRoutePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/routes/{route_id}":{"patch":{"tags":["office-devices"],"summary":"Patch Device Route","operationId":"patch_device_route_office_devices_routes__route_id__patch","parameters":[{"name":"route_id","in":"path","required":true,"schema":{"type":"string","title":"Route Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/DeviceRoutePatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/templates":{"get":{"tags":["office-devices"],"summary":"List Templates","operationId":"list_templates_office_devices_templates_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":["office-devices"],"summary":"Create Template","operationId":"create_template_office_devices_templates_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/PrintTemplatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/templates/{template_id}":{"get":{"tags":["office-devices"],"summary":"Get Template","operationId":"get_template_office_devices_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["office-devices"],"summary":"Patch Template","operationId":"patch_template_office_devices_templates__template_id__patch","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/PrintTemplatePatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/print-jobs":{"get":{"tags":["office-devices"],"summary":"List Print Jobs","operationId":"list_print_jobs_office_devices_print_jobs_get","parameters":[{"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"}}}}}},"post":{"tags":["office-devices"],"summary":"Create Print Job","operationId":"create_print_job_office_devices_print_jobs_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/PrintJobCreatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/print-jobs/{print_job_id}":{"get":{"tags":["office-devices"],"summary":"Get Print Job","operationId":"get_print_job_office_devices_print_jobs__print_job_id__get","parameters":[{"name":"print_job_id","in":"path","required":true,"schema":{"type":"string","title":"Print Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/office-devices/print-jobs/{print_job_id}/retry":{"post":{"tags":["office-devices"],"summary":"Retry Print Job","operationId":"retry_print_job_office_devices_print_jobs__print_job_id__retry_post","parameters":[{"name":"print_job_id","in":"path","required":true,"schema":{"type":"string","title":"Print Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/office-devices/print-jobs/{print_job_id}/cancel":{"post":{"tags":["office-devices"],"summary":"Cancel Print Job","operationId":"cancel_print_job_office_devices_print_jobs__print_job_id__cancel_post","parameters":[{"name":"print_job_id","in":"path","required":true,"schema":{"type":"string","title":"Print Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/office-devices/scan-jobs":{"get":{"tags":["office-devices"],"summary":"List Scan Jobs","operationId":"list_scan_jobs_office_devices_scan_jobs_get","parameters":[{"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"}}}}}},"post":{"tags":["office-devices"],"summary":"Create Scan Job","operationId":"create_scan_job_office_devices_scan_jobs_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/ScanJobCreatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-devices/scan-jobs/{scan_job_id}":{"get":{"tags":["office-devices"],"summary":"Get Scan Job","operationId":"get_scan_job_office_devices_scan_jobs__scan_job_id__get","parameters":[{"name":"scan_job_id","in":"path","required":true,"schema":{"type":"string","title":"Scan Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/office-connector/register":{"post":{"tags":["office-connector"],"summary":"Connector Register","operationId":"connector_register_office_connector_register_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/ConnectorRegisterPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-connector/heartbeat":{"post":{"tags":["office-connector"],"summary":"Connector Heartbeat","operationId":"connector_heartbeat_office_connector_heartbeat_post","parameters":[{"name":"connector_node_id","in":"query","required":true,"schema":{"type":"string","title":"Connector Node Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ConnectorHeartbeatPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-connector/jobs/next":{"get":{"tags":["office-connector"],"summary":"Connector Next Job","operationId":"connector_next_job_office_connector_jobs_next_get","parameters":[{"name":"connector_node_id","in":"query","required":true,"schema":{"type":"string","title":"Connector Node Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/office-connector/print-jobs/{print_job_id}/status":{"post":{"tags":["office-connector"],"summary":"Connector Print Job Status","operationId":"connector_print_job_status_office_connector_print_jobs__print_job_id__status_post","parameters":[{"name":"print_job_id","in":"path","required":true,"schema":{"type":"string","title":"Print Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ConnectorPrintStatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/office-connector/scan-jobs/{scan_job_id}/upload":{"post":{"tags":["office-connector"],"summary":"Connector Scan Upload","operationId":"connector_scan_upload_office_connector_scan_jobs__scan_job_id__upload_post","parameters":[{"name":"scan_job_id","in":"path","required":true,"schema":{"type":"string","title":"Scan Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ConnectorScanUploadPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fhir/metadata":{"get":{"tags":["fhir"],"summary":"Fhir Metadata","operationId":"fhir_metadata_fhir_metadata_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"}}}}}}},"/fhir/{resource_type}/{resource_id}":{"get":{"tags":["fhir"],"summary":"Fhir Get Resource","operationId":"fhir_get_resource_fhir__resource_type___resource_id__get","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource Type"}},{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}},"put":{"tags":["fhir"],"summary":"Fhir Update Resource","operationId":"fhir_update_resource_fhir__resource_type___resource_id__put","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource Type"}},{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/fhir/{resource_type}":{"get":{"tags":["fhir"],"summary":"Fhir Search Resources","operationId":"fhir_search_resources_fhir__resource_type__get","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource 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"}}}}}},"post":{"tags":["fhir"],"summary":"Fhir Create Resource","operationId":"fhir_create_resource_fhir__resource_type__post","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource 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"}}],"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"}}}}}}},"/fhir/{resource_type}/$validate":{"post":{"tags":["fhir"],"summary":"Fhir Validate Resource","description":"Structural validation only — returns OperationOutcome. Does not persist.","operationId":"fhir_validate_resource_fhir__resource_type___validate_post","parameters":[{"name":"resource_type","in":"path","required":true,"schema":{"type":"string","title":"Resource 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"}}],"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"}}}}}}},"/fhir":{"post":{"tags":["fhir"],"summary":"Fhir Bundle Endpoint","operationId":"fhir_bundle_endpoint_fhir_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"}}}}}}},"/fhir/import/jobs":{"post":{"tags":["fhir"],"summary":"Create Fhir Import Job","operationId":"create_fhir_import_job_fhir_import_jobs_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/FhirImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fhir"],"summary":"List Fhir Import Jobs","operationId":"list_fhir_import_jobs_fhir_import_jobs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"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"}}}}}}},"/fhir/import/jobs/{job_id}":{"get":{"tags":["fhir"],"summary":"Get Fhir Import Job","operationId":"get_fhir_import_job_fhir_import_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/fhir/import/conflicts":{"get":{"tags":["fhir"],"summary":"List Fhir Import Conflicts","operationId":"list_fhir_import_conflicts_fhir_import_conflicts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","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"}}}}}}},"/fhir/export/jobs":{"post":{"tags":["fhir"],"summary":"Create Fhir Export Job","operationId":"create_fhir_export_job_fhir_export_jobs_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/FhirExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fhir"],"summary":"List Fhir Export Jobs","operationId":"list_fhir_export_jobs_fhir_export_jobs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"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"}}}}}}},"/fhir/export/jobs/{job_id}":{"get":{"tags":["fhir"],"summary":"Get Fhir Export Job","operationId":"get_fhir_export_job_fhir_export_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/admin/fhir/clients":{"get":{"tags":["fhir"],"summary":"Admin List Fhir Clients","operationId":"admin_list_fhir_clients_admin_fhir_clients_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":["fhir"],"summary":"Admin Create Fhir Client","operationId":"admin_create_fhir_client_admin_fhir_clients_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/FhirClientAppCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/fhir/clients/{client_id}":{"patch":{"tags":["fhir"],"summary":"Admin Patch Fhir Client","operationId":"admin_patch_fhir_client_admin_fhir_clients__client_id__patch","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/FhirClientAppPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/fhir/source-systems":{"get":{"tags":["fhir"],"summary":"Admin List Fhir Source Systems","operationId":"admin_list_fhir_source_systems_admin_fhir_source_systems_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":["fhir"],"summary":"Admin Create Fhir Source System","operationId":"admin_create_fhir_source_system_admin_fhir_source_systems_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/FhirSourceSystemCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/fhir/source-systems/{source_system_id}":{"patch":{"tags":["fhir"],"summary":"Admin Patch Fhir Source System","operationId":"admin_patch_fhir_source_system_admin_fhir_source_systems__source_system_id__patch","parameters":[{"name":"source_system_id","in":"path","required":true,"schema":{"type":"string","title":"Source System Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/FhirSourceSystemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["fhir"],"summary":"Admin Delete Fhir Source System","operationId":"admin_delete_fhir_source_system_admin_fhir_source_systems__source_system_id__delete","parameters":[{"name":"source_system_id","in":"path","required":true,"schema":{"type":"string","title":"Source System Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/scheduling/resources":{"get":{"tags":["scheduling"],"summary":"List Resources","operationId":"list_resources_scheduling_resources_get","parameters":[{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource 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"}}}}}},"post":{"tags":["scheduling"],"summary":"Create Resource","operationId":"create_resource_scheduling_resources_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/ScheduleResourcePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/resources/{resource_id}":{"get":{"tags":["scheduling"],"summary":"Get Resource","operationId":"get_resource_scheduling_resources__resource_id__get","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["scheduling"],"summary":"Patch Resource","operationId":"patch_resource_scheduling_resources__resource_id__patch","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ScheduleResourcePatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/resources/{resource_id}/availability":{"get":{"tags":["scheduling"],"summary":"Resource Availability","operationId":"resource_availability_scheduling_resources__resource_id__availability_get","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"appointment_type_id","in":"query","required":true,"schema":{"type":"string","title":"Appointment Type Id"}},{"name":"date_from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date From"}},{"name":"date_to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date To"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/resources/{resource_id}/calendar":{"get":{"tags":["scheduling"],"summary":"Resource Calendar","operationId":"resource_calendar_scheduling_resources__resource_id__calendar_get","parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"date_from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date From"}},{"name":"date_to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date To"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/appointment-types":{"get":{"tags":["scheduling"],"summary":"List Appointment Types","operationId":"list_appointment_types_scheduling_appointment_types_get","parameters":[{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["scheduling"],"summary":"Create Appointment Type","operationId":"create_appointment_type_scheduling_appointment_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/AppointmentTypePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/appointment-types/{appointment_type_id}":{"patch":{"tags":["scheduling"],"summary":"Patch Appointment Type","operationId":"patch_appointment_type_scheduling_appointment_types__appointment_type_id__patch","parameters":[{"name":"appointment_type_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment 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"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentTypePatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/availability-rules":{"get":{"tags":["scheduling"],"summary":"List Availability Rules","operationId":"list_availability_rules_scheduling_availability_rules_get","parameters":[{"name":"resource_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"}},{"name":"rule_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule 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"}}}}}},"post":{"tags":["scheduling"],"summary":"Create Availability Rule","operationId":"create_availability_rule_scheduling_availability_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/AvailabilityRulePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/availability-rules/{availability_rule_id}":{"patch":{"tags":["scheduling"],"summary":"Patch Availability Rule","operationId":"patch_availability_rule_scheduling_availability_rules__availability_rule_id__patch","parameters":[{"name":"availability_rule_id","in":"path","required":true,"schema":{"type":"string","title":"Availability 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/AvailabilityRulePatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scheduling"],"summary":"Delete Availability Rule","operationId":"delete_availability_rule_scheduling_availability_rules__availability_rule_id__delete","parameters":[{"name":"availability_rule_id","in":"path","required":true,"schema":{"type":"string","title":"Availability 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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/appointments":{"get":{"tags":["scheduling"],"summary":"List Appointments","operationId":"list_appointments_scheduling_appointments_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"visit_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visit Mode"}},{"name":"resource_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["scheduling"],"summary":"Create Appointment","operationId":"create_appointment_scheduling_appointments_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/AppointmentPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/appointments/{appointment_id}":{"get":{"tags":["scheduling"],"summary":"Get Appointment","operationId":"get_appointment_scheduling_appointments__appointment_id__get","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["scheduling"],"summary":"Patch Appointment","operationId":"patch_appointment_scheduling_appointments__appointment_id__patch","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/AppointmentPatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/appointments/{appointment_id}/sync-events":{"get":{"tags":["scheduling"],"summary":"List Appointment Sync Events","operationId":"list_appointment_sync_events_scheduling_appointments__appointment_id__sync_events_get","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/sync/status":{"get":{"tags":["scheduling"],"summary":"Get Scheduler Sync Status","operationId":"get_scheduler_sync_status_scheduling_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"}}}}}}},"/scheduling/sync/run-now":{"post":{"tags":["scheduling"],"summary":"Run Scheduler Sync Now","operationId":"run_scheduler_sync_now_scheduling_sync_run_now_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"}}}}}}},"/scheduling/appointments/{appointment_id}/cancel":{"post":{"tags":["scheduling"],"summary":"Cancel Appointment","operationId":"cancel_appointment_scheduling_appointments__appointment_id__cancel_post","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RequestReviewPayload"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/appointments/{appointment_id}/confirm":{"post":{"tags":["scheduling"],"summary":"Confirm Appointment","operationId":"confirm_appointment_scheduling_appointments__appointment_id__confirm_post","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/appointments/{appointment_id}/reschedule-request":{"post":{"tags":["scheduling"],"summary":"Reschedule Request Appointment","operationId":"reschedule_request_appointment_scheduling_appointments__appointment_id__reschedule_request_post","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RequestReviewPayload"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/requests":{"get":{"tags":["scheduling"],"summary":"List Requests","operationId":"list_requests_scheduling_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"request_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Source"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["scheduling"],"summary":"Create Request","operationId":"create_request_scheduling_requests_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/AppointmentRequestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/requests/{appointment_request_id}":{"get":{"tags":["scheduling"],"summary":"Get Request","operationId":"get_request_scheduling_requests__appointment_request_id__get","parameters":[{"name":"appointment_request_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Request Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/requests/{appointment_request_id}/approve":{"post":{"tags":["scheduling"],"summary":"Approve Request","operationId":"approve_request_scheduling_requests__appointment_request_id__approve_post","parameters":[{"name":"appointment_request_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Request Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/requests/{appointment_request_id}/reject":{"post":{"tags":["scheduling"],"summary":"Reject Request","operationId":"reject_request_scheduling_requests__appointment_request_id__reject_post","parameters":[{"name":"appointment_request_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Request Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/RequestReviewPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/requests/{appointment_request_id}/convert-to-appointment":{"post":{"tags":["scheduling"],"summary":"Convert Request To Appointment","operationId":"convert_request_to_appointment_scheduling_requests__appointment_request_id__convert_to_appointment_post","parameters":[{"name":"appointment_request_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Request Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ConvertRequestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/reminders":{"get":{"tags":["scheduling"],"summary":"List Reminders","operationId":"list_reminders_scheduling_reminders_get","parameters":[{"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"}}}}}}},"/scheduling/reminders/{appointment_id}/regenerate":{"post":{"tags":["scheduling"],"summary":"Regenerate Reminders","operationId":"regenerate_reminders_scheduling_reminders__appointment_id__regenerate_post","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/appointments/{appointment_id}/generate-action-token":{"post":{"tags":["scheduling"],"summary":"Generate Appointment Action Token","operationId":"generate_appointment_action_token_scheduling_appointments__appointment_id__generate_action_token_post","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ActionTokenGeneratePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/action-tokens/{token_id}/revoke":{"post":{"tags":["scheduling"],"summary":"Revoke Action Token","operationId":"revoke_action_token_scheduling_action_tokens__token_id__revoke_post","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/appointments/{appointment_id}/action-history":{"get":{"tags":["scheduling"],"summary":"Appointment Action History","operationId":"appointment_action_history_scheduling_appointments__appointment_id__action_history_get","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/scheduling/widgets":{"get":{"tags":["scheduling"],"summary":"List Widgets","operationId":"list_widgets_scheduling_widgets_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":["scheduling"],"summary":"Create Widget","operationId":"create_widget_scheduling_widgets_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/WidgetPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduling/widgets/{widget_id}":{"patch":{"tags":["scheduling"],"summary":"Patch Widget","operationId":"patch_widget_scheduling_widgets__widget_id__patch","parameters":[{"name":"widget_id","in":"path","required":true,"schema":{"type":"string","title":"Widget Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/WidgetPatchPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/scheduling/respond":{"get":{"tags":["public-scheduling"],"summary":"Public Respond Context Query","operationId":"public_respond_context_query_public_scheduling_respond_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/scheduling/respond/{token}":{"get":{"tags":["public-scheduling"],"summary":"Public Respond Context","operationId":"public_respond_context_public_scheduling_respond__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/scheduling/respond/{token}/confirm":{"post":{"tags":["public-scheduling"],"summary":"Public Respond Confirm","operationId":"public_respond_confirm_public_scheduling_respond__token__confirm_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTokenActionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/scheduling/respond/{token}/cancel":{"post":{"tags":["public-scheduling"],"summary":"Public Respond Cancel","operationId":"public_respond_cancel_public_scheduling_respond__token__cancel_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTokenActionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/scheduling/respond/{token}/reschedule":{"post":{"tags":["public-scheduling"],"summary":"Public Respond Reschedule","operationId":"public_respond_reschedule_public_scheduling_respond__token__reschedule_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTokenActionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/scheduling/widget/{widget_id}/request":{"post":{"tags":["public-scheduling"],"summary":"Public Widget Request","operationId":"public_widget_request_public_scheduling_widget__widget_id__request_post","parameters":[{"name":"widget_id","in":"path","required":true,"schema":{"type":"string","title":"Widget Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWidgetRequestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/scheduling/widget/{widget_id}/respond":{"post":{"tags":["public-scheduling"],"summary":"Public Widget Respond","operationId":"public_widget_respond_public_scheduling_widget__widget_id__respond_post","parameters":[{"name":"widget_id","in":"path","required":true,"schema":{"type":"string","title":"Widget Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWidgetResponsePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/edit-requests":{"post":{"tags":["patient-edits"],"summary":"Submit Edit Request","description":"Patient submits demographic fields for clinician review.","operationId":"submit_edit_request_patients__patient_id__edit_requests_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["patient-edits"],"summary":"List Edit Requests","description":"List edit requests for a patient.","operationId":"list_edit_requests_patients__patient_id__edit_requests_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"}}}}}}},"/patients/edit-requests/pending":{"get":{"tags":["patient-edits"],"summary":"List Pending Edit Requests","description":"List all pending edit requests for the clinic (clinician only).","operationId":"list_pending_edit_requests_patients_edit_requests_pending_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"}}}}}}},"/patients/{patient_id}/edit-requests/{request_id}/review":{"post":{"tags":["patient-edits"],"summary":"Review Edit Request","description":"Approve or reject a patient demographic edit request.","operationId":"review_edit_request_patients__patient_id__edit_requests__request_id__review_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/patients/{patient_id}/releases":{"post":{"tags":["releases"],"summary":"Submit Release","description":"Submit an ROI request.\n\nFor inter-clinic sharing set share_type=\"inter_clinic\" and supply\ntarget_clinic_id (must be a different clinic on this platform).\nThe patient must then acknowledge via the patient-acknowledge endpoint\nbefore fulfillment is allowed.","operationId":"submit_release_patients__patient_id__releases_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["releases"],"summary":"List Releases","description":"List ROI requests for a patient (source clinic view).","operationId":"list_releases_patients__patient_id__releases_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"}}}}}}},"/patients/{patient_id}/releases/{release_id}/patient-acknowledge":{"post":{"tags":["releases"],"summary":"Patient Acknowledge Release","description":"Patient explicitly acknowledges and consents to this records release.\n\nFor inter-clinic shares: required before fulfillment.\nFor external releases: triggers automatic generation of the signed\nauthorization form PDF (with QR tracking code) and faxes it to the\nrelease_to_contact fax number.\n\nThe caller must authenticate as the patient (launch_patient_id == patient_id).","operationId":"patient_acknowledge_release_patients__patient_id__releases__release_id__patient_acknowledge_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/patients/{patient_id}/releases/{release_id}/approve":{"post":{"tags":["releases"],"summary":"Approve Release","description":"Approve an ROI request (clinician only).","operationId":"approve_release_patients__patient_id__releases__release_id__approve_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/patients/{patient_id}/releases/{release_id}/fulfill":{"post":{"tags":["releases"],"summary":"Fulfill Release","description":"Mark an ROI request as fulfilled.\n\nFor inter-clinic shares:\n- Patient acknowledgment must be recorded.\n- Patient must not have an active consent revocation.\n- A FHIR export is automatically triggered and its job ID stored.\n  The caller may also pass document_types to scope the export; defaults to all.\n\nFor external releases the caller may supply document_object_key and/or\nfhir_export_job_id manually (existing behaviour preserved).","operationId":"fulfill_release_patients__patient_id__releases__release_id__fulfill_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/patients/{patient_id}/releases/{release_id}/deny":{"post":{"tags":["releases"],"summary":"Deny Release","description":"Deny an ROI request (clinician only).","operationId":"deny_release_patients__patient_id__releases__release_id__deny_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/releases/pending":{"get":{"tags":["releases"],"summary":"List Pending Releases","description":"Clinic-wide pending ROI queue (source clinic view).","operationId":"list_pending_releases_releases_pending_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"}}}}}}},"/releases/{release_id}/fhir-bundle":{"get":{"tags":["releases"],"summary":"Get Release Fhir Bundle","description":"Retrieve the FHIR bundle from a fulfilled inter-clinic ROI.\n\nAccessible to:\n- Source clinic clinicians (auth.clinic_id == row.clinic_id)\n- Target clinic clinicians (auth.clinic_id == row.target_clinic_id)\n\nThe release must be fulfilled and must have a fhir_export_job_id.","operationId":"get_release_fhir_bundle_releases__release_id__fhir_bundle_get","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/releases/{release_id}/accept":{"post":{"tags":["releases"],"summary":"Accept Release","description":"Target clinic imports a fulfilled inter-clinic ROI bundle.\n\nCan only be called by the target clinic (auth.clinic_id == row.target_clinic_id).\nCreates a FhirImportJob in the target clinic, importing all resources from\nthe export bundle. The import job is linked back to source_release_id.\nIdempotent: if an import job already exists for this release, it is returned.","operationId":"accept_release_releases__release_id__accept_post","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/releases/{release_id}/extraction-review":{"get":{"tags":["releases"],"summary":"Get Extraction Review","description":"Return OCR-extracted clinical candidates for clinician review.\n\nIncludes the patient's current active records for side-by-side comparison.\nEach candidate includes page_number and bbox_json so the UI can highlight\nthe source region in the PDF viewer when the clinician clicks an item.\n\nGrouped by resource_type. Candidates with status=\"pending\" are awaiting\ndecision; previously reviewed items are also returned for reference.","operationId":"get_extraction_review_releases__release_id__extraction_review_get","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/releases/{release_id}/extraction-status":{"get":{"tags":["releases"],"summary":"Get Extraction Status","description":"Lightweight poll endpoint for OCR extraction progress.","operationId":"get_extraction_status_releases__release_id__extraction_status_get","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/releases/{release_id}/extract":{"post":{"tags":["releases"],"summary":"Trigger Roi Extraction","description":"Manually (re-)trigger OCR extraction for a release that has received records.\n\nReturns 202 immediately; extraction runs in the background.\nPoll GET /{release_id}/extraction-status for progress.","operationId":"trigger_roi_extraction_releases__release_id__extract_post","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/releases/{release_id}/extraction-review/resolve":{"post":{"tags":["releases"],"summary":"Resolve Extraction Candidates","description":"Batch-resolve extracted clinical candidates.\n\nBody: {\"decisions\": [{\"id\": \"...\", \"action\": \"accept|reject|merge\", \"merge_into_id\": \"...\"}]}\n\naccept  — create the clinical resource in pophealth (Condition, Medication, Allergy, Procedure)\nreject  — mark as rejected; resource is not added\nmerge   — mark as merged into an existing resource (clinician has confirmed it's a duplicate)","operationId":"resolve_extraction_candidates_releases__release_id__extraction_review_resolve_post","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/person/{person_id}/shared-records":{"get":{"tags":["releases"],"summary":"List Shared Records","description":"List inter-clinic ROI records involving this person where the requesting\nclinic is the source or target.\n\nReturns releases where:\n- auth.clinic_id is the source clinic (we shared out), OR\n- auth.clinic_id is the target clinic (we received a share)\n\nResults are scoped to fulfilled releases only to limit noise.","operationId":"list_shared_records_person__person_id__shared_records_get","parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/outside-providers":{"post":{"tags":["outside_providers"],"summary":"Create Provider","operationId":"create_provider_outside_providers_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":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["outside_providers"],"summary":"List Providers","operationId":"list_providers_outside_providers_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"}}}}}}},"/outside-providers/{provider_id}":{"get":{"tags":["outside_providers"],"summary":"Get Provider","operationId":"get_provider_outside_providers__provider_id__get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["outside_providers"],"summary":"Update Provider","operationId":"update_provider_outside_providers__provider_id__patch","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}},"delete":{"tags":["outside_providers"],"summary":"Delete Provider","operationId":"delete_provider_outside_providers__provider_id__delete","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/outside-providers/{provider_id}/physicians":{"post":{"tags":["outside_providers"],"summary":"Add Physician","operationId":"add_physician_outside_providers__provider_id__physicians_post","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/outside-providers/{provider_id}/physicians/{physician_id}":{"delete":{"tags":["outside_providers"],"summary":"Remove Physician","operationId":"remove_physician_outside_providers__provider_id__physicians__physician_id__delete","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"physician_id","in":"path","required":true,"schema":{"type":"string","title":"Physician Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/outside-providers/{provider_id}/specialties":{"post":{"tags":["outside_providers"],"summary":"Add Specialty","operationId":"add_specialty_outside_providers__provider_id__specialties_post","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/outside-providers/{provider_id}/specialties/{specialty_id}":{"delete":{"tags":["outside_providers"],"summary":"Remove Specialty","operationId":"remove_specialty_outside_providers__provider_id__specialties__specialty_id__delete","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"specialty_id","in":"path","required":true,"schema":{"type":"string","title":"Specialty Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/outside-providers/{provider_id}/insurance":{"get":{"tags":["outside_providers"],"summary":"Get Insurance Observations","operationId":"get_insurance_observations_outside_providers__provider_id__insurance_get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["outside_providers"],"summary":"Add Insurance Observation","description":"Manually record that a provider accepts or rejects a given insurance.","operationId":"add_insurance_observation_outside_providers__provider_id__insurance_post","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/outside-providers/{provider_id}/insurance/{obs_id}":{"patch":{"tags":["outside_providers"],"summary":"Update Insurance Observation","description":"Confirm or resolve a flagged insurance observation after human review.","operationId":"update_insurance_observation_outside_providers__provider_id__insurance__obs_id__patch","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"obs_id","in":"path","required":true,"schema":{"type":"string","title":"Obs Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/outside-providers/insurance-flagged":{"get":{"tags":["outside_providers"],"summary":"List Flagged Insurance","description":"Clinic-wide list of insurance observations needing human review.","operationId":"list_flagged_insurance_outside_providers_insurance_flagged_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"}}}}}}},"/referrals":{"post":{"tags":["referrals"],"summary":"Create Referral","description":"Create a draft referral with auto-populated clinical summary.\n\nRequired: patient_id, reason.\nOptional: referred_to_provider_id (from outside_providers registry),\n          referred_to_name, referred_to_fax, referred_to_specialty,\n          urgency (routine|urgent|stat), notes, attached_document_keys.","operationId":"create_referral_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"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["referrals"],"summary":"List Referrals","operationId":"list_referrals_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"}}}}}}},"/referrals/{referral_id}":{"get":{"tags":["referrals"],"summary":"Get Referral","operationId":"get_referral_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":["referrals"],"summary":"Update Referral","operationId":"update_referral_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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/{referral_id}/send":{"post":{"tags":["referrals"],"summary":"Send Referral","description":"Generate referral cover letter PDF with QR tracking code and fax it.\n\nAssigns the tracking code (PRH-REF-XXXXXX) and transitions status → sent.\nThe fax is dispatched as a background task so the response is immediate.","operationId":"send_referral_referrals__referral_id__send_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"}}}}}}},"/referrals/{referral_id}/status":{"post":{"tags":["referrals"],"summary":"Update Referral Status","description":"Update referral status with an optional note.\n\nWhen status=declined and the patient's insurance may be the reason,\nset insurance_rejection_suspected=true to flag the insurance observation.","operationId":"update_referral_status_referrals__referral_id__status_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"}}}}}}},"/referrals/{referral_id}/status-history":{"get":{"tags":["referrals"],"summary":"Get Status History","operationId":"get_status_history_referrals__referral_id__status_history_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"}}}}}}},"/patients/{patient_id}/referrals":{"get":{"tags":["referrals"],"summary":"List Patient Referrals","operationId":"list_patient_referrals_patients__patient_id__referrals_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"}}}}}}},"/population/cohorts":{"post":{"tags":["population"],"summary":"Create Cohort","description":"Define a cohort and immediately compute aggregate metrics.","operationId":"create_cohort_population_cohorts_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":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["population"],"summary":"List Cohorts","description":"List saved cohort snapshots for the clinic.","operationId":"list_cohorts_population_cohorts_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"}}}}}}},"/population/cohorts/{snapshot_id}":{"get":{"tags":["population"],"summary":"Get Cohort","description":"Get a snapshot with all its computed metrics.","operationId":"get_cohort_population_cohorts__snapshot_id__get","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/population/cohorts/{snapshot_id}/recompute":{"post":{"tags":["population"],"summary":"Recompute Cohort","description":"Refresh aggregate metrics against the live database for a saved cohort.","operationId":"recompute_cohort_population_cohorts__snapshot_id__recompute_post","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/internal/portal/patient-lookup":{"post":{"tags":["portal-internal"],"summary":"Patient Lookup","description":"Look up patients by email, phone, or patient_id within a clinic.\n\nReturns a list of candidate objects with both safe partial info (for\nclient display) and full challenge data (for portal service to hash).\nThe caller (portal service) MUST NOT forward challenge_data to the client.","operationId":"patient_lookup_internal_portal_patient_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/portal/internal/portal/document-submitted":{"post":{"tags":["portal-internal"],"summary":"Patient Document Submitted","description":"Called by patient portal when a patient submits a document for staff review.\n\nCreates a unified intake queue entry in the document_intake_queue table so\nstaff can route it to the appropriate module.","operationId":"patient_document_submitted_internal_portal_internal_portal_document_submitted_post","parameters":[{"name":"X-Internal-Service-Token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Internal-Service-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientDocumentNotification"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/clinic-user":{"post":{"tags":["provision-internal"],"summary":"Provision Clinic User","description":"Provision a clinic user in the auth DB and Zitadel.\n\nCreates the User row, UserClinicRole, and a Zitadel account (when\nZITADEL_MANAGEMENT_URL and ZITADEL_SERVICE_TOKEN are configured).\nReturns a temporary password for the Zitadel account.","operationId":"provision_clinic_user_internal_provision_clinic_user_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/ClinicUserProvisionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicUserProvisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/clinics":{"post":{"tags":["provision-internal"],"summary":"Provision Clinic","description":"Create (or confirm) a clinic record in the auth DB. Called by MC on clinic creation.","operationId":"provision_clinic_internal_provision_clinics_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/ClinicProvisionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicProvisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/clinic-users":{"get":{"tags":["provision-internal"],"summary":"List Clinic Users","description":"List all users assigned to a clinic. Read-only; called by MC portal.","operationId":"list_clinic_users_internal_provision_clinic_users_get","parameters":[{"name":"clinic_id","in":"query","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":{"type":"array","items":{"$ref":"#/components/schemas/MCClinicUserSummary"},"title":"Response List Clinic Users Internal Provision Clinic Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/users/{user_id}/deactivate":{"post":{"tags":["provision-internal"],"summary":"Deactivate Clinic User","description":"Deactivate a user account. MC override — does not require clinic context.","operationId":"deactivate_clinic_user_internal_provision_users__user_id__deactivate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User 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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/users/{user_id}/reactivate":{"post":{"tags":["provision-internal"],"summary":"Reactivate Clinic User","description":"Reactivate a previously deactivated user account.","operationId":"reactivate_clinic_user_internal_provision_users__user_id__reactivate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User 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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/provision/users/{user_id}/oidc-link":{"delete":{"tags":["provision-internal"],"summary":"Unlink User Oidc","description":"Clear OIDC link for a user. Forces re-link on next login.","operationId":"unlink_user_oidc_internal_provision_users__user_id__oidc_link_delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User 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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/portal/summary":{"get":{"tags":["portal-worklist"],"summary":"Portal Summary","description":"Return counts for the portal worklist dashboard card.","operationId":"portal_summary_pophealth_portal_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"}}}}}}},"/pophealth/portal/link-requests":{"get":{"tags":["portal-worklist"],"summary":"List Link Requests","operationId":"list_link_requests_pophealth_portal_link_requests_get","parameters":[{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Filter"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/portal/link-requests/{request_id}":{"patch":{"tags":["portal-worklist"],"summary":"Review Link Request","operationId":"review_link_request_pophealth_portal_link_requests__request_id__patch","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/LinkRequestReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/portal/delegate-requests":{"get":{"tags":["portal-worklist"],"summary":"List Delegate Requests","operationId":"list_delegate_requests_pophealth_portal_delegate_requests_get","parameters":[{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Filter"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/portal/delegate-requests/{request_id}":{"patch":{"tags":["portal-worklist"],"summary":"Review Delegate Request","operationId":"review_delegate_request_pophealth_portal_delegate_requests__request_id__patch","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/DelegateRequestReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/portal/accounts":{"get":{"tags":["portal-worklist"],"summary":"List Portal Accounts","description":"Patients who have active portal accounts, enriched with names from pophealth.","operationId":"list_portal_accounts_pophealth_portal_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"}}}}}}},"/pophealth/portal/patients-without-accounts":{"get":{"tags":["portal-worklist"],"summary":"Patients Without Accounts","description":"Active patients in this clinic who do not yet have a portal account.","operationId":"patients_without_accounts_pophealth_portal_patients_without_accounts_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/portal/invitations":{"post":{"tags":["portal-worklist"],"summary":"Send Invitation","operationId":"send_invitation_pophealth_portal_invitations_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/InvitationSend"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["portal-worklist"],"summary":"List Invitations","operationId":"list_invitations_pophealth_portal_invitations_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"}}}}}}},"/pophealth/portal/invitations/bulk":{"post":{"tags":["portal-worklist"],"summary":"Bulk Send Invitations","description":"Send portal invitations to every eligible patient without an account.\n\nPatients are skipped if they already have an active account, a pending\ninvitation, or no email or phone on file. Returns counts per category.","operationId":"bulk_send_invitations_pophealth_portal_invitations_bulk_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"}}}}}}},"/pophealth/portal/invitations/{invitation_id}":{"delete":{"tags":["portal-worklist"],"summary":"Cancel Invitation","operationId":"cancel_invitation_pophealth_portal_invitations__invitation_id__delete","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/pophealth/patients/{patient_id}/immunizations":{"post":{"tags":["pophealth-immunizations"],"summary":"Create Immunization","operationId":"create_immunization_pophealth_patients__patient_id__immunizations_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/ImmunizationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pophealth-immunizations"],"summary":"List Immunizations","operationId":"list_immunizations_pophealth_patients__patient_id__immunizations_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"include_historical","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Historical"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/pophealth/immunizations/{immunization_id}":{"get":{"tags":["pophealth-immunizations"],"summary":"Get Immunization","operationId":"get_immunization_pophealth_immunizations__immunization_id__get","parameters":[{"name":"immunization_id","in":"path","required":true,"schema":{"type":"string","title":"Immunization Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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":["pophealth-immunizations"],"summary":"Patch Immunization","operationId":"patch_immunization_pophealth_immunizations__immunization_id__patch","parameters":[{"name":"immunization_id","in":"path","required":true,"schema":{"type":"string","title":"Immunization Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/ImmunizationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pophealth-immunizations"],"summary":"Delete Immunization","description":"Soft-delete — sets status=entered-in-error and is_active=False.","operationId":"delete_immunization_pophealth_immunizations__immunization_id__delete","parameters":[{"name":"immunization_id","in":"path","required":true,"schema":{"type":"string","title":"Immunization Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"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"}}}}}}},"/pophealth/chart/{patient_id}/immunizations":{"get":{"tags":["pophealth-immunizations"],"summary":"Immunization Timeline","description":"Return administered immunizations (newest first) + active forecast rows.","operationId":"immunization_timeline_pophealth_chart__patient_id__immunizations_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"}}}}}}},"/pophealth/immunizations/cvx-codes":{"get":{"tags":["pophealth-immunizations"],"summary":"Search Cvx Codes","operationId":"search_cvx_codes_pophealth_immunizations_cvx_codes_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search term (partial short_desc or full_name)","default":"","title":"Q"},"description":"Search term (partial short_desc or full_name)"},{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"active|inactive|all","default":"active","title":"Status"},"description":"active|inactive|all"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"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"}}}}}}},"/pophealth/immunizations/mvx-codes":{"get":{"tags":["pophealth-immunizations"],"summary":"List Mvx Codes","operationId":"list_mvx_codes_pophealth_immunizations_mvx_codes_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"}}}}}}},"/pophealth/patients/{patient_id}/kswebiz-query":{"post":{"tags":["pophealth-immunizations"],"summary":"Trigger Kswebiz Query","description":"Enqueue an on-demand KSWebIZ patient history query.\n\nThe actual SOAP call is made by KSWebIZSyncService.  This endpoint\nreturns 202 Accepted immediately; results appear in the immunization\ntimeline after the query completes (typically < 5 s).","operationId":"trigger_kswebiz_query_pophealth_patients__patient_id__kswebiz_query_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Break-Glass-Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/care_gaps_summary":{"get":{"summary":"Metrics Care Gaps Summary","operationId":"metrics_care_gaps_summary_metrics_care_gaps_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"}}}}}}},"/users":{"get":{"summary":"List Users","operationId":"list_users_users_get","parameters":[{"name":"clinic_id","in":"query","required":true,"schema":{"type":"string","title":"Clinic Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserSummaryResponse"},"title":"Response List Users Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dev/token":{"post":{"summary":"Issue Dev Token Endpoint","operationId":"issue_dev_token_endpoint_dev_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imports/spreadsheets":{"post":{"summary":"Upload Spreadsheet","operationId":"upload_spreadsheet_imports_spreadsheets_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_spreadsheet_imports_spreadsheets_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imports/{import_id}":{"get":{"summary":"Get Import Session","operationId":"get_import_session_imports__import_id__get","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","title":"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":{"$ref":"#/components/schemas/ImportSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imports/{import_id}/confirm":{"post":{"summary":"Confirm Import Session","operationId":"confirm_import_session_imports__import_id__confirm_post","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","title":"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"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/imports/{import_id}/retry-conflicts":{"post":{"summary":"Retry Import Conflicts","operationId":"retry_import_conflicts_imports__import_id__retry_conflicts_post","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","title":"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"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRetryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/documents":{"post":{"summary":"Upload Patient Document","operationId":"upload_patient_document_patients__patient_id__documents_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":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_patient_document_patients__patient_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Patient Documents","operationId":"list_patient_documents_patients__patient_id__documents_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/PatientDocumentResponse"},"title":"Response List Patient Documents Patients  Patient Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/review-queue":{"get":{"summary":"List Document Review Queue","operationId":"list_document_review_queue_documents_review_queue_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"}},{"name":"global_patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Global Patient Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"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":{"$ref":"#/components/schemas/DocumentReviewQueuePage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/documents/{document_id}/apply":{"post":{"summary":"Apply Patient Document","operationId":"apply_patient_document_patients__patient_id__documents__document_id__apply_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/DocumentApplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/notes":{"post":{"summary":"Create Note","operationId":"create_note_patients__patient_id__notes_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/NoteCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notes/{note_id}/versions":{"post":{"summary":"Add Note Version","operationId":"add_note_version_notes__note_id__versions_post","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/NoteVersionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notes/{note_id}/finalize":{"post":{"summary":"Finalize Note","operationId":"finalize_note_notes__note_id__finalize_post","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/tasks":{"post":{"summary":"Create Task","operationId":"create_task_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/TaskCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Tasks","operationId":"list_tasks_tasks_get","parameters":[{"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"}}}}}}},"/tasks/{task_id}":{"patch":{"summary":"Patch Task","operationId":"patch_task_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":{"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"}}}}}}},"/panels":{"post":{"summary":"Create Panel","operationId":"create_panel_panels_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/PanelCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panels/{panel_id}/members":{"post":{"summary":"Add Panel Member","operationId":"add_panel_member_panels__panel_id__members_post","parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/panels/{panel_id}":{"get":{"summary":"Get Panel","operationId":"get_panel_panels__panel_id__get","parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/spark/tours":{"get":{"summary":"List Spark Tours","operationId":"list_spark_tours_spark_tours_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/SparkTourSummary"},"title":"Response List Spark Tours Spark Tours Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/profiles":{"get":{"summary":"Admin List Routing Profiles","operationId":"admin_list_routing_profiles_admin_routing_profiles_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/RoutingProfileResponse"},"title":"Response Admin List Routing Profiles Admin Routing Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Create Routing Profile","operationId":"admin_create_routing_profile_admin_routing_profiles_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/RoutingProfileCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/profiles/{profile_id}":{"patch":{"summary":"Admin Patch Routing Profile","operationId":"admin_patch_routing_profile_admin_routing_profiles__profile_id__patch","parameters":[{"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/RoutingProfilePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/profiles/{profile_id}/activate":{"post":{"summary":"Admin Activate Routing Profile","operationId":"admin_activate_routing_profile_admin_routing_profiles__profile_id__activate_post","parameters":[{"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/RoutingProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/rules":{"get":{"summary":"Admin List Routing Rules","operationId":"admin_list_routing_rules_admin_routing_rules_get","parameters":[{"name":"profile_id","in":"query","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/RoutingRuleResponse"},"title":"Response Admin List Routing Rules Admin Routing Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Create Routing Rule","operationId":"admin_create_routing_rule_admin_routing_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/RoutingRuleCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/rules/{rule_id}":{"patch":{"summary":"Admin Patch Routing Rule","operationId":"admin_patch_routing_rule_admin_routing_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/RoutingRulePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Admin Delete Routing Rule","operationId":"admin_delete_routing_rule_admin_routing_rules__rule_id__delete","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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/rules/{rule_id}/enable":{"post":{"summary":"Admin Enable Routing Rule","operationId":"admin_enable_routing_rule_admin_routing_rules__rule_id__enable_post","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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/rules/{rule_id}/disable":{"post":{"summary":"Admin Disable Routing Rule","operationId":"admin_disable_routing_rule_admin_routing_rules__rule_id__disable_post","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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/rules/reorder":{"post":{"summary":"Admin Reorder Routing Rules","operationId":"admin_reorder_routing_rules_admin_routing_rules_reorder_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":{"$ref":"#/components/schemas/RoutingRulesReorderItem"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RoutingRuleResponse"},"title":"Response Admin Reorder Routing Rules Admin Routing Rules Reorder Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/routing/test":{"post":{"summary":"Admin Test Routing","operationId":"admin_test_routing_admin_routing_test_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/RoutingTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/execute":{"post":{"summary":"Spark Execute Intent","operationId":"spark_execute_intent_spark_execute_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/SparkExecuteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkExecuteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/chat-assist":{"post":{"summary":"Spark Chat Assist","operationId":"spark_chat_assist_spark_chat_assist_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/SparkChatAssistRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkChatAssistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/message":{"post":{"summary":"Spark Message","description":"Unified Spark message endpoint.\n\nRouting priority:\n1. Clinic-specific learned knowledge (active entries from spark_clinic_knowledge)\n2. Built-in system FAQ + intent classification (spark_intelligence.py)\n3. External AI (OpenAI/Claude) — only for unresolved queries, after PHI sanitization\n\nEvery external AI response is stored as a pending learning candidate. Positive\nfeedback auto-promotes entries to active once confidence ≥ 0.80 after ≥ 3 uses.","operationId":"spark_message_spark_message_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/SparkMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/feedback":{"post":{"summary":"Spark Message Feedback","description":"Record per-message feedback and update learning confidence.\n\nExpects: { interaction_id?, knowledge_id?, helpful: bool, comment? }","operationId":"spark_message_feedback_spark_feedback_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"}}}}}}},"/spark/knowledge":{"get":{"summary":"List Spark Knowledge","description":"Admin: list clinic-specific learned knowledge entries.","operationId":"list_spark_knowledge_spark_knowledge_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"active","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"}}}}}}},"/spark/interpret-task":{"post":{"summary":"Spark Interpret Task","description":"Interpret a natural-language task description and return a structured\nClinicCustomTaskDefinition proposal.\n\nAccepts: { description: str }\nReturns: {\n    name, description, trigger_event_type, task_title_template,\n    task_description_template, default_priority, default_due_days,\n    conditions_json, fallback_used, error?\n}","operationId":"spark_interpret_task_spark_interpret_task_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"}}}}}}},"/spark/knowledge/{knowledge_id}":{"patch":{"summary":"Patch Spark Knowledge","description":"Admin: approve, reject, or edit a knowledge entry.","operationId":"patch_spark_knowledge_spark_knowledge__knowledge_id__patch","parameters":[{"name":"knowledge_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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"}}}}}}},"/spark/tile-builder/start":{"post":{"summary":"Spark Tile Builder Start","operationId":"spark_tile_builder_start_spark_tile_builder_start_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":{"$ref":"#/components/schemas/SparkTileBuilderStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/tile-builder/message":{"post":{"summary":"Spark Tile Builder Message","operationId":"spark_tile_builder_message_spark_tile_builder_message_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/SparkTileBuilderMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkTileBuilderMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/tile-builder/test":{"post":{"summary":"Spark Tile Builder Test","operationId":"spark_tile_builder_test_spark_tile_builder_test_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/SparkTileBuilderTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkTileBuilderMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/tile-builder/feedback":{"post":{"summary":"Spark Tile Builder Feedback","operationId":"spark_tile_builder_feedback_spark_tile_builder_feedback_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/SparkTileBuilderFeedbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkTileBuilderFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/worklist-builder/start":{"post":{"summary":"Spark Worklist Builder Start","operationId":"spark_worklist_builder_start_spark_worklist_builder_start_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":{"$ref":"#/components/schemas/SparkWorklistBuilderStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/worklist-builder/message":{"post":{"summary":"Spark Worklist Builder Message","operationId":"spark_worklist_builder_message_spark_worklist_builder_message_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/SparkWorklistBuilderMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkWorklistBuilderMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/worklist-builder/test":{"post":{"summary":"Spark Worklist Builder Test","operationId":"spark_worklist_builder_test_spark_worklist_builder_test_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/SparkWorklistBuilderTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SparkWorklistBuilderMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/worklist-builder/commit":{"post":{"summary":"Spark Worklist Builder Commit","operationId":"spark_worklist_builder_commit_spark_worklist_builder_commit_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/SparkWorklistBuilderCommitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorklistQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/library":{"get":{"summary":"Worklists Library","operationId":"worklists_library_worklists_library_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":{"type":"array","items":{"$ref":"#/components/schemas/WorklistQueryResponse"},"title":"Response Worklists Library Worklists Library Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/my":{"get":{"summary":"Worklists My","operationId":"worklists_my_worklists_my_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/WorklistQueryResponse"},"title":"Response Worklists My Worklists My Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists":{"post":{"summary":"Create Worklist","operationId":"create_worklist_worklists_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/WorklistQueryCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorklistQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/{query_id}":{"patch":{"summary":"Patch Worklist","operationId":"patch_worklist_worklists__query_id__patch","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/WorklistQueryPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorklistQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/{query_id}/publish":{"post":{"summary":"Publish Worklist","operationId":"publish_worklist_worklists__query_id__publish_post","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/WorklistQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/{query_id}/install":{"post":{"summary":"Install Worklist","operationId":"install_worklist_worklists__query_id__install_post","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/WorklistInstallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/installed":{"get":{"summary":"List Installed Worklists","operationId":"list_installed_worklists_worklists_installed_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/WorklistInstallResponse"},"title":"Response List Installed Worklists Worklists Installed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/installed/counts":{"get":{"summary":"Installed Worklists Counts","description":"Return row counts for the current user's installed worklists without returning any PHI rows.","operationId":"installed_worklists_counts_worklists_installed_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":{"type":"array","items":{"$ref":"#/components/schemas/WorklistCountItem"},"title":"Response Installed Worklists Counts Worklists Installed Counts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worklists/{query_id}/run":{"post":{"summary":"Run Worklist","operationId":"run_worklist_worklists__query_id__run_post","parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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/WorklistRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spark/tile-builder/commit":{"post":{"summary":"Spark Tile Builder Commit","operationId":"spark_tile_builder_commit_spark_tile_builder_commit_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/SparkTileBuilderCommitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/tiles/library":{"get":{"summary":"List Dashboard Tile Library","operationId":"list_dashboard_tile_library_ui_tiles_library_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":{"type":"array","items":{"$ref":"#/components/schemas/DashboardTileResponse"},"title":"Response List Dashboard Tile Library Ui Tiles Library Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/tiles":{"get":{"summary":"List Dashboard Tiles","operationId":"list_dashboard_tiles_ui_tiles_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/DashboardTileResponse"},"title":"Response List Dashboard Tiles Ui Tiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Dashboard Tile","operationId":"create_dashboard_tile_ui_tiles_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/DashboardTileCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ui/tiles/{tile_id}":{"patch":{"summary":"Patch Dashboard Tile","operationId":"patch_dashboard_tile_ui_tiles__tile_id__patch","parameters":[{"name":"tile_id","in":"path","required":true,"schema":{"type":"string","title":"Tile Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/DashboardTilePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardTileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Dashboard Tile","operationId":"delete_dashboard_tile_ui_tiles__tile_id__delete","parameters":[{"name":"tile_id","in":"path","required":true,"schema":{"type":"string","title":"Tile Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}},"/patients/{patient_id}/medications":{"get":{"summary":"List Patient Medications","operationId":"list_patient_medications_patients__patient_id__medications_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","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"}}}}}},"post":{"summary":"Create Patient Medication","operationId":"create_patient_medication_patients__patient_id__medications_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/MedicationCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/medications/{medication_id}":{"patch":{"summary":"Patch Patient Medication","operationId":"patch_patient_medication_patients__patient_id__medications__medication_id__patch","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"medication_id","in":"path","required":true,"schema":{"type":"string","title":"Medication Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-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/MedicationPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/patients/{patient_id}/allergies":{"get":{"summary":"List Patient Allergies","operationId":"list_patient_allergies_patients__patient_id__allergies_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"}}}}}}},"/patients/{patient_id}/problems/active":{"get":{"summary":"List Patient Active Problems","operationId":"list_patient_active_problems_patients__patient_id__problems_active_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"}}}}}}},"/patients/{patient_id}/problems/from-dispense":{"post":{"summary":"Create Problem From Dispense","description":"Create a new problem record during a dispense workflow.","operationId":"create_problem_from_dispense_patients__patient_id__problems_from_dispense_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/ProblemFromDispenseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pophealth/snomed/search":{"get":{"summary":"Snomed Concept Search","description":"Typeahead search for clinical concepts.\n\nWhen NLM_UMLS_API_KEY is configured: searches SNOMED CT via UMLS REST API\n(snomed_code primary, icd10_code null — crosswalk happens on problem create).\nWithout a key: falls back to ICD-10-CM search via NLM Clinical Tables\n(icd10_code primary, snomed_code null).","operationId":"snomed_concept_search_pophealth_snomed_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"max_results","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Max Results"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}},{"name":"X-Clinic-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Clinic-Id"}},{"name":"X-Break-Glass-Token","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"}}}}}}}},"components":{"schemas":{"ActionBatchApprovalRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ActionBatchApprovalRequest"},"ActionBatchCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"source_metric_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Metric Id"},"source_worklist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Worklist Id"},"source_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Run Id"},"action_type":{"type":"string","title":"Action Type","default":"create_tasks"},"parameters_json":{"additionalProperties":true,"type":"object","title":"Parameters Json"}},"type":"object","required":["name"],"title":"ActionBatchCreateRequest"},"ActionBatchResponse":{"properties":{"action_batch_id":{"type":"string","title":"Action Batch Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"source_metric_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Metric Id"},"source_worklist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Worklist Id"},"source_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Run Id"},"name":{"type":"string","title":"Name"},"action_type":{"type":"string","title":"Action Type"},"status":{"type":"string","title":"Status"},"draft_actions_json":{"additionalProperties":true,"type":"object","title":"Draft Actions Json"},"approval_json":{"additionalProperties":true,"type":"object","title":"Approval Json"},"execution_json":{"additionalProperties":true,"type":"object","title":"Execution Json"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"approved_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By User Id"},"executed_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Executed 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":["action_batch_id","clinic_id","name","action_type","status","created_by_user_id","created_at","updated_at"],"title":"ActionBatchResponse"},"ActionTokenGeneratePayload":{"properties":{"token_type":{"type":"string","enum":["reminder_action","confirm_only","cancel_only","reschedule_only"],"title":"Token Type","default":"reminder_action"},"allowed_actions":{"anyOf":[{"items":{"type":"string","enum":["confirm","cancel","reschedule"]},"type":"array"},{"type":"null"}],"title":"Allowed Actions"},"expires_in_hours":{"anyOf":[{"type":"integer","maximum":240.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Hours"},"created_from_reminder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created From Reminder Id"}},"type":"object","title":"ActionTokenGeneratePayload"},"AdminAuthEmailLogResponse":{"properties":{"email_delivery_id":{"type":"string","title":"Email Delivery Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"recipient_email":{"type":"string","title":"Recipient Email"},"template_type":{"type":"string","title":"Template Type"},"subject":{"type":"string","title":"Subject"},"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider"},"error_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Text"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["email_delivery_id","recipient_email","template_type","subject","status","provider","created_at"],"title":"AdminAuthEmailLogResponse"},"AdminIntegrationCredentialsUpdateRequest":{"properties":{"endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint"},"credentials":{"additionalProperties":{"type":"string"},"type":"object","title":"Credentials"}},"type":"object","title":"AdminIntegrationCredentialsUpdateRequest"},"AdminIntegrationDetailResponse":{"properties":{"integration_key":{"type":"string","title":"Integration Key"},"display_name":{"type":"string","title":"Display Name"},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"},"scope":{"type":"string","title":"Scope"},"status":{"type":"string","title":"Status"},"enabled":{"type":"boolean","title":"Enabled"},"auth_type":{"type":"string","title":"Auth Type"},"supports_pull":{"type":"boolean","title":"Supports Pull"},"supports_push":{"type":"boolean","title":"Supports Push"},"supports_scheduling":{"type":"boolean","title":"Supports Scheduling"},"supports_field_mapping":{"type":"boolean","title":"Supports Field Mapping"},"supports_credential_editing":{"type":"boolean","title":"Supports Credential Editing"},"connected_modules":{"items":{"type":"string"},"type":"array","title":"Connected Modules"},"sync_mode":{"type":"string","title":"Sync Mode","default":"manual"},"sync_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Schedule"},"last_successful_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Successful Sync At"},"last_attempted_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempted Sync At"},"last_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Status"},"last_sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Error"},"endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint"},"credentials_masked":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Credentials Masked"},"pull_fields":{"items":{"$ref":"#/components/schemas/IntegrationFieldCapabilityResponse"},"type":"array","title":"Pull Fields"},"push_fields":{"items":{"$ref":"#/components/schemas/IntegrationFieldCapabilityResponse"},"type":"array","title":"Push Fields"},"field_mappings":{"items":{"$ref":"#/components/schemas/IntegrationFieldMappingResponse"},"type":"array","title":"Field Mappings"},"sync_history":{"items":{"$ref":"#/components/schemas/IntegrationSyncEventResponse"},"type":"array","title":"Sync History"}},"type":"object","required":["integration_key","display_name","category","description","scope","status","enabled","auth_type","supports_pull","supports_push","supports_scheduling","supports_field_mapping","supports_credential_editing"],"title":"AdminIntegrationDetailResponse"},"AdminIntegrationMappingUpdateRequest":{"properties":{"field_mappings":{"items":{"$ref":"#/components/schemas/IntegrationFieldMappingResponse"},"type":"array","title":"Field Mappings"}},"type":"object","title":"AdminIntegrationMappingUpdateRequest"},"AdminIntegrationProbeItemResponse":{"properties":{"integration_key":{"type":"string","title":"Integration Key"},"display_name":{"type":"string","title":"Display Name"},"ok":{"type":"boolean","title":"Ok"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"observed_fields":{"items":{"type":"string"},"type":"array","title":"Observed Fields"},"sample":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Sample"}},"type":"object","required":["integration_key","display_name","ok","status","message"],"title":"AdminIntegrationProbeItemResponse"},"AdminIntegrationProbeResponse":{"properties":{"ran_at":{"type":"string","format":"date-time","title":"Ran At"},"items":{"items":{"$ref":"#/components/schemas/AdminIntegrationProbeItemResponse"},"type":"array","title":"Items"}},"type":"object","required":["ran_at"],"title":"AdminIntegrationProbeResponse"},"AdminIntegrationScheduleUpdateRequest":{"properties":{"sync_mode":{"type":"string","title":"Sync Mode"},"sync_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Schedule"}},"type":"object","required":["sync_mode"],"title":"AdminIntegrationScheduleUpdateRequest"},"AdminIntegrationSummaryResponse":{"properties":{"integration_key":{"type":"string","title":"Integration Key"},"display_name":{"type":"string","title":"Display Name"},"category":{"type":"string","title":"Category"},"scope":{"type":"string","title":"Scope"},"status":{"type":"string","title":"Status"},"enabled":{"type":"boolean","title":"Enabled"},"auth_type":{"type":"string","title":"Auth Type"},"connected_modules":{"items":{"type":"string"},"type":"array","title":"Connected Modules"},"sync_mode":{"type":"string","title":"Sync Mode","default":"manual"},"sync_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Schedule"},"last_successful_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Successful Sync At"},"last_attempted_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempted Sync At"},"last_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Status"},"last_sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Error"}},"type":"object","required":["integration_key","display_name","category","scope","status","enabled","auth_type"],"title":"AdminIntegrationSummaryResponse"},"AdminIntegrationTestResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["ok","status","message"],"title":"AdminIntegrationTestResponse"},"AdminIntegrationUpdateRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"connected_modules":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Connected Modules"}},"type":"object","title":"AdminIntegrationUpdateRequest"},"AdminOidcIdentityAttemptLinkRequest":{"properties":{"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["user_id"],"title":"AdminOidcIdentityAttemptLinkRequest"},"AdminOidcIdentityAttemptSummary":{"properties":{"attempt_id":{"type":"string","title":"Attempt Id"},"provider":{"type":"string","title":"Provider"},"subject":{"type":"string","title":"Subject"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"linked_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"status":{"type":"string","title":"Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"attempt_count":{"type":"integer","title":"Attempt Count","default":0},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"linked_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked User Id"},"linked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Linked At"},"matched_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched User Id"},"matched_user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched User Email"}},"type":"object","required":["attempt_id","provider","subject","status","first_seen_at","last_seen_at"],"title":"AdminOidcIdentityAttemptSummary"},"AdminRoleResponse":{"properties":{"role_name":{"type":"string","title":"Role Name"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["role_name"],"title":"AdminRoleResponse"},"AdminUserCreateRequest":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"oidc_attempt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Attempt Id"},"oidc_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Provider"},"oidc_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Subject"},"oidc_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Email"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"clinic_ids":{"items":{"type":"string"},"type":"array","title":"Clinic Ids"},"panel_ids_by_clinic":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Panel Ids By Clinic"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"send_invite_email":{"type":"boolean","title":"Send Invite Email","default":true}},"type":"object","required":["first_name","last_name","email"],"title":"AdminUserCreateRequest"},"AdminUserPasswordResetRequest":{"properties":{"password":{"type":"string","title":"Password"},"require_password_change":{"type":"boolean","title":"Require Password Change","default":true}},"type":"object","required":["password"],"title":"AdminUserPasswordResetRequest"},"AdminUserSummary":{"properties":{"user_id":{"type":"string","title":"User Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"preferred_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Name"},"email":{"type":"string","title":"Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"requested_legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Legal Name"},"requested_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Email"},"oidc_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Provider"},"oidc_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Subject"},"oidc_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Email"},"oidc_linked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oidc Linked At"},"is_active":{"type":"boolean","title":"Is Active"},"mfa_enabled":{"type":"boolean","title":"Mfa Enabled"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false},"must_setup_mfa":{"type":"boolean","title":"Must Setup Mfa","default":false},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"clinics":{"items":{"type":"string"},"type":"array","title":"Clinics"},"panels_by_clinic":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Panels By Clinic"}},"type":"object","required":["user_id","email","is_active","mfa_enabled"],"title":"AdminUserSummary"},"AdminUserUpdateRequest":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"oidc_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Provider"},"oidc_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Subject"},"oidc_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Email"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Roles"},"clinic_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Clinic Ids"},"panel_ids_by_clinic":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Panel Ids By Clinic"}},"type":"object","title":"AdminUserUpdateRequest"},"AdminUserWriteResponse":{"properties":{"user":{"$ref":"#/components/schemas/AdminUserSummary"},"invite_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Token"},"temporary_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Username"},"temporary_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Password"}},"type":"object","required":["user"],"title":"AdminUserWriteResponse"},"AnalyticsPlanFeedbackRequest":{"properties":{"interaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interaction Id"},"plan_hash":{"type":"string","title":"Plan Hash"},"question_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Summary"},"status":{"type":"string","title":"Status","default":"accepted"},"accepted_plan_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Accepted Plan Json"},"edited_plan_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Edited Plan Json"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["plan_hash"],"title":"AnalyticsPlanFeedbackRequest"},"AnalyticsPlanFeedbackResponse":{"properties":{"feedback_id":{"type":"string","title":"Feedback Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"user_id":{"type":"string","title":"User Id"},"interaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interaction Id"},"plan_hash":{"type":"string","title":"Plan Hash"},"question_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Summary"},"status":{"type":"string","title":"Status"},"accepted_plan_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Accepted Plan Json"},"edited_plan_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Edited Plan Json"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["feedback_id","clinic_id","user_id","plan_hash","status","created_at"],"title":"AnalyticsPlanFeedbackResponse"},"AnalyticsPlanMemoryReviewRequest":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["status"],"title":"AnalyticsPlanMemoryReviewRequest"},"AnalyticsPlanNormalizeResponse":{"properties":{"validation":{"$ref":"#/components/schemas/AnalyticsPlanValidationResponse"},"normalized_plan":{"additionalProperties":true,"type":"object","title":"Normalized Plan"}},"type":"object","required":["validation"],"title":"AnalyticsPlanNormalizeResponse"},"AnalyticsPlanPayload":{"properties":{"plan":{"additionalProperties":true,"type":"object","title":"Plan"}},"type":"object","title":"AnalyticsPlanPayload"},"AnalyticsPlanPrepareRequest":{"properties":{"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"create_metric":{"type":"boolean","title":"Create Metric","default":true},"create_worklist":{"type":"boolean","title":"Create Worklist","default":true},"create_actions":{"type":"boolean","title":"Create Actions","default":true}},"type":"object","title":"AnalyticsPlanPrepareRequest"},"AnalyticsPlanPrepareResponse":{"properties":{"validation":{"$ref":"#/components/schemas/AnalyticsPlanValidationResponse"},"normalized_plan":{"additionalProperties":true,"type":"object","title":"Normalized Plan"},"metric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metric"},"worklist":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Worklist"},"action_batches":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Action Batches"}},"type":"object","required":["validation"],"title":"AnalyticsPlanPrepareResponse"},"AnalyticsPlanRequest":{"properties":{"question":{"type":"string","title":"Question"},"conversation_state":{"additionalProperties":true,"type":"object","title":"Conversation State"},"save_metric":{"type":"boolean","title":"Save Metric","default":false},"save_worklist":{"type":"boolean","title":"Save Worklist","default":false},"metric_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric Name"},"worklist_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worklist Name"}},"type":"object","required":["question"],"title":"AnalyticsPlanRequest"},"AnalyticsPlanResponse":{"properties":{"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"suggested_metric":{"additionalProperties":true,"type":"object","title":"Suggested Metric"},"suggested_tile":{"additionalProperties":true,"type":"object","title":"Suggested Tile"},"suggested_worklist":{"additionalProperties":true,"type":"object","title":"Suggested Worklist"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","title":"AnalyticsPlanResponse"},"AnalyticsPlanTranslateResponse":{"properties":{"validation":{"$ref":"#/components/schemas/AnalyticsPlanValidationResponse"},"normalized_plan":{"additionalProperties":true,"type":"object","title":"Normalized Plan"},"metric_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metric Definition"},"worklist_definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Worklist Definition"},"action_batches":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Action Batches"}},"type":"object","required":["validation"],"title":"AnalyticsPlanTranslateResponse"},"AnalyticsPlanValidationResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Errors"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"clarification_suggestions":{"items":{"type":"string"},"type":"array","title":"Clarification Suggestions"}},"type":"object","required":["valid"],"title":"AnalyticsPlanValidationResponse"},"AppointmentPatchPayload":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"appointment_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Type Id"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"secondary_resource_ids_json":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Secondary Resource Ids Json"},"visit_mode":{"anyOf":[{"type":"string","enum":["in_person","telehealth"]},{"type":"null"}],"title":"Visit Mode"},"status":{"anyOf":[{"type":"string","enum":["pending_approval","scheduled","confirmed","checked_in","completed","cancelled","no_show","reschedule_requested"]},{"type":"null"}],"title":"Status"},"start_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start At"},"end_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End At"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"telehealth_join_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telehealth Join Link"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"linked_communication_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Communication Thread Id"}},"type":"object","title":"AppointmentPatchPayload"},"AppointmentPayload":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"appointment_type_id":{"type":"string","title":"Appointment Type Id"},"resource_id":{"type":"string","title":"Resource Id"},"secondary_resource_ids_json":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Secondary Resource Ids Json"},"visit_mode":{"type":"string","enum":["in_person","telehealth"],"title":"Visit Mode"},"status":{"anyOf":[{"type":"string","enum":["pending_approval","scheduled","confirmed","checked_in","completed","cancelled","no_show","reschedule_requested"]},{"type":"null"}],"title":"Status"},"start_at":{"type":"string","title":"Start At"},"end_at":{"type":"string","title":"End At"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"requested_by_type":{"type":"string","enum":["staff","patient_widget","patient_message","system"],"title":"Requested By Type","default":"staff"},"requested_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By User Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"linked_communication_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Communication Thread Id"}},"type":"object","required":["patient_id","appointment_type_id","resource_id","visit_mode","start_at","end_at"],"title":"AppointmentPayload"},"AppointmentRequestPayload":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"request_source":{"type":"string","enum":["internal_staff","website_widget","sms","email"],"title":"Request Source"},"requested_appointment_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Appointment Type Id"},"preferred_resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Resource Id"},"preferred_visit_mode":{"anyOf":[{"type":"string","enum":["in_person","telehealth"]},{"type":"null"}],"title":"Preferred Visit Mode"},"preferred_date_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preferred Date Json"},"preferred_time_windows_json":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Preferred Time Windows Json"},"reason_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Text"},"linked_communication_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Communication Thread Id"}},"type":"object","required":["request_source"],"title":"AppointmentRequestPayload"},"AppointmentTypePatchPayload":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"visit_mode_json":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Visit Mode Json"},"allowed_staff_roles_json":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Staff Roles Json"},"approval_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approval Required"},"default_reminder_schedule_json":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Default Reminder Schedule Json"},"buffer_before_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer Before Minutes"},"buffer_after_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer After Minutes"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"AppointmentTypePatchPayload"},"AppointmentTypePayload":{"properties":{"key":{"type":"string","title":"Key"},"display_name":{"type":"string","title":"Display Name"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"visit_mode_json":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Visit Mode Json"},"allowed_staff_roles_json":{"items":{"type":"string"},"type":"array","title":"Allowed Staff Roles Json"},"approval_required":{"type":"boolean","title":"Approval Required","default":true},"default_reminder_schedule_json":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Default Reminder Schedule Json"},"buffer_before_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer Before Minutes"},"buffer_after_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer After Minutes"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["key","display_name","duration_minutes"],"title":"AppointmentTypePayload"},"AuthFirstLoginCompleteRequest":{"properties":{"setup_token":{"type":"string","title":"Setup Token"},"new_password":{"type":"string","title":"New Password"},"mfa_code":{"type":"string","title":"Mfa Code"}},"type":"object","required":["setup_token","new_password","mfa_code"],"title":"AuthFirstLoginCompleteRequest"},"AuthFirstLoginMfaStartRequest":{"properties":{"setup_token":{"type":"string","title":"Setup Token"}},"type":"object","required":["setup_token"],"title":"AuthFirstLoginMfaStartRequest"},"AuthForgotPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"AuthForgotPasswordRequest"},"AuthIdentityLinkRequest":{"properties":{"provider":{"type":"string","title":"Provider"},"subject":{"type":"string","title":"Subject"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["provider","subject"],"title":"AuthIdentityLinkRequest"},"AuthLoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},"type":"object","required":["email","password"],"title":"AuthLoginRequest"},"AuthLoginResponse":{"properties":{"mfa_required":{"type":"boolean","title":"Mfa Required","default":false},"temp_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temp Token"},"setup_required":{"type":"boolean","title":"Setup Required","default":false},"setup_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setup Token"},"setup_steps":{"items":{"type":"string"},"type":"array","title":"Setup Steps"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"authorization_profile":{"anyOf":[{"$ref":"#/components/schemas/AuthProfileResponse"},{"type":"null"}]},"user_profile":{"anyOf":[{"$ref":"#/components/schemas/AuthProfileResponse"},{"type":"null"}]},"backup_codes":{"items":{"type":"string"},"type":"array","title":"Backup Codes"}},"type":"object","title":"AuthLoginResponse"},"AuthMfaBackupRequest":{"properties":{"temp_token":{"type":"string","title":"Temp Token"},"code":{"type":"string","title":"Code"}},"type":"object","required":["temp_token","code"],"title":"AuthMfaBackupRequest"},"AuthMfaConfirmRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"AuthMfaConfirmRequest"},"AuthMfaVerifyRequest":{"properties":{"temp_token":{"type":"string","title":"Temp Token"},"code":{"type":"string","title":"Code"}},"type":"object","required":["temp_token","code"],"title":"AuthMfaVerifyRequest"},"AuthOidcExchangeRequest":{"properties":{"id_token":{"type":"string","title":"Id Token"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}},"type":"object","required":["id_token"],"title":"AuthOidcExchangeRequest"},"AuthPasswordChangeRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"AuthPasswordChangeRequest"},"AuthProfileResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"preferred_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Name"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"oidc_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Provider"},"oidc_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Subject"},"oidc_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Email"},"oidc_linked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oidc Linked At"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"clinics":{"items":{"type":"string"},"type":"array","title":"Clinics"},"mfa_enabled":{"type":"boolean","title":"Mfa Enabled","default":false},"auth_mode":{"type":"string","title":"Auth Mode","default":"oidc"}},"type":"object","required":["user_id","email"],"title":"AuthProfileResponse"},"AuthResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["token","new_password"],"title":"AuthResetPasswordRequest"},"AvailabilityRulePatchPayload":{"properties":{"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"rule_type":{"anyOf":[{"type":"string","enum":["office_hours","recurring_availability","recurring_unavailability","vacation","blocked_time","acute_hold"]},{"type":"null"}],"title":"Rule Type"},"days_of_week_json":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Days Of Week Json"},"start_time_local":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time Local"},"end_time_local":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time Local"},"effective_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Start Date"},"effective_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective End Date"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"}},"type":"object","title":"AvailabilityRulePatchPayload"},"AvailabilityRulePayload":{"properties":{"resource_id":{"type":"string","title":"Resource Id"},"rule_type":{"type":"string","enum":["office_hours","recurring_availability","recurring_unavailability","vacation","blocked_time","acute_hold"],"title":"Rule Type"},"days_of_week_json":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Days Of Week Json"},"start_time_local":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time Local"},"end_time_local":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time Local"},"effective_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective Start Date"},"effective_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective End Date"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"}},"type":"object","required":["resource_id","rule_type"],"title":"AvailabilityRulePayload"},"BillingSubmitPayload":{"properties":{"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"},"accepted_cpts":{"anyOf":[{"items":{"$ref":"#/components/schemas/CptCodeEntry"},"type":"array"},{"type":"null"}],"title":"Accepted Cpts"},"accepted_icd10s":{"anyOf":[{"items":{"$ref":"#/components/schemas/Icd10CodeEntry"},"type":"array"},{"type":"null"}],"title":"Accepted Icd10S"},"place_of_service_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service Code"}},"type":"object","title":"BillingSubmitPayload"},"Body_communications_upload_communications_uploads_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_communications_upload_communications_uploads_post"},"Body_intake_upload_communications_intake_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"source":{"type":"string","title":"Source","default":"pophealth_upload"},"source_ref_id":{"type":"string","title":"Source Ref Id","default":""}},"type":"object","required":["file"],"title":"Body_intake_upload_communications_intake_upload_post"},"Body_upload_patient_document_patients__patient_id__documents_post":{"properties":{"document_type":{"type":"string","title":"Document Type","default":"general"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_patient_document_patients__patient_id__documents_post"},"Body_upload_spreadsheet_imports_spreadsheets_post":{"properties":{"target_entity":{"type":"string","title":"Target Entity","default":"patient"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_spreadsheet_imports_spreadsheets_post"},"BootstrapAdminRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"clinic_name":{"type":"string","title":"Clinic Name"}},"type":"object","required":["email","password","clinic_name"],"title":"BootstrapAdminRequest"},"BranchFromPayload":{"properties":{"name":{"type":"string","title":"Name"},"relationship_type":{"type":"string","title":"Relationship Type","default":"contributed_to"},"icd10_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icd10 Code"},"snomed_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Code"},"onset_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Onset Date"},"severity_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Severity Tier"},"source":{"type":"string","title":"Source","default":"manual"},"evidence_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Note"}},"type":"object","required":["name"],"title":"BranchFromPayload"},"CarePlanGoalPayload":{"properties":{"title":{"type":"string","title":"Title"},"target_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"details_json":{"additionalProperties":true,"type":"object","title":"Details Json"}},"type":"object","required":["title"],"title":"CarePlanGoalPayload"},"CarePlanInterventionPayload":{"properties":{"intervention_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intervention Type"},"title":{"type":"string","title":"Title"},"assigned_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"details_json":{"additionalProperties":true,"type":"object","title":"Details Json"}},"type":"object","required":["title"],"title":"CarePlanInterventionPayload"},"CarePlanPayload":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"care_team_json":{"additionalProperties":true,"type":"object","title":"Care Team Json"},"plan_summary_json":{"additionalProperties":true,"type":"object","title":"Plan Summary Json"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"review_due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Review Due At"}},"type":"object","required":["patient_id"],"title":"CarePlanPayload"},"CarePlanRevisionPayload":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"revision_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Reason"},"care_team_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Care Team Json"},"plan_summary_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan Summary Json"},"review_due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Review Due At"}},"type":"object","title":"CarePlanRevisionPayload"},"ClinicCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ClinicCreate"},"ClinicMergeRequest":{"properties":{"source_clinic_id":{"type":"string","title":"Source Clinic Id"},"target_clinic_id":{"type":"string","title":"Target Clinic Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["source_clinic_id","target_clinic_id","reason"],"title":"ClinicMergeRequest"},"ClinicMergeResponse":{"properties":{"merge_id":{"type":"string","title":"Merge Id"},"source_clinic_id":{"type":"string","title":"Source Clinic Id"},"target_clinic_id":{"type":"string","title":"Target Clinic Id"},"transferred_patients":{"type":"integer","title":"Transferred Patients"},"transferred_user_roles":{"type":"integer","title":"Transferred User Roles"},"transferred_user_panels":{"type":"integer","title":"Transferred User Panels"},"transferred_integrations":{"type":"integer","title":"Transferred Integrations"},"source_status":{"type":"string","title":"Source Status"}},"type":"object","required":["merge_id","source_clinic_id","target_clinic_id","transferred_patients","transferred_user_roles","transferred_user_panels","transferred_integrations","source_status"],"title":"ClinicMergeResponse"},"ClinicProvisionRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"}},"type":"object","required":["clinic_id","name","slug"],"title":"ClinicProvisionRequest"},"ClinicProvisionResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"name":{"type":"string","title":"Name"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["clinic_id","name","created"],"title":"ClinicProvisionResponse"},"ClinicResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","required":["clinic_id","name"],"title":"ClinicResponse"},"ClinicUserProvisionRequest":{"properties":{"email":{"type":"string","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"clinic_id":{"type":"string","title":"Clinic Id"},"clinic_name":{"type":"string","title":"Clinic Name"},"role":{"type":"string","title":"Role","default":"Superuser"}},"type":"object","required":["email","first_name","last_name","clinic_id","clinic_name"],"title":"ClinicUserProvisionRequest"},"ClinicUserProvisionResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"temp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temp Password"},"zitadel_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zitadel User Id"}},"type":"object","required":["user_id","email"],"title":"ClinicUserProvisionResponse"},"ClinicalProfilePayload":{"properties":{"preferred_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Language"},"care_team_json":{"additionalProperties":true,"type":"object","title":"Care Team Json"},"risk_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Level"},"apcm_eligible":{"type":"boolean","title":"Apcm Eligible","default":false},"summary_json":{"additionalProperties":true,"type":"object","title":"Summary Json"}},"type":"object","title":"ClinicalProfilePayload"},"CommunicationLinkPayload":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"communication_type":{"type":"string","title":"Communication Type"},"communication_id":{"type":"string","title":"Communication Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","communication_type","communication_id"],"title":"CommunicationLinkPayload"},"ConfidentialPayload":{"properties":{"is_confidential":{"type":"boolean","title":"Is Confidential"},"confidential_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidential Reason"}},"type":"object","required":["is_confidential"],"title":"ConfidentialPayload"},"ConnectorHeartbeatPayload":{"properties":{"status":{"type":"string","enum":["online","offline","degraded"],"title":"Status","default":"online"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"capabilities_json":{"additionalProperties":true,"type":"object","title":"Capabilities Json"}},"type":"object","title":"ConnectorHeartbeatPayload"},"ConnectorPrintStatusPayload":{"properties":{"connector_node_id":{"type":"string","title":"Connector Node Id"},"status":{"type":"string","enum":["draft","queued","sent","printing","completed","failed","cancelled"],"title":"Status"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"}},"type":"object","required":["connector_node_id","status"],"title":"ConnectorPrintStatusPayload"},"ConnectorRegisterPayload":{"properties":{"connector_node_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connector Node Id"},"node_name":{"type":"string","title":"Node Name"},"host_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Name"},"status":{"type":"string","enum":["online","offline","degraded"],"title":"Status","default":"online"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"capabilities_json":{"additionalProperties":true,"type":"object","title":"Capabilities Json"},"auth_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Identity"}},"type":"object","required":["node_name"],"title":"ConnectorRegisterPayload"},"ConnectorScanUploadPayload":{"properties":{"connector_node_id":{"type":"string","title":"Connector Node Id"},"uploaded_object_key":{"type":"string","title":"Uploaded Object Key"},"status":{"type":"string","enum":["requested","scanning","uploaded","review_required","completed","failed"],"title":"Status","default":"uploaded"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"}},"type":"object","required":["connector_node_id","uploaded_object_key"],"title":"ConnectorScanUploadPayload"},"ConsentRestoreRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ConsentRestoreRequest"},"ConsentRevokeRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ConsentRevokeRequest"},"ConsentStatusResponse":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"status":{"type":"string","title":"Status"},"changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Changed At"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["patient_id","clinic_id","status","changed_at","changed_by","reason"],"title":"ConsentStatusResponse"},"ConvertRequestPayload":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"appointment_type_id":{"type":"string","title":"Appointment Type Id"},"resource_id":{"type":"string","title":"Resource Id"},"visit_mode":{"type":"string","enum":["in_person","telehealth"],"title":"Visit Mode"},"start_at":{"type":"string","title":"Start At"},"end_at":{"type":"string","title":"End At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["patient_id","appointment_type_id","resource_id","visit_mode","start_at","end_at"],"title":"ConvertRequestPayload"},"CptCodeEntry":{"properties":{"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"modifiers":{"items":{"type":"string"},"type":"array","title":"Modifiers","default":[]},"unit_charge":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unit Charge"}},"type":"object","required":["code"],"title":"CptCodeEntry"},"DashboardTileCreateRequest":{"properties":{"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"type":{"type":"string","title":"Type"},"icon":{"type":"string","title":"Icon","default":"torch"},"colorHint":{"type":"string","title":"Colorhint","default":"blue"},"requiredPermissions":{"items":{"type":"string"},"type":"array","title":"Requiredpermissions"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"sortOrder":{"type":"integer","title":"Sortorder","default":0},"isPinned":{"type":"boolean","title":"Ispinned","default":true}},"type":"object","required":["title","type"],"title":"DashboardTileCreateRequest"},"DashboardTilePatchRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"colorHint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colorhint"},"requiredPermissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Requiredpermissions"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"sortOrder":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sortorder"},"isPinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ispinned"}},"type":"object","title":"DashboardTilePatchRequest"},"DashboardTileResponse":{"properties":{"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"type":{"type":"string","title":"Type"},"icon":{"type":"string","title":"Icon","default":"torch"},"colorHint":{"type":"string","title":"Colorhint","default":"blue"},"requiredPermissions":{"items":{"type":"string"},"type":"array","title":"Requiredpermissions"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"tile_id":{"type":"string","title":"Tile Id"},"user_id":{"type":"string","title":"User Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"sortOrder":{"type":"integer","title":"Sortorder"},"isPinned":{"type":"boolean","title":"Ispinned"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["title","type","tile_id","user_id","clinic_id","sortOrder","isPinned","created_at","updated_at"],"title":"DashboardTileResponse"},"DelegateRequestReview":{"properties":{"action":{"type":"string","title":"Action"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"}},"type":"object","required":["action"],"title":"DelegateRequestReview"},"DevTokenRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["clinic_id","user_id"],"title":"DevTokenRequest"},"DeviceCapabilityPayload":{"properties":{"capability_type":{"type":"string","title":"Capability Type"},"value_json":{"additionalProperties":true,"type":"object","title":"Value Json"}},"type":"object","required":["capability_type"],"title":"DeviceCapabilityPayload"},"DeviceRoutePatchPayload":{"properties":{"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"},"module_name":{"anyOf":[{"type":"string","enum":["billing","pharmacy","pophealth","communications","admin"]},{"type":"null"}],"title":"Module Name"},"document_type":{"anyOf":[{"type":"string","enum":["statement","invoice","letter","medication_label","specimen_label","barcode_label","compound_worksheet","medication_handout","pharmacy_internal_pdf","intake_scan","generic_pdf"]},{"type":"null"}],"title":"Document Type"},"device_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Id"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"}},"type":"object","title":"DeviceRoutePatchPayload"},"DeviceRoutePayload":{"properties":{"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"},"module_name":{"type":"string","enum":["billing","pharmacy","pophealth","communications","admin"],"title":"Module Name"},"document_type":{"type":"string","enum":["statement","invoice","letter","medication_label","specimen_label","barcode_label","compound_worksheet","medication_handout","pharmacy_internal_pdf","intake_scan","generic_pdf"],"title":"Document Type"},"device_id":{"type":"string","title":"Device Id"},"priority":{"type":"integer","title":"Priority","default":100}},"type":"object","required":["module_name","document_type","device_id"],"title":"DeviceRoutePayload"},"DocumentApplyRequest":{"properties":{"target_entity":{"type":"string","title":"Target Entity"},"confirmed_fields":{"additionalProperties":true,"type":"object","title":"Confirmed Fields"}},"type":"object","required":["target_entity"],"title":"DocumentApplyRequest"},"DocumentReviewQueuePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DocumentReviewQueueResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["total","limit","offset"],"title":"DocumentReviewQueuePage"},"DocumentReviewQueueResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"global_patient_id":{"type":"string","title":"Global Patient Id"},"file_name":{"type":"string","title":"File Name"},"document_type":{"type":"string","title":"Document Type"},"status":{"type":"string","title":"Status"},"extraction_meta_json":{"additionalProperties":true,"type":"object","title":"Extraction Meta Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","clinic_id","patient_id","global_patient_id","file_name","document_type","status","created_at"],"title":"DocumentReviewQueueResponse"},"EncounterCreate":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"encounter_type":{"type":"string","title":"Encounter Type","default":"office_visit"},"encounter_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Encounter Date"},"provider_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider User Id"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"mdm_complexity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mdm Complexity"},"place_of_service_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service Code"},"billing_status":{"type":"string","title":"Billing Status","default":"ready_for_coding"}},"type":"object","required":["patient_id"],"title":"EncounterCreate"},"EncounterUpdate":{"properties":{"encounter_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encounter Type"},"encounter_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Encounter Date"},"provider_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider User Id"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"mdm_complexity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mdm Complexity"},"place_of_service_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Service Code"},"billing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Status"},"accepted_cpts":{"anyOf":[{"items":{"$ref":"#/components/schemas/CptCodeEntry"},"type":"array"},{"type":"null"}],"title":"Accepted Cpts"},"accepted_icd10s":{"anyOf":[{"items":{"$ref":"#/components/schemas/Icd10CodeEntry"},"type":"array"},{"type":"null"}],"title":"Accepted Icd10S"}},"type":"object","title":"EncounterUpdate"},"ExternalIdInput":{"properties":{"source":{"type":"string","title":"Source"},"external_id":{"type":"string","title":"External Id"}},"type":"object","required":["source","external_id"],"title":"ExternalIdInput"},"ExternalIdLookupResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"person_id":{"type":"string","title":"Person Id"},"global_patient_id":{"type":"string","title":"Global Patient Id"},"source":{"type":"string","title":"Source"},"external_id":{"type":"string","title":"External Id"}},"type":"object","required":["clinic_id","patient_id","person_id","global_patient_id","source","external_id"],"title":"ExternalIdLookupResponse"},"FaxConfidentialPayload":{"properties":{"is_confidential":{"type":"boolean","title":"Is Confidential"},"confidential_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidential Reason"}},"type":"object","required":["is_confidential"],"title":"FaxConfidentialPayload"},"FhirClientAppCreate":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"auth_type":{"type":"string","title":"Auth Type","default":"confidential"},"allowed_scopes_json":{"items":{"type":"string"},"type":"array","title":"Allowed Scopes Json"},"launch_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch Uri"},"redirect_uris_json":{"items":{"type":"string"},"type":"array","title":"Redirect Uris Json"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["client_id","client_name"],"title":"FhirClientAppCreate"},"FhirClientAppPatch":{"properties":{"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"auth_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Type"},"allowed_scopes_json":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Scopes Json"},"launch_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch Uri"},"redirect_uris_json":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Redirect Uris Json"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"FhirClientAppPatch"},"FhirExportRequest":{"properties":{"resource_types":{"items":{"type":"string"},"type":"array","title":"Resource Types"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"count_per_type":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Count Per Type","default":200}},"type":"object","title":"FhirExportRequest"},"FhirImportRequest":{"properties":{"source_system":{"type":"string","title":"Source System","default":"external"},"source_version":{"type":"string","title":"Source Version","default":"4.0.1"},"bundle":{"additionalProperties":true,"type":"object","title":"Bundle"}},"type":"object","required":["bundle"],"title":"FhirImportRequest"},"FhirSourceSystemCreate":{"properties":{"system_name":{"type":"string","title":"System Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"auth_type":{"type":"string","title":"Auth Type","default":"none"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["system_name"],"title":"FhirSourceSystemCreate"},"FhirSourceSystemPatch":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"auth_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Type"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"FhirSourceSystemPatch"},"GenericClinicalResourceCreate":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["patient_id"],"title":"GenericClinicalResourceCreate"},"GenericPatchPayload":{"properties":{"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","title":"GenericPatchPayload"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Icd10CodeEntry":{"properties":{"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_principal":{"type":"boolean","title":"Is Principal","default":false}},"type":"object","required":["code"],"title":"Icd10CodeEntry"},"ImmunizationCreate":{"properties":{"vaccine_code_cvx":{"type":"string","title":"Vaccine Code Cvx"},"vaccine_name":{"type":"string","title":"Vaccine Name"},"administered_date":{"type":"string","format":"date","title":"Administered Date"},"lot_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lot Number"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"administered_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administered Site"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"dose_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dose Number"},"series_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Name"},"vfc_eligibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vfc Eligibility"},"administered_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administered By User Id"},"ordering_provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ordering Provider Npi"},"manufacturer_mvx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer Mvx"},"refusal_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Reason"},"is_historical":{"type":"boolean","title":"Is Historical","default":false},"source":{"type":"string","title":"Source","default":"manual"},"status":{"type":"string","title":"Status","default":"completed"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"vis_presented":{"items":{"$ref":"#/components/schemas/VisCreate"},"type":"array","title":"Vis Presented","default":[]}},"type":"object","required":["vaccine_code_cvx","vaccine_name","administered_date"],"title":"ImmunizationCreate"},"ImmunizationPatch":{"properties":{"vaccine_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vaccine Name"},"lot_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lot Number"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expiration Date"},"administered_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered Date"},"administered_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administered Site"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"dose_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dose Number"},"series_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Name"},"vfc_eligibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vfc Eligibility"},"administered_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administered By User Id"},"ordering_provider_npi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ordering Provider Npi"},"manufacturer_mvx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer Mvx"},"refusal_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Reason"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ImmunizationPatch"},"ImportConfirmRequest":{"properties":{"mapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Mapping"},"external_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Source"}},"type":"object","required":["mapping"],"title":"ImportConfirmRequest"},"ImportRetryRequest":{"properties":{"mapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Mapping"},"row_numbers":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Row Numbers"},"external_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Source"}},"type":"object","required":["mapping"],"title":"ImportRetryRequest"},"ImportSessionResponse":{"properties":{"id":{"type":"string","title":"Id"},"file_name":{"type":"string","title":"File Name"},"content_type":{"type":"string","title":"Content Type"},"target_entity":{"type":"string","title":"Target Entity"},"status":{"type":"string","title":"Status"},"mapping_suggestions_json":{"additionalProperties":true,"type":"object","title":"Mapping Suggestions Json"},"confirmed_mapping_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Confirmed Mapping Json"},"preview_rows_json":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Preview Rows Json"},"row_results_json":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Row Results Json"},"summary_json":{"additionalProperties":true,"type":"object","title":"Summary Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"applied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Applied At"}},"type":"object","required":["id","file_name","content_type","target_entity","status","mapping_suggestions_json","created_at"],"title":"ImportSessionResponse"},"IntakeRoutePayload":{"properties":{"confirmed_module":{"type":"string","title":"Confirmed Module"},"confirmed_doc_type":{"type":"string","title":"Confirmed Doc Type","default":"other"},"patient_links":{"items":{"type":"string"},"type":"array","title":"Patient Links","default":[]}},"type":"object","required":["confirmed_module"],"title":"IntakeRoutePayload"},"IntegrationFieldCapabilityResponse":{"properties":{"external_field_key":{"type":"string","title":"External Field Key"},"display_name":{"type":"string","title":"Display Name"},"direction":{"type":"string","title":"Direction"},"data_type":{"type":"string","title":"Data Type"},"required":{"type":"boolean","title":"Required","default":false},"mapped":{"type":"boolean","title":"Mapped","default":false},"mapped_internal_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mapped Internal Field"},"mapping_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mapping Status"}},"type":"object","required":["external_field_key","display_name","direction","data_type"],"title":"IntegrationFieldCapabilityResponse"},"IntegrationFieldMappingResponse":{"properties":{"external_field_key":{"type":"string","title":"External Field Key"},"internal_field_path":{"type":"string","title":"Internal Field Path"},"direction":{"type":"string","title":"Direction"},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","required":["external_field_key","internal_field_path","direction"],"title":"IntegrationFieldMappingResponse"},"IntegrationSyncEventResponse":{"properties":{"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"status":{"type":"string","title":"Status"},"direction":{"type":"string","title":"Direction","default":"pull"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["status"],"title":"IntegrationSyncEventResponse"},"InvitationSend":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"sent_to_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent To Email"},"sent_to_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent To Phone"}},"type":"object","required":["patient_id"],"title":"InvitationSend"},"KnowledgePatchPayload":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"KnowledgePatchPayload"},"LabObservationEntry":{"properties":{"loinc_code":{"type":"string","title":"Loinc Code"},"display_name":{"type":"string","title":"Display Name"},"value":{"type":"string","title":"Value","default":""},"unit":{"type":"string","title":"Unit","default":""},"reference_range":{"type":"string","title":"Reference Range","default":""}},"type":"object","required":["loinc_code","display_name"],"title":"LabObservationEntry"},"LabResultDispatchRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"dos":{"type":"string","title":"Dos"},"record_id":{"type":"string","title":"Record Id"},"observations":{"items":{"$ref":"#/components/schemas/LabObservationEntry"},"type":"array","title":"Observations"}},"type":"object","required":["patient_id","dos","record_id","observations"],"title":"LabResultDispatchRequest"},"LinkPatientRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"person_id":{"type":"string","title":"Person Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["patient_id","person_id","reason"],"title":"LinkPatientRequest"},"LinkRequestReview":{"properties":{"action":{"type":"string","title":"Action"},"denial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denial Reason"}},"type":"object","required":["action"],"title":"LinkRequestReview"},"MCClinicUserSummary":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"is_active":{"type":"boolean","title":"Is Active"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"oidc_linked":{"type":"boolean","title":"Oidc Linked"},"oidc_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Email"},"oidc_linked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Linked At"},"mfa_enabled":{"type":"boolean","title":"Mfa Enabled"}},"type":"object","required":["user_id","email","first_name","last_name","is_active","roles","oidc_linked","oidc_email","oidc_linked_at","mfa_enabled"],"title":"MCClinicUserSummary"},"MatchCandidateRequest":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob"}},"type":"object","required":["first_name","last_name"],"title":"MatchCandidateRequest"},"MatchCandidateResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"person_id":{"type":"string","title":"Person Id"},"global_patient_id":{"type":"string","title":"Global Patient Id"},"display_name":{"type":"string","title":"Display Name"},"dob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dob"},"score":{"type":"number","title":"Score"}},"type":"object","required":["clinic_id","patient_id","person_id","global_patient_id","display_name","score"],"title":"MatchCandidateResponse"},"MedicationCreateRequest":{"properties":{"medication_name":{"type":"string","title":"Medication Name"},"rxnorm_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rxnorm Code"},"ndc_11":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ndc 11"},"dose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dose"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency"},"sig_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sig Text"},"dosage_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dosage Form"},"quantity_dispensed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity Dispensed"},"days_supply":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Supply"},"refills_authorized":{"type":"integer","title":"Refills Authorized","default":0},"refills_remaining":{"type":"integer","title":"Refills Remaining","default":0},"status":{"type":"string","title":"Status","default":"active"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"prescribing_provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prescribing Provider Id"},"source":{"type":"string","title":"Source","default":"pharmacy_dispense"},"problem_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Id"}},"type":"object","required":["medication_name"],"title":"MedicationCreateRequest"},"MedicationPatchRequest":{"properties":{"dose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dose"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency"},"sig_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sig Text"},"dosage_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dosage Form"},"quantity_dispensed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity Dispensed"},"days_supply":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Supply"},"refills_authorized":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refills Authorized"},"refills_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refills Remaining"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"problem_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Id"}},"type":"object","title":"MedicationPatchRequest"},"MergePatientsRequest":{"properties":{"winner_patient_id":{"type":"string","title":"Winner Patient Id"},"loser_patient_id":{"type":"string","title":"Loser Patient Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["winner_patient_id","loser_patient_id","reason"],"title":"MergePatientsRequest"},"MetricDefinitionCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"cohort_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort Id"},"owner_module":{"type":"string","title":"Owner Module","default":"pophealth"},"metric_type":{"type":"string","title":"Metric Type","default":"count"},"definition_json":{"additionalProperties":true,"type":"object","title":"Definition Json"},"visualization_json":{"additionalProperties":true,"type":"object","title":"Visualization Json"}},"type":"object","required":["name"],"title":"MetricDefinitionCreateRequest"},"MetricDefinitionResponse":{"properties":{"metric_id":{"type":"string","title":"Metric Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"cohort_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner_module":{"type":"string","title":"Owner Module"},"metric_type":{"type":"string","title":"Metric Type"},"definition_json":{"additionalProperties":true,"type":"object","title":"Definition Json"},"visualization_json":{"additionalProperties":true,"type":"object","title":"Visualization Json"},"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":["metric_id","clinic_id","name","owner_module","metric_type","created_by_user_id","created_at","updated_at"],"title":"MetricDefinitionResponse"},"MetricRunResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"metric_id":{"type":"string","title":"Metric Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"status":{"type":"string","title":"Status"},"result_json":{"additionalProperties":true,"type":"object","title":"Result Json"},"error_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Text"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["run_id","metric_id","clinic_id","status","started_at","created_at"],"title":"MetricRunResponse"},"MipsProfilePayload":{"properties":{"performance_year":{"type":"integer","title":"Performance Year"},"profile_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Name"},"selected_objectives_json":{"additionalProperties":true,"type":"object","title":"Selected Objectives Json"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["performance_year"],"title":"MipsProfilePayload"},"MipsRunPayload":{"properties":{"run_period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Run Period Start"},"run_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Run Period End"}},"type":"object","title":"MipsRunPayload"},"MyProfileResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"preferred_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Name"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"requested_legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Legal Name"},"requested_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Email"},"oidc_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Provider"},"oidc_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oidc Email"},"ringcentral_extension_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ringcentral Extension Id"},"ringcentral_direct_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ringcentral Direct Number"},"click_to_call_enabled":{"type":"boolean","title":"Click To Call Enabled","default":true},"patient_sms_policy":{"type":"string","title":"Patient Sms Policy","default":"company_line_only"},"company_sms_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Sms Number"},"auth_mode":{"type":"string","title":"Auth Mode","default":"oidc"}},"type":"object","required":["user_id","email"],"title":"MyProfileResponse"},"MyProfileUpdateRequest":{"properties":{"preferred_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Name"},"requested_legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Legal Name"},"requested_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Email"},"ringcentral_extension_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ringcentral Extension Id"},"ringcentral_direct_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ringcentral Direct Number"},"click_to_call_enabled":{"type":"boolean","title":"Click To Call Enabled","default":true}},"type":"object","title":"MyProfileUpdateRequest"},"NoteCreate":{"properties":{"note_type":{"type":"string","title":"Note Type"},"content_json":{"additionalProperties":true,"type":"object","title":"Content Json"}},"type":"object","required":["note_type","content_json"],"title":"NoteCreate"},"NoteForSigningDispatchRequest":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"record_id":{"type":"string","title":"Record Id"},"note_date":{"type":"string","title":"Note Date"},"note_type":{"type":"string","title":"Note Type"},"return_fax":{"type":"string","title":"Return Fax","default":""},"note_text":{"type":"string","title":"Note Text","default":""}},"type":"object","required":["patient_id","record_id","note_date","note_type"],"title":"NoteForSigningDispatchRequest"},"NoteVersionCreate":{"properties":{"content_json":{"additionalProperties":true,"type":"object","title":"Content Json"},"amends_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amends Version Id"}},"type":"object","required":["content_json"],"title":"NoteVersionCreate"},"OfficeDeviceCreatePayload":{"properties":{"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"},"device_name":{"type":"string","title":"Device Name"},"device_type":{"type":"string","enum":["printer","scanner","mfp","label_printer"],"title":"Device Type"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"connection_type":{"type":"string","enum":["ip","queue","connector_managed","brother_sdk"],"title":"Connection Type"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"queue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Queue Name"},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"protocol":{"anyOf":[{"type":"string","enum":["ipp","socket","os_queue","brother_sdk","scan_driver"]},{"type":"null"}],"title":"Protocol"},"is_default":{"type":"boolean","title":"Is Default","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true},"location_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Description"},"config_json":{"additionalProperties":true,"type":"object","title":"Config Json"},"capabilities":{"items":{"$ref":"#/components/schemas/DeviceCapabilityPayload"},"type":"array","title":"Capabilities"}},"type":"object","required":["device_name","device_type","connection_type"],"title":"OfficeDeviceCreatePayload"},"OfficeDevicePatchPayload":{"properties":{"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"},"device_type":{"anyOf":[{"type":"string","enum":["printer","scanner","mfp","label_printer"]},{"type":"null"}],"title":"Device Type"},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"connection_type":{"anyOf":[{"type":"string","enum":["ip","queue","connector_managed","brother_sdk"]},{"type":"null"}],"title":"Connection Type"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"queue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Queue Name"},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"protocol":{"anyOf":[{"type":"string","enum":["ipp","socket","os_queue","brother_sdk","scan_driver"]},{"type":"null"}],"title":"Protocol"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"location_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Description"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"},"capabilities":{"anyOf":[{"items":{"$ref":"#/components/schemas/DeviceCapabilityPayload"},"type":"array"},{"type":"null"}],"title":"Capabilities"}},"type":"object","title":"OfficeDevicePatchPayload"},"PanelCreate":{"properties":{"name":{"type":"string","title":"Name"},"criteria_json":{"additionalProperties":true,"type":"object","title":"Criteria Json"}},"type":"object","required":["name","criteria_json"],"title":"PanelCreate"},"PatientCreate":{"properties":{"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"status":{"type":"string","title":"Status","default":"active"},"external_ids":{"items":{"$ref":"#/components/schemas/ExternalIdInput"},"type":"array","title":"External Ids"},"demographics":{"anyOf":[{"$ref":"#/components/schemas/PatientDemographicsWrite"},{"type":"null"}]}},"type":"object","required":["first_name","last_name"],"title":"PatientCreate"},"PatientDemographicsResponse":{"properties":{"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"gender_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender Identity"},"pronouns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pronouns"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"mobile_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone"},"work_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"drivers_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivers License Number"},"drivers_license_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivers License State"},"race":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Race"},"ethnicity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ethnicity"},"preferred_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Language"},"marital_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marital Status"},"religion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Religion"},"emergency_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Name"},"emergency_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Phone"},"emergency_contact_relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Relationship"},"patient_id":{"type":"string","title":"Patient Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["patient_id","clinic_id"],"title":"PatientDemographicsResponse"},"PatientDemographicsWrite":{"properties":{"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"gender_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender Identity"},"pronouns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pronouns"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"mobile_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone"},"work_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"ssn_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssn Last4"},"drivers_license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivers License Number"},"drivers_license_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivers License State"},"race":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Race"},"ethnicity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ethnicity"},"preferred_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Language"},"marital_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marital Status"},"religion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Religion"},"emergency_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Name"},"emergency_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Phone"},"emergency_contact_relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Relationship"}},"type":"object","title":"PatientDemographicsWrite"},"PatientDocumentNotification":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"upload_id":{"type":"string","title":"Upload Id"},"file_name":{"type":"string","title":"File Name"},"storage_key":{"type":"string","title":"Storage Key"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"upload_category":{"type":"string","title":"Upload Category","default":"general"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},"type":"object","required":["clinic_id","upload_id","file_name","storage_key"],"title":"PatientDocumentNotification"},"PatientDocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"patient_id":{"type":"string","title":"Patient Id"},"global_patient_id":{"type":"string","title":"Global Patient Id"},"document_type":{"type":"string","title":"Document Type"},"file_name":{"type":"string","title":"File Name"},"content_type":{"type":"string","title":"Content Type"},"status":{"type":"string","title":"Status"},"extracted_fields_json":{"additionalProperties":true,"type":"object","title":"Extracted Fields Json"},"extracted_text_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extracted Text Preview"},"extraction_meta_json":{"additionalProperties":true,"type":"object","title":"Extraction Meta Json"},"applied_summary_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Applied Summary Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","patient_id","global_patient_id","document_type","file_name","content_type","status","created_at"],"title":"PatientDocumentResponse"},"PatientIdentityResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"person_id":{"type":"string","title":"Person Id"},"global_patient_id":{"type":"string","title":"Global Patient Id"}},"type":"object","required":["clinic_id","patient_id","person_id","global_patient_id"],"title":"PatientIdentityResponse"},"PatientLookupRequest":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},"type":"object","required":["clinic_id"],"title":"PatientLookupRequest"},"PatientMergeResponse":{"properties":{"merge_id":{"type":"string","title":"Merge Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"winner_patient_id":{"type":"string","title":"Winner Patient Id"},"loser_patient_id":{"type":"string","title":"Loser Patient Id"},"merged_by_user_id":{"type":"string","title":"Merged By User Id"},"merged_at":{"type":"string","format":"date-time","title":"Merged At"},"reason":{"type":"string","title":"Reason"},"undone_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undone At"},"undone_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Undone By User Id"},"undo_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Undo Reason"}},"type":"object","required":["merge_id","clinic_id","winner_patient_id","loser_patient_id","merged_by_user_id","merged_at","reason"],"title":"PatientMergeResponse"},"PatientPatch":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"PatientPatch"},"PatientResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"person_id":{"type":"string","title":"Person Id"},"global_patient_id":{"type":"string","title":"Global Patient Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"status":{"type":"string","title":"Status"},"redirected_from_patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirected From Patient Id"},"gender_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender Identity"},"pronouns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pronouns"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"mobile_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone"},"work_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"race":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Race"},"ethnicity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ethnicity"},"preferred_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Language"},"marital_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marital Status"},"emergency_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Name"},"emergency_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Phone"},"emergency_contact_relationship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emergency Contact Relationship"}},"type":"object","required":["clinic_id","patient_id","person_id","global_patient_id","first_name","last_name","status"],"title":"PatientResponse"},"PatientSearchResult":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"patient_id":{"type":"string","title":"Patient Id"},"person_id":{"type":"string","title":"Person Id"},"global_patient_id":{"type":"string","title":"Global Patient Id"},"display_name":{"type":"string","title":"Display Name"},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob"},"status":{"type":"string","title":"Status"}},"type":"object","required":["clinic_id","patient_id","person_id","global_patient_id","display_name","status"],"title":"PatientSearchResult"},"PrintJobCreatePayload":{"properties":{"source_module":{"type":"string","enum":["billing","pharmacy","pophealth","communications","admin"],"title":"Source Module"},"source_entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Entity Type"},"source_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Entity Id"},"document_type":{"type":"string","enum":["statement","invoice","letter","medication_label","specimen_label","barcode_label","compound_worksheet","medication_handout","pharmacy_internal_pdf","intake_scan","generic_pdf"],"title":"Document Type"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"target_device_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Device Id"},"subclinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subclinic Id"},"payload_json":{"additionalProperties":true,"type":"object","title":"Payload Json"},"copies":{"type":"integer","title":"Copies","default":1}},"type":"object","required":["source_module","document_type"],"title":"PrintJobCreatePayload"},"PrintTemplatePatchPayload":{"properties":{"template_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Name"},"template_type":{"anyOf":[{"type":"string","enum":["pdf_document","html_document","roll_label","medication_label","specimen_label","barcode_label","compound_worksheet"]},{"type":"null"}],"title":"Template Type"},"target_device_type":{"anyOf":[{"type":"string","enum":["printer","label_printer"]},{"type":"null"}],"title":"Target Device Type"},"template_body":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Template Body"},"page_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Size"},"roll_media_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roll Media Size"},"render_engine":{"anyOf":[{"type":"string","enum":["pdf","html_to_pdf","brother_label","zpl_like_internal","image"]},{"type":"null"}],"title":"Render Engine"}},"type":"object","title":"PrintTemplatePatchPayload"},"PrintTemplatePayload":{"properties":{"template_name":{"type":"string","title":"Template Name"},"template_type":{"type":"string","enum":["pdf_document","html_document","roll_label","medication_label","specimen_label","barcode_label","compound_worksheet"],"title":"Template Type"},"target_device_type":{"type":"string","enum":["printer","label_printer"],"title":"Target Device Type"},"template_body":{"additionalProperties":true,"type":"object","title":"Template Body"},"page_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Size"},"roll_media_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roll Media Size"},"render_engine":{"type":"string","enum":["pdf","html_to_pdf","brother_label","zpl_like_internal","image"],"title":"Render Engine"}},"type":"object","required":["template_name","template_type","target_device_type","render_engine"],"title":"PrintTemplatePayload"},"ProblemBulkLinkPayload":{"properties":{"resources":{"items":{"$ref":"#/components/schemas/ProblemLinkCreate"},"type":"array","maxItems":100,"minItems":1,"title":"Resources"}},"type":"object","required":["resources"],"title":"ProblemBulkLinkPayload"},"ProblemConfidentialPayload":{"properties":{"is_confidential":{"type":"boolean","title":"Is Confidential"},"confidential_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidential Reason"}},"type":"object","required":["is_confidential"],"title":"ProblemConfidentialPayload"},"ProblemCreate":{"properties":{"name":{"type":"string","title":"Name"},"icd10_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icd10 Code"},"snomed_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Code"},"onset_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Onset Date"},"status":{"type":"string","title":"Status","default":"active"},"severity_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Severity Tier"},"ehr_condition_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ehr Condition Id"},"source":{"type":"string","title":"Source","default":"manual"}},"type":"object","required":["name"],"title":"ProblemCreate"},"ProblemEdgeCreate":{"properties":{"target_problem_id":{"type":"string","title":"Target Problem Id"},"relationship_type":{"type":"string","title":"Relationship Type"},"established_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Established Date"},"evidence_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Note"}},"type":"object","required":["target_problem_id","relationship_type"],"title":"ProblemEdgeCreate"},"ProblemFromDispenseRequest":{"properties":{"name":{"type":"string","title":"Name"},"icd10_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icd10 Code"},"snomed_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Code"},"onset_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Date"}},"type":"object","required":["name"],"title":"ProblemFromDispenseRequest"},"ProblemLinkCreate":{"properties":{"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"}},"type":"object","required":["resource_type","resource_id"],"title":"ProblemLinkCreate"},"ProblemMergePayload":{"properties":{"losing_problem_id":{"type":"string","title":"Losing Problem Id"}},"type":"object","required":["losing_problem_id"],"title":"ProblemMergePayload"},"ProblemPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"icd10_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icd10 Code"},"snomed_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Code"},"onset_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Onset Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"severity_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Severity Tier"}},"type":"object","title":"ProblemPatch"},"ProblemResolvePayload":{"properties":{"resolved_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Resolved Date"}},"type":"object","title":"ProblemResolvePayload"},"PublicTokenActionPayload":{"properties":{"response_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Text"},"preferred_date_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preferred Date Json"},"preferred_time_windows_json":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Preferred Time Windows Json"}},"type":"object","title":"PublicTokenActionPayload"},"PublicWidgetRequestPayload":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"requested_appointment_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Appointment Type Id"},"preferred_resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Resource Id"},"preferred_visit_mode":{"anyOf":[{"type":"string","enum":["in_person","telehealth"]},{"type":"null"}],"title":"Preferred Visit Mode"},"preferred_date_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preferred Date Json"},"preferred_time_windows_json":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Preferred Time Windows Json"},"reason_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Text"}},"type":"object","title":"PublicWidgetRequestPayload"},"PublicWidgetResponsePayload":{"properties":{"appointment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Id"},"appointment_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Appointment Request Id"},"response_type":{"type":"string","enum":["confirm","cancel","reschedule_request"],"title":"Response Type"},"response_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Text"}},"type":"object","required":["response_type"],"title":"PublicWidgetResponsePayload"},"RequestReviewPayload":{"properties":{"reason_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Text"}},"type":"object","title":"RequestReviewPayload"},"ReviewRequest":{"properties":{"decision":{"type":"string","title":"Decision"},"review_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Notes"}},"type":"object","required":["decision"],"title":"ReviewRequest"},"RoutingProfileCreateRequest":{"properties":{"scope":{"type":"string","title":"Scope"},"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"name":{"type":"string","title":"Name"},"is_active":{"type":"boolean","title":"Is Active","default":true},"fallback_module":{"type":"string","title":"Fallback Module","default":"pophealth"},"confidence_threshold":{"type":"number","title":"Confidence Threshold","default":0.55}},"type":"object","required":["scope","name"],"title":"RoutingProfileCreateRequest"},"RoutingProfilePatchRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"fallback_module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Module"},"confidence_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Threshold"}},"type":"object","title":"RoutingProfilePatchRequest"},"RoutingProfileResponse":{"properties":{"scope":{"type":"string","title":"Scope"},"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"name":{"type":"string","title":"Name"},"is_active":{"type":"boolean","title":"Is Active","default":true},"fallback_module":{"type":"string","title":"Fallback Module","default":"pophealth"},"confidence_threshold":{"type":"number","title":"Confidence Threshold","default":0.55},"profile_id":{"type":"string","title":"Profile Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["scope","name","profile_id","created_at","updated_at"],"title":"RoutingProfileResponse"},"RoutingRuleCreateRequest":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"rule_type":{"type":"string","title":"Rule Type"},"priority":{"type":"integer","title":"Priority"},"match_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Text"},"match_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Regex"},"target_module":{"type":"string","title":"Target Module"},"target_kind":{"type":"string","title":"Target Kind","default":"ANY"},"confidence_boost":{"type":"number","title":"Confidence Boost","default":0.2},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["profile_id","rule_type","priority","target_module"],"title":"RoutingRuleCreateRequest"},"RoutingRulePatchRequest":{"properties":{"rule_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Type"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"match_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Text"},"match_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Regex"},"target_module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Module"},"target_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Kind"},"confidence_boost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Boost"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"RoutingRulePatchRequest"},"RoutingRuleResponse":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"rule_type":{"type":"string","title":"Rule Type"},"priority":{"type":"integer","title":"Priority"},"match_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Text"},"match_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Regex"},"target_module":{"type":"string","title":"Target Module"},"target_kind":{"type":"string","title":"Target Kind","default":"ANY"},"confidence_boost":{"type":"number","title":"Confidence Boost","default":0.2},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"rule_id":{"type":"string","title":"Rule Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["profile_id","rule_type","priority","target_module","rule_id","created_at","updated_at"],"title":"RoutingRuleResponse"},"RoutingRulesReorderItem":{"properties":{"rule_id":{"type":"string","title":"Rule Id"},"priority":{"type":"integer","title":"Priority"}},"type":"object","required":["rule_id","priority"],"title":"RoutingRulesReorderItem"},"RoutingTestRequest":{"properties":{"message":{"type":"string","title":"Message"},"requested_kind":{"type":"string","title":"Requested Kind","default":"WORKLIST_PHI"}},"type":"object","required":["message"],"title":"RoutingTestRequest"},"RoutingTestResponse":{"properties":{"module":{"type":"string","title":"Module"},"kind":{"type":"string","title":"Kind"},"confidence":{"type":"number","title":"Confidence"},"matched_rules":{"items":{"type":"string"},"type":"array","title":"Matched Rules"},"needs_clarification":{"type":"boolean","title":"Needs Clarification","default":false},"clarification_question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clarification Question"}},"type":"object","required":["module","kind","confidence"],"title":"RoutingTestResponse"},"ScanJobCreatePayload":{"properties":{"target_device_id":{"type":"string","title":"Target Device Id"},"scan_profile":{"type":"string","enum":["pdf_300dpi","grayscale_pdf","duplex_pdf","image_jpg"],"title":"Scan Profile","default":"pdf_300dpi"},"destination_type":{"type":"string","enum":["inbox","billing_intake","communications_intake","patient_attachment_pending"],"title":"Destination Type","default":"inbox"},"destination_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Entity Id"},"ocr_requested":{"type":"boolean","title":"Ocr Requested","default":false}},"type":"object","required":["target_device_id"],"title":"ScanJobCreatePayload"},"ScheduleResourcePatchPayload":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"resource_type":{"anyOf":[{"type":"string","enum":["provider","nurse","room","shared_resource"]},{"type":"null"}],"title":"Resource Type"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"calendar_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendar Color"}},"type":"object","title":"ScheduleResourcePatchPayload"},"ScheduleResourcePayload":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"resource_type":{"type":"string","enum":["provider","nurse","room","shared_resource"],"title":"Resource Type"},"display_name":{"type":"string","title":"Display Name"},"is_active":{"type":"boolean","title":"Is Active","default":true},"calendar_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendar Color"}},"type":"object","required":["resource_type","display_name"],"title":"ScheduleResourcePayload"},"SnomedMapSeedPayload":{"properties":{"snomed_code":{"type":"string","title":"Snomed Code"},"snomed_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snomed Display"},"icd10_code":{"type":"string","title":"Icd10 Code"},"icd10_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icd10 Display"},"is_primary_map":{"type":"boolean","title":"Is Primary Map","default":true}},"type":"object","required":["snomed_code","icd10_code"],"title":"SnomedMapSeedPayload"},"SparkActionOut":{"properties":{"type":{"type":"string","title":"Type"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tour_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tour Id"},"seed_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seed Prompt"},"module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module"},"intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent"},"values":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Values"}},"type":"object","required":["type"],"title":"SparkActionOut"},"SparkAnalyticsAssistRequest":{"properties":{"question":{"type":"string","title":"Question"},"conversation_state":{"additionalProperties":true,"type":"object","title":"Conversation State"},"save_metric":{"type":"boolean","title":"Save Metric","default":false},"save_worklist":{"type":"boolean","title":"Save Worklist","default":false},"draft_action_batch":{"type":"boolean","title":"Draft Action Batch","default":false},"metric_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric Name"},"worklist_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worklist Name"},"action_batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Batch Name"}},"type":"object","required":["question"],"title":"SparkAnalyticsAssistRequest"},"SparkAnalyticsAssistResponse":{"properties":{"answer_text":{"type":"string","title":"Answer Text"},"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"metric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metric"},"worklist":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Worklist"},"action_batch":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Batch"},"tile_definition":{"additionalProperties":true,"type":"object","title":"Tile Definition"},"aggregate_preview":{"additionalProperties":true,"type":"object","title":"Aggregate Preview"},"needs_clarification":{"type":"boolean","title":"Needs Clarification","default":false},"clarification_question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clarification Question"},"module_owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module Owner"},"drilldown_route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drilldown Route"},"available_actions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Available Actions"},"feedback_hook":{"additionalProperties":true,"type":"object","title":"Feedback Hook"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["answer_text"],"title":"SparkAnalyticsAssistResponse"},"SparkChatAssistRequest":{"properties":{"message":{"type":"string","title":"Message"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"turn_index":{"type":"integer","title":"Turn Index","default":1},"conversation_state":{"additionalProperties":true,"type":"object","title":"Conversation State"}},"type":"object","required":["message"],"title":"SparkChatAssistRequest"},"SparkChatAssistResponse":{"properties":{"response_text":{"type":"string","title":"Response Text"},"interaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interaction Id"},"provider_name":{"type":"string","title":"Provider Name","default":"spark-local-heuristic"},"used_fallback":{"type":"boolean","title":"Used Fallback","default":false},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["response_text"],"title":"SparkChatAssistResponse"},"SparkClinicalAssistPayload":{"properties":{"question":{"type":"string","title":"Question"}},"type":"object","required":["question"],"title":"SparkClinicalAssistPayload"},"SparkExecuteRequest":{"properties":{"intent":{"type":"string","title":"Intent"},"params":{"additionalProperties":true,"type":"object","title":"Params"}},"type":"object","required":["intent"],"title":"SparkExecuteRequest"},"SparkExecuteResponse":{"properties":{"intent":{"type":"string","title":"Intent"},"summary_text":{"type":"string","title":"Summary Text"},"values":{"additionalProperties":true,"type":"object","title":"Values"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"}},"type":"object","required":["intent","summary_text","last_updated"],"title":"SparkExecuteResponse"},"SparkMessageRequest":{"properties":{"message":{"type":"string","title":"Message"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"turn_index":{"type":"integer","title":"Turn Index","default":1},"current_path":{"type":"string","title":"Current Path","default":""},"patient_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Patient Context"}},"type":"object","required":["message"],"title":"SparkMessageRequest"},"SparkMessageResponse":{"properties":{"message":{"type":"string","title":"Message"},"actions":{"items":{"$ref":"#/components/schemas/SparkActionOut"},"type":"array","title":"Actions"},"follow_ups":{"items":{"type":"string"},"type":"array","title":"Follow Ups"},"conversation_id":{"type":"string","title":"Conversation Id","default":""},"interaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interaction Id"},"knowledge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Id"},"used_external_ai":{"type":"boolean","title":"Used External Ai","default":false},"internal_handled":{"type":"boolean","title":"Internal Handled","default":true}},"type":"object","required":["message"],"title":"SparkMessageResponse"},"SparkTileBuilderCommitRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"visibility":{"type":"string","title":"Visibility","default":"private"},"install":{"type":"boolean","title":"Install","default":true}},"type":"object","required":["draft_id"],"title":"SparkTileBuilderCommitRequest"},"SparkTileBuilderFeedbackRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"helpful":{"type":"boolean","title":"Helpful"},"response_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Kind"},"feedback_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Text"}},"type":"object","required":["draft_id","helpful"],"title":"SparkTileBuilderFeedbackRequest"},"SparkTileBuilderFeedbackResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"SparkTileBuilderFeedbackResponse"},"SparkTileBuilderMessageRequest":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["conversation_id","message"],"title":"SparkTileBuilderMessageRequest"},"SparkTileBuilderMessageResponse":{"properties":{"response_text":{"type":"string","title":"Response Text"},"draft_tile":{"additionalProperties":true,"type":"object","title":"Draft Tile"},"preview_tile":{"additionalProperties":true,"type":"object","title":"Preview Tile"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["response_text"],"title":"SparkTileBuilderMessageResponse"},"SparkTileBuilderStartResponse":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"draft_id":{"type":"string","title":"Draft Id"}},"type":"object","required":["conversation_id","draft_id"],"title":"SparkTileBuilderStartResponse"},"SparkTileBuilderTestRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"}},"type":"object","required":["draft_id"],"title":"SparkTileBuilderTestRequest"},"SparkTourSummary":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"routes":{"items":{"type":"string"},"type":"array","title":"Routes"},"requiredPermissions":{"items":{"type":"string"},"type":"array","title":"Requiredpermissions"}},"type":"object","required":["id","title","description"],"title":"SparkTourSummary"},"SparkWorklistBuilderCommitRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"visibility":{"type":"string","title":"Visibility","default":"private"},"install":{"type":"boolean","title":"Install","default":true}},"type":"object","required":["draft_id"],"title":"SparkWorklistBuilderCommitRequest"},"SparkWorklistBuilderMessageRequest":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["conversation_id","message"],"title":"SparkWorklistBuilderMessageRequest"},"SparkWorklistBuilderMessageResponse":{"properties":{"response_text":{"type":"string","title":"Response Text"},"module":{"type":"string","title":"Module"},"draft":{"additionalProperties":true,"type":"object","title":"Draft"},"preview":{"additionalProperties":true,"type":"object","title":"Preview"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["response_text","module"],"title":"SparkWorklistBuilderMessageResponse"},"SparkWorklistBuilderStartResponse":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"draft_id":{"type":"string","title":"Draft Id"},"module":{"type":"string","title":"Module"}},"type":"object","required":["conversation_id","draft_id","module"],"title":"SparkWorklistBuilderStartResponse"},"SparkWorklistBuilderTestRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"}},"type":"object","required":["draft_id"],"title":"SparkWorklistBuilderTestRequest"},"SubmitPatientUpdateRequest":{"properties":{"fhir_payload":{"additionalProperties":true,"type":"object","title":"Fhir Payload"},"source":{"type":"string","title":"Source","default":"fhir_api"},"patient_id":{"type":"string","title":"Patient Id"},"ehr_patient_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ehr Patient Uuid"}},"type":"object","required":["fhir_payload","patient_id"],"title":"SubmitPatientUpdateRequest"},"TaskCreate":{"properties":{"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"global_patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Global Patient Id"},"gap_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gap Id"},"assigned_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"},"status":{"type":"string","title":"Status","default":"open"}},"type":"object","title":"TaskCreate"},"TebraAutoSyncConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"hour_utc":{"type":"integer","title":"Hour Utc","default":2},"run_hours_utc":{"items":{"type":"integer"},"type":"array","maxItems":4,"minItems":1,"title":"Run Hours Utc"},"active_only":{"type":"boolean","title":"Active Only","default":true},"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"last_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Status"},"last_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Summary"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","title":"TebraAutoSyncConfigResponse"},"TebraAutoSyncConfigUpdateRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"hour_utc":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Hour Utc","default":2},"run_hours_utc":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":4,"minItems":1},{"type":"null"}],"title":"Run Hours Utc"},"active_only":{"type":"boolean","title":"Active Only","default":true},"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"}},"type":"object","required":["enabled"],"title":"TebraAutoSyncConfigUpdateRequest"},"TebraAutoSyncRuleResponse":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"clinic_name":{"type":"string","title":"Clinic Name"},"enabled":{"type":"boolean","title":"Enabled","default":false},"hour_utc":{"type":"integer","title":"Hour Utc","default":2},"run_hours_utc":{"items":{"type":"integer"},"type":"array","maxItems":4,"minItems":1,"title":"Run Hours Utc"},"active_only":{"type":"boolean","title":"Active Only","default":true},"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"last_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Status"},"last_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Summary"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["clinic_id","clinic_name"],"title":"TebraAutoSyncRuleResponse"},"TebraConfigRequest":{"properties":{"wsdl_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wsdl Url"},"customer_key":{"type":"string","title":"Customer Key"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"}},"type":"object","required":["customer_key","username","password"],"title":"TebraConfigRequest"},"TebraConfigResponse":{"properties":{"configured":{"type":"boolean","title":"Configured"},"wsdl_url":{"type":"string","title":"Wsdl Url"},"practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Practice Name"},"has_customer_key":{"type":"boolean","title":"Has Customer Key"},"has_username":{"type":"boolean","title":"Has Username"},"has_password":{"type":"boolean","title":"Has Password"}},"type":"object","required":["configured","wsdl_url","has_customer_key","has_username","has_password"],"title":"TebraConfigResponse"},"TebraConnectionTestResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"practice_count":{"type":"integer","title":"Practice Count","default":0},"sample_practices":{"items":{"type":"string"},"type":"array","title":"Sample Practices"},"response_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Type"},"root_keys":{"items":{"type":"string"},"type":"array","title":"Root Keys"},"parsed_sources":{"items":{"type":"string"},"type":"array","title":"Parsed Sources"},"configured_practice_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Configured Practice Name"},"tebra_success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tebra Success"},"tebra_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tebra Error Code"},"tebra_error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tebra Error Message"},"serialized_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serialized Preview"}},"type":"object","required":["ok"],"title":"TebraConnectionTestResponse"},"TebraFhirConfigRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_secret":{"type":"string","title":"Client Secret"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"token_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Url"},"authorize_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorize Url"}},"type":"object","required":["client_id","client_secret"],"title":"TebraFhirConfigRequest"},"TebraFhirConfigResponse":{"properties":{"configured":{"type":"boolean","title":"Configured"},"has_client_id":{"type":"boolean","title":"Has Client Id"},"has_client_secret":{"type":"boolean","title":"Has Client Secret"},"base_url":{"type":"string","title":"Base Url"},"token_url":{"type":"string","title":"Token Url"},"authorize_url":{"type":"string","title":"Authorize Url"}},"type":"object","required":["configured","has_client_id","has_client_secret","base_url","token_url","authorize_url"],"title":"TebraFhirConfigResponse"},"TebraPracticeResponse":{"properties":{"practice_id":{"type":"string","title":"Practice Id"},"practice_name":{"type":"string","title":"Practice Name"}},"type":"object","required":["practice_id","practice_name"],"title":"TebraPracticeResponse"},"TebraSyncPatientsRequest":{"properties":{"practice_name":{"type":"string","title":"Practice Name"},"active_only":{"type":"boolean","title":"Active Only","default":true},"since_last_modified_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since Last Modified Date"},"field_mapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Field Mapping"},"force_full":{"type":"boolean","title":"Force Full","default":false}},"type":"object","required":["practice_name"],"title":"TebraSyncPatientsRequest"},"TebraSyncPatientsResponse":{"properties":{"imported":{"type":"integer","title":"Imported"},"updated":{"type":"integer","title":"Updated"},"skipped":{"type":"integer","title":"Skipped"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["imported","updated","skipped"],"title":"TebraSyncPatientsResponse"},"TrackerReminderPayload":{"properties":{"patient_id":{"type":"string","title":"Patient Id"},"tracker_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracker Type"},"reminder_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reminder Type"},"title":{"type":"string","title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"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"},"channel_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Hint"},"linked_tracker_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Tracker Item Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"details_json":{"additionalProperties":true,"type":"object","title":"Details Json"}},"type":"object","required":["patient_id","title"],"title":"TrackerReminderPayload"},"UndoMergeRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"UndoMergeRequest"},"UserSummaryResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"display_name":{"type":"string","title":"Display Name"},"email":{"type":"string","title":"Email"},"clinic_id":{"type":"string","title":"Clinic Id"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"type":"object","required":["user_id","display_name","email","clinic_id","roles"],"title":"UserSummaryResponse"},"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"},"VisCreate":{"properties":{"vis_document_type":{"type":"string","title":"Vis Document Type"},"vis_edition_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Vis Edition Date"},"presented_date":{"type":"string","format":"date","title":"Presented Date"}},"type":"object","required":["vis_document_type","presented_date"],"title":"VisCreate"},"WidgetPatchPayload":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Json"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"WidgetPatchPayload"},"WidgetPayload":{"properties":{"name":{"type":"string","title":"Name"},"config_json":{"additionalProperties":true,"type":"object","title":"Config Json"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["name"],"title":"WidgetPayload"},"WorklistCountItem":{"properties":{"query_id":{"type":"string","title":"Query Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"module":{"type":"string","title":"Module"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["query_id","name","module","count"],"title":"WorklistCountItem"},"WorklistDefinitionCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner_module":{"type":"string","title":"Owner Module","default":"pophealth"},"metric_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric Id"},"definition_json":{"additionalProperties":true,"type":"object","title":"Definition Json"}},"type":"object","required":["name"],"title":"WorklistDefinitionCreateRequest"},"WorklistDefinitionResponse":{"properties":{"worklist_id":{"type":"string","title":"Worklist Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"metric_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner_module":{"type":"string","title":"Owner Module"},"definition_json":{"additionalProperties":true,"type":"object","title":"Definition Json"},"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":["worklist_id","clinic_id","name","owner_module","created_by_user_id","created_at","updated_at"],"title":"WorklistDefinitionResponse"},"WorklistInstallResponse":{"properties":{"install_id":{"type":"string","title":"Install Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"user_id":{"type":"string","title":"User Id"},"query_id":{"type":"string","title":"Query Id"},"pinned":{"type":"boolean","title":"Pinned"},"sort_order":{"type":"integer","title":"Sort Order"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["install_id","clinic_id","user_id","query_id","pinned","sort_order","created_at","updated_at"],"title":"WorklistInstallResponse"},"WorklistQueryCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"visibility":{"type":"string","title":"Visibility","default":"private"},"kind":{"type":"string","title":"Kind","default":"WORKLIST_PHI"},"module":{"type":"string","title":"Module","default":"pophealth"},"required_permissions":{"items":{"type":"string"},"type":"array","title":"Required Permissions"},"required_scopes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Required Scopes"},"definition_json":{"additionalProperties":true,"type":"object","title":"Definition Json"}},"type":"object","required":["name"],"title":"WorklistQueryCreateRequest"},"WorklistQueryPatchRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility"},"required_permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required Permissions"},"required_scopes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Required Scopes"},"definition_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Definition Json"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"}},"type":"object","title":"WorklistQueryPatchRequest"},"WorklistQueryResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"visibility":{"type":"string","title":"Visibility","default":"private"},"kind":{"type":"string","title":"Kind","default":"WORKLIST_PHI"},"module":{"type":"string","title":"Module","default":"pophealth"},"required_permissions":{"items":{"type":"string"},"type":"array","title":"Required Permissions"},"required_scopes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Required Scopes"},"definition_json":{"additionalProperties":true,"type":"object","title":"Definition Json"},"query_id":{"type":"string","title":"Query Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"}},"type":"object","required":["name","query_id","clinic_id","owner_user_id","version","created_at","updated_at"],"title":"WorklistQueryResponse"},"WorklistRunResponse":{"properties":{"query_id":{"type":"string","title":"Query Id"},"row_count":{"type":"integer","title":"Row Count"},"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows"}},"type":"object","required":["query_id","row_count"],"title":"WorklistRunResponse"},"WorklistRunResponseV2":{"properties":{"run_id":{"type":"string","title":"Run Id"},"worklist_id":{"type":"string","title":"Worklist Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"status":{"type":"string","title":"Status"},"row_count":{"type":"integer","title":"Row Count"},"run_summary_json":{"additionalProperties":true,"type":"object","title":"Run Summary Json"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["run_id","worklist_id","clinic_id","status","row_count","started_at","created_at"],"title":"WorklistRunResponseV2"}}}}