You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
7.5 KiB
Dart
164 lines
7.5 KiB
Dart
|
2 months ago
|
class ApiConsts {
|
||
|
|
static const maxSmallScreen = 660;
|
||
|
|
|
||
|
|
static bool isDevelopment = true;
|
||
|
|
|
||
|
|
// static String baseUrlBackend = 'http://ec2-13-51-36-142.eu-north-1.compute.amazonaws.com:8082/api/'; // Backend API URL UAT
|
||
|
|
// static String baseUrlBackend = 'http://207.127.99.20:82/api/'; // Backend API URL PROD
|
||
|
|
static String baseUrlBackend = 'https://api-mob.meena-health.com/api/'; // Backend API URL PROD
|
||
|
|
|
||
|
|
static String checkIfUserExists = 'UserRegistrationHIS/phone';
|
||
|
|
static String checkIfUserExistsMultiple = 'UserRegistrationHIS/phone/multiple';
|
||
|
|
static String checkIfUserExistsByMRN = 'UserRegistrationHIS/mrn/phone';
|
||
|
|
static String checkIfUserLastLoggedIn = 'UserRegistrationHIS/device-token';
|
||
|
|
static String updateUserLastLogIn = 'UserRegistrationHIS/save-device-token';
|
||
|
|
static String getStories = 'Stories';
|
||
|
|
static String saveAppointmentDetailsInBackend = 'UserAppointment';
|
||
|
|
static String getPatientAppointmentHistory = 'UserAppointment/my-appointments';
|
||
|
|
static String updateAppointmentDetailsInBackend = 'UserAppointment/update/';
|
||
|
|
static String submitDoctorReview = 'DoctorReview/submit-review';
|
||
|
|
static String getUserDataFromYakeenByIqama = 'Yakeen/by-iqama';
|
||
|
|
static String getUserDataFromYakeenByNin = 'Yakeen/by-nin';
|
||
|
|
static String sendVerificationCode = 'UserLogin/otp-request';
|
||
|
|
static String checkVerificationCode = 'UserLogin/otp-verify';
|
||
|
|
static String registerNewPatient = 'UserRegistrationHIS/save/patient';
|
||
|
|
static String getPatientVitalSignsHistory = 'Vitals/my-vitals';
|
||
|
|
static String getPatientLabReports = 'LabsOrder/my-orders';
|
||
|
|
static String getPatientRadReports = 'RadiologyOrder/my-orders';
|
||
|
|
static String getPatientPrescriptionsReports = 'Prescription/my-prescriptions';
|
||
|
|
static String updatePatientStoryViewedAPI = 'Stories/view';
|
||
|
|
static String getClinicsList = 'Clinics';
|
||
|
|
static String getDoctorsList = 'Doctors';
|
||
|
|
static String checkAppVersion = 'AppVersion/check-version';
|
||
|
|
static String getPatientLabOrdersAndResults = 'LabsOrder/my-order-result';
|
||
|
|
static String updatePatientProfile = 'Users/profile-update';
|
||
|
|
static String getPatientVitalSignsFromHIS = 'getpatientvital';
|
||
|
|
static String getDoctorReviewsByDoctorID = 'DoctorReview/';
|
||
|
|
|
||
|
|
// static String baseUrl = 'http://158.101.230.106:5016/phi/'; // HIS API URL UAT
|
||
|
|
static String baseUrl = 'http://158.101.232.32:5016/phi/'; // HIS API URL PROD
|
||
|
|
|
||
|
|
//Doctor Search
|
||
|
|
static String doctorSearch = 'doctor/search';
|
||
|
|
|
||
|
|
//Get Patient Data
|
||
|
|
static String getPatientData = 'patientdata/getpatientsdata';
|
||
|
|
|
||
|
|
//Get Free Slots
|
||
|
|
static String getFreeSlots = 'doctor/timeslot';
|
||
|
|
|
||
|
|
//Create Appointment
|
||
|
|
static String createAppointment = 'patient/appointment/create';
|
||
|
|
|
||
|
|
//Cancel Appointment
|
||
|
|
static String cancelAppointment = 'patient/appointment/create';
|
||
|
|
|
||
|
|
//Create Deposit
|
||
|
|
static String createDeposit = 'patient/PatientDeposits';
|
||
|
|
|
||
|
|
//Update Patient Photo
|
||
|
|
static String updatePatientPhoto = 'patientphoto';
|
||
|
|
|
||
|
|
// get Patient Insurance Details
|
||
|
|
static String getPatientInsuranceDetails = "http://158.101.232.32:5021/getpolicydetails";
|
||
|
|
|
||
|
|
// get Patient Insurance Details
|
||
|
|
static String getDoctorSessionsByAppointments = "http://158.101.232.32:5016/phi/doctor/getdoctorsessionbyappointment"; // Prod
|
||
|
|
|
||
|
|
// static String getDoctorSessionsByAppointments = "http://158.101.230.106:5016/phi/doctor/getdoctorsessionbyappointment"; // UAT
|
||
|
|
|
||
|
|
//get Organization List
|
||
|
|
static String getOrganizationsList = 'organisationsearch';
|
||
|
|
|
||
|
|
//get Departments List
|
||
|
|
static String getDepartmentsList = 'getdepartmentsearch';
|
||
|
|
|
||
|
|
static String VERSION_ID = "1.6";
|
||
|
|
|
||
|
|
// Nabed APIs
|
||
|
|
static String nabedBaseUrl = "https://portal.nabed.net/api/"; // Live
|
||
|
|
static String nabedAuthenticationURL = "auth/jwt-token";
|
||
|
|
static String nabedGetPatientData = "educate/external/content/icd?page=";
|
||
|
|
|
||
|
|
// SANED URLs
|
||
|
|
static String sanedLoginPassword = "Aa123456@";
|
||
|
|
static String sanedSource = "Meena Mobile App";
|
||
|
|
|
||
|
|
static String baseUrlSaned = 'https://staging.sanedhealth.com/'; // SANED API URL STAGING
|
||
|
|
// static String baseUrlSaned = 'https://hc.sanedhealth.com/'; // SANED API URL PRODUCTION
|
||
|
|
static String sanedAPIVersion = 'mn_hc/';
|
||
|
|
|
||
|
|
// static String sanedWebSocketURL = 'wss://locationapi.sanedhealth.com/ws?apikey=st_zuhDm9xSyI'; // UAT SANED WEBSOCKET URL
|
||
|
|
static String sanedWebSocketURL = 'wss://locationapiprod.sanedhealth.com/ws?apikey=st_A1xVs5qA7z'; // PRODUCTION WEBSOCKET URL
|
||
|
|
|
||
|
|
static String getSanedAuthToken = 'api/external/login';
|
||
|
|
static String getSanedProductCategories = 'get_product_categories';
|
||
|
|
static String getProductPackages = 'get/product/packages';
|
||
|
|
static String getPackageDetails = 'get/package/details';
|
||
|
|
static String checkPatientByNationalitySaned = 'check_patient_by_nationality';
|
||
|
|
static String signupPatient = 'api/signup';
|
||
|
|
static String getPatientCartDetails = 'shop/cart';
|
||
|
|
static String addPackageToCart = 'shop/cart/update';
|
||
|
|
static String updateCartItems = 'shop/cart/update_json';
|
||
|
|
static String getPatientLocationList = 'get_patient_location_list';
|
||
|
|
static String updatePatientLocationList = 'update_patient_location';
|
||
|
|
static String getAvailableSlots = 'get/category/slot';
|
||
|
|
static String createHHCAppointment = 'api/create/appointment';
|
||
|
|
static String cancelHHCAppointment = 'cancel_appointment';
|
||
|
|
static String getBlackOutDates = 'get/blackout/dates';
|
||
|
|
|
||
|
|
// static String createConfirmHHCAppointment = 'api/create/appointment';
|
||
|
|
static String getPatientHHCAppointmentHistory = 'get_patient_medical_history/appointment';
|
||
|
|
|
||
|
|
static setBackendURLs() {
|
||
|
|
if (isDevelopment) {
|
||
|
|
baseUrlSaned = 'https://staging.sanedhealth.com/';
|
||
|
|
sanedWebSocketURL = "wss://locationapi.sanedhealth.com/ws?apikey=st_zuhDm9xSyI";
|
||
|
|
baseUrlBackend = "http://ec2-13-51-36-142.eu-north-1.compute.amazonaws.com:8082/api/";
|
||
|
|
baseUrl = "http://158.101.230.106:5016/phi/";
|
||
|
|
getDoctorSessionsByAppointments = "http://158.101.230.106:5016/phi/doctor/getdoctorsessionbyappointment";
|
||
|
|
} else {
|
||
|
|
baseUrlSaned = 'https://hc.sanedhealth.com/';
|
||
|
|
sanedWebSocketURL = "wss://locationapiprod.sanedhealth.com/ws?apikey=st_A1xVs5qA7z";
|
||
|
|
baseUrlBackend = "https://api-mob.meena-health.com/api/";
|
||
|
|
baseUrl = "http://158.101.232.32:5016/phi/";
|
||
|
|
getDoctorSessionsByAppointments = "http://158.101.232.32:5016/phi/doctor/getdoctorsessionbyappointment";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Login
|
||
|
|
// static String baseUrlLogin = 'https://keycloak.dev.evxtest.monster/realms/';
|
||
|
|
// static String getLoginToken = 'my_city_uat/protocol/openid-connect/token';
|
||
|
|
}
|
||
|
|
|
||
|
|
class SharedPrefsConsts {
|
||
|
|
static String isRememberMe = "remember_me";
|
||
|
|
static String username = "doctorId";
|
||
|
|
static String password = "password";
|
||
|
|
static String logInTokenID = "logInTokenID";
|
||
|
|
static String vidaAuthTokenID = "vidaAuthTokenID";
|
||
|
|
static String vidaRefreshTokenID = "vidaRefreshTokenID";
|
||
|
|
static String authenticationTokenID = "authenticationTokenID";
|
||
|
|
static String projectID = "projectID";
|
||
|
|
static String clinicId = "clinicId";
|
||
|
|
static String lastLoginDate = "lastLoginDate";
|
||
|
|
static String lastLoginTime = "lastLoginTime";
|
||
|
|
static String memberModel = "memberModel";
|
||
|
|
|
||
|
|
static String isShowOnboarding = "is_show_onboarding";
|
||
|
|
static String appAuthToken = "app_auth_token";
|
||
|
|
static String appUserID = "app_user_id";
|
||
|
|
static String loggedInUserObj = "logged_in_user_obj";
|
||
|
|
|
||
|
|
static String PUSH_TOKEN = "push_token";
|
||
|
|
static String APNS_TOKEN = "apns_token";
|
||
|
|
static String VOIP_TOKEN = "voip_token";
|
||
|
|
static String PATIENT_MRN = "patient_mrn";
|
||
|
|
|
||
|
|
static String loggedInUserID = "logged_in_user_id";
|
||
|
|
static String loggedInUserPassword = "logged_in_user_password";
|
||
|
|
|
||
|
|
static String user_lat = 'user-lat';
|
||
|
|
static String user_long = 'user-long';
|
||
|
|
}
|