haroon_dev
haroon amjad 22 hours ago
parent 295709cbc2
commit 79b23584db

@ -194,8 +194,8 @@ class ApiClientImp implements ApiClient {
body['TokenID'] = "@dm!n";
}
body['TokenID'] = "@dm!n";
body['PatientID'] = 4773781;
// body['TokenID'] = "@dm!n";
// body['PatientID'] = 4773922;
// body['PatientTypeID'] = 1;
// body['PatientOutSA'] = 0;
// body['SessionID'] = "45786230487560q";

@ -57,7 +57,7 @@ class ApiConsts {
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";
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId=";
break;
case AppEnvironmentTypeEnum.uat:
baseUrl = "https://uat.hmgwebservices.com/";
@ -69,7 +69,7 @@ class ApiConsts {
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";
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId=";
break;
case AppEnvironmentTypeEnum.preProd:
baseUrl = "https://webservices.hmg.com/";
@ -81,7 +81,7 @@ class ApiConsts {
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";
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId=";
break;
case AppEnvironmentTypeEnum.qa:
baseUrl = "https://uat.hmgwebservices.com/";
@ -93,7 +93,7 @@ class ApiConsts {
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";
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId=";
break;
case AppEnvironmentTypeEnum.staging:
baseUrl = "https://uat.hmgwebservices.com/";
@ -105,7 +105,7 @@ class ApiConsts {
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";
CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId=";
break;
}
}
@ -229,7 +229,7 @@ class ApiConsts {
static String getAiOverViewLabOrder = "Services/Patients.svc/REST/HMGAI_Lab_Analyzer_API";
// ************ static values for Api ****************
static final double appVersionID = 19.8;
static final double appVersionID = 20.1;
// static final double appVersionID = 50.7;
static final int appChannelId = 3;
static final String appIpAddress = "10.20.10.20";
@ -517,8 +517,6 @@ var IS_ALLOW_ASK_DOCTOR = 'Services/Doctors.svc/REST/GetPatientDoctorAppointment
var GET_CALL_REQUEST_TYPE = 'Services/Doctors.svc/REST/GetCallRequestType_LOV';
var ADD_VIDA_REQUEST = 'Services/ER_VirtualCall.svc/REST/PatientER_VidaRequestInseart';
var SEND_CALL_REQUEST = 'Services/Doctors.svc/REST/InsertCallInfo';
var GET_LIVECARE_CLINICS = 'Services/ER_VirtualCall.svc/REST/PatientER_GetClinics';
var GET_LIVECARE_SCHEDULE_CLINICS = 'Services/Doctors.svc/REST/PatientER_GetClinicsHaveSchedule';

@ -860,7 +860,7 @@ class Utils {
static String getAppointmentTransID(int projectID, int clinicID, int appoNo, {bool isAddMilliseconds = true}) {
String currentMillis = DateTime.now().millisecondsSinceEpoch.toString();
return '$projectID-$clinicID-$appoNo${isAddMilliseconds ? '-${currentMillis.substring(currentMillis.length - 5, currentMillis.length)}' : ""}';
return '$projectID-$clinicID-$appoNo${isAddMilliseconds ? '-${currentMillis.substring(currentMillis.length - 5, currentMillis.length)}${currentMillis.substring(currentMillis.length - 5, currentMillis.length)}' : ""}';
}
static String getAdvancePaymentTransID(int projectID, int fileNumber) {

@ -67,7 +67,7 @@ class AskDoctorViewModel extends ChangeNotifier {
(failure) async {
isDoctorResponsesLoading = false;
notifyListeners();
await errorHandlerService.handleError(failure: failure);
// await errorHandlerService.handleError(failure: failure);
if (onError != null) {
onError(failure.toString());
}

@ -791,7 +791,11 @@ class MyAppointmentsViewModel extends ChangeNotifier {
final result = await myAppointmentsRepo.getTamaraInstallmentsDetails();
result.fold(
(failure) async => await errorHandlerService.handleError(failure: failure),
// (failure) async => await errorHandlerService.handleError(failure: failure),
(failure) async {
isTamaraDetailsLoading = false;
notifyListeners();
},
(apiResponse) {
getTamaraInstallmentsDetailsResponseModel = apiResponse.data!;
isTamaraDetailsLoading = false;

@ -484,6 +484,7 @@ class _WaitingAppointmentPaymentPageState extends State<WaitingAppointmentPaymen
});
});
} else {
LoaderBottomSheet.hideLoader();
showCommonBottomSheetWithoutHeight(
context,
child: Utils.getErrorWidget(loadingText: LocaleKeys.paymentFailedPleaseTryAgain.tr(context: context)),

@ -67,6 +67,7 @@ class _OtherDetailsStepState extends State<OtherDetailsStep> {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: ListView(
padding: EdgeInsets.zero,
physics: const BouncingScrollPhysics(),
children: [
const SizedBox(height: 12),
@ -97,7 +98,10 @@ class _OtherDetailsStepState extends State<OtherDetailsStep> {
InkWell(
child: TextInputWidget(
controller: _medicalReportController,
padding: const EdgeInsets.symmetric(horizontal: 16.0),
padding: EdgeInsets.symmetric(
vertical: ResponsiveExtension(12).h,
horizontal: ResponsiveExtension(16).h,
),
hintText: LocaleKeys.medicalReport.tr(context: context),
labelText: LocaleKeys.selectAttachment.tr(context: context),
suffix: const Icon(Icons.attachment),
@ -169,6 +173,7 @@ class _OtherDetailsStepState extends State<OtherDetailsStep> {
if (!value) {
_updateInsuranceText();
}
setState(() {});
},
),
Padding(
@ -194,7 +199,10 @@ class _OtherDetailsStepState extends State<OtherDetailsStep> {
InkWell(
child: TextInputWidget(
controller: _insuranceController,
padding: const EdgeInsets.symmetric(horizontal: 16.0),
padding: EdgeInsets.symmetric(
vertical: ResponsiveExtension(12).h,
horizontal: ResponsiveExtension(16).h,
),
hintText: LocaleKeys.insuranceDocument.tr(context: context),
labelText: LocaleKeys.selectAttachment.tr(context: context),
suffix: const Icon(Icons.attachment),
@ -234,7 +242,6 @@ class _OtherDetailsStepState extends State<OtherDetailsStep> {
}
void _showBranchBottomSheet(BuildContext context, ReferralFormManager formManager) {
showCommonBottomSheetWithoutHeight(
context,
title: LocaleKeys.selectBranch.tr(context: context),
@ -266,8 +273,9 @@ class _OtherDetailsStepState extends State<OtherDetailsStep> {
onTap: () {
formManager.updateBranch(branch);
Navigator.pop(context);
},
);
setState(() {});
},
);
},
// separatorBuilder: (context, index) => const Divider(),
itemCount: hospitals.length,

@ -64,6 +64,7 @@ class PatientInformationStepState extends State<PatientInformationStep> {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: ListView(
padding: EdgeInsets.zero,
physics: const BouncingScrollPhysics(),
children: [
const SizedBox(height: 12),
@ -71,7 +72,6 @@ class PatientInformationStepState extends State<PatientInformationStep> {
const SizedBox(height: 12),
_buildIdentificationField(formManager),
_buildPatientNameField(formManager),
// _buildPatientCountryField(context, formManager),
_buildPatientPhoneField(formManager),
const SizedBox(height: 20),
_buildSectionTitle(LocaleKeys.patientLocation.tr(context: context)),
@ -95,7 +95,10 @@ class PatientInformationStepState extends State<PatientInformationStep> {
focusNode: _identificationFocusNode,
child: TextInputWidget(
controller: _identificationController,
padding: const EdgeInsets.symmetric(horizontal: 16.0),
padding: EdgeInsets.symmetric(
vertical: ResponsiveExtension(12).h,
horizontal: ResponsiveExtension(16).h,
),
hintText: LocaleKeys.enterIdentificationNumber.tr(context: context),
labelText: LocaleKeys.identificationNumber.tr(context: context),
errorMessage: formManager.errors.patientIdentification,
@ -115,7 +118,10 @@ class PatientInformationStepState extends State<PatientInformationStep> {
focusNode: _nameFocusNode,
child: TextInputWidget(
controller: _nameController,
padding: const EdgeInsets.symmetric(horizontal: 16.0),
padding: EdgeInsets.symmetric(
vertical: ResponsiveExtension(12).h,
horizontal: ResponsiveExtension(16).h,
),
hintText: LocaleKeys.patientName.tr(context: context),
labelText: LocaleKeys.name.tr(context: context),
keyboardType: TextInputType.text,

@ -94,7 +94,6 @@ class RequesterFormStepState extends State<RequesterFormStep> {
focusNode: _nameFocusNode,
child: TextInputWidget(
controller: _nameController,
padding: const EdgeInsets.symmetric(horizontal: 16.0),
hintText: LocaleKeys.enterReferralRequesterName.tr(context: context),
labelText: LocaleKeys.requesterName.tr(context: context),
keyboardType: TextInputType.text,
@ -102,6 +101,10 @@ class RequesterFormStepState extends State<RequesterFormStep> {
isAllowLeadingIcon: true,
leadingIcon: AppAssets.user_circle,
hasError: !ValidationUtils.isNullOrEmpty(formManager.errors.requesterName),
padding: EdgeInsets.symmetric(
vertical: ResponsiveExtension(12).h,
horizontal: ResponsiveExtension(16).h,
),
onChange: (value) {
formManager.updateRequesterName(value ?? '');
},

Loading…
Cancel
Save