{"openapi":"3.1.0","info":{"title":"BlueDop EHR","description":"Electronic Health Record - User Management API","version":"1.0.0"},"paths":{"/api/v1/auth/login":{"post":{"tags":["Authentication"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_api_v1_auth_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/login":{"post":{"tags":["Authentication"],"summary":"Mfa Login","operationId":"mfa_login_api_v1_auth_mfa_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_mfa_login_api_v1_auth_mfa_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TokenResponse"},{"$ref":"#/components/schemas/MfaChallengeResponse"}],"title":"Response Mfa Login Api V1 Auth Mfa Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login/try-another-way":{"post":{"tags":["Authentication"],"summary":"Try Another Way","operationId":"try_another_way_api_v1_auth_login_try_another_way_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryAnotherWayRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryAnotherWayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login/recovery":{"post":{"tags":["Authentication"],"summary":"Initiate Recovery","operationId":"initiate_recovery_api_v1_auth_login_recovery_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryInitiateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaChallengeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/resend":{"post":{"tags":["Authentication"],"summary":"Resend Otp","description":"Resend an OTP.","operationId":"resend_otp_api_v1_auth_mfa_resend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendOtpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendOtpResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/login/mfa":{"post":{"tags":["Authentication"],"summary":"Complete Mfa Login","operationId":"complete_mfa_login_api_v1_auth_login_mfa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaChallengeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/status":{"get":{"tags":["Authentication"],"summary":"Get Mfa Status","operationId":"get_mfa_status_api_v1_auth_mfa_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/totp/setup":{"post":{"tags":["Authentication"],"summary":"Setup Totp Mfa","operationId":"setup_totp_mfa_api_v1_auth_mfa_totp_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpSetupResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/totp/verify":{"post":{"tags":["Authentication"],"summary":"Verify Totp Mfa","operationId":"verify_totp_mfa_api_v1_auth_mfa_totp_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/whatsapp/setup":{"post":{"tags":["Authentication"],"summary":"Setup Whatsapp Mfa Initiate","operationId":"setup_whatsapp_mfa_initiate_api_v1_auth_mfa_whatsapp_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaSetupWhatsAppInitiateResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/whatsapp/verify":{"post":{"tags":["Authentication"],"summary":"Setup Whatsapp Mfa Verify","operationId":"setup_whatsapp_mfa_verify_api_v1_auth_mfa_whatsapp_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaSetupWhatsAppVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/sms/setup":{"post":{"tags":["Authentication"],"summary":"Setup Sms Mfa Initiate","operationId":"setup_sms_mfa_initiate_api_v1_auth_mfa_sms_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaSetupWhatsAppInitiateResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/sms/verify":{"post":{"tags":["Authentication"],"summary":"Setup Sms Mfa Verify","operationId":"setup_sms_mfa_verify_api_v1_auth_mfa_sms_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaSetupWhatsAppVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/gmail/setup":{"post":{"tags":["Authentication"],"summary":"Setup Gmail Mfa Initiate","operationId":"setup_gmail_mfa_initiate_api_v1_auth_mfa_gmail_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaSetupWhatsAppInitiateResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/mfa/gmail/verify":{"post":{"tags":["Authentication"],"summary":"Setup Gmail Mfa Verify","operationId":"setup_gmail_mfa_verify_api_v1_auth_mfa_gmail_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaSetupWhatsAppVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/forgot-password":{"post":{"tags":["Authentication"],"summary":"Forgot Password","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-email/{token}":{"post":{"tags":["Authentication"],"summary":"Verify Email","operationId":"verify_email_api_v1_auth_verify_email__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyUserRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["Authentication"],"summary":"Logout","description":"Revoke the current Bearer token so it cannot be reused after logout.","operationId":"logout_api_v1_auth_logout_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/reset-password":{"post":{"tags":["Authentication"],"summary":"Reset Password By Token","operationId":"reset_password_by_token_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordByTokenRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard/counts":{"get":{"tags":["Dashboard"],"summary":"Get Dashboard Counts","operationId":"get_dashboard_counts_api_v1_dashboard_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardCountsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/dashboard/latest-reports":{"get":{"tags":["Dashboard"],"summary":"Get Latest Reports","operationId":"get_latest_reports_api_v1_dashboard_latest_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"patientid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patientid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"uploadeddate","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Order"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"date_condition","in":"query","required":false,"schema":{"anyOf":[{"enum":["on","before","after","between"],"type":"string"},{"type":"null"}],"title":"Date Condition"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_DashboardLatestReportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/":{"get":{"tags":["Entities"],"summary":"List Entities","operationId":"list_entities_api_v1_entities__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"enum":["active","inactive","all"],"type":"string","default":"all","title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_EntityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Entities"],"summary":"Create Entity","operationId":"create_entity_api_v1_entities__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/entities/{entity_id}":{"get":{"tags":["Entities"],"summary":"Get Entity","operationId":"get_entity_api_v1_entities__entity_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Entities"],"summary":"Update Entity","operationId":"update_entity_api_v1_entities__entity_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Entities"],"summary":"Delete Entity","operationId":"delete_entity_api_v1_entities__entity_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/clinics/":{"get":{"tags":["Clinics"],"summary":"List Clinics","operationId":"list_clinics_api_v1_clinics__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"enum":["active","inactive","all"],"type":"string","default":"all","title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_ClinicResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Clinics"],"summary":"Create Clinic","operationId":"create_clinic_api_v1_clinics__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/clinics/{clinic_id}":{"get":{"tags":["Clinics"],"summary":"Get Clinic","operationId":"get_clinic_api_v1_clinics__clinic_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","title":"Clinic Id"}}],"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"}}}}}},"put":{"tags":["Clinics"],"summary":"Update Clinic","operationId":"update_clinic_api_v1_clinics__clinic_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","title":"Clinic Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClinicUpdate"}}}},"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"}}}}}},"delete":{"tags":["Clinics"],"summary":"Delete Clinic","operationId":"delete_clinic_api_v1_clinics__clinic_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clinic_id","in":"path","required":true,"schema":{"type":"string","title":"Clinic Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/":{"get":{"tags":["Users"],"summary":"List Users","operationId":"list_users_api_v1_users__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"enum":["active","inactive","locked","pending","all"],"type":"string","default":"all","title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_UserResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Users"],"summary":"Create User","operationId":"create_user_api_v1_users__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me":{"get":{"tags":["Users"],"summary":"Get Current User Profile","operationId":"get_current_user_profile_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/preferences":{"get":{"tags":["Users"],"summary":"Get My Preferences","operationId":"get_my_preferences_api_v1_users_me_preferences_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entityId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entityid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Users"],"summary":"Update My Preferences","operationId":"update_my_preferences_api_v1_users_me_preferences_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entityId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entityid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferencesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me/app-config":{"get":{"tags":["Users"],"summary":"Get My App Config","operationId":"get_my_app_config_api_v1_users_me_app_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entityId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entityid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAppConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Users"],"summary":"Update My App Config","operationId":"update_my_app_config_api_v1_users_me_app_config_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entityId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entityid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAppConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAppConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me/app-config/list":{"get":{"tags":["Users"],"summary":"Get My App Config Details","operationId":"get_my_app_config_details_api_v1_users_me_app_config_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAppConfigDetailsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/{user_id}":{"get":{"tags":["Users"],"summary":"Get User","operationId":"get_user_api_v1_users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Users"],"summary":"Update User","operationId":"update_user_api_v1_users__user_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Users"],"summary":"Delete User","operationId":"delete_user_api_v1_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/role":{"patch":{"tags":["Users"],"summary":"Change User Role","operationId":"change_user_role_api_v1_users__user_id__role_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeUserRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/reset-password":{"post":{"tags":["Users"],"summary":"Reset Password","operationId":"reset_password_api_v1_users__user_id__reset_password_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/resend-verification-email":{"post":{"tags":["Users"],"summary":"Resend Verification Email","description":"Reissue an email-verification link for an unverified user.","operationId":"resend_verification_email_api_v1_users__user_id__resend_verification_email_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/mfa/reset":{"post":{"tags":["Users"],"summary":"Reset User Mfa","description":"Revert a user's MFA enrolment (admin action).","operationId":"reset_user_mfa_api_v1_users__user_id__mfa_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/unlock":{"post":{"tags":["Users"],"summary":"Unlock User","operationId":"unlock_user_api_v1_users__user_id__unlock_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/patients/":{"get":{"tags":["Patients"],"summary":"List Patients","operationId":"list_patients_api_v1_patients__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},{"name":"external_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_PatientListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Patients"],"summary":"Create Patient","operationId":"create_patient_api_v1_patients__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/patients/count":{"get":{"tags":["Patients"],"summary":"Get Patient Count","operationId":"get_patient_count_api_v1_patients_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/patients/{patient_id}":{"get":{"tags":["Patients"],"summary":"Get Patient","operationId":"get_patient_api_v1_patients__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"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"}}}}}},"put":{"tags":["Patients"],"summary":"Update Patient","operationId":"update_patient_api_v1_patients__patient_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatientUpdate"}}}},"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"}}}}}},"delete":{"tags":["Patients"],"summary":"Delete Patient","operationId":"delete_patient_api_v1_patients__patient_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/":{"get":{"tags":["Reports"],"summary":"List Reports","operationId":"list_reports_api_v1_reports__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status_filter","in":"query","required":false,"schema":{"enum":["processing","success","failed","all"],"type":"string","default":"all","title":"Status Filter"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"date_condition","in":"query","required":false,"schema":{"anyOf":[{"enum":["on","before","after","between"],"type":"string"},{"type":"null"}],"title":"Date Condition"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_ReportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/usage":{"get":{"tags":["Reports"],"summary":"List Reports Summary","operationId":"list_reports_summary_api_v1_reports_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"date_condition","in":"query","required":false,"schema":{"anyOf":[{"enum":["on","before","after","between"],"type":"string"},{"type":"null"}],"title":"Date Condition"}},{"name":"status_filter","in":"query","required":false,"schema":{"enum":["processing","success","failed","all"],"type":"string","default":"all","title":"Status Filter"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_ReportSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/usage-report/export":{"get":{"tags":["Reports"],"summary":"Export Reports Usage Csv","operationId":"export_reports_usage_csv_api_v1_reports_usage_report_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"date_condition","in":"query","required":false,"schema":{"anyOf":[{"enum":["on","before","after","between"],"type":"string"},{"type":"null"}],"title":"Date Condition"}},{"name":"status_filter","in":"query","required":false,"schema":{"enum":["processing","success","failed","all"],"type":"string","default":"all","title":"Status Filter"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/export":{"get":{"tags":["Reports"],"summary":"Export Reports Csv","operationId":"export_reports_csv_api_v1_reports_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},{"name":"clinic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"}},{"name":"patient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"}},{"name":"status_filter","in":"query","required":false,"schema":{"enum":["processing","success","failed","all"],"type":"string","default":"all","title":"Status Filter"}},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Date"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"}},{"name":"date_condition","in":"query","required":false,"schema":{"anyOf":[{"enum":["on","before","after","between"],"type":"string"},{"type":"null"}],"title":"Date Condition"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/download":{"get":{"tags":["Reports"],"summary":"Download Exported Report","operationId":"download_exported_report_api_v1_reports_download_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"}}}}}}},"/api/v1/device-records/legacy-json":{"post":{"tags":["Device Records"],"summary":"Create Device Record Legacy Json","operationId":"create_device_record_legacy_json_api_v1_device_records_legacy_json_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecordCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/device-records/":{"post":{"tags":["Device Records"],"summary":"Upload Report Bundle","operationId":"upload_report_bundle_api_v1_device_records__post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_report_bundle_api_v1_device_records__post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecordBundleUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/device-records/{record_id}/status":{"get":{"tags":["Device Records"],"summary":"Read Device Record Status","operationId":"read_device_record_status_api_v1_device_records__record_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRecordStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/device-records/patient-data/{patient_id}":{"get":{"tags":["Device Records"],"summary":"Read Patient Data","operationId":"read_patient_data_api_v1_device_records_patient_data__patient_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"patient_id","in":"path","required":true,"schema":{"type":"string","title":"Patient Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_PatientDataResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}":{"get":{"tags":["Records"],"summary":"Get Record Json","operationId":"get_record_json_api_v1_records__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Record Json Api V1 Records  Record Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Records"],"summary":"Delete Bctf Record","operationId":"delete_bctf_record_api_v1_records__record_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/spectral":{"get":{"tags":["Records"],"summary":"Get Record Spectral Summary","operationId":"get_record_spectral_summary_api_v1_records__record_id__spectral_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordSpectralSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/package":{"get":{"tags":["Records"],"summary":"Get Record Package","operationId":"get_record_package_api_v1_records__record_id__package_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPackageDownloadLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/report.pdf":{"get":{"tags":["Records"],"summary":"Get Record Pdf","operationId":"get_record_pdf_api_v1_records__record_id__report_pdf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPdfDownloadLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/report/email":{"post":{"tags":["Records"],"summary":"Send Record Report Email Endpoint","operationId":"send_record_report_email_endpoint_api_v1_records__record_id__report_email_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordReportEmailRequest","description":"Recipient email address"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordReportEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/dicom":{"get":{"tags":["Records"],"summary":"Get Record Dicom","operationId":"get_record_dicom_api_v1_records__record_id__dicom_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDownloadLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/spectral/{site}":{"get":{"tags":["Records"],"summary":"Get Record Spectral File","operationId":"get_record_spectral_file_api_v1_records__record_id__spectral__site__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"site","in":"path","required":true,"schema":{"type":"string","title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDownloadLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/waveform/{site}":{"get":{"tags":["Records"],"summary":"Get Record Waveform File","operationId":"get_record_waveform_file_api_v1_records__record_id__waveform__site__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"site","in":"path","required":true,"schema":{"type":"string","title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDownloadLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/spectrogram/{site}":{"get":{"tags":["Records"],"summary":"Get Record Spectrogram File","operationId":"get_record_spectrogram_file_api_v1_records__record_id__spectrogram__site__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"site","in":"path","required":true,"schema":{"type":"string","title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDownloadLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/roles/":{"get":{"tags":["Roles"],"summary":"List Roles","operationId":"list_roles_api_v1_roles__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_RoleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/audit-logs/":{"get":{"tags":["Audit Logs"],"summary":"List Audit Logs","operationId":"list_audit_logs_api_v1_audit_logs__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWithTotal_AuditLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["Health"],"summary":"Health Check","operationId":"health_check__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AuditLogResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"action":{"type":"string","title":"Action"},"target_type":{"type":"string","title":"Target Type"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"details":{"anyOf":[{"type":"object"},{"items":{},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Details"},"created_date":{"type":"string","format":"date-time","title":"Created Date"}},"type":"object","required":["id","user_id","action","target_type","target_id","details","created_date"],"title":"AuditLogResponse"},"AuthUser":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"role_id":{"type":"string","title":"Role Id"},"role":{"type":"string","title":"Role"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"preferred_date_format":{"type":"string","title":"Preferred Date Format"},"preferred_language":{"type":"string","title":"Preferred Language"},"preferred_timezone":{"type":"string","title":"Preferred Timezone"}},"type":"object","required":["id","username","first_name","last_name","role_id","role","entity_id","clinic_id","preferred_date_format","preferred_language","preferred_timezone"],"title":"AuthUser"},"Body_login_api_v1_auth_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_api_v1_auth_login_post"},"Body_mfa_login_api_v1_auth_mfa_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_mfa_login_api_v1_auth_mfa_login_post"},"Body_upload_report_bundle_api_v1_device_records__post":{"properties":{"bundle":{"type":"string","format":"binary","title":"Bundle"}},"type":"object","required":["bundle"],"title":"Body_upload_report_bundle_api_v1_device_records__post"},"ChangeUserRoleRequest":{"properties":{"role_id":{"type":"string","title":"Role Id"}},"type":"object","required":["role_id"],"title":"ChangeUserRoleRequest"},"ClinicCreate":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"clinic_name":{"type":"string","maxLength":200,"title":"Clinic Name"},"full_address":{"type":"string","maxLength":500,"title":"Full Address"},"phone_number":{"type":"string","maxLength":30,"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"contact_email":{"type":"string","format":"email","title":"Contact Email"},"status":{"$ref":"#/components/schemas/ClinicStatus","default":"active"}},"type":"object","required":["entity_id","clinic_name","full_address","phone_number","contact_email"],"title":"ClinicCreate"},"ClinicResponse":{"properties":{"id":{"type":"string","title":"Id"},"entity_id":{"type":"string","title":"Entity Id"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"clinic_name":{"type":"string","title":"Clinic Name"},"full_address":{"type":"string","title":"Full Address"},"phone_number":{"type":"string","title":"Phone Number"},"contact_email":{"type":"string","title":"Contact Email"},"haspatients":{"type":"boolean","title":"Haspatients","default":false},"hasusers":{"type":"boolean","title":"Hasusers","default":false},"status":{"$ref":"#/components/schemas/ClinicStatus"},"created_date":{"type":"string","format":"date-time","title":"Created Date"},"phone_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Name"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code","readOnly":true}},"type":"object","required":["id","entity_id","clinic_name","full_address","phone_number","contact_email","status","created_date","country_code"],"title":"ClinicResponse"},"ClinicStatus":{"type":"string","enum":["active","inactive"],"title":"ClinicStatus"},"ClinicUpdate":{"properties":{"clinic_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Clinic Name"},"full_address":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Full Address"},"phone_number":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"contact_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Contact Email"},"status":{"anyOf":[{"$ref":"#/components/schemas/ClinicStatus"},{"type":"null"}]}},"type":"object","title":"ClinicUpdate"},"DashboardCountsResponse":{"properties":{"entity_count":{"type":"integer","title":"Entity Count"},"clinic_count":{"type":"integer","title":"Clinic Count"},"user_count":{"type":"integer","title":"User Count"},"patient_count":{"type":"integer","title":"Patient Count"}},"type":"object","required":["entity_count","clinic_count","user_count","patient_count"],"title":"DashboardCountsResponse"},"DashboardLatestReportResponse":{"properties":{"patientid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patientid"},"patientname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patientname"},"clinicname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinicname"},"reportId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reportid"},"uploadeddate":{"type":"string","format":"date-time","title":"Uploadeddate"}},"type":"object","required":["patientid","patientname","clinicname","reportId","uploadeddate"],"title":"DashboardLatestReportResponse"},"DeviceRecordBundleType":{"type":"string","enum":["report","signals"],"title":"DeviceRecordBundleType"},"DeviceRecordBundleUploadResponse":{"properties":{"recordId":{"type":"string","title":"Recordid"},"packageType":{"$ref":"#/components/schemas/DeviceRecordBundleType"},"ingestSource":{"$ref":"#/components/schemas/DeviceRecordIngestSource"},"created":{"type":"boolean","title":"Created"},"ingestStatus":{"type":"string","title":"Ingeststatus"},"reportStatus":{"$ref":"#/components/schemas/ReportStatus"},"signalPackageExpected":{"type":"boolean","title":"Signalpackageexpected"},"reportBundleReceived":{"type":"boolean","title":"Reportbundlereceived"},"signalBundleReceived":{"type":"boolean","title":"Signalbundlereceived"},"complete":{"type":"boolean","title":"Complete"},"storedFileName":{"type":"string","title":"Storedfilename"},"linkedPatientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedpatientid"},"linkedOperatorUserId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedoperatoruserid"},"dicomUploadAttempted":{"type":"boolean","title":"Dicomuploadattempted","default":false},"dicomUploadSuccess":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dicomuploadsuccess"},"dicomUploadStatusCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dicomuploadstatuscode"},"dicomUploadMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dicomuploadmessage"}},"type":"object","required":["recordId","packageType","ingestSource","created","ingestStatus","reportStatus","signalPackageExpected","reportBundleReceived","signalBundleReceived","complete","storedFileName"],"title":"DeviceRecordBundleUploadResponse"},"DeviceRecordCreate":{"properties":{"apiVersion":{"type":"string","minLength":1,"title":"Apiversion","default":"v1"},"schemaVersion":{"type":"integer","minimum":1.0,"title":"Schemaversion","default":1},"recordId":{"type":"string","format":"uuid","title":"Recordid"},"createdAtUtc":{"type":"string","format":"date-time","title":"Createdatutc"},"patientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patientid"},"operatorId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operatorid"},"reportFileName":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reportfilename"},"signalSnapshotFile":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Signalsnapshotfile"},"abimLeft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Abimleft"},"abimRight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Abimright"},"pdLeft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pdleft"},"pdRight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pdright"},"leftArm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftarm"},"rightArm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightarm"},"leftPT":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftpt"},"leftDP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftdp"},"rightPT":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightpt"},"rightDP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightdp"},"leftArmDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftarmdia"},"rightArmDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightarmdia"},"leftPTDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftptdia"},"leftDPDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftdpdia"},"rightPTDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightptdia"},"rightDPDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightdpdia"},"bpSystolic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bpsystolic"},"bpDiastolic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bpdiastolic"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["recordId","createdAtUtc"],"title":"DeviceRecordCreate"},"DeviceRecordIngestSource":{"type":"string","enum":["legacy_json","bundle_upload"],"title":"DeviceRecordIngestSource"},"DeviceRecordResponse":{"properties":{"apiVersion":{"type":"string","title":"Apiversion"},"ingestSource":{"$ref":"#/components/schemas/DeviceRecordIngestSource"},"schemaVersion":{"type":"integer","title":"Schemaversion"},"recordId":{"type":"string","title":"Recordid"},"createdAtUtc":{"type":"string","format":"date-time","title":"Createdatutc"},"patientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patientid"},"operatorId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operatorid"},"reportFileName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reportfilename"},"signalSnapshotFile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signalsnapshotfile"},"abimLeft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Abimleft"},"abimRight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Abimright"},"pdLeft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pdleft"},"pdRight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pdright"},"leftArm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftarm"},"rightArm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightarm"},"leftPT":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftpt"},"leftDP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftdp"},"rightPT":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightpt"},"rightDP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightdp"},"leftArmDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftarmdia"},"rightArmDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightarmdia"},"leftPTDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftptdia"},"leftDPDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leftdpdia"},"rightPTDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightptdia"},"rightDPDia":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rightdpdia"},"bpSystolic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bpsystolic"},"bpDiastolic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bpdiastolic"},"notes":{"type":"string","title":"Notes","default":""},"syncState":{"$ref":"#/components/schemas/DeviceSyncState"},"reportStatus":{"$ref":"#/components/schemas/ReportStatus"},"linkedPatientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedpatientid"},"linkedOperatorUserId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedoperatoruserid"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["apiVersion","ingestSource","schemaVersion","recordId","createdAtUtc","syncState","reportStatus","created"],"title":"DeviceRecordResponse"},"DeviceRecordStatusResponse":{"properties":{"recordId":{"type":"string","title":"Recordid"},"ingestSource":{"$ref":"#/components/schemas/DeviceRecordIngestSource"},"formatVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatversion"},"createdAtUtc":{"type":"string","format":"date-time","title":"Createdatutc"},"testDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Testdate"},"reportStatus":{"$ref":"#/components/schemas/ReportStatus"},"signalPackageExpected":{"type":"boolean","title":"Signalpackageexpected"},"reportBundleReceived":{"type":"boolean","title":"Reportbundlereceived"},"signalBundleReceived":{"type":"boolean","title":"Signalbundlereceived"},"complete":{"type":"boolean","title":"Complete"},"ingestStatus":{"type":"string","title":"Ingeststatus"},"receivedBundles":{"items":{"$ref":"#/components/schemas/DeviceRecordBundleType"},"type":"array","title":"Receivedbundles"},"reportBundleFileName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reportbundlefilename"},"signalBundleFileName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signalbundlefilename"},"linkedPatientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedpatientid"},"linkedOperatorUserId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedoperatoruserid"}},"type":"object","required":["recordId","ingestSource","createdAtUtc","reportStatus","signalPackageExpected","reportBundleReceived","signalBundleReceived","complete","ingestStatus","receivedBundles"],"title":"DeviceRecordStatusResponse"},"DeviceSyncState":{"type":"string","enum":["Pending","Uploading","Uploaded","Synced","Failed"],"title":"DeviceSyncState"},"EntityApplicationMode":{"type":"string","enum":["standard","row","us","v65"],"title":"EntityApplicationMode"},"EntityCreate":{"properties":{"entity_name":{"type":"string","title":"Entity Name"},"full_address":{"type":"string","title":"Full Address"},"phone_number":{"type":"string","title":"Phone Number"},"duplicate_information_to_clinic":{"type":"boolean","title":"Duplicate Information To Clinic","default":false},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"contact_email":{"type":"string","format":"email","title":"Contact Email"},"status":{"$ref":"#/components/schemas/EntityStatus","default":"active"}},"type":"object","required":["entity_name","full_address","phone_number","contact_email"],"title":"EntityCreate"},"EntityResponse":{"properties":{"id":{"type":"string","title":"Id"},"entity_name":{"type":"string","title":"Entity Name"},"full_address":{"type":"string","title":"Full Address"},"phone_number":{"type":"string","title":"Phone Number"},"contact_email":{"type":"string","title":"Contact Email"},"duplicate_information_to_clinic":{"type":"boolean","title":"Duplicate Information To Clinic"},"hasclinics":{"type":"boolean","title":"Hasclinics","default":false},"status":{"$ref":"#/components/schemas/EntityStatus"},"created_date":{"type":"string","format":"date-time","title":"Created Date"},"phone_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Name"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code","readOnly":true}},"type":"object","required":["id","entity_name","full_address","phone_number","contact_email","duplicate_information_to_clinic","status","created_date","country_code"],"title":"EntityResponse"},"EntityStatus":{"type":"string","enum":["active","inactive"],"title":"EntityStatus"},"EntityUpdate":{"properties":{"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"full_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Address"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"duplicate_information_to_clinic":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Duplicate Information To Clinic"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"contact_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Contact Email"},"status":{"anyOf":[{"$ref":"#/components/schemas/EntityStatus"},{"type":"null"}]}},"type":"object","title":"EntityUpdate"},"ForgotPasswordRequest":{"properties":{"username":{"type":"string","title":"Username"}},"type":"object","required":["username"],"title":"ForgotPasswordRequest"},"Gender":{"type":"string","enum":["male","female","other","prefer_not_to_say"],"title":"Gender"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ListWithTotal_AuditLogResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/AuditLogResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[AuditLogResponse]"},"ListWithTotal_ClinicResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ClinicResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[ClinicResponse]"},"ListWithTotal_DashboardLatestReportResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/DashboardLatestReportResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[DashboardLatestReportResponse]"},"ListWithTotal_EntityResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/EntityResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[EntityResponse]"},"ListWithTotal_PatientDataResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/PatientDataResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[PatientDataResponse]"},"ListWithTotal_PatientListResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/PatientListResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[PatientListResponse]"},"ListWithTotal_ReportResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ReportResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[ReportResponse]"},"ListWithTotal_ReportSummaryResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/ReportSummaryResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[ReportSummaryResponse]"},"ListWithTotal_RoleResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/RoleResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[RoleResponse]"},"ListWithTotal_UserResponse_":{"properties":{"total":{"type":"integer","title":"Total"},"items":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Items"}},"type":"object","required":["total","items"],"title":"ListWithTotal[UserResponse]"},"MfaChallengeRequest":{"properties":{"username":{"type":"string","title":"Username"},"session_token":{"type":"string","minLength":20,"title":"Session Token"},"challenge_name":{"type":"string","title":"Challenge Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","required":["username","session_token","challenge_name"],"title":"MfaChallengeRequest"},"MfaChallengeResponse":{"properties":{"requires_mfa":{"type":"boolean","title":"Requires Mfa","default":true},"username":{"type":"string","title":"Username"},"challenge_name":{"type":"string","title":"Challenge Name"},"session_token":{"type":"string","title":"Session Token"},"delivery_destination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Destination"}},"type":"object","required":["username","challenge_name","session_token"],"title":"MfaChallengeResponse"},"MfaSetupWhatsAppInitiateResponse":{"properties":{"session_token":{"type":"string","title":"Session Token"},"destination_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Hint"}},"type":"object","required":["session_token"],"title":"MfaSetupWhatsAppInitiateResponse"},"MfaSetupWhatsAppVerifyRequest":{"properties":{"session_token":{"type":"string","minLength":20,"title":"Session Token"},"code":{"type":"string","title":"Code"}},"type":"object","required":["session_token","code"],"title":"MfaSetupWhatsAppVerifyRequest"},"MfaStatusResponse":{"properties":{"mfa_configured":{"type":"boolean","title":"Mfa Configured"},"mfa_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mfa Type"},"challenge_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Challenge Name"}},"type":"object","required":["mfa_configured","mfa_type","challenge_name"],"title":"MfaStatusResponse"},"PatientCreate":{"properties":{"clinic_id":{"type":"string","title":"Clinic Id"},"external_id":{"type":"string","maxLength":100,"title":"External Id"},"first_name":{"type":"string","maxLength":100,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"title":"Last Name"},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth"},"gender":{"$ref":"#/components/schemas/Gender"},"address_line1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Country"},"phone_number":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"is_shared":{"type":"boolean","title":"Is Shared","default":false}},"type":"object","required":["clinic_id","external_id","first_name","last_name","date_of_birth","gender"],"title":"PatientCreate"},"PatientDataResponse":{"properties":{"testDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Testdate"},"notes":{"type":"string","title":"Notes","default":""},"syncState":{"$ref":"#/components/schemas/DeviceSyncState"},"dicomAvailable":{"type":"boolean","title":"Dicomavailable","default":false},"patientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patientid"},"patientName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patientname"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"dateOfBirth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dateofbirth"},"reportId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reportid"}},"type":"object","required":["syncState"],"title":"PatientDataResponse"},"PatientListResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"clinic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Name"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"external_id":{"type":"string","title":"External Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth"},"gender":{"$ref":"#/components/schemas/Gender"},"address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line1"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Name"},"is_shared":{"type":"boolean","title":"Is Shared"},"created_date":{"type":"string","format":"date-time","title":"Created Date"}},"type":"object","required":["id","clinic_id","external_id","first_name","last_name","date_of_birth","gender","is_shared","created_date"],"title":"PatientListResponse"},"PatientResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"clinic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Name"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"external_id":{"type":"string","title":"External Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth"},"gender":{"$ref":"#/components/schemas/Gender"},"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"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Name"},"is_shared":{"type":"boolean","title":"Is Shared"},"created_date":{"type":"string","format":"date-time","title":"Created Date"}},"type":"object","required":["id","clinic_id","external_id","first_name","last_name","date_of_birth","gender","is_shared","created_date"],"title":"PatientResponse"},"PatientUpdate":{"properties":{"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"external_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"External Id"},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth"},"gender":{"anyOf":[{"$ref":"#/components/schemas/Gender"},{"type":"null"}]},"address_line1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line2"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Country"},"phone_number":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"is_shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Shared"}},"type":"object","title":"PatientUpdate"},"RecordDownloadLinkResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"},"filename":{"type":"string","title":"Filename"},"expires_in_minutes":{"type":"integer","title":"Expires In Minutes"}},"type":"object","required":["download_url","filename","expires_in_minutes"],"title":"RecordDownloadLinkResponse"},"RecordPackageDownloadLinkResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"},"filename":{"type":"string","title":"Filename"},"expires_in_minutes":{"type":"integer","title":"Expires In Minutes"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"patient_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Name"},"received_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Received Date"}},"type":"object","required":["download_url","filename","expires_in_minutes"],"title":"RecordPackageDownloadLinkResponse"},"RecordPdfDownloadLinkResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"},"filename":{"type":"string","title":"Filename"},"expires_in_minutes":{"type":"integer","title":"Expires In Minutes"},"generated_download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated Download Url"},"generated_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated Filename"},"generated_expires_in_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Generated Expires In Minutes"},"generated_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated Error"}},"type":"object","required":["download_url","filename","expires_in_minutes"],"title":"RecordPdfDownloadLinkResponse"},"RecordReportEmailRequest":{"properties":{"to_email":{"type":"string","format":"email","title":"To Email"}},"type":"object","required":["to_email"],"title":"RecordReportEmailRequest"},"RecordReportEmailResponse":{"properties":{"message":{"type":"string","title":"Message"},"to_email":{"type":"string","title":"To Email"}},"type":"object","required":["message","to_email"],"title":"RecordReportEmailResponse"},"RecordSpectralSummaryResponse":{"properties":{"sites":{"items":{"type":"string"},"type":"array","title":"Sites"},"range":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Range"}},"type":"object","required":["sites"],"title":"RecordSpectralSummaryResponse"},"RecoveryInitiateRequest":{"properties":{"username":{"type":"string","title":"Username"},"channel":{"type":"string","title":"Channel"},"session_token":{"anyOf":[{"type":"string","minLength":20},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["username","channel"],"title":"RecoveryInitiateRequest"},"ReportResponse":{"properties":{"id":{"type":"string","title":"Id"},"clinic_id":{"type":"string","title":"Clinic Id"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"clinic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Name"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"patient_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Name"},"uploaded_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By User Id"},"uploaded_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By Name"},"device_record":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Device Record"},"upload_date":{"type":"string","format":"date-time","title":"Upload Date"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"status":{"$ref":"#/components/schemas/ReportStatus"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"created_date":{"type":"string","format":"date-time","title":"Created Date"}},"type":"object","required":["id","clinic_id","patient_id","uploaded_by_user_id","upload_date","ip_address","status","failure_reason","created_date"],"title":"ReportResponse"},"ReportStatus":{"type":"string","enum":["processing","success","failed"],"title":"ReportStatus"},"ReportSummaryResponse":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"entity_name":{"type":"string","title":"Entity Name"},"clinic_id":{"type":"string","title":"Clinic Id"},"clinic_name":{"type":"string","title":"Clinic Name"},"patient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Id"},"patient_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Patient Name"},"uploaded_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By User Id"},"uploaded_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By Name"},"from_date":{"type":"string","format":"date-time","title":"From Date"},"to_date":{"type":"string","format":"date-time","title":"To Date"},"total_images_upload":{"type":"integer","title":"Total Images Upload"},"total_uploaded_files":{"type":"integer","title":"Total Uploaded Files","default":0}},"type":"object","required":["entity_id","entity_name","clinic_id","clinic_name","patient_id","patient_name","uploaded_by_user_id","uploaded_by_name","from_date","to_date","total_images_upload"],"title":"ReportSummaryResponse"},"ResendOtpRequest":{"properties":{"username":{"type":"string","title":"Username"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"challenge_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Challenge Name"},"session_token":{"anyOf":[{"type":"string","minLength":20},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["username"],"title":"ResendOtpRequest"},"ResendOtpResponse":{"properties":{"session_token":{"type":"string","title":"Session Token"},"challenge_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Challenge Name"},"delivery_destination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Destination"},"cooldown_seconds":{"type":"integer","title":"Cooldown Seconds","default":0}},"type":"object","required":["session_token"],"title":"ResendOtpResponse"},"ResetPasswordByTokenRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordByTokenRequest"},"ResetPasswordRequest":{"properties":{"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["new_password"],"title":"ResetPasswordRequest"},"RoleResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["id","name","description","scope"],"title":"RoleResponse"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user":{"$ref":"#/components/schemas/AuthUser"},"mfa_setup_required":{"type":"boolean","title":"Mfa Setup Required","default":false}},"type":"object","required":["access_token","user"],"title":"TokenResponse"},"TotpSetupResponse":{"properties":{"otpauth_uri":{"type":"string","title":"Otpauth Uri"},"session_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["otpauth_uri"],"title":"TotpSetupResponse"},"TotpVerifyRequest":{"properties":{"code":{"type":"string","title":"Code"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"},"session_token":{"anyOf":[{"type":"string","minLength":20},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["code"],"title":"TotpVerifyRequest"},"TotpVerifyResponse":{"properties":{"status":{"type":"string","title":"Status"},"preferred_mfa":{"type":"string","title":"Preferred Mfa","default":"SOFTWARE_TOKEN_MFA"},"session_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["status"],"title":"TotpVerifyResponse"},"TryAnotherWayRequest":{"properties":{"username":{"type":"string","title":"Username"},"session_token":{"anyOf":[{"type":"string","minLength":20},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["username"],"title":"TryAnotherWayRequest"},"TryAnotherWayResponse":{"properties":{"available":{"items":{"type":"string"},"type":"array","title":"Available"},"channels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Channels"},"destinations":{"additionalProperties":{"type":"string"},"type":"object","title":"Destinations"}},"type":"object","required":["available","destinations"],"title":"TryAnotherWayResponse"},"UserAppConfigDetailsResponse":{"properties":{"application_modes":{"items":{"$ref":"#/components/schemas/UserAppConfigModeDetail"},"type":"array","title":"Application Modes"}},"type":"object","required":["application_modes"],"title":"UserAppConfigDetailsResponse"},"UserAppConfigModeDetail":{"properties":{"application_mode":{"$ref":"#/components/schemas/EntityApplicationMode"},"application_mode_ui":{"type":"string","title":"Application Mode Ui"}},"type":"object","required":["application_mode","application_mode_ui"],"title":"UserAppConfigModeDetail"},"UserAppConfigResponse":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"application_mode":{"$ref":"#/components/schemas/EntityApplicationMode"},"region":{"type":"string","title":"Region"},"invert_mode_enabled":{"type":"boolean","title":"Invert Mode Enabled"},"raw_payload_upload_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Raw Payload Upload Enabled"},"data_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Data Duration Seconds"},"application_mode_ui":{"type":"string","title":"Application Mode Ui","readOnly":true}},"type":"object","required":["entity_id","application_mode","region","invert_mode_enabled","application_mode_ui"],"title":"UserAppConfigResponse"},"UserAppConfigUpdate":{"properties":{"application_mode":{"anyOf":[{"$ref":"#/components/schemas/EntityApplicationMode"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"invert_mode_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Invert Mode Enabled"},"raw_payload_upload_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Raw Payload Upload Enabled"},"data_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Data Duration Seconds"}},"type":"object","title":"UserAppConfigUpdate"},"UserCreate":{"properties":{"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"role_id":{"type":"string","title":"Role Id"},"first_name":{"type":"string","maxLength":100,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"title":"Last Name"},"full_address":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Full Address"},"phone_number":{"type":"string","maxLength":30,"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"email":{"type":"string","format":"email","title":"Email"},"username":{"type":"string","title":"Username"}},"type":"object","required":["role_id","first_name","last_name","phone_number","email","username"],"title":"UserCreate"},"UserPreferencesResponse":{"properties":{"date_format":{"type":"string","title":"Date Format"},"language":{"type":"string","title":"Language"},"timezone":{"type":"string","title":"Timezone"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"application_mode":{"anyOf":[{"$ref":"#/components/schemas/EntityApplicationMode"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"invert_mode_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Invert Mode Enabled"},"raw_payload_upload_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Raw Payload Upload Enabled"},"data_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Data Duration Seconds"},"application_mode_ui":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Application Mode Ui","readOnly":true}},"type":"object","required":["date_format","language","timezone","application_mode_ui"],"title":"UserPreferencesResponse"},"UserPreferencesUpdate":{"properties":{"date_format":{"type":"string","title":"Date Format"},"language":{"type":"string","title":"Language"},"timezone":{"type":"string","title":"Timezone"},"application_mode":{"anyOf":[{"$ref":"#/components/schemas/EntityApplicationMode"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"invert_mode_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Invert Mode Enabled"},"raw_payload_upload_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Raw Payload Upload Enabled"},"data_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Data Duration Seconds"}},"type":"object","required":["date_format","language","timezone"],"title":"UserPreferencesUpdate"},"UserResponse":{"properties":{"id":{"type":"string","title":"Id"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"clinic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Id"},"clinic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clinic Name"},"role_id":{"type":"string","title":"Role Id"},"role_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Name"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"full_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Address"},"phone_number":{"type":"string","title":"Phone Number"},"phone_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Country Name"},"email":{"type":"string","title":"Email"},"username":{"type":"string","title":"Username"},"is_verified":{"type":"boolean","title":"Is Verified"},"status":{"$ref":"#/components/schemas/UserStatus"},"preferred_date_format":{"type":"string","title":"Preferred Date Format"},"preferred_language":{"type":"string","title":"Preferred Language"},"preferred_timezone":{"type":"string","title":"Preferred Timezone"},"created_date":{"type":"string","format":"date-time","title":"Created Date"},"is_mfa_enabled":{"type":"boolean","title":"Is Mfa Enabled","readOnly":true},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code","readOnly":true}},"type":"object","required":["id","entity_id","clinic_id","role_id","first_name","last_name","full_address","phone_number","email","username","is_verified","status","preferred_date_format","preferred_language","preferred_timezone","created_date","is_mfa_enabled","country_code"],"title":"UserResponse"},"UserStatus":{"type":"string","enum":["active","locked","inactive","pending"],"title":"UserStatus"},"UserUpdate":{"properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"full_address":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Full Address"},"phone_number":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Phone Number"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"phone_country_code":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone Country Code"},"phone_country_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Phone Country Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"status":{"anyOf":[{"$ref":"#/components/schemas/UserStatus"},{"type":"null"}]}},"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"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyUserRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Password"}},"type":"object","required":["username"],"title":"VerifyUserRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"Paste a bearer access token returned by /api/v1/auth/login.","scheme":"bearer","bearerFormat":"JWT"}}}}