|
|
|
|
@ -1,6 +1,242 @@
|
|
|
|
|
import 'package:amazon_payfort/amazon_payfort.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/enums.dart';
|
|
|
|
|
|
|
|
|
|
class ApiConsts {
|
|
|
|
|
static const maxSmallScreen = 660;
|
|
|
|
|
|
|
|
|
|
static AppEnvironmentTypeEnum appEnvironmentType = AppEnvironmentTypeEnum.prod;
|
|
|
|
|
|
|
|
|
|
// static String baseUrl = 'https://uat.hmgwebservices.com/'; // HIS API URL UAT
|
|
|
|
|
|
|
|
|
|
static String baseUrl = 'https://hmgwebservices.com/'; // HIS API URL PROD
|
|
|
|
|
|
|
|
|
|
static String rcBaseUrl = 'https://rc.hmg.com/'; // dRC API URL PROD
|
|
|
|
|
static String hmgPharmacyApiBaseUrl = 'https://hmgpharmacyapi.hmg.com/'; // dRC API URL PROD
|
|
|
|
|
static String symptomsCheckerApi = '${hmgPharmacyApiBaseUrl}symptomsapi/api/SymptomChecker'; // dRC API URL PROD
|
|
|
|
|
|
|
|
|
|
static var payFortEnvironment = FortEnvironment.production;
|
|
|
|
|
static var applePayMerchantId = "merchant.com.hmgwebservices";
|
|
|
|
|
|
|
|
|
|
static String SERVICE_URL = 'https://hmgwebservices.com/PayFortWebLive/pages/SendPayFortRequest.aspx'; //Payfort Payment Gateway URL LIVE
|
|
|
|
|
// static String SERVICE_URL = 'https://hmgwebservices.com/PayFortWeb/pages/SendPayFortRequest.aspx'; // Payfort Payment Gateway URL UAT
|
|
|
|
|
|
|
|
|
|
static String TAMARA_URL = "https://mdlaboratories.com/tamaralive/Home/Checkout";
|
|
|
|
|
static String GET_TAMARA_INSTALLMENTS_URL = "https://mdlaboratories.com/tamaralive/Home/GetInstallments";
|
|
|
|
|
static String GET_TAMARA_PAYMENT_STATUS = 'https://mdlaboratories.com/tamaralive/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
|
|
|
|
|
static String QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
|
|
|
|
|
static String CHAT_URL = "https://chat.hmg.com/Index.aspx?RequestedId=";
|
|
|
|
|
|
|
|
|
|
// static String GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
|
|
|
|
|
// var payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
// var applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
|
|
|
|
|
static setBackendURLs() {
|
|
|
|
|
switch (appEnvironmentType) {
|
|
|
|
|
case AppEnvironmentTypeEnum.prod:
|
|
|
|
|
baseUrl = "https://hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.production;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices";
|
|
|
|
|
SERVICE_URL = "https://hmgwebservices.com/PayFortWebLive/pages/SendPayFortRequest.aspx";
|
|
|
|
|
TAMARA_URL = "https://mdlaboratories.com/tamaralive/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://mdlaboratories.com/tamaralive/Home/GetInstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://mdlaboratories.com/tamaralive/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/Index.aspx?RequestedId=";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.dev:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.uat:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.preProd:
|
|
|
|
|
baseUrl = "https://webservices.hmg.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.production;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices";
|
|
|
|
|
SERVICE_URL = "https://hmgwebservices.com/PayFortWebLive/pages/SendPayFortRequest.aspx";
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.qa:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.staging:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static final String selectDeviceImei = 'Services/Patients.svc/REST/Patient_SELECTDeviceIMEIbyIMEI';
|
|
|
|
|
static final String checkPatientAuth = 'Services/Authentication.svc/REST/CheckPatientAuthentication';
|
|
|
|
|
|
|
|
|
|
static final String sendActivationCode = 'Services/Authentication.svc/REST/SendActivationCodebyOTPNotificationType';
|
|
|
|
|
static final String sendActivationCodeRegister = 'Services/Authentication.svc/REST/SendActivationCodebyOTPNotificationTypeForRegistration';
|
|
|
|
|
static final String checkActivationCode = 'Services/Authentication.svc/REST/CheckActivationCode';
|
|
|
|
|
static final String checkActivationCodeRegister = 'Services/Authentication.svc/REST/CheckActivationCodeForRegistration';
|
|
|
|
|
static final String checkUsageAgreement = 'Services/Patients.svc/REST/CheckForUsageAgreement';
|
|
|
|
|
static final String getUserAgreementContent = 'Services/Patients.svc/REST/GetUsageAgreementText';
|
|
|
|
|
|
|
|
|
|
static final String checkPatientForRegistration = 'Services/Authentication.svc/REST/CheckPatientForRegisteration';
|
|
|
|
|
static final String checkUserStatus = 'Services/NHIC.svc/REST/GetPatientInfo';
|
|
|
|
|
|
|
|
|
|
static final String insertPatientDeviceIMEIData = 'Services/Patients.svc/REST/Patient_INSERTDeviceIMEI';
|
|
|
|
|
static final String insertPatientMobileData = 'Services/MobileNotifications.svc/REST/Insert_PatientMobileDeviceInfo';
|
|
|
|
|
static final String getPatientMobileData = '/Services/Authentication.svc/REST/GetMobileLoginInfo';
|
|
|
|
|
static final String getPrivileges = 'Services/Patients.svc/REST/Service_Privilege';
|
|
|
|
|
static final String registerUser = 'Services/Authentication.svc/REST/PatientRegistration';
|
|
|
|
|
|
|
|
|
|
static final String addFamilyFile = 'Services/Patients.svc/REST/ShareFamilyFileService';
|
|
|
|
|
static final String sendFamilyFileActivation = 'Services/Authentication.svc/REST/SendActivationCodeForFamilyFile';
|
|
|
|
|
static final String checkActivationCodeForFamily = 'Services/Authentication.svc/REST/CheckActivationCodeForFamilyFile';
|
|
|
|
|
static final String getAllPendingRecordsByResponseId = 'Services/Authentication.svc/REST/GetAllPendingRecordsByResponseId';
|
|
|
|
|
static final String getAllSharedRecordsByStatus = 'Services/Authentication.svc/REST/GetAllSharedRecordsByStatus';
|
|
|
|
|
static final String removeFileFromFamilyMembers = 'Services/Authentication.svc/REST/ActiveDeactive_PatientFile';
|
|
|
|
|
static final String acceptAndRejectFamilyFile = 'Services/Authentication.svc/REST/Update_FileStatus';
|
|
|
|
|
static final String getActivePrescriptionsDetails = 'Services/Patients.svc/Rest/GetActivePrescriptionReportByPatientID';
|
|
|
|
|
static final String getTermsConditions = 'Services/Patients.svc/Rest/GetUserTermsAndConditions';
|
|
|
|
|
static final String getMonthlyReports = 'Services/Patients.svc/Rest/UpdatePateintHealthSummaryReport';
|
|
|
|
|
static final String updatePatientEmail = 'Services/Patients.svc/Rest/UpdatePateintEmail';
|
|
|
|
|
static final String getQrParkingDetails = 'Services/SWP.svc/REST/GetQRParkingByID';
|
|
|
|
|
|
|
|
|
|
// Ancillary Order Apis
|
|
|
|
|
static final String getOnlineAncillaryOrderList = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderList';
|
|
|
|
|
static final String getOnlineAncillaryOrderProcList = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderProcList';
|
|
|
|
|
static final String generateAncillaryOrderInvoice = 'Services/Doctors.svc/REST/AutoGenerateAncillaryOrderInvoice';
|
|
|
|
|
static final String autoGenerateAncillaryOrdersInvoice = 'Services/Doctors.svc/REST/AutoGenerateAncillaryOrderInvoice';
|
|
|
|
|
static final String getRequestStatusByRequestID = 'Services/PayFort_Serv.svc/REST/GetRequestStatusByRequestID';
|
|
|
|
|
|
|
|
|
|
//Payment APIs
|
|
|
|
|
static final String applePayInsertRequest = "Services/PayFort_Serv.svc/REST/PayFort_ApplePayRequestData_Insert";
|
|
|
|
|
static final String createAdvancePayments = 'Services/Patients.svc/REST/HIS_CreateAdvancePayment';
|
|
|
|
|
static final String addAdvanceNumberRequest = 'Services/PayFort_Serv.svc/REST/AddAdvancedNumberRequest';
|
|
|
|
|
|
|
|
|
|
// RC COMPREHENSIVE MEDICAL CHECKUP ServIces
|
|
|
|
|
static final String allCMCOrdersRc = 'api/cmc/list';
|
|
|
|
|
static final String allCMCServicesRc = 'api/cmc/getallcmc';
|
|
|
|
|
static final String updateCMCOrder = 'api/cmc/update';
|
|
|
|
|
static final String addCMCOrder = 'api/cmc/add';
|
|
|
|
|
static final String getHospitalsList = 'Services/Lists.svc/REST/GetProject';
|
|
|
|
|
|
|
|
|
|
// RC HOME HEALTHCARE ServIces
|
|
|
|
|
static final String allHHCOrdersRc = 'api/hhc/list';
|
|
|
|
|
static final String allHHCServicesRc = 'api/HHC/getallhhc';
|
|
|
|
|
static final String updateHHCOrder = 'api/hhc/update';
|
|
|
|
|
static final String addHHCOrder = 'api/HHC/add';
|
|
|
|
|
|
|
|
|
|
// SYMPTOMS CHECKER API
|
|
|
|
|
static final String symptomsUserLogin = '$symptomsCheckerApi/user_login';
|
|
|
|
|
static final String getBodySymptomsByName = '$symptomsCheckerApi/GetBodySymptomsByName';
|
|
|
|
|
static final String getRiskFactors = '$symptomsCheckerApi/GetRiskFactors';
|
|
|
|
|
static final String getSuggestions = '$symptomsCheckerApi/GetSuggestion';
|
|
|
|
|
static final String diagnosis = '$symptomsCheckerApi/GetDiagnosis';
|
|
|
|
|
static final String explain = '$symptomsCheckerApi/ExplainDiagnosisResult';
|
|
|
|
|
static final String getClinicFromCondition = '$symptomsCheckerApi/GetClinicsByCondition?condition=';
|
|
|
|
|
|
|
|
|
|
//E-REFERRAL SERVICES
|
|
|
|
|
static final getAllRelationshipTypes = "Services/Patients.svc/REST/GetAllRelationshipTypes";
|
|
|
|
|
static final sendActivationCodeForEReferral = 'Services/Authentication.svc/REST/SendActivationCodeForEReferral';
|
|
|
|
|
static final checkActivationCodeForEReferral = 'Services/Authentication.svc/REST/CheckActivationCodeForEReferral';
|
|
|
|
|
static final getAllCities = 'services/Lists.svc/rest/GetAllCities';
|
|
|
|
|
static final createEReferral = "Services/Patients.svc/REST/CreateEReferral";
|
|
|
|
|
static final getEReferrals = "Services/Patients.svc/REST/GetEReferrals";
|
|
|
|
|
|
|
|
|
|
//WATER CONSUMPTION
|
|
|
|
|
static String h2oGetUserProgress = "Services/H2ORemainder.svc/REST/H2O_GetUserProgress";
|
|
|
|
|
static String h2oInsertUserActivity = "Services/H2ORemainder.svc/REST/H2O_InsertUserActivity";
|
|
|
|
|
static String h2oInsertUserDetailsNew = "Services/H2ORemainder.svc/REST/H2O_InsertUserDetails_New";
|
|
|
|
|
static String h2oGetUserDetail = "Services/H2ORemainder.svc/REST/H2O_GetUserDetails_New";
|
|
|
|
|
static String h2oUpdateUserDetail = "Services/H2ORemainder.svc/REST/H2O_UpdateUserDetails_New";
|
|
|
|
|
static String h2oUndoUserActivity = "Services/H2ORemainder.svc/REST/H2o_UndoUserActivity";
|
|
|
|
|
|
|
|
|
|
// HEALTH TRACKERS
|
|
|
|
|
// Blood Sugar (Diabetic)
|
|
|
|
|
static String getDiabeticResultAverage = 'Services/Patients.svc/REST/Patient_GetDiabeticResultAverage';
|
|
|
|
|
static String getDiabeticResult = 'Services/Patients.svc/REST/Patient_GetDiabtecResults';
|
|
|
|
|
static String addDiabeticResult = 'Services/Patients.svc/REST/Patient_AddDiabtecResult';
|
|
|
|
|
static String updateDiabeticResult = 'Services/Patients.svc/REST/Patient_UpdateDiabtecResult';
|
|
|
|
|
static String deactivateDiabeticStatus = 'Services/Patients.svc/REST/Patient_DeactivateDiabeticStatus';
|
|
|
|
|
static String sendAverageBloodSugarReport = 'Services/Notifications.svc/REST/SendAverageBloodSugarReport';
|
|
|
|
|
|
|
|
|
|
// Blood Pressure
|
|
|
|
|
static String getBloodPressureResultAverage = 'Services/Patients.svc/REST/Patient_GetBloodPressureResultAverage';
|
|
|
|
|
static String getBloodPressureResult = 'Services/Patients.svc/REST/Patient_GetBloodPressureResult';
|
|
|
|
|
static String addBloodPressureResult = 'Services/Patients.svc/REST/Patient_AddBloodPressureResult';
|
|
|
|
|
static String updateBloodPressureResult = 'Services/Patients.svc/REST/Patient_UpdateBloodPressureResult';
|
|
|
|
|
static String deactivateBloodPressureStatus = 'Services/Patients.svc/REST/Patient_DeactivateBloodPressureStatus';
|
|
|
|
|
static String sendAverageBloodPressureReport = 'Services/Notifications.svc/REST/SendAverageBloodPressureReport';
|
|
|
|
|
|
|
|
|
|
// Weight Measurement
|
|
|
|
|
static String getWeightMeasurementResultAverage = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResultAverage';
|
|
|
|
|
static String getWeightMeasurementResult = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResult';
|
|
|
|
|
static String addWeightMeasurementResult = 'Services/Patients.svc/REST/Patient_AddWeightMeasurementResult';
|
|
|
|
|
static String updateWeightMeasurementResult = 'Services/Patients.svc/REST/Patient_UpdateWeightMeasurementResult';
|
|
|
|
|
static String deactivateWeightMeasurementStatus = 'Services/Patients.svc/REST/Patient_DeactivateWeightMeasurementStatus';
|
|
|
|
|
static String sendAverageBodyWeightReport = 'Services/Notifications.svc/REST/SendAverageBodyWeightReport';
|
|
|
|
|
|
|
|
|
|
//Blood Donation
|
|
|
|
|
static String bloodGroupUpdate = "Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType";
|
|
|
|
|
static String userAgreementForBloodGroupUpdate = "Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation";
|
|
|
|
|
static String getProjectsHaveBDClinics = "Services/OUTPs.svc/REST/BD_getProjectsHaveBDClinics";
|
|
|
|
|
static String getClinicsBDFreeSlots = "Services/OUTPs.svc/REST/BD_GetFreeSlots";
|
|
|
|
|
|
|
|
|
|
static String getPatientBloodGroup = "services/PatientVarification.svc/REST/BloodDonation_GetBloodGroupDetails";
|
|
|
|
|
static String getPatientBloodAgreement = "Services/PatientVarification.svc/REST/CheckUserAgreementForBloodDonation";
|
|
|
|
|
static String getAiOverViewLabOrders = "Services/Patients.svc/REST/HMGAI_Lab_Analyze_Orders_API";
|
|
|
|
|
static String getAiOverViewLabOrder = "Services/Patients.svc/REST/HMGAI_Lab_Analyzer_API";
|
|
|
|
|
|
|
|
|
|
// ************ static values for Api ****************
|
|
|
|
|
// static final double appVersionID = 19.7;
|
|
|
|
|
static final double appVersionID = 50.7;
|
|
|
|
|
static final int appChannelId = 3;
|
|
|
|
|
static final String appIpAddress = "10.20.10.20";
|
|
|
|
|
static final String appGeneralId = "Cs2020@2016\$2958";
|
|
|
|
|
static final String sessionID = 'TMRhVmkGhOsvamErw';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// PACKAGES and OFFERS
|
|
|
|
|
var EXA_CART_API_BASE_URL = 'https://mdlaboratories.com/offersdiscounts';
|
|
|
|
|
// var EXA_CART_API_BASE_URL = 'http://10.200.101.75:9000';
|
|
|
|
|
@ -680,243 +916,6 @@ var GET_PRESCRIPTION_INSTRUCTIONS_PDF = 'Services/ChatBot_Service.svc/REST/Chatb
|
|
|
|
|
|
|
|
|
|
const DASHBOARD = 'Services/Patients.svc/REST/PatientDashboard';
|
|
|
|
|
|
|
|
|
|
class ApiConsts {
|
|
|
|
|
static const maxSmallScreen = 660;
|
|
|
|
|
|
|
|
|
|
static AppEnvironmentTypeEnum appEnvironmentType = AppEnvironmentTypeEnum.prod;
|
|
|
|
|
|
|
|
|
|
// static String baseUrl = 'https://uat.hmgwebservices.com/'; // HIS API URL UAT
|
|
|
|
|
|
|
|
|
|
static String baseUrl = 'https://hmgwebservices.com/'; // HIS API URL PROD
|
|
|
|
|
|
|
|
|
|
static String rcBaseUrl = 'https://rc.hmg.com/'; // dRC API URL PROD
|
|
|
|
|
static String hmgPharmacyApiBaseUrl = 'https://hmgpharmacyapi.hmg.com/'; // dRC API URL PROD
|
|
|
|
|
static String symptomsCheckerApi = '${hmgPharmacyApiBaseUrl}symptomsapi/api/SymptomChecker'; // dRC API URL PROD
|
|
|
|
|
|
|
|
|
|
static var payFortEnvironment = FortEnvironment.production;
|
|
|
|
|
static var applePayMerchantId = "merchant.com.hmgwebservices";
|
|
|
|
|
|
|
|
|
|
static String SERVICE_URL = 'https://hmgwebservices.com/PayFortWebLive/pages/SendPayFortRequest.aspx'; //Payfort Payment Gateway URL LIVE
|
|
|
|
|
// static String SERVICE_URL = 'https://hmgwebservices.com/PayFortWeb/pages/SendPayFortRequest.aspx'; // Payfort Payment Gateway URL UAT
|
|
|
|
|
|
|
|
|
|
static String TAMARA_URL = "https://mdlaboratories.com/tamaralive/Home/Checkout";
|
|
|
|
|
static String GET_TAMARA_INSTALLMENTS_URL = "https://mdlaboratories.com/tamaralive/Home/GetInstallments";
|
|
|
|
|
static String GET_TAMARA_PAYMENT_STATUS = 'https://mdlaboratories.com/tamaralive/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
|
|
|
|
|
static String QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
|
|
|
|
|
static String CHAT_URL = "https://chat.hmg.com/Index.aspx?RequestedId=";
|
|
|
|
|
|
|
|
|
|
// static String GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
|
|
|
|
|
// var payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
// var applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
|
|
|
|
|
static setBackendURLs() {
|
|
|
|
|
switch (appEnvironmentType) {
|
|
|
|
|
case AppEnvironmentTypeEnum.prod:
|
|
|
|
|
baseUrl = "https://hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.production;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices";
|
|
|
|
|
SERVICE_URL = "https://hmgwebservices.com/PayFortWebLive/pages/SendPayFortRequest.aspx";
|
|
|
|
|
TAMARA_URL = "https://mdlaboratories.com/tamaralive/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://mdlaboratories.com/tamaralive/Home/GetInstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://mdlaboratories.com/tamaralive/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/Index.aspx?RequestedId=";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.dev:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.uat:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.preProd:
|
|
|
|
|
baseUrl = "https://webservices.hmg.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.production;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices";
|
|
|
|
|
SERVICE_URL = "https://hmgwebservices.com/PayFortWebLive/pages/SendPayFortRequest.aspx";
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.qa:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
case AppEnvironmentTypeEnum.staging:
|
|
|
|
|
baseUrl = "https://uat.hmgwebservices.com/";
|
|
|
|
|
payFortEnvironment = FortEnvironment.test;
|
|
|
|
|
applePayMerchantId = "merchant.com.hmgwebservices.uat";
|
|
|
|
|
SERVICE_URL = 'https://uat.hmgwebservices.com/HMGPayment/pages/SendPayFortRequest.aspx';
|
|
|
|
|
TAMARA_URL = "https://epharmacy.hmg.com/tamara/Home/Checkout";
|
|
|
|
|
GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments";
|
|
|
|
|
GET_TAMARA_PAYMENT_STATUS = 'https://epharmacy.hmg.com/tamara/api/OnlineTamara/order_status?orderid=';
|
|
|
|
|
rcBaseUrl = 'https://rc.hmg.com/uat/';
|
|
|
|
|
QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail";
|
|
|
|
|
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static final String selectDeviceImei = 'Services/Patients.svc/REST/Patient_SELECTDeviceIMEIbyIMEI';
|
|
|
|
|
static final String checkPatientAuth = 'Services/Authentication.svc/REST/CheckPatientAuthentication';
|
|
|
|
|
|
|
|
|
|
static final String sendActivationCode = 'Services/Authentication.svc/REST/SendActivationCodebyOTPNotificationType';
|
|
|
|
|
static final String sendActivationCodeRegister = 'Services/Authentication.svc/REST/SendActivationCodebyOTPNotificationTypeForRegistration';
|
|
|
|
|
static final String checkActivationCode = 'Services/Authentication.svc/REST/CheckActivationCode';
|
|
|
|
|
static final String checkActivationCodeRegister = 'Services/Authentication.svc/REST/CheckActivationCodeForRegistration';
|
|
|
|
|
static final String checkUsageAgreement = 'Services/Patients.svc/REST/CheckForUsageAgreement';
|
|
|
|
|
static final String getUserAgreementContent = 'Services/Patients.svc/REST/GetUsageAgreementText';
|
|
|
|
|
|
|
|
|
|
static final String checkPatientForRegistration = 'Services/Authentication.svc/REST/CheckPatientForRegisteration';
|
|
|
|
|
static final String checkUserStatus = 'Services/NHIC.svc/REST/GetPatientInfo';
|
|
|
|
|
|
|
|
|
|
static final String insertPatientDeviceIMEIData = 'Services/Patients.svc/REST/Patient_INSERTDeviceIMEI';
|
|
|
|
|
static final String insertPatientMobileData = 'Services/MobileNotifications.svc/REST/Insert_PatientMobileDeviceInfo';
|
|
|
|
|
static final String getPatientMobileData = '/Services/Authentication.svc/REST/GetMobileLoginInfo';
|
|
|
|
|
static final String getPrivileges = 'Services/Patients.svc/REST/Service_Privilege';
|
|
|
|
|
static final String registerUser = 'Services/Authentication.svc/REST/PatientRegistration';
|
|
|
|
|
|
|
|
|
|
static final String addFamilyFile = 'Services/Patients.svc/REST/ShareFamilyFileService';
|
|
|
|
|
static final String sendFamilyFileActivation = 'Services/Authentication.svc/REST/SendActivationCodeForFamilyFile';
|
|
|
|
|
static final String checkActivationCodeForFamily = 'Services/Authentication.svc/REST/CheckActivationCodeForFamilyFile';
|
|
|
|
|
static final String getAllPendingRecordsByResponseId = 'Services/Authentication.svc/REST/GetAllPendingRecordsByResponseId';
|
|
|
|
|
static final String getAllSharedRecordsByStatus = 'Services/Authentication.svc/REST/GetAllSharedRecordsByStatus';
|
|
|
|
|
static final String removeFileFromFamilyMembers = 'Services/Authentication.svc/REST/ActiveDeactive_PatientFile';
|
|
|
|
|
static final String acceptAndRejectFamilyFile = 'Services/Authentication.svc/REST/Update_FileStatus';
|
|
|
|
|
static final String getActivePrescriptionsDetails = 'Services/Patients.svc/Rest/GetActivePrescriptionReportByPatientID';
|
|
|
|
|
static final String getTermsConditions = 'Services/Patients.svc/Rest/GetUserTermsAndConditions';
|
|
|
|
|
static final String getMonthlyReports = 'Services/Patients.svc/Rest/UpdatePateintHealthSummaryReport';
|
|
|
|
|
static final String updatePatientEmail = 'Services/Patients.svc/Rest/UpdatePateintEmail';
|
|
|
|
|
static final String getQrParkingDetails = 'Services/SWP.svc/REST/GetQRParkingByID';
|
|
|
|
|
|
|
|
|
|
// Ancillary Order Apis
|
|
|
|
|
static final String getOnlineAncillaryOrderList = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderList';
|
|
|
|
|
static final String getOnlineAncillaryOrderProcList = 'Services/Doctors.svc/REST/GetOnlineAncillaryOrderProcList';
|
|
|
|
|
static final String generateAncillaryOrderInvoice = 'Services/Doctors.svc/REST/AutoGenerateAncillaryOrderInvoice';
|
|
|
|
|
static final String autoGenerateAncillaryOrdersInvoice = 'Services/Doctors.svc/REST/AutoGenerateAncillaryOrderInvoice';
|
|
|
|
|
static final String getRequestStatusByRequestID = 'Services/PayFort_Serv.svc/REST/GetRequestStatusByRequestID';
|
|
|
|
|
|
|
|
|
|
//Payment APIs
|
|
|
|
|
static final String applePayInsertRequest = "Services/PayFort_Serv.svc/REST/PayFort_ApplePayRequestData_Insert";
|
|
|
|
|
static final String createAdvancePayments = 'Services/Patients.svc/REST/HIS_CreateAdvancePayment';
|
|
|
|
|
static final String addAdvanceNumberRequest = 'Services/PayFort_Serv.svc/REST/AddAdvancedNumberRequest';
|
|
|
|
|
|
|
|
|
|
// RC COMPREHENSIVE MEDICAL CHECKUP ServIces
|
|
|
|
|
static final String allCMCOrdersRc = 'api/cmc/list';
|
|
|
|
|
static final String allCMCServicesRc = 'api/cmc/getallcmc';
|
|
|
|
|
static final String updateCMCOrder = 'api/cmc/update';
|
|
|
|
|
static final String addCMCOrder = 'api/cmc/add';
|
|
|
|
|
static final String getHospitalsList = 'Services/Lists.svc/REST/GetProject';
|
|
|
|
|
|
|
|
|
|
// RC HOME HEALTHCARE ServIces
|
|
|
|
|
static final String allHHCOrdersRc = 'api/hhc/list';
|
|
|
|
|
static final String allHHCServicesRc = 'api/HHC/getallhhc';
|
|
|
|
|
static final String updateHHCOrder = 'api/hhc/update';
|
|
|
|
|
static final String addHHCOrder = 'api/HHC/add';
|
|
|
|
|
|
|
|
|
|
// SYMPTOMS CHECKER API
|
|
|
|
|
static final String symptomsUserLogin = '$symptomsCheckerApi/user_login';
|
|
|
|
|
static final String getBodySymptomsByName = '$symptomsCheckerApi/GetBodySymptomsByName';
|
|
|
|
|
static final String getRiskFactors = '$symptomsCheckerApi/GetRiskFactors';
|
|
|
|
|
static final String getSuggestions = '$symptomsCheckerApi/GetSuggestion';
|
|
|
|
|
static final String diagnosis = '$symptomsCheckerApi/GetDiagnosis';
|
|
|
|
|
static final String explain = '$symptomsCheckerApi/ExplainDiagnosisResult';
|
|
|
|
|
static final String getClinicFromCondition = '$symptomsCheckerApi/GetClinicsByCondition?condition=';
|
|
|
|
|
|
|
|
|
|
//E-REFERRAL SERVICES
|
|
|
|
|
static final getAllRelationshipTypes = "Services/Patients.svc/REST/GetAllRelationshipTypes";
|
|
|
|
|
static final sendActivationCodeForEReferral = 'Services/Authentication.svc/REST/SendActivationCodeForEReferral';
|
|
|
|
|
static final checkActivationCodeForEReferral = 'Services/Authentication.svc/REST/CheckActivationCodeForEReferral';
|
|
|
|
|
static final getAllCities = 'services/Lists.svc/rest/GetAllCities';
|
|
|
|
|
static final createEReferral = "Services/Patients.svc/REST/CreateEReferral";
|
|
|
|
|
static final getEReferrals = "Services/Patients.svc/REST/GetEReferrals";
|
|
|
|
|
|
|
|
|
|
//WATER CONSUMPTION
|
|
|
|
|
static String h2oGetUserProgress = "Services/H2ORemainder.svc/REST/H2O_GetUserProgress";
|
|
|
|
|
static String h2oInsertUserActivity = "Services/H2ORemainder.svc/REST/H2O_InsertUserActivity";
|
|
|
|
|
static String h2oInsertUserDetailsNew = "Services/H2ORemainder.svc/REST/H2O_InsertUserDetails_New";
|
|
|
|
|
static String h2oGetUserDetail = "Services/H2ORemainder.svc/REST/H2O_GetUserDetails_New";
|
|
|
|
|
static String h2oUpdateUserDetail = "Services/H2ORemainder.svc/REST/H2O_UpdateUserDetails_New";
|
|
|
|
|
static String h2oUndoUserActivity = "Services/H2ORemainder.svc/REST/H2o_UndoUserActivity";
|
|
|
|
|
|
|
|
|
|
// HEALTH TRACKERS
|
|
|
|
|
// Blood Sugar (Diabetic)
|
|
|
|
|
static String getDiabeticResultAverage = 'Services/Patients.svc/REST/Patient_GetDiabeticResultAverage';
|
|
|
|
|
static String getDiabeticResult = 'Services/Patients.svc/REST/Patient_GetDiabtecResults';
|
|
|
|
|
static String addDiabeticResult = 'Services/Patients.svc/REST/Patient_AddDiabtecResult';
|
|
|
|
|
static String updateDiabeticResult = 'Services/Patients.svc/REST/Patient_UpdateDiabtecResult';
|
|
|
|
|
static String deactivateDiabeticStatus = 'Services/Patients.svc/REST/Patient_DeactivateDiabeticStatus';
|
|
|
|
|
static String sendAverageBloodSugarReport = 'Services/Notifications.svc/REST/SendAverageBloodSugarReport';
|
|
|
|
|
|
|
|
|
|
// Blood Pressure
|
|
|
|
|
static String getBloodPressureResultAverage = 'Services/Patients.svc/REST/Patient_GetBloodPressureResultAverage';
|
|
|
|
|
static String getBloodPressureResult = 'Services/Patients.svc/REST/Patient_GetBloodPressureResult';
|
|
|
|
|
static String addBloodPressureResult = 'Services/Patients.svc/REST/Patient_AddBloodPressureResult';
|
|
|
|
|
static String updateBloodPressureResult = 'Services/Patients.svc/REST/Patient_UpdateBloodPressureResult';
|
|
|
|
|
static String deactivateBloodPressureStatus = 'Services/Patients.svc/REST/Patient_DeactivateBloodPressureStatus';
|
|
|
|
|
static String sendAverageBloodPressureReport = 'Services/Notifications.svc/REST/SendAverageBloodPressureReport';
|
|
|
|
|
|
|
|
|
|
// Weight Measurement
|
|
|
|
|
static String getWeightMeasurementResultAverage = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResultAverage';
|
|
|
|
|
static String getWeightMeasurementResult = 'Services/Patients.svc/REST/Patient_GetWeightMeasurementResult';
|
|
|
|
|
static String addWeightMeasurementResult = 'Services/Patients.svc/REST/Patient_AddWeightMeasurementResult';
|
|
|
|
|
static String updateWeightMeasurementResult = 'Services/Patients.svc/REST/Patient_UpdateWeightMeasurementResult';
|
|
|
|
|
static String deactivateWeightMeasurementStatus = 'Services/Patients.svc/REST/Patient_DeactivateWeightMeasurementStatus';
|
|
|
|
|
static String sendAverageBodyWeightReport = 'Services/Notifications.svc/REST/SendAverageBodyWeightReport';
|
|
|
|
|
|
|
|
|
|
//Blood Donation
|
|
|
|
|
static String bloodGroupUpdate = "Services/PatientVarification.svc/REST/BloodDonation_RegisterBloodType";
|
|
|
|
|
static String userAgreementForBloodGroupUpdate = "Services/PatientVarification.svc/REST/AddUserAgreementForBloodDonation";
|
|
|
|
|
static String getProjectsHaveBDClinics = "Services/OUTPs.svc/REST/BD_getProjectsHaveBDClinics";
|
|
|
|
|
static String getClinicsBDFreeSlots = "Services/OUTPs.svc/REST/BD_GetFreeSlots";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static String getPatientBloodGroup = "services/PatientVarification.svc/REST/BloodDonation_GetBloodGroupDetails";
|
|
|
|
|
static String getPatientBloodAgreement = "Services/PatientVarification.svc/REST/CheckUserAgreementForBloodDonation";
|
|
|
|
|
static String getAiOverViewLabOrders = "Services/Patients.svc/REST/HMGAI_Lab_Analyze_Orders_API";
|
|
|
|
|
static String getAiOverViewLabOrder = "Services/Patients.svc/REST/HMGAI_Lab_Analyzer_API";
|
|
|
|
|
|
|
|
|
|
// ************ static values for Api ****************
|
|
|
|
|
// static final double appVersionID = 19.7;
|
|
|
|
|
static final double appVersionID = 50.7;
|
|
|
|
|
static final int appChannelId = 3;
|
|
|
|
|
static final String appIpAddress = "10.20.10.20";
|
|
|
|
|
static final String appGeneralId = "Cs2020@2016\$2958";
|
|
|
|
|
static final String sessionID = 'TMRhVmkGhOsvamErw';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class ApiKeyConstants {
|
|
|
|
|
static final String googleMapsApiKey = 'AIzaSyB6TERnxIr0yJ3qG4ULBZbu0sAD4tGqtng';
|
|
|
|
|
}
|
|
|
|
|
|