{"openapi":"3.1.0","info":{"title":"MedBridge API","version":"0.1.0"},"paths":{"/api/session":{"get":{"summary":"Session","operationId":"session_api_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Login","description":"Two ways in while we migrate: a named Identity Platform account (preferred),\nor the old shared access code.","operationId":"login_api_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Logout","operationId":"logout_api_session_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/config":{"get":{"summary":"Auth Config","description":"What the sign-in page needs. The API key is a public client identifier —\nit names the project; it grants nothing on its own.","operationId":"auth_config_api_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/session/code":{"post":{"summary":"Session Code","description":"Step two for someone who has already enrolled.","operationId":"session_code_api_session_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeStep"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/enroll/start":{"post":{"summary":"Enroll Start","description":"Hand back a QR code to scan. The secret is not stored until a code from\nthe phone proves the scan worked.","operationId":"enroll_start_api_auth_enroll_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/enroll/finish":{"post":{"summary":"Enroll Finish","operationId":"enroll_finish_api_auth_enroll_finish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeStep"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/password":{"post":{"summary":"Change Password","description":"Change your own password. The idToken proves they just signed in.","operationId":"change_password_api_auth_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{email}/reset-authenticator":{"post":{"summary":"Reset Authenticator","description":"Lost phone: clear the enrolment so the next sign-in shows a fresh QR.","operationId":"reset_authenticator_api_admin_users__email__reset_authenticator_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{email}/unlock":{"post":{"summary":"Unlock User","description":"Lift the five-wrong-codes lockout before it times out on its own.","operationId":"unlock_user_api_admin_users__email__unlock_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{email}/sign-out":{"post":{"summary":"Sign Out Everywhere","description":"End every open session for this person, on every device.","operationId":"sign_out_everywhere_api_admin_users__email__sign_out_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{email}/reset-password":{"post":{"summary":"Reset Password","description":"Issue a new one-time password for someone. Shown once, to the admin, to\npass on by whatever channel they use — it is never emailed from here.","operationId":"reset_password_api_admin_users__email__reset_password_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe":{"post":{"summary":"Transcribe","description":"Turn a short dictation into text.\n\nDeliberately NOT the browser's built-in speech recognition: in Chrome that\nships the audio to Google's consumer speech service, which sits outside the\nagreements covering this practice. This records in the browser and transcribes\nthrough Speech-to-Text in YOUR project, so spoken patient details stay inside\nthe same covered infrastructure as the rest of the app.","operationId":"transcribe_api_transcribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dictation"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"summary":"Me","description":"Who am I and what may I do — drives what the page shows.","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/users":{"get":{"summary":"Admin Users","description":"Everyone who can sign in or ever has: app records merged with sign-in\naccounts, so someone added in the console shows up before their first visit.","operationId":"admin_users_api_admin_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Admin Create User","description":"Create the sign-in account and the app record in one step. The temporary\npassword is returned once, to the admin, and must be changed at first sign-in.","operationId":"admin_create_user_api_admin_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUser"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{email}":{"patch":{"summary":"Admin Update User","operationId":"admin_update_user_api_admin_users__email__patch","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Admin Delete User","description":"Remove the sign-in account and the app record. Their audit history stays.","operationId":"admin_delete_user_api_admin_users__email__delete","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/roles":{"post":{"summary":"Admin Create Role","operationId":"admin_create_role_api_admin_roles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewRole"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/roles/{name}":{"delete":{"summary":"Admin Delete Role","description":"Remove a role from the portal. People who had it keep their access —\ntheir role simply becomes empty until a new one is chosen.","operationId":"admin_delete_role_api_admin_roles__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/activity":{"get":{"summary":"Admin Activity","description":"The audit trail, newest first: sign-ins, admin changes, and work done.","operationId":"admin_activity_api_admin_activity_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"email","in":"query","required":false,"schema":{"type":"string","default":"","title":"Email"}},{"name":"action","in":"query","required":false,"schema":{"type":"string","default":"","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usage":{"get":{"summary":"Admin Usage","description":"Who used the workspace, for how long, and what they did.","operationId":"admin_usage_api_admin_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/summary":{"get":{"summary":"Summary","operationId":"summary_api_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/patients/search":{"post":{"summary":"Find Patients","operationId":"find_patients_api_patients_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientSearch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/patients/{patient_id}":{"get":{"summary":"Patient Detail Route","operationId":"patient_detail_route_api_patients__patient_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/patients/{patient_id}/record":{"get":{"summary":"Patient Record","description":"Open a patient the same way Scheduled patients does: on their scheduled\nvisit's record — the next one coming up, else the most recent. A patient\nwho was never on an imported schedule gets the record with no visit.","operationId":"patient_record_api_patients__patient_id__record_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bulk":{"post":{"summary":"Bulk Lookup","operationId":"bulk_lookup_api_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule":{"post":{"summary":"Upload Schedule","operationId":"upload_schedule_api_schedule_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"summary":"Schedule","operationId":"schedule_api_schedule_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prerounds/import":{"post":{"summary":"Import Preround Schedule","operationId":"import_preround_schedule_api_prerounds_import_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/prerounds":{"get":{"summary":"List Prerounds","description":"One day's scheduled patients. Every day we have ever imported stays\navailable — pick any of them with ?date=YYYY-MM-DD.","operationId":"list_prerounds_api_prerounds_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/front-desk/schedule":{"get":{"summary":"Front Desk Schedule","operationId":"front_desk_schedule_api_front_desk_schedule_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/front-desk/patients/search":{"post":{"summary":"Front Desk Search","operationId":"front_desk_search_api_front_desk_patients_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientSearch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/daily-analysis":{"get":{"summary":"Daily Analysis","operationId":"daily_analysis_api_daily_analysis_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"scheduled","title":"Scope"}},{"name":"visit_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visit Date"}},{"name":"location","in":"query","required":false,"schema":{"type":"string","default":"Fairmont","title":"Location"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"annual","title":"Category"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","default":"","title":"Query"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prerounds/templates":{"get":{"summary":"List Preround Templates","operationId":"list_preround_templates_api_prerounds_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Preround Template","operationId":"create_preround_template_api_prerounds_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prerounds/templates/{template_id}":{"put":{"summary":"Edit Preround Template","operationId":"edit_preround_template_api_prerounds_templates__template_id__put","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prerounds/{appointment_id}/history":{"get":{"summary":"Preround History","description":"Everything prepared for this patient, newest first — not only this visit's\ndrafts. Pre-rounds made on their other scheduled visits, pre-rounds made from\nthe patient record, and AI assistant conversations all belong here too, or\nwork done one way is invisible from the other.","operationId":"preround_history_api_prerounds__appointment_id__history_get","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prerounds/{appointment_id}":{"get":{"summary":"Preround Detail Route","description":"Opening a scheduled visit is opening that patient's chart (Usage counts it).","operationId":"preround_detail_route_api_prerounds__appointment_id__get","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prerounds/{appointment_id}/generate":{"post":{"summary":"Generate Preround","operationId":"generate_preround_api_prerounds__appointment_id__generate_post","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreRoundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/postround/instructions":{"get":{"summary":"Get Postround Instructions","operationId":"get_postround_instructions_api_postround_instructions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Save Postround Instructions","operationId":"save_postround_instructions_api_postround_instructions_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostRoundInstructions"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prerounds/{appointment_id}/postround":{"get":{"summary":"Postround Detail","description":"The visit's pre-round (in full) and its saved post-rounds, newest first.\npcpStatus pre-fills the checklist's PCP answer from the schedule.","operationId":"postround_detail_api_prerounds__appointment_id__postround_get","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Generate Postround","operationId":"generate_postround_api_prerounds__appointment_id__postround_post","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostRoundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/status":{"get":{"summary":"Ai Status","operationId":"ai_status_api_ai_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/patients/{patient_id}/ai":{"get":{"summary":"Ai History","operationId":"ai_history_api_patients__patient_id__ai_get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai":{"post":{"summary":"Ai Reply","operationId":"ai_reply_api_ai_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/research/sessions":{"get":{"summary":"Research Sessions","operationId":"research_sessions_api_research_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/research/sessions/{session_id}":{"get":{"summary":"Research Session","operationId":"research_session_api_research_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Edit Research Session","operationId":"edit_research_session_api_research_sessions__session_id__patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchSessionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/research":{"post":{"summary":"Research Reply","operationId":"research_reply_api_research_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing-agent/status":{"get":{"summary":"Status","operationId":"status_api_billing_agent_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing-agent/sessions":{"get":{"summary":"Sessions","operationId":"sessions_api_billing_agent_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing-agent/sessions/{session_id}":{"get":{"summary":"Session","operationId":"session_api_billing_agent_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Rename","operationId":"rename_api_billing_agent_sessions__session_id__patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing-agent/chat":{"post":{"summary":"Chat","operationId":"chat_api_billing_agent_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ccm/roster":{"get":{"summary":"Get Roster","operationId":"get_roster_api_ccm_roster_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ccm/roster/upload":{"post":{"summary":"Upload Roster","description":"The CCM / RPM enrollment file (CSV or Excel, same columns every time):\nnew patients are added, saved ones updated, none are removed.","operationId":"upload_roster_api_ccm_roster_upload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ccm/enrollment/{patient_id}":{"patch":{"summary":"Switch Programs","description":"Turn CCM / RPM on or off (or change the status) for a patient on the list.","operationId":"switch_programs_api_ccm_enrollment__patient_id__patch","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Enroll Patient","description":"Enroll a patient from their record — no file needed. Already listed: same as a switch.","operationId":"enroll_patient_api_ccm_enrollment__patient_id__post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ccm/calls":{"get":{"summary":"Get Calls","operationId":"get_calls_api_ccm_calls_get","parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Book Call","operationId":"book_call_api_ccm_calls_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCall"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ccm/calls/{call_id}":{"patch":{"summary":"Change Call","operationId":"change_call_api_ccm_calls__call_id__patch","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ccm/plan":{"post":{"summary":"Plan","operationId":"plan_api_ccm_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ccm/instructions":{"get":{"summary":"Get Instructions","operationId":"get_instructions_api_ccm_instructions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Save Instructions","operationId":"save_instructions_api_ccm_instructions_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Instructions"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ccm/patients/{patient_id}":{"get":{"summary":"Patient Ccm","operationId":"patient_ccm_api_ccm_patients__patient_id__get","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ccm/patients/{patient_id}/talktrack":{"post":{"summary":"Generate Talk Track","operationId":"generate_talk_track_api_ccm_patients__patient_id__talktrack_post","parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkTrackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/capabilities":{"get":{"summary":"Capabilities","operationId":"capabilities_api_scribe_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/scribe/sessions":{"post":{"summary":"Create","operationId":"create_api_scribe_sessions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSession"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Sessions","operationId":"sessions_api_scribe_sessions_get","parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Patient Id"}},{"name":"appointment_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Appointment Id"}},{"name":"encounter_date","in":"query","required":false,"schema":{"type":"string","default":"","title":"Encounter Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/import":{"post":{"summary":"Import Transcript","operationId":"import_transcript_api_scribe_sessions_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportTranscript"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}":{"get":{"summary":"Status","operationId":"status_api_scribe_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete","operationId":"delete_api_scribe_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/revisions":{"get":{"summary":"Revisions","operationId":"revisions_api_scribe_sessions__session_id__revisions_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/parts/{sequence}":{"put":{"summary":"Upload","operationId":"upload_api_scribe_sessions__session_id__parts__sequence__put","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"sequence","in":"path","required":true,"schema":{"type":"integer","title":"Sequence"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/stop":{"post":{"summary":"Stop","operationId":"stop_api_scribe_sessions__session_id__stop_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stop"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/transcript":{"put":{"summary":"Transcript","operationId":"transcript_api_scribe_sessions__session_id__transcript_put","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/note":{"put":{"summary":"Note","operationId":"note_api_scribe_sessions__session_id__note_put","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/draft":{"post":{"summary":"Draft","operationId":"draft_api_scribe_sessions__session_id__draft_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Process"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/transcribe":{"post":{"summary":"Transcribe","operationId":"transcribe_api_scribe_sessions__session_id__transcribe_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Process"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/cancel":{"post":{"summary":"Cancel","operationId":"cancel_api_scribe_sessions__session_id__cancel_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scribe/sessions/{session_id}/audio":{"get":{"summary":"Audio","operationId":"audio_api_scribe_sessions__session_id__audio_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"patient_id","in":"query","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"encounter_id","in":"query","required":true,"schema":{"type":"string","title":"Encounter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AIRequest":{"properties":{"patientId":{"type":"string","title":"Patientid"},"mode":{"type":"string","pattern":"^(chat|preround)$","title":"Mode"},"prompt":{"type":"string","maxLength":200000,"minLength":1,"title":"Prompt"},"sessionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sessionid"}},"type":"object","required":["patientId","mode","prompt"],"title":"AIRequest"},"BulkRequest":{"properties":{"text":{"type":"string","maxLength":100000,"title":"Text"}},"type":"object","required":["text"],"title":"BulkRequest"},"CallChange":{"properties":{"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Date"},"time":{"anyOf":[{"type":"string","pattern":"^(\\d{2}:\\d{2})?$"},{"type":"null"}],"title":"Time"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"assignedTo":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Assignedto"},"urgency":{"anyOf":[{"type":"string","pattern":"^(High|Normal|Low)?$"},{"type":"null"}],"title":"Urgency"},"minutes":{"anyOf":[{"type":"integer","maximum":600.0,"minimum":0.0},{"type":"null"}],"title":"Minutes"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"},"expectedUpdated":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Expectedupdated"}},"type":"object","title":"CallChange"},"ChatRequest":{"properties":{"prompt":{"type":"string","maxLength":8000,"minLength":1,"title":"Prompt"},"sessionId":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{32}$"},{"type":"null"}],"title":"Sessionid"}},"additionalProperties":false,"type":"object","required":["prompt"],"title":"ChatRequest"},"CodeStep":{"properties":{"challenge":{"type":"string","title":"Challenge"},"code":{"type":"string","maxLength":8,"minLength":6,"title":"Code"},"remember":{"type":"boolean","title":"Remember","default":false}},"type":"object","required":["challenge","code"],"title":"CodeStep"},"CreateSession":{"properties":{"patient_id":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Patient Id"},"appointment_id":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Appointment Id"},"encounter_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Encounter Date"},"mime_type":{"type":"string","maxLength":80,"title":"Mime Type"}},"additionalProperties":false,"type":"object","required":["mime_type"],"title":"CreateSession"},"Dictation":{"properties":{"audio":{"type":"string","maxLength":14000000,"minLength":32,"title":"Audio"},"mimeType":{"type":"string","maxLength":80,"title":"Mimetype","default":"audio/webm"}},"type":"object","required":["audio"],"title":"Dictation"},"Edit":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"text":{"type":"string","maxLength":200000,"minLength":1,"title":"Text"},"reviewed":{"type":"boolean","title":"Reviewed","default":false}},"additionalProperties":false,"type":"object","required":["version","text"],"title":"Edit"},"EnrollStart":{"properties":{"challenge":{"type":"string","title":"Challenge"}},"type":"object","required":["challenge"],"title":"EnrollStart"},"EnrollmentChange":{"properties":{"ccm":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ccm"},"rpm":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rpm"},"status":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Status"}},"type":"object","title":"EnrollmentChange"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportTranscript":{"properties":{"patient_id":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Patient Id"},"appointment_id":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Appointment Id"},"encounter_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Encounter Date"},"text":{"type":"string","maxLength":200000,"minLength":1,"title":"Text"},"reviewed":{"type":"boolean","title":"Reviewed","default":false}},"additionalProperties":false,"type":"object","required":["text"],"title":"ImportTranscript"},"Instructions":{"properties":{"instructions":{"type":"string","maxLength":10000,"minLength":1,"title":"Instructions"}},"type":"object","required":["instructions"],"title":"Instructions"},"Login":{"properties":{"accessCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accesscode"},"idToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idtoken"},"remember":{"type":"boolean","title":"Remember","default":false}},"type":"object","title":"Login"},"NewCall":{"properties":{"patientKey":{"type":"string","maxLength":200,"minLength":1,"title":"Patientkey"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","title":"Date"},"time":{"type":"string","pattern":"^(\\d{2}:\\d{2})?$","title":"Time","default":""},"assignedTo":{"type":"string","maxLength":100,"title":"Assignedto","default":""},"urgency":{"type":"string","pattern":"^(High|Normal|Low)?$","title":"Urgency","default":""},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["patientKey","date"],"title":"NewCall"},"NewRole":{"properties":{"name":{"type":"string","maxLength":40,"minLength":1,"title":"Name"},"group":{"type":"string","maxLength":40,"title":"Group","default":""}},"type":"object","required":["name"],"title":"NewRole"},"NewUser":{"properties":{"email":{"type":"string","maxLength":120,"minLength":5,"title":"Email"},"name":{"type":"string","maxLength":80,"title":"Name","default":""},"role":{"type":"string","maxLength":40,"title":"Role","default":""}},"type":"object","required":["email"],"title":"NewUser"},"Part":{"properties":{"sequence":{"type":"integer","exclusiveMaximum":10000.0,"minimum":0.0,"title":"Sequence"},"size":{"type":"integer","maximum":5242880.0,"exclusiveMinimum":0.0,"title":"Size"},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Checksum"}},"additionalProperties":false,"type":"object","required":["sequence","size","checksum"],"title":"Part"},"PasswordChange":{"properties":{"idToken":{"type":"string","title":"Idtoken"},"newPassword":{"type":"string","maxLength":100,"minLength":10,"title":"Newpassword"}},"type":"object","required":["idToken","newPassword"],"title":"PasswordChange"},"PatientSearch":{"properties":{"dob":{"type":"string","maxLength":30,"title":"Dob"}},"type":"object","required":["dob"],"title":"PatientSearch"},"PlanRequest":{"properties":{"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"},"preview":{"type":"boolean","title":"Preview","default":false}},"type":"object","required":["month"],"title":"PlanRequest"},"PostRoundChecklist":{"properties":{"pcp":{"anyOf":[{"type":"string","enum":["yes","no"]},{"type":"null"}],"title":"Pcp"},"annual":{"anyOf":[{"type":"string","enum":["awv","ippe","physical"]},{"type":"null"}],"title":"Annual"},"counseling":{"items":{"type":"string","enum":["opiates","weight","cardio","tobacco","vaccination","other","alcohol","blackbox"]},"type":"array","maxItems":8,"title":"Counseling"},"acp":{"type":"boolean","title":"Acp","default":false},"uds":{"type":"boolean","title":"Uds","default":false}},"type":"object","title":"PostRoundChecklist"},"PostRoundInstructions":{"properties":{"instructions":{"type":"string","maxLength":10000,"minLength":1,"title":"Instructions"}},"type":"object","required":["instructions"],"title":"PostRoundInstructions"},"PostRoundRequest":{"properties":{"visitNote":{"type":"string","maxLength":200000,"minLength":1,"title":"Visitnote"},"checklist":{"anyOf":[{"$ref":"#/components/schemas/PostRoundChecklist"},{"type":"null"}]}},"type":"object","required":["visitNote"],"title":"PostRoundRequest"},"PreRoundRequest":{"properties":{"clinicalSummary":{"type":"string","maxLength":200000,"minLength":1,"title":"Clinicalsummary"},"templateId":{"type":"string","title":"Templateid","default":"default"}},"type":"object","required":["clinicalSummary"],"title":"PreRoundRequest"},"Process":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"acknowledge_partial":{"type":"boolean","title":"Acknowledge Partial","default":false}},"additionalProperties":false,"type":"object","required":["version"],"title":"Process"},"RenameRequest":{"properties":{"title":{"type":"string","maxLength":100,"minLength":1,"title":"Title"}},"additionalProperties":false,"type":"object","required":["title"],"title":"RenameRequest"},"ResearchRequest":{"properties":{"prompt":{"type":"string","maxLength":200000,"minLength":1,"title":"Prompt"},"sessionId":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{32}$"},{"type":"null"}],"title":"Sessionid"}},"type":"object","required":["prompt"],"title":"ResearchRequest"},"ResearchSessionUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Title"},"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"}},"type":"object","title":"ResearchSessionUpdate"},"Stop":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"manifest":{"items":{"$ref":"#/components/schemas/Part"},"type":"array","maxItems":10000,"title":"Manifest"},"partial":{"type":"boolean","title":"Partial","default":false},"elapsed_seconds":{"anyOf":[{"type":"number","maximum":86400.0,"minimum":0.0},{"type":"null"}],"title":"Elapsed Seconds"}},"additionalProperties":false,"type":"object","required":["version","manifest"],"title":"Stop"},"TalkTrackRequest":{"properties":{"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"},"notes":{"type":"string","maxLength":20000,"title":"Notes","default":""}},"type":"object","required":["month"],"title":"TalkTrackRequest"},"TemplatePayload":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"instructions":{"type":"string","maxLength":10000,"minLength":1,"title":"Instructions"}},"type":"object","required":["name","instructions"],"title":"TemplatePayload"},"UserUpdate":{"properties":{"role":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Role"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name"}},"type":"object","title":"UserUpdate"},"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"},"Version":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"Version"}}}}