updates -> 3.13.6

merge-update-with-lab-changes
devamirsaleemahmad 2 years ago
parent b45cbbcf29
commit e8e7a726f5

@ -1,9 +1,9 @@
import 'package:diplomaticquarterapp/uitl/utils.dart'; import 'package:diplomaticquarterapp/uitl/utils.dart';
class _Event { class _Event {
String name; String? name;
String description; String? description;
bool active; bool? active;
_Event(dynamic map) { _Event(dynamic map) {
if (map != null) { if (map != null) {
name = map['name']; name = map['name'];

@ -8,14 +8,14 @@ class AdvancePayments{
AdvancePayments(this.logger); AdvancePayments(this.logger);
// R038 // R038
payment_services({@required String service_type}){ payment_services({required String service_type}){
logger('payment_services', parameters: { logger('payment_services', parameters: {
'service_type' : service_type 'service_type' : service_type
}); });
} }
// R039 // R039
wallet_recharge({@required String service_type}){ wallet_recharge({required String service_type}){
logger('wallet_recharge', parameters: { logger('wallet_recharge', parameters: {
'service_type' : service_type 'service_type' : service_type
}); });
@ -27,7 +27,7 @@ class AdvancePayments{
} }
// R041 // R041
payment_method({@required String method,type}){ payment_method({required String method,type}){
logger('payment_method', parameters: { logger('payment_method', parameters: {
'payment_method' : method, 'payment_method' : method,
'payment_type' : type 'payment_type' : type
@ -35,7 +35,7 @@ class AdvancePayments{
} }
// R042 // R042
payment_confirm({@required String method,type}){ payment_confirm({required String method,type}){
logger('payment_confirm', parameters: { logger('payment_confirm', parameters: {
'payment_method' : method, 'payment_method' : method,
'payment_type' : type 'payment_type' : type
@ -43,7 +43,7 @@ class AdvancePayments{
} }
// R043 // R043
payment_otp_confirmation({@required String method,type}){ payment_otp_confirmation({required String method,type}){
logger('payment_otp_confirmation', parameters: { logger('payment_otp_confirmation', parameters: {
'payment_method' : method, 'payment_method' : method,
'payment_type' : type 'payment_type' : type
@ -51,7 +51,7 @@ class AdvancePayments{
} }
// R044 // R044
payment_confirm_card_details({@required String method,type}){ payment_confirm_card_details({required String method,type}){
logger('payment_confirm_card_details', parameters: { logger('payment_confirm_card_details', parameters: {
'payment_method' : method, 'payment_method' : method,
'payment_type' : type 'payment_type' : type
@ -59,7 +59,7 @@ class AdvancePayments{
} }
// R045 // R045
payment_pay({@required String method,type}){ payment_pay({required String method,type}){
logger('payment_pay', parameters: { logger('payment_pay', parameters: {
'payment_method' : method, 'payment_method' : method,
'payment_type' : type 'payment_type' : type
@ -67,7 +67,7 @@ class AdvancePayments{
} }
// R046 // R046
payment_success({@required String hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){ payment_success({required String hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){
logger('payment_success', parameters: { logger('payment_success', parameters: {
'payment_method' : payment_method, 'payment_method' : payment_method,
'payment_type' : payment_type, 'payment_type' : payment_type,
@ -78,7 +78,7 @@ class AdvancePayments{
}); });
} }
payment_fail({@required String hospital, payment_method, payment_type, txn_amount, txn_currency, error_type}){ payment_fail({required String hospital, payment_method, payment_type, txn_amount, txn_currency, error_type}){
logger('payment_fail', parameters: { logger('payment_fail', parameters: {
'payment_method' : payment_method, 'payment_method' : payment_method,
'payment_type' : payment_type, 'payment_type' : payment_type,

@ -11,7 +11,7 @@ class AppNav{
}); });
} }
log({int tabIndex, bool isLoggedIn}){ log({int? tabIndex, bool? isLoggedIn}){
var nav_name = ""; var nav_name = "";
if(tabIndex == 1) if(tabIndex == 1)
nav_name = "medical file"; nav_name = "medical file";

@ -10,278 +10,264 @@ import 'package:intl/intl.dart';
import '../google-analytics.dart'; import '../google-analytics.dart';
class Appointment {
class Appointment{
final GALogger logger; final GALogger logger;
Appointment(this.logger); Appointment(this.logger);
// R015 // R015
book_appointment(){ book_appointment() {
logger('book_appointment'); logger('book_appointment');
} }
// R016.1, R017.2 // R016.1, R017.2
book_appointment_by_clinic(){ book_appointment_by_clinic() {
logger('book_appointment_by_clinic'); logger('book_appointment_by_clinic');
} }
// R016.2, R018.2 // R016.2, R018.2
book_appointment_by_doctor(){ book_appointment_by_doctor() {
logger('book_appointment_by_doctor'); logger('book_appointment_by_doctor');
} }
// R017.1 // R017.1
book_appointment_doctor_search({@required String query}){ book_appointment_doctor_search({required String query}) {
// doctor_search_query : value // doctor_search_query : value
logger('book_appointment_doctor_search', parameters: { logger('book_appointment_doctor_search', parameters: {'doctor_search_query': query});
'doctor_search_query' : query
});
} }
// R018.1 // R018.1
book_appointment_select_clinic({@required String appointment_type, clinic}){ book_appointment_select_clinic({required String appointment_type, clinic}) {
// appointment_type: regular | livecare // appointment_type: regular | livecare
// clinic_type : $clinic_type // clinic_type : $clinic_type
logger('book_appointment_select_clinic', parameters: { logger('book_appointment_select_clinic', parameters: {'appointment_type': appointment_type, 'clinic_type': clinic});
'appointment_type' : appointment_type,
'clinic_type' : clinic
});
} }
// R019.1 // R019.1
book_appointment_livecare_accept(){ book_appointment_livecare_accept() {
logger('book_appointment_livecare_accept'); logger('book_appointment_livecare_accept');
} }
// R019.2 // R019.2
book_appointment_livecare_decline(){ book_appointment_livecare_decline() {
logger('book_appointment_livecare_decline'); logger('book_appointment_livecare_decline');
} }
// R020 // R020
book_appointment_chief_complaints({@required String appointment_type, ListClinicCentralized clinic, HospitalsModel hospital, ListDentalChiefComplain treatment}){ book_appointment_chief_complaints({
GAnalytics.TREATMENT_TYPE = treatment.name; required String appointment_type,
ListClinicCentralized? clinic,
HospitalsModel? hospital,
ListDentalChiefComplain? treatment,
}) {
GAnalytics.TREATMENT_TYPE = treatment!.name;
logger('book_appointment_chief_complaints', parameters: { logger('book_appointment_chief_complaints', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : clinic.clinicDescription, 'clinic_type': clinic!.clinicDescription,
'hospital_name' : hospital.name, 'hospital_name': hospital!.name,
'treatment_type' : treatment.name, 'treatment_type': treatment.name,
}); });
} }
// R021 // R021
book_appointment_select_doctor({@required String appointment_type, @required DoctorList doctor}){ book_appointment_select_doctor({required String appointment_type, required DoctorList doctor}) {
// appointment_type, clinic_type, hospital_name, treatment_type, doctor_name, doctor_nationality, doctor_gender // appointment_type, clinic_type, hospital_name, treatment_type, doctor_name, doctor_nationality, doctor_gender
logger('book_appointment_select_doctor', parameters: { logger('book_appointment_select_doctor', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctor.clinicName, 'clinic_type': doctor.clinicName,
'hospital_name' : doctor.projectName, 'hospital_name': doctor.projectName,
'treatment_type' : GAnalytics.TREATMENT_TYPE ?? '', 'treatment_type': GAnalytics.TREATMENT_TYPE ?? '',
'doctor_name' : doctor.name, 'doctor_name': doctor.name,
'doctor_nationality' : doctor.nationalityName, 'doctor_nationality': doctor.nationalityName,
'doctor_gender' : doctor.genderDescription, 'doctor_gender': doctor.genderDescription,
}); });
} }
// R022 // R022
book_appointment_schedule({@required String appointment_type, @required DoctorList doctor}){ book_appointment_schedule({required String appointment_type, required DoctorList doctor}) {
// appointment_type, clinic_type, hospital_name, treatment_type, doctor_name, doctor_nationality, doctor_gender // appointment_type, clinic_type, hospital_name, treatment_type, doctor_name, doctor_nationality, doctor_gender
logger('book_appointment_schedule', parameters: { logger('book_appointment_schedule', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctor.clinicName, 'clinic_type': doctor.clinicName,
'hospital_name' : doctor.projectName, 'hospital_name': doctor.projectName,
'treatment_type' : GAnalytics.TREATMENT_TYPE ?? '', 'treatment_type': GAnalytics.TREATMENT_TYPE ?? '',
'doctor_name' : doctor.name, 'doctor_name': doctor.name,
'doctor_nationality' : doctor.nationalityName, 'doctor_nationality': doctor.nationalityName,
'doctor_gender' : doctor.genderDescription, 'doctor_gender': doctor.genderDescription,
}); });
} }
// R023 // R023
book_appointment_date_selection({@required String appointment_type, @required day, @required DoctorList doctor}){ book_appointment_date_selection({required String appointment_type, required day, required DoctorList doctor}) {
logger('book_appointment_date_selection', parameters: { logger('book_appointment_date_selection', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctor.clinicName, 'clinic_type': doctor.clinicName,
'hospital_name' : doctor.projectName, 'hospital_name': doctor.projectName,
'treatment_type' : GAnalytics.TREATMENT_TYPE ?? '', 'treatment_type': GAnalytics.TREATMENT_TYPE ?? '',
'doctor_name' : doctor.name, 'doctor_name': doctor.name,
'doctor_nationality' : doctor.nationalityName, 'doctor_nationality': doctor.nationalityName,
'doctor_gender' : doctor.genderDescription, 'doctor_gender': doctor.genderDescription,
'appointment_day' : day 'appointment_day': day
}); });
} }
// R024.1 // R024.1
book_appointment_time_selection({@required String appointment_type, @required DateTime dateTime, @required DoctorList doctor}){ book_appointment_time_selection({required String appointment_type, required DateTime dateTime, required DoctorList doctor}) {
final day = DateUtil.getWeekDay(dateTime.weekday); final day = DateUtil.getWeekDay(dateTime.weekday);
final hour = DateFormat('HH').format(dateTime); final hour = DateFormat('HH').format(dateTime);
logger('book_appointment_time_selection', parameters: { logger('book_appointment_time_selection', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctor.clinicName, 'clinic_type': doctor.clinicName,
'hospital_name' : doctor.projectName, 'hospital_name': doctor.projectName,
'treatment_type' : GAnalytics.TREATMENT_TYPE ?? '', 'treatment_type': GAnalytics.TREATMENT_TYPE ?? '',
'doctor_name' : doctor.name, 'doctor_name': doctor.name,
'doctor_nationality' : doctor.nationalityName, 'doctor_nationality': doctor.nationalityName,
'doctor_gender' : doctor.genderDescription, 'doctor_gender': doctor.genderDescription,
'appointment_day' : day, 'appointment_day': day,
'appointment_hour' : hour 'appointment_hour': hour
}); });
} }
// R024.2 // R024.2
book_appointment_review({@required String appointment_type, @required DateTime dateTime, @required DoctorList doctor}){ book_appointment_review({required String appointment_type, required DateTime dateTime, required DoctorList doctor}) {
final day = DateUtil.getWeekDay(dateTime.weekday); final day = DateUtil.getWeekDay(dateTime.weekday);
final hour = DateFormat('HH').format(dateTime); final hour = DateFormat('HH').format(dateTime);
logger('book_appointment_review', parameters: { logger('book_appointment_review', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctor.clinicName, 'clinic_type': doctor.clinicName,
'hospital_name' : doctor.projectName, 'hospital_name': doctor.projectName,
'treatment_type' : GAnalytics.TREATMENT_TYPE ?? '', 'treatment_type': GAnalytics.TREATMENT_TYPE ?? '',
'doctor_name' : doctor.name, 'doctor_name': doctor.name,
'doctor_nationality' : doctor.nationalityName, 'doctor_nationality': doctor.nationalityName,
'doctor_gender' : doctor.genderDescription, 'doctor_gender': doctor.genderDescription,
'appointment_day' : day, 'appointment_day': day,
'appointment_hour' : hour 'appointment_hour': hour
}); });
} }
// R025 // R025
book_appointment_click_confirm({@required String appointment_type, @required DateTime dateTime, @required DoctorList doctor}){ book_appointment_click_confirm({required String appointment_type, required DateTime dateTime, required DoctorList doctor}) {
final day = DateUtil.getWeekDay(dateTime.weekday); final day = DateUtil.getWeekDay(dateTime.weekday);
final hour = DateFormat('HH').format(dateTime); final hour = DateFormat('HH').format(dateTime);
logger('book_appointment_click_confirm', parameters: { logger('book_appointment_click_confirm', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctor.clinicName, 'clinic_type': doctor.clinicName,
'hospital_name' : doctor.projectName, 'hospital_name': doctor.projectName,
'treatment_type' : GAnalytics.TREATMENT_TYPE ?? '', 'treatment_type': GAnalytics.TREATMENT_TYPE ?? '',
'doctor_name' : doctor.name, 'doctor_name': doctor.name,
'doctor_nationality' : doctor.nationalityName, 'doctor_nationality': doctor.nationalityName,
'doctor_gender' : doctor.genderDescription, 'doctor_gender': doctor.genderDescription,
'appointment_day' : day, 'appointment_day': day,
'appointment_hour' : hour // '5-6' 'appointment_hour': hour // '5-6'
}); });
} }
// R026 // R026
book_appointment_confirmation_success({@required String appointment_type, @required DateTime dateTime, @required DoctorList doctor}){ book_appointment_confirmation_success({required String appointment_type, required DateTime dateTime, required DoctorList doctor}) {
final day = DateUtil.getWeekDay(dateTime.weekday); final day = DateUtil.getWeekDay(dateTime.weekday);
final hour = DateFormat('HH').format(dateTime); final hour = DateFormat('HH').format(dateTime);
logger('book_appointment_confirmation_success', parameters: { logger('book_appointment_confirmation_success', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctor.clinicName, 'clinic_type': doctor.clinicName,
'hospital_name' : doctor.projectName, 'hospital_name': doctor.projectName,
'treatment_type' : GAnalytics.TREATMENT_TYPE ?? '', 'treatment_type': GAnalytics.TREATMENT_TYPE ?? '',
'doctor_name' : doctor.name, 'doctor_name': doctor.name,
'doctor_nationality' : doctor.nationalityName, 'doctor_nationality': doctor.nationalityName,
'doctor_gender' : doctor.genderDescription, 'doctor_gender': doctor.genderDescription,
'appointment_day' : day, 'appointment_day': day,
'appointment_hour' : hour 'appointment_hour': hour
}); });
} }
// R049.1 // should be for appointment flow // R049.1 // should be for appointment flow
appointment_actions(AppoitmentAllHistoryResultList appointment, String action){ appointment_actions(AppoitmentAllHistoryResultList appointment, String action) {
logger('appointment_actions', parameters: { logger('appointment_actions', parameters: {
'action_type' : action, 'action_type': action,
'flow_type' : GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE, 'flow_type': GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE,
'appointment_type' : appointment.appointmentType, 'appointment_type': appointment.appointmentType,
'clinic_type_online' : appointment.clinicName, 'clinic_type_online': appointment.clinicName,
'hospital_name' : appointment.projectName, 'hospital_name': appointment.projectName,
'doctor_name' : (appointment.doctorName == null || appointment.doctorName == '') ? appointment.doctorNameObj : appointment.doctorName, 'doctor_name': (appointment.doctorName == null || appointment.doctorName == '') ? appointment.doctorNameObj : appointment.doctorName,
'payment_type' : 'appointment', 'payment_type': 'appointment',
}); });
} }
// R027 // R027
appointment_reminder(bool value){ appointment_reminder(bool value) {
logger('appointment_reminder', parameters: { logger('appointment_reminder', parameters: {'reminder': value ? 'yes' : 'no'});
'reminder' : value ? 'yes' : 'no'
});
} }
// R028 // R028
appointment_reminder_time({@required String reminde_before}){ appointment_reminder_time({required String reminde_before}) {
logger('appointment_reminder_time', parameters: { logger('appointment_reminder_time', parameters: {'reminder_before': reminde_before});
'reminder_before' : reminde_before
});
} }
// R053 // R053
// Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document // Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document
pay_now_for_appointment({@required String appointment_type, @required DoctorList doctorDetail, bool payNow = true}){ pay_now_for_appointment({required String appointment_type, required DoctorList doctorDetail, bool payNow = true}) {
logger('pay_now_for_appointment', parameters: { logger('pay_now_for_appointment', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type' : doctorDetail.clinicName, 'clinic_type': doctorDetail.clinicName,
'hospital_name' : doctorDetail.projectName, 'hospital_name': doctorDetail.projectName,
'doctor_name' : doctorDetail.name, 'doctor_name': doctorDetail.name,
'payment_type' : 'appointment' 'payment_type': 'appointment'
}); });
} }
// R033 // R033
payment_method({@required String appointment_type, clinic, payment_method, payment_type}){ payment_method({required String appointment_type, clinic, payment_method, payment_type}) {
logger('payment_method', parameters: { logger('payment_method', parameters: {'appointment_type': appointment_type, 'clinic_type': clinic, 'payment_method': payment_method, 'payment_type': payment_type});
'appointment_type' : appointment_type,
'clinic_type' : clinic,
'payment_method' : payment_method,
'payment_type' : payment_type
});
} }
// R036 // R036
payment_success({@required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){ payment_success({required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}) {
logger('payment_success', parameters: { logger('payment_success', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'payment_method' : payment_method, 'payment_method': payment_method,
'payment_type' : payment_type, 'payment_type': payment_type,
'hospital_name' : hospital, 'hospital_name': hospital,
'clinic_type_online' : clinic, 'clinic_type_online': clinic,
'transaction_number' : txn_number, 'transaction_number': txn_number,
'transaction_amount' : txn_amount, 'transaction_amount': txn_amount,
'transaction_currency' : txn_currency, 'transaction_currency': txn_currency,
}); });
} }
payment_fail({@required String appointment_type, clinic, hospital, payment_method, payment_type, txn_amount, txn_currency, error_type}){ payment_fail({required String appointment_type, clinic, hospital, payment_method, payment_type, txn_amount, txn_currency, error_type}) {
logger('payment_fail', parameters: { logger('payment_fail', parameters: {
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'payment_method' : payment_method, 'payment_method': payment_method,
'payment_type' : payment_type, 'payment_type': payment_type,
'hospital_name' : hospital, 'hospital_name': hospital,
'clinic_type_online' : clinic, 'clinic_type_online': clinic,
'transaction_amount' : txn_amount, 'transaction_amount': txn_amount,
'transaction_currency' : txn_currency, 'transaction_currency': txn_currency,
'error_type' : error_type 'error_type': error_type
}); });
} }
// Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document // Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document
appointment_detail_action({@required AppoitmentAllHistoryResultList appointment, @required String action}){ appointment_detail_action({required AppoitmentAllHistoryResultList appointment, required String action}) {
logger('appointment_detail_action', parameters: { logger('appointment_detail_action', parameters: {
'action_type' : action, 'action_type': action,
'flow_type' : GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE, 'flow_type': GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE,
}); });
} }
// Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document // Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document
appointment_details_confirm({@required AppoitmentAllHistoryResultList appointment}){ appointment_details_confirm({required AppoitmentAllHistoryResultList appointment}) {
logger('appointment_details_confirm', parameters: { logger('appointment_details_confirm', parameters: {});
});
} }
// R053 // R053
// Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document // Note : - Payment flow beyond this step are same as listed under Advance Payment section of this document
appointment_details_cancel({@required AppoitmentAllHistoryResultList appointment, appointment_type}){ appointment_details_cancel({required AppoitmentAllHistoryResultList appointment, appointment_type}) {
logger('cancel_appointment', parameters: { logger('cancel_appointment', parameters: {
'flow_type' : GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE, 'flow_type': GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE,
'appointment_type' : appointment_type, 'appointment_type': appointment_type,
'clinic_type_online' : appointment.clinicName, 'clinic_type_online': appointment.clinicName,
'hospital_name' : appointment.projectName, 'hospital_name': appointment.projectName,
'doctor_name' : (appointment.doctorName == null || appointment.doctorName == '') ? appointment.doctorNameObj : appointment.doctorName 'doctor_name': (appointment.doctorName == null || appointment.doctorName == '') ? appointment.doctorNameObj : appointment.doctorName
}); });
} }
} }

@ -5,7 +5,7 @@ class ErrorTracking{
final GALogger logger; final GALogger logger;
ErrorTracking(this.logger); ErrorTracking(this.logger);
log(String type, {String error}){ log(String type, {String? error}){
logger('errors', parameters: { logger('errors', parameters: {
'error_type' : type ?? 'unknown', 'error_type' : type ?? 'unknown',
'error' : error ?? 'unknown', 'error' : error ?? 'unknown',

@ -18,35 +18,35 @@ class LiveCare{
} }
// R031.1 // R031.1
livecare_clinic_schedule({@required String clinic}){ livecare_clinic_schedule({required String clinic}){
logger('livecare_clinic_schedule', parameters: { logger('livecare_clinic_schedule', parameters: {
'clinic_type_online' : clinic 'clinic_type_online' : clinic
}); });
} }
// R031.2 // R031.2
livecare_immediate_consultation_clinic({@required String clinic}){ livecare_immediate_consultation_clinic({required String clinic}){
logger('livecare_immediate_consultation_clinic', parameters: { logger('livecare_immediate_consultation_clinic', parameters: {
'clinic_type_online' : clinic 'clinic_type_online' : clinic
}); });
} }
// R031.2 // R031.2
livecare_schedule_video_call_clinic({@required String clinic}){ livecare_schedule_video_call_clinic({required String clinic}){
logger('livecare_schedule_video_call_clinic', parameters: { logger('livecare_schedule_video_call_clinic', parameters: {
'clinic_type_online' : clinic 'clinic_type_online' : clinic
}); });
} }
// R032 // R032
livecare_immediate_consultation_TnC({@required String clinic}){ livecare_immediate_consultation_TnC({required String clinic}){
logger('livecare_immediate_consultation_tandc', parameters: { logger('livecare_immediate_consultation_tandc', parameters: {
'clinic_type_online' : clinic 'clinic_type_online' : clinic
}); });
} }
// R033 // R033
payment_method({@required String appointment_type, clinic, payment_method, payment_type}){ payment_method({required String appointment_type, clinic, payment_method, payment_type}){
logger('payment_method', parameters: { logger('payment_method', parameters: {
'appointment_type' : appointment_type, 'appointment_type' : appointment_type,
'clinic_type_online' : clinic, 'clinic_type_online' : clinic,
@ -56,7 +56,7 @@ class LiveCare{
} }
// R034 // R034
payment_confirm({@required String appointment_type, clinic, payment_method, payment_type}){ payment_confirm({required String appointment_type, clinic, payment_method, payment_type}){
logger('payment_confirm', parameters: { logger('payment_confirm', parameters: {
'appointment_type' : appointment_type, 'appointment_type' : appointment_type,
'clinic_type_online' : clinic, 'clinic_type_online' : clinic,
@ -66,7 +66,7 @@ class LiveCare{
} }
// R035 // R035
payment_pay({@required String appointment_type, clinic, hospital, payment_method, payment_type}){ payment_pay({required String appointment_type, clinic, hospital, payment_method, payment_type}){
// logger('payment_pay', parameters: { // logger('payment_pay', parameters: {
// 'appointment_type' : appointment_type, // 'appointment_type' : appointment_type,
// 'clinic_type_online' : clinic, // 'clinic_type_online' : clinic,
@ -77,7 +77,7 @@ class LiveCare{
} }
// R036 // R036
payment_success({@required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){ payment_success({required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){
// appointment_type // appointment_type
// clinic_type_online // clinic_type_online
// payment_method // payment_method
@ -89,7 +89,7 @@ class LiveCare{
} }
// R037 // R037
livecare_immediate_consultation_payment_failed({@required String appointment_type, clinic, payment_method, payment_type, txn_amount, txn_currency, error_message}){ livecare_immediate_consultation_payment_failed({required String appointment_type, clinic, payment_method, payment_type, txn_amount, txn_currency, error_message}){
logger('livecare_immediate_consult_payment_fail', parameters: { logger('livecare_immediate_consult_payment_fail', parameters: {
'payment_method' : payment_method, 'payment_method' : payment_method,
'appointment_type' : appointment_type, 'appointment_type' : appointment_type,

@ -3,8 +3,8 @@ import 'package:flutter/cupertino.dart';
import '../google-analytics.dart'; import '../google-analytics.dart';
class LoginRegistration{ class LoginRegistration{
static int loginMethod; static int loginMethod = 0;
static int verificationMethod; static int verificationMethod = 0;
final GALogger logger; final GALogger logger;
LoginRegistration(this.logger); LoginRegistration(this.logger);
@ -22,7 +22,7 @@ class LoginRegistration{
} }
// R006.1, R007.1, R008.1, R009.1 // R006.1, R007.1, R008.1, R009.1
registration_cancel({@required String step}){ registration_cancel({required String step}){
// registration_step : enter details // registration_step : enter details
// registration_step : personal info // registration_step : personal info
// registration_step : patient info // registration_step : patient info
@ -58,7 +58,7 @@ class LoginRegistration{
logger('registration_confirmation'); logger('registration_confirmation');
} }
registration_fail({@required String errorType}){ registration_fail({required String errorType}){
// verification_method: by // verification_method: by
logger('registration_fail', parameters: { logger('registration_fail', parameters: {
'error_type' : errorType 'error_type' : errorType
@ -66,7 +66,7 @@ class LoginRegistration{
} }
// R011.1 // R011.1
login_start({@required String method}){ login_start({required String method}){
logger('login_start', parameters: { logger('login_start', parameters: {
'login_method' : method 'login_method' : method
}); });
@ -117,7 +117,7 @@ class LoginRegistration{
} }
// R012.4 // R012.4
login_unsuccessful({@required String method, error}){ login_unsuccessful({required String method, error}){
logger('login_unsuccessful', parameters: { logger('login_unsuccessful', parameters: {
'login_method' : method 'login_method' : method
}); });

@ -26,7 +26,7 @@ typedef GALogger = Function(String name, {Map<String, dynamic> parameters});
var _analytics = FirebaseAnalytics.instance; var _analytics = FirebaseAnalytics.instance;
_logger(String name, {Map<String, dynamic> parameters}) async { _logger(String name, {Map<String, dynamic>? parameters}) async {
// return; // return;
if (name != null && name.isNotEmpty) { if (name != null && name.isNotEmpty) {
if (name.contains(' ')) name = name.replaceAll(' ', '_'); if (name.contains(' ')) name = name.replaceAll(' ', '_');
@ -53,9 +53,9 @@ _logger(String name, {Map<String, dynamic> parameters}) async {
} }
class GAnalytics { class GAnalytics {
static String TREATMENT_TYPE; static String? TREATMENT_TYPE;
static String APPOINTMENT_DETAIL_FLOW_TYPE; static String? APPOINTMENT_DETAIL_FLOW_TYPE;
static String PAYMENT_TYPE; static String? PAYMENT_TYPE;
setUser(AuthenticatedUser user) async { setUser(AuthenticatedUser user) async {
try { try {
@ -105,14 +105,14 @@ class NavObserver extends RouteObserver<PageRoute<dynamic>> {
} }
} }
if (route.settings.name != null && route.settings.name.isNotEmpty && route.settings.name != "null") { if (route.settings.name != null && route.settings.name!.isNotEmpty && route.settings.name != "null") {
var class_ = routes[route.settings.name](0); var class_ = routes[route.settings.name]!(0);
if (class_ != null) log(class_.toStringShort()); if (class_ != null) log(class_.toStringShort());
} else if (route is FadePage) { } else if (route is FadePage) {
var class_ = route.page; var class_ = route.page;
if (class_ != null) log(class_.toStringShort()); if (class_ != null) log(class_.toStringShort());
} else if (route is MaterialPageRoute) { } else if (route is MaterialPageRoute) {
var class_ = route.builder(null); var class_ = route.builder(route.subtreeContext!);
if (class_ != null) log(class_.toStringShort()); if (class_ != null) log(class_.toStringShort());
} else { } else {
print(""); print("");
@ -120,7 +120,7 @@ class NavObserver extends RouteObserver<PageRoute<dynamic>> {
} }
@override @override
void didPush(Route<dynamic> route, Route<dynamic> previousRoute) { void didPush(Route<dynamic> route, Route<dynamic>? previousRoute) {
super.didPush(route, previousRoute); super.didPush(route, previousRoute);
if (route is PageRoute) { if (route is PageRoute) {
_sendScreenView(route); _sendScreenView(route);
@ -128,7 +128,7 @@ class NavObserver extends RouteObserver<PageRoute<dynamic>> {
} }
@override @override
void didReplace({Route<dynamic> newRoute, Route<dynamic> oldRoute}) { void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) {
super.didReplace(newRoute: newRoute, oldRoute: oldRoute); super.didReplace(newRoute: newRoute, oldRoute: oldRoute);
if (newRoute is PageRoute) { if (newRoute is PageRoute) {
_sendScreenView(newRoute); _sendScreenView(newRoute);
@ -136,7 +136,7 @@ class NavObserver extends RouteObserver<PageRoute<dynamic>> {
} }
@override @override
void didPop(Route<dynamic> route, Route<dynamic> previousRoute) { void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) {
super.didPop(route, previousRoute); super.didPop(route, previousRoute);
// if (previousRoute is PageRoute && route is PageRoute) { // if (previousRoute is PageRoute && route is PageRoute) {
// _sendScreenView(previousRoute); // _sendScreenView(previousRoute);

@ -6,14 +6,14 @@ class SizeConfig {
static double _blockWidth = 0; static double _blockWidth = 0;
static double _blockHeight = 0; static double _blockHeight = 0;
static double realScreenWidth; static double? realScreenWidth;
static double realScreenHeight; static double? realScreenHeight;
static double screenWidth; static double? screenWidth;
static double screenHeight; static double? screenHeight;
static double textMultiplier; static double? textMultiplier;
static double imageSizeMultiplier; static double? imageSizeMultiplier;
static double heightMultiplier; static double? heightMultiplier;
static double widthMultiplier; static double? widthMultiplier;
static bool isPortrait = true; static bool isPortrait = true;
static bool isMobilePortrait = false; static bool isMobilePortrait = false;
@ -28,7 +28,7 @@ class SizeConfig {
} }
if (orientation == Orientation.portrait) { if (orientation == Orientation.portrait) {
isPortrait = true; isPortrait = true;
if (realScreenWidth < 450) { if (realScreenWidth! < 450) {
isMobilePortrait = true; isMobilePortrait = true;
} }
screenHeight = realScreenHeight; screenHeight = realScreenHeight;
@ -39,8 +39,8 @@ class SizeConfig {
screenHeight = realScreenWidth; screenHeight = realScreenWidth;
screenWidth = realScreenHeight; screenWidth = realScreenHeight;
} }
_blockWidth = screenWidth / 100; _blockWidth = screenWidth! / 100;
_blockHeight = screenHeight / 100; _blockHeight = screenHeight! / 100;
textMultiplier = _blockHeight; textMultiplier = _blockHeight;
imageSizeMultiplier = _blockWidth; imageSizeMultiplier = _blockWidth;

@ -28,7 +28,5 @@ extension PaymentOptions_ on PaymentOptions{
return "APPLEPAY"; return "APPLEPAY";
break; break;
} }
return null;
} }
} }

@ -1,49 +1,49 @@
class GetCMCAllOrdersResponseModel { class GetCMCAllOrdersResponseModel {
int iD; int? iD;
int patientId; int? patientId;
int patientOutSa; int? patientOutSa;
bool isOutPatient; bool? isOutPatient;
int projectId; int? projectId;
int nearestProjectId; int? nearestProjectId;
dynamic longitude; dynamic longitude;
dynamic latitude; dynamic latitude;
dynamic appointmentNo; dynamic appointmentNo;
dynamic dischargeId; dynamic dischargeId;
int statusId; int? statusId;
int serviceId; int? serviceId;
int channel; int? channel;
Orderpayment orderpayment; Orderpayment? orderpayment;
dynamic orderselectedservice; dynamic orderselectedservice;
dynamic wforder; dynamic wforder;
dynamic orderapprovalobj; dynamic orderapprovalobj;
String created; String? created;
dynamic createdBy; dynamic createdBy;
dynamic modified; dynamic modified;
dynamic modifiedBy; dynamic modifiedBy;
bool isDeleted; bool? isDeleted;
String statusText; String? statusText;
int paymentStatus; int? paymentStatus;
dynamic clientRequestid; dynamic clientRequestid;
dynamic paymentStatusText; dynamic paymentStatusText;
String projectName; String? projectName;
String nearestProjectName; String? nearestProjectName;
dynamic paymentAmount; dynamic paymentAmount;
WFOrder wFOrder; WFOrder? wFOrder;
String serviceText; String? serviceText;
bool isSentForApproval; bool? isSentForApproval;
int exaCartOrderId; int? exaCartOrderId;
bool isTimer; bool? isTimer;
int timeSeconds; int? timeSeconds;
int totalPendingSeconds; int? totalPendingSeconds;
int timeMinute; int? timeMinute;
int timeHour; int? timeHour;
int timeTotalSeconds; int? timeTotalSeconds;
int timeTotalMinute; int? timeTotalMinute;
int timeTotalHour; int? timeTotalHour;
dynamic approvalStatus; dynamic approvalStatus;
bool isActive; bool? isActive;
int clickButton; int? clickButton;
List<dynamic> procedures; List<dynamic>? procedures;
dynamic pickupLocation; dynamic pickupLocation;
dynamic dropOffLocation; dynamic dropOffLocation;
dynamic clinicName; dynamic clinicName;
@ -180,7 +180,7 @@ class GetCMCAllOrdersResponseModel {
data['ServiceId'] = this.serviceId; data['ServiceId'] = this.serviceId;
data['Channel'] = this.channel; data['Channel'] = this.channel;
if (this.orderpayment != null) { if (this.orderpayment != null) {
data['orderpayment'] = this.orderpayment.toJson(); data['orderpayment'] = this.orderpayment!.toJson();
} }
data['orderselectedservice'] = this.orderselectedservice; data['orderselectedservice'] = this.orderselectedservice;
@ -199,7 +199,7 @@ class GetCMCAllOrdersResponseModel {
data['NearestProjectName'] = this.nearestProjectName; data['NearestProjectName'] = this.nearestProjectName;
data['PaymentAmount'] = this.paymentAmount; data['PaymentAmount'] = this.paymentAmount;
if (this.wFOrder != null) { if (this.wFOrder != null) {
data['WF_order'] = this.wFOrder.toJson(); data['WF_order'] = this.wFOrder!.toJson();
} }
data['ServiceText'] = this.serviceText; data['ServiceText'] = this.serviceText;
data['isSentForApproval'] = this.isSentForApproval; data['isSentForApproval'] = this.isSentForApproval;
@ -227,17 +227,17 @@ class GetCMCAllOrdersResponseModel {
} }
class Orderpayment { class Orderpayment {
int iD; int? iD;
int orderId; int? orderId;
dynamic clientRequestId; dynamic clientRequestId;
dynamic totalAmount; dynamic totalAmount;
int paymentStatus; int? paymentStatus;
dynamic order; dynamic order;
String created; String? created;
dynamic createdBy; dynamic createdBy;
dynamic modified; dynamic modified;
dynamic modifiedBy; dynamic modifiedBy;
bool isDeleted; bool? isDeleted;
Orderpayment( Orderpayment(
{this.iD, {this.iD,
@ -285,17 +285,17 @@ class Orderpayment {
class WFOrder { class WFOrder {
dynamic wfButtonsDTO; dynamic wfButtonsDTO;
int iD; int? iD;
int orderId; int? orderId;
int previousStep; int? previousStep;
int nextStep; int? nextStep;
int serviceId; int? serviceId;
dynamic order; dynamic order;
String created; String? created;
dynamic createdBy; dynamic createdBy;
dynamic modified; dynamic modified;
dynamic modifiedBy; dynamic modifiedBy;
bool isDeleted; bool? isDeleted;
WFOrder( WFOrder(
{this.wfButtonsDTO, {this.wfButtonsDTO,

@ -1,18 +1,18 @@
class CMCGetItemsRequestModel { class CMCGetItemsRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int checkupType; int? checkupType;
CMCGetItemsRequestModel( CMCGetItemsRequestModel(
{this.versionID, {this.versionID,

@ -1,6 +1,6 @@
class CMCGetItemsResponseModel { class CMCGetItemsResponseModel {
String itemDescription; String? itemDescription;
String itemName; String? itemName;
CMCGetItemsResponseModel({this.itemDescription, this.itemName}); CMCGetItemsResponseModel({this.itemDescription, this.itemName});

@ -1,44 +1,44 @@
class CMCInsertPresOrderRequestModel { class CMCInsertPresOrderRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
double latitude; double? latitude;
double longitude; double? longitude;
int createdBy; int? createdBy;
int orderServiceID; int? orderServiceID;
int projectID; int? projectID;
List<PatientERCMCInsertServicesList> patientERCMCInsertServicesList; List<PatientERCMCInsertServicesList>? patientERCMCInsertServicesList;
CMCInsertPresOrderRequestModel( CMCInsertPresOrderRequestModel(
{this.versionID, {this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID, this.deviceTypeID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.patientTypeID, this.patientTypeID,
this.patientType, this.patientType,
this.latitude, this.latitude,
this.longitude, this.longitude,
this.createdBy, this.createdBy,
this.orderServiceID, this.orderServiceID,
this.projectID, this.projectID,
this.patientERCMCInsertServicesList}); this.patientERCMCInsertServicesList});
CMCInsertPresOrderRequestModel.fromJson(Map<String, dynamic> json) { CMCInsertPresOrderRequestModel.fromJson(Map<String, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];
@ -60,11 +60,11 @@ class CMCInsertPresOrderRequestModel {
orderServiceID = json['OrderServiceID']; orderServiceID = json['OrderServiceID'];
projectID = json['ProjectId']; projectID = json['ProjectId'];
if (json['PatientER_CMC_InsertServicesList'] != null) { if (json['PatientER_CMC_InsertServicesList'] != null) {
patientERCMCInsertServicesList = patientERCMCInsertServicesList = <PatientERCMCInsertServicesList>[];
new List<PatientERCMCInsertServicesList>();
json['PatientER_CMC_InsertServicesList'].forEach((v) { json['PatientER_CMC_InsertServicesList'].forEach((v) {
patientERCMCInsertServicesList patientERCMCInsertServicesList!.add(
.add(new PatientERCMCInsertServicesList.fromJson(v)); new PatientERCMCInsertServicesList.fromJson(v),
);
}); });
} }
} }
@ -89,30 +89,22 @@ class CMCInsertPresOrderRequestModel {
data['OrderServiceID'] = this.orderServiceID; data['OrderServiceID'] = this.orderServiceID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
if (this.patientERCMCInsertServicesList != null) { if (this.patientERCMCInsertServicesList != null) {
data['procedures'] = data['procedures'] = this.patientERCMCInsertServicesList!.map((v) => v.toJson()).toList();
this.patientERCMCInsertServicesList.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class PatientERCMCInsertServicesList { class PatientERCMCInsertServicesList {
int recordID; int? recordID;
String serviceID; String? serviceID;
String selectedServiceName; String? selectedServiceName;
String selectedServiceNameAR; String? selectedServiceNameAR;
dynamic price; dynamic price;
dynamic vAT; dynamic vAT;
dynamic totalPrice; dynamic totalPrice;
PatientERCMCInsertServicesList( PatientERCMCInsertServicesList({this.recordID, this.serviceID, this.selectedServiceName, this.selectedServiceNameAR, this.price, this.vAT, this.totalPrice});
{this.recordID,
this.serviceID,
this.selectedServiceName,
this.selectedServiceNameAR,
this.price,
this.vAT,
this.totalPrice});
PatientERCMCInsertServicesList.fromJson(Map<String, dynamic> json) { PatientERCMCInsertServicesList.fromJson(Map<String, dynamic> json) {
recordID = json['RecordID']; recordID = json['RecordID'];

@ -1,19 +1,19 @@
class GetCMCServicesRequestModel { class GetCMCServicesRequestModel {
int channel; int? channel;
int deviceTypeID; int? deviceTypeID;
int genderID; int? genderID;
String generalid; String? generalid;
String identificationNo; String? identificationNo;
String iPAdress; String? iPAdress;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int languageID; int? languageID;
int patientID; int? patientID;
int patientOutSA; int? patientOutSA;
int patientType; int? patientType;
int patientTypeID; int? patientTypeID;
String sessionID; String? sessionID;
String tokenID; String? tokenID;
double versionID; double? versionID;
GetCMCServicesRequestModel( GetCMCServicesRequestModel(
{this.channel, {this.channel,

@ -1,15 +1,15 @@
class GetCMCServicesResponseModel { class GetCMCServicesResponseModel {
int iD; int? iD;
String serviceID; String? serviceID;
int orderServiceID; int? orderServiceID;
String text; String? text;
String textN; String? textN;
dynamic price; dynamic price;
dynamic priceVAT; dynamic priceVAT;
dynamic priceTotal; dynamic priceTotal;
bool isEnabled; bool? isEnabled;
int orderId; int? orderId;
int quantity; int? quantity;
GetCMCServicesResponseModel( GetCMCServicesResponseModel(
{this.iD, {this.iD,

@ -1,15 +1,15 @@
class CheckActivationCodeForEReferralResponseModel { class CheckActivationCodeForEReferralResponseModel {
String logInTokenID; String? logInTokenID;
String activationCode; String? activationCode;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
Null sessionID; Null sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
CheckActivationCodeForEReferralResponseModel( CheckActivationCodeForEReferralResponseModel(
{this.logInTokenID, {this.logInTokenID,

@ -1,60 +1,60 @@
class CreateEReferralRequestModel { class CreateEReferralRequestModel {
bool isInsuredPatient; bool? isInsuredPatient;
String cityCode; String? cityCode;
String cityName; String? cityName;
String requesterName; String? requesterName;
String requesterContactNo; String? requesterContactNo;
int requesterRelationship; int? requesterRelationship;
String otherRelationship; String? otherRelationship;
String fullName; String? fullName;
int identificationNo; int? identificationNo;
String patientMobileNumber; String? patientMobileNumber;
int preferredBranchCode; int? preferredBranchCode;
String preferredBranchName; String? preferredBranchName;
List<EReferralAttachment> medicalReportAttachment; List<EReferralAttachment>? medicalReportAttachment;
dynamic insuranceCardAttachment; dynamic insuranceCardAttachment;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
CreateEReferralRequestModel( CreateEReferralRequestModel(
{this.isInsuredPatient, {this.isInsuredPatient,
this.cityCode, this.cityCode,
this.cityName, this.cityName,
this.requesterName, this.requesterName,
this.requesterContactNo, this.requesterContactNo,
this.requesterRelationship, this.requesterRelationship,
this.otherRelationship, this.otherRelationship,
this.fullName, this.fullName,
this.identificationNo, this.identificationNo,
this.patientMobileNumber, this.patientMobileNumber,
this.preferredBranchCode, this.preferredBranchCode,
this.preferredBranchName, this.preferredBranchName,
this.medicalReportAttachment, this.medicalReportAttachment,
this.insuranceCardAttachment, this.insuranceCardAttachment,
this.versionID, this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID, this.deviceTypeID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.patientTypeID, this.patientTypeID,
this.patientType}); this.patientType});
CreateEReferralRequestModel.fromJson(Map<String, dynamic> json) { CreateEReferralRequestModel.fromJson(Map<String, dynamic> json) {
isInsuredPatient = json['IsInsuredPatient']; isInsuredPatient = json['IsInsuredPatient'];
@ -70,14 +70,12 @@ class CreateEReferralRequestModel {
preferredBranchCode = json['PreferredBranchCode']; preferredBranchCode = json['PreferredBranchCode'];
preferredBranchName = json['PreferredBranchName']; preferredBranchName = json['PreferredBranchName'];
if (json['MedicalReportAttachment'] != null) { if (json['MedicalReportAttachment'] != null) {
medicalReportAttachment = new List<EReferralAttachment>(); medicalReportAttachment = <EReferralAttachment>[];
json['MedicalReportAttachment'].forEach((v) { json['MedicalReportAttachment'].forEach((v) {
medicalReportAttachment.add(new EReferralAttachment.fromJson(v)); medicalReportAttachment!.add(EReferralAttachment.fromJson(v));
}); });
} }
insuranceCardAttachment = json['InsuranceCardAttachment'] != null insuranceCardAttachment = json['InsuranceCardAttachment'] != null ? EReferralAttachment.fromJson(json['InsuranceCardAttachment']) : null;
? new EReferralAttachment.fromJson(json['InsuranceCardAttachment'])
: null;
versionID = json['VersionID']; versionID = json['VersionID'];
channel = json['Channel']; channel = json['Channel'];
languageID = json['LanguageID']; languageID = json['LanguageID'];
@ -108,8 +106,7 @@ class CreateEReferralRequestModel {
data['PreferredBranchCode'] = this.preferredBranchCode; data['PreferredBranchCode'] = this.preferredBranchCode;
data['PreferredBranchName'] = this.preferredBranchName; data['PreferredBranchName'] = this.preferredBranchName;
if (this.medicalReportAttachment != null) { if (this.medicalReportAttachment != null) {
data['MedicalReportAttachment'] = data['MedicalReportAttachment'] = this.medicalReportAttachment!.map((v) => v.toJson()).toList();
this.medicalReportAttachment.map((v) => v.toJson()).toList();
} }
if (this.insuranceCardAttachment == null) { if (this.insuranceCardAttachment == null) {
data['InsuranceCardAttachment'] = {}; data['InsuranceCardAttachment'] = {};
@ -134,8 +131,8 @@ class CreateEReferralRequestModel {
} }
class EReferralAttachment { class EReferralAttachment {
String fileName; String? fileName;
String base64String; String? base64String;
EReferralAttachment({this.fileName, this.base64String}); EReferralAttachment({this.fileName, this.base64String});

@ -1,13 +1,13 @@
class GetAllCitiesRequestModel { class GetAllCitiesRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
Null sessionID; Null sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
GetAllCitiesRequestModel( GetAllCitiesRequestModel(
{this.versionID, {this.versionID,

@ -1,7 +1,7 @@
class GetAllCitiesResponseModel { class GetAllCitiesResponseModel {
int iD; int? iD;
String description; String? description;
String descriptionN; String? descriptionN;
GetAllCitiesResponseModel({this.iD, this.description, this.descriptionN}); GetAllCitiesResponseModel({this.iD, this.description, this.descriptionN});

@ -1,20 +1,20 @@
class GetAllProjectsResponseModel { class GetAllProjectsResponseModel {
String desciption; String? desciption;
Null desciptionN; Null desciptionN;
int iD; int? iD;
String legalName; String? legalName;
String legalNameN; String? legalNameN;
String name; String? name;
Null nameN; Null nameN;
String phoneNumber; String? phoneNumber;
String setupID; String? setupID;
int distanceInKilometers; int? distanceInKilometers;
bool isActive; bool? isActive;
String latitude; String? latitude;
String longitude; String? longitude;
int mainProjectID; int? mainProjectID;
Null projectOutSA; Null projectOutSA;
bool usingInDoctorApp; bool? usingInDoctorApp;
GetAllProjectsResponseModel( GetAllProjectsResponseModel(
{this.desciption, {this.desciption,

@ -1,13 +1,13 @@
class GetAllRelationshipTypeRequestModel { class GetAllRelationshipTypeRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
Null sessionID; Null sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
GetAllRelationshipTypeRequestModel( GetAllRelationshipTypeRequestModel(
{this.versionID, {this.versionID,

@ -1,8 +1,8 @@
class GetAllRelationshipTypeResponseModel { class GetAllRelationshipTypeResponseModel {
int iD; int? iD;
String text; String? text;
String textAr; String? textAr;
String textEn; String? textEn;
GetAllRelationshipTypeResponseModel( GetAllRelationshipTypeResponseModel(
{this.iD, this.text, this.textAr, this.textEn}); {this.iD, this.text, this.textAr, this.textEn});

@ -2,54 +2,53 @@ class GetEReferralResponseModel {
dynamic acceptedBrachCode; dynamic acceptedBrachCode;
dynamic acceptedBranchName; dynamic acceptedBranchName;
dynamic acceptedBranchNameAr; dynamic acceptedBranchNameAr;
Channel channel; Channel? channel;
dynamic identityCardAttachment; dynamic identityCardAttachment;
String identityNumber; String? identityNumber;
dynamic insuranceCardAttachment; dynamic insuranceCardAttachment;
bool isInsuredPatient; bool? isInsuredPatient;
String otherRelationship; String? otherRelationship;
String patientContactNo; String? patientContactNo;
int patientId; int? patientId;
String patientName; String? patientName;
int preferredBranchCode; int? preferredBranchCode;
String preferredBranchName; String? preferredBranchName;
String referralDate; String? referralDate;
int referralNumber; int? referralNumber;
Channel relationshipType; Channel? relationshipType;
String requesterContactNo; String? requesterContactNo;
String requesterName; String? requesterName;
String status; String? status;
String statusAr; String? statusAr;
GetEReferralResponseModel( GetEReferralResponseModel(
{this.acceptedBrachCode, {this.acceptedBrachCode,
this.acceptedBranchName, this.acceptedBranchName,
this.acceptedBranchNameAr, this.acceptedBranchNameAr,
this.channel, this.channel,
this.identityCardAttachment, this.identityCardAttachment,
this.identityNumber, this.identityNumber,
this.insuranceCardAttachment, this.insuranceCardAttachment,
this.isInsuredPatient, this.isInsuredPatient,
this.otherRelationship, this.otherRelationship,
this.patientContactNo, this.patientContactNo,
this.patientId, this.patientId,
this.patientName, this.patientName,
this.preferredBranchCode, this.preferredBranchCode,
this.preferredBranchName, this.preferredBranchName,
this.referralDate, this.referralDate,
this.referralNumber, this.referralNumber,
this.relationshipType, this.relationshipType,
this.requesterContactNo, this.requesterContactNo,
this.requesterName, this.requesterName,
this.status, this.status,
this.statusAr}); this.statusAr});
GetEReferralResponseModel.fromJson(Map<String, dynamic> json) { GetEReferralResponseModel.fromJson(Map<String, dynamic> json) {
acceptedBrachCode = json['AcceptedBrachCode']; acceptedBrachCode = json['AcceptedBrachCode'];
acceptedBranchName = json['AcceptedBranchName']; acceptedBranchName = json['AcceptedBranchName'];
acceptedBranchNameAr = json['AcceptedBranchNameAr']; acceptedBranchNameAr = json['AcceptedBranchNameAr'];
channel = channel = json['Channel'] != null ? new Channel.fromJson(json['Channel']) : null;
json['Channel'] != null ? new Channel.fromJson(json['Channel']) : null;
identityCardAttachment = json['IdentityCardAttachment']; identityCardAttachment = json['IdentityCardAttachment'];
identityNumber = json['IdentityNumber']; identityNumber = json['IdentityNumber'];
insuranceCardAttachment = json['InsuranceCardAttachment']; insuranceCardAttachment = json['InsuranceCardAttachment'];
@ -62,9 +61,7 @@ class GetEReferralResponseModel {
preferredBranchName = json['PreferredBranchName']; preferredBranchName = json['PreferredBranchName'];
referralDate = json['ReferralDate']; referralDate = json['ReferralDate'];
referralNumber = json['ReferralNumber']; referralNumber = json['ReferralNumber'];
relationshipType = json['RelationshipType'] != null relationshipType = json['RelationshipType'] != null ? new Channel.fromJson(json['RelationshipType']) : null;
? new Channel.fromJson(json['RelationshipType'])
: null;
requesterContactNo = json['RequesterContactNo']; requesterContactNo = json['RequesterContactNo'];
requesterName = json['RequesterName']; requesterName = json['RequesterName'];
status = json['Status']; status = json['Status'];
@ -77,7 +74,7 @@ class GetEReferralResponseModel {
data['AcceptedBranchName'] = this.acceptedBranchName; data['AcceptedBranchName'] = this.acceptedBranchName;
data['AcceptedBranchNameAr'] = this.acceptedBranchNameAr; data['AcceptedBranchNameAr'] = this.acceptedBranchNameAr;
if (this.channel != null) { if (this.channel != null) {
data['Channel'] = this.channel.toJson(); data['Channel'] = this.channel!.toJson();
} }
data['IdentityCardAttachment'] = this.identityCardAttachment; data['IdentityCardAttachment'] = this.identityCardAttachment;
data['IdentityNumber'] = this.identityNumber; data['IdentityNumber'] = this.identityNumber;
@ -92,7 +89,7 @@ class GetEReferralResponseModel {
data['ReferralDate'] = this.referralDate; data['ReferralDate'] = this.referralDate;
data['ReferralNumber'] = this.referralNumber; data['ReferralNumber'] = this.referralNumber;
if (this.relationshipType != null) { if (this.relationshipType != null) {
data['RelationshipType'] = this.relationshipType.toJson(); data['RelationshipType'] = this.relationshipType!.toJson();
} }
data['RequesterContactNo'] = this.requesterContactNo; data['RequesterContactNo'] = this.requesterContactNo;
data['RequesterName'] = this.requesterName; data['RequesterName'] = this.requesterName;
@ -103,10 +100,10 @@ class GetEReferralResponseModel {
} }
class Channel { class Channel {
int iD; int? iD;
String text; String? text;
String textAr; String? textAr;
String textEn; String? textEn;
Channel({this.iD, this.text, this.textAr, this.textEn}); Channel({this.iD, this.text, this.textAr, this.textEn});

@ -1,7 +1,7 @@
class SearchCriteriaModel { class SearchCriteriaModel {
String name; String? name;
String nameAr; String? nameAr;
int value; int? value;
SearchCriteriaModel({this.name, this.nameAr, this.value}); SearchCriteriaModel({this.name, this.nameAr, this.value});

@ -1,16 +1,16 @@
class SearchEReferralRequestModel { class SearchEReferralRequestModel {
String patientMobileNumber; String? patientMobileNumber;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
Null sessionID; Null sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int referralNumber; int? referralNumber;
String identificationNo; String? identificationNo;
SearchEReferralRequestModel( SearchEReferralRequestModel(
{this.patientMobileNumber, {this.patientMobileNumber,

@ -4,23 +4,23 @@ class SearchEReferralResponseModel {
dynamic acceptedBranchNameAr; dynamic acceptedBranchNameAr;
dynamic channel; dynamic channel;
dynamic identityCardAttachment; dynamic identityCardAttachment;
String identityNumber; String? identityNumber;
dynamic insuranceCardAttachment; dynamic insuranceCardAttachment;
bool isInsuredPatient; bool? isInsuredPatient;
List<dynamic> medicalReportAttachment; List<dynamic>? medicalReportAttachment;
String otherRelationship; String? otherRelationship;
String patientContactNo; String? patientContactNo;
int patientId; int? patientId;
String patientName; String? patientName;
int preferredBranchCode; int? preferredBranchCode;
String preferredBranchName; String? preferredBranchName;
String referralDate; String? referralDate;
int referralNumber; int? referralNumber;
RelationshipType relationshipType; RelationshipType? relationshipType;
String requesterContactNo; String? requesterContactNo;
String requesterName; String? requesterName;
String status; String? status;
String statusAr; String? statusAr;
SearchEReferralResponseModel( SearchEReferralResponseModel(
{this.acceptedBrachCode, {this.acceptedBrachCode,
@ -63,9 +63,7 @@ class SearchEReferralResponseModel {
preferredBranchName = json['PreferredBranchName']; preferredBranchName = json['PreferredBranchName'];
referralDate = json['ReferralDate']; referralDate = json['ReferralDate'];
referralNumber = json['ReferralNumber']; referralNumber = json['ReferralNumber'];
relationshipType = json['RelationshipType'] != null relationshipType = json['RelationshipType'] != null ? new RelationshipType.fromJson(json['RelationshipType']) : null;
? new RelationshipType.fromJson(json['RelationshipType'])
: null;
requesterContactNo = json['RequesterContactNo']; requesterContactNo = json['RequesterContactNo'];
requesterName = json['RequesterName']; requesterName = json['RequesterName'];
status = json['Status']; status = json['Status'];
@ -83,8 +81,7 @@ class SearchEReferralResponseModel {
data['InsuranceCardAttachment'] = this.insuranceCardAttachment; data['InsuranceCardAttachment'] = this.insuranceCardAttachment;
data['IsInsuredPatient'] = this.isInsuredPatient; data['IsInsuredPatient'] = this.isInsuredPatient;
if (this.medicalReportAttachment != null) { if (this.medicalReportAttachment != null) {
data['MedicalReportAttachment'] = data['MedicalReportAttachment'] = this.medicalReportAttachment!.map((v) => v.toJson()).toList();
this.medicalReportAttachment.map((v) => v.toJson()).toList();
} }
data['OtherRelationship'] = this.otherRelationship; data['OtherRelationship'] = this.otherRelationship;
data['PatientContactNo'] = this.patientContactNo; data['PatientContactNo'] = this.patientContactNo;
@ -95,7 +92,7 @@ class SearchEReferralResponseModel {
data['ReferralDate'] = this.referralDate; data['ReferralDate'] = this.referralDate;
data['ReferralNumber'] = this.referralNumber; data['ReferralNumber'] = this.referralNumber;
if (this.relationshipType != dynamic) { if (this.relationshipType != dynamic) {
data['RelationshipType'] = this.relationshipType.toJson(); data['RelationshipType'] = this.relationshipType!.toJson();
} }
data['RequesterContactNo'] = this.requesterContactNo; data['RequesterContactNo'] = this.requesterContactNo;
data['RequesterName'] = this.requesterName; data['RequesterName'] = this.requesterName;
@ -106,10 +103,10 @@ class SearchEReferralResponseModel {
} }
class RelationshipType { class RelationshipType {
int iD; int? iD;
String text; String? text;
String textAr; String? textAr;
String textEn; String? textEn;
RelationshipType({this.iD, this.text, this.textAr, this.textEn}); RelationshipType({this.iD, this.text, this.textAr, this.textEn});

@ -1,31 +1,30 @@
class SendActivationCodeForEReferralRequestModel { class SendActivationCodeForEReferralRequestModel {
int patientMobileNumber; int? patientMobileNumber;
String zipCode; String? zipCode;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
Null sessionID; Null sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
SendActivationCodeForEReferralRequestModel( SendActivationCodeForEReferralRequestModel(
{this.patientMobileNumber, {this.patientMobileNumber,
this.zipCode, this.zipCode,
this.versionID, this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID}); this.deviceTypeID});
SendActivationCodeForEReferralRequestModel.fromJson( SendActivationCodeForEReferralRequestModel.fromJson(Map<String, dynamic> json) {
Map<String, dynamic> json) {
patientMobileNumber = json['PatientMobileNumber']; patientMobileNumber = json['PatientMobileNumber'];
zipCode = json['ZipCode']; zipCode = json['ZipCode'];
versionID = json['VersionID']; versionID = json['VersionID'];

@ -1,20 +1,20 @@
class InsertUserActivityRequestModel { class InsertUserActivityRequestModel {
String identificationNo; String? identificationNo;
String mobileNumber; String? mobileNumber;
int quantityIntake; int? quantityIntake;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
InsertUserActivityRequestModel( InsertUserActivityRequestModel(
{this.identificationNo, {this.identificationNo,

@ -1,27 +1,27 @@
class UserDetailModel { class UserDetailModel {
int userID; int? userID;
int patientID; int? patientID;
int patientType; int? patientType;
bool patientOutSA; bool? patientOutSA;
String firstName; String? firstName;
String middleName; String? middleName;
String lastName; String? lastName;
String firstNameN; String? firstNameN;
String middleNameN; String? middleNameN;
String lastNameN; String? lastNameN;
String identificationNo; String? identificationNo;
String mobile; String? mobile;
String emailID; String? emailID;
String zipCode; String? zipCode;
String dOB; String? dOB;
String gender; String? gender;
int activityID; int? activityID;
String createdDate; String? createdDate;
double height; double? height;
double weight; double? weight;
bool isHeightInCM; bool? isHeightInCM;
bool isWeightInKG; bool? isWeightInKG;
bool isNotificationON; bool? isNotificationON;
UserDetailModel( UserDetailModel(
{this.userID, {this.userID,
@ -49,7 +49,7 @@ class UserDetailModel {
this.isNotificationON}); this.isNotificationON});
UserDetailModel.fromJson(Map<String, dynamic> json) { UserDetailModel.fromJson(Map<String, dynamic> json) {
if(json==null) return; if (json == null) return;
userID = json['UserID']; userID = json['UserID'];
patientID = json['PatientID']; patientID = json['PatientID'];
patientType = json['PatientType']; patientType = json['PatientType'];

@ -1,32 +1,32 @@
class UserDetailRequestModel { class UserDetailRequestModel {
String activityID; String? activityID;
int channel; int? channel;
int deviceTypeID; int? deviceTypeID;
String dOB; String? dOB;
String email; String? email;
String firstName; String? firstName;
String gender; String? gender;
String generalid; String? generalid;
double height; double? height;
String identificationNo; String? identificationNo;
String iPAdress; String? iPAdress;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
bool isHeightInCM; bool? isHeightInCM;
bool isNotificationOn; bool? isNotificationOn;
bool isWeightInKG; bool? isWeightInKG;
int languageID; int? languageID;
String lastName; String? lastName;
String middleName; String? middleName;
String mobileNumber; String? mobileNumber;
int patientID; int? patientID;
int patientOutSA; int? patientOutSA;
int patientType; int? patientType;
int patientTypeID; int? patientTypeID;
String sessionID; String? sessionID;
String tokenID; String? tokenID;
double versionID; double? versionID;
double weight; double? weight;
String zipCode; String? zipCode;
UserDetailRequestModel( UserDetailRequestModel(
{this.activityID, {this.activityID,

@ -1,7 +1,7 @@
class UserProgressForMonthDataModel { class UserProgressForMonthDataModel {
int monthNumber; int? monthNumber;
String monthName; String? monthName;
int percentageConsumed; int? percentageConsumed;
UserProgressForMonthDataModel( UserProgressForMonthDataModel(
{this.monthNumber, this.monthName, this.percentageConsumed}); {this.monthNumber, this.monthName, this.percentageConsumed});

@ -1,8 +1,8 @@
class UserProgressForWeekDataModel { class UserProgressForWeekDataModel {
int dayNumber; int? dayNumber;
dynamic dayDate; dynamic dayDate;
String dayName; String? dayName;
int percentageConsumed; int? percentageConsumed;
UserProgressForWeekDataModel( UserProgressForWeekDataModel(
{this.dayNumber, this.dayDate, this.dayName, this.percentageConsumed}); {this.dayNumber, this.dayDate, this.dayName, this.percentageConsumed});

@ -1,20 +1,20 @@
class UserProgressRequestModel { class UserProgressRequestModel {
int progress; int? progress;
String mobileNumber; String? mobileNumber;
String identificationNo; String? identificationNo;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
UserProgressRequestModel( UserProgressRequestModel(
{this.progress, {this.progress,

@ -1,18 +1,18 @@
class ClinicCategory { class ClinicCategory {
int clinicID; int? clinicID;
int categoryID; int? categoryID;
String categoryName; String? categoryName;
String categoryNameN; String? categoryNameN;
String icon; String? icon;
String bodyImageEN; String? bodyImageEN;
String fullImageEN; String? fullImageEN;
String bodyImageAR; String? bodyImageAR;
String fullmageAR; String? fullmageAR;
bool isActive; bool? isActive;
bool isCategoryGroup; bool? isCategoryGroup;
Null sortOrderAR; Null sortOrderAR;
Null sortOrderEN; Null sortOrderEN;
String clinicName; String? clinicName;
ClinicCategory( ClinicCategory(
{this.clinicID, {this.clinicID,

@ -1,11 +1,11 @@
class DiseasesByClinic { class DiseasesByClinic {
int diseasesID; int? diseasesID;
String diseasesEN; String? diseasesEN;
String diseasesAR; String? diseasesAR;
int diseasesCategoryID; int? diseasesCategoryID;
Null diseasesCategoryEN; Null diseasesCategoryEN;
Null diseasesCategoryAR; Null diseasesCategoryAR;
String diseases; String? diseases;
Null diseasesCategory; Null diseasesCategory;
DiseasesByClinic( DiseasesByClinic(

@ -1,17 +1,17 @@
class HHCGetAllServicesRequestModel { class HHCGetAllServicesRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
HHCGetAllServicesRequestModel( HHCGetAllServicesRequestModel(
{this.versionID, {this.versionID,

@ -1,15 +1,15 @@
class HHCGetAllServicesResponseModel { class HHCGetAllServicesResponseModel {
int iD; int? iD;
String serviceID; String? serviceID;
int orderServiceID; int? orderServiceID;
String text; String? text;
String textN; String? textN;
dynamic price; dynamic price;
dynamic priceVAT; dynamic priceVAT;
dynamic priceTotal; dynamic priceTotal;
bool isEnabled; bool? isEnabled;
int orderId; int? orderId;
int quantity; int? quantity;
HHCGetAllServicesResponseModel( HHCGetAllServicesResponseModel(
{this.iD, {this.iD,

@ -1,11 +1,9 @@
class PatientERHHCInsertServicesList { class PatientERHHCInsertServicesList {
int recordID; int? recordID;
int serviceID; int? serviceID;
String serviceName; String? serviceName;
PatientERHHCInsertServicesList( PatientERHHCInsertServicesList({this.recordID, this.serviceID, this.serviceName});
{this.recordID, this.serviceID, this.serviceName});
PatientERHHCInsertServicesList.fromJson(Map<String, dynamic> json) { PatientERHHCInsertServicesList.fromJson(Map<String, dynamic> json) {
recordID = json['RecordID']; recordID = json['RecordID'];

@ -1,32 +1,32 @@
class GetHHCAllPresOrdersRequestModel { class GetHHCAllPresOrdersRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
GetHHCAllPresOrdersRequestModel( GetHHCAllPresOrdersRequestModel(
{this.versionID, {this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID, this.deviceTypeID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.patientTypeID, this.patientTypeID,
this.patientType}); this.patientType});
GetHHCAllPresOrdersRequestModel.fromJson(Map<String, dynamic> json) { GetHHCAllPresOrdersRequestModel.fromJson(Map<String, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];

@ -1,34 +1,34 @@
class GetHHCAllPresOrdersResponseModel { class GetHHCAllPresOrdersResponseModel {
int iD; int? iD;
String patientID; String? patientID;
bool patientOutSA; bool? patientOutSA;
bool isOutPatient; bool? isOutPatient;
int projectID; int? projectID;
int nearestProjectID; int? nearestProjectID;
double longitude; double? longitude;
double latitude; double? latitude;
String appointmentNo; String? appointmentNo;
String dischargeID; String? dischargeID;
int lineItemNo; int? lineItemNo;
int status; int? status;
String description; String? description;
String descriptionN; String? descriptionN;
String createdOn; String? createdOn;
int serviceID; int? serviceID;
int createdBy; int? createdBy;
String editedOn; String? editedOn;
int editedBy; int? editedBy;
int channel; int? channel;
dynamic clientRequestID; dynamic clientRequestID;
bool returnedToQueue; bool? returnedToQueue;
dynamic pickupDateTime; dynamic pickupDateTime;
dynamic pickupLocationName; dynamic pickupLocationName;
dynamic dropoffLocationName; dynamic dropoffLocationName;
int realRRTHaveTransactions; int? realRRTHaveTransactions;
String nearestProjectDescription; String? nearestProjectDescription;
String nearestProjectDescriptionN; String? nearestProjectDescriptionN;
String projectDescription; String? projectDescription;
String projectDescriptionN; String? projectDescriptionN;
GetHHCAllPresOrdersResponseModel( GetHHCAllPresOrdersResponseModel(
{this.iD, {this.iD,

@ -1,18 +1,18 @@
class GetOrderDetailByOrderIDRequestModel { class GetOrderDetailByOrderIDRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int presOrderID; int? presOrderID;
GetOrderDetailByOrderIDRequestModel( GetOrderDetailByOrderIDRequestModel(
{this.versionID, {this.versionID,

@ -1,14 +1,14 @@
class GetOrderDetailByOrderIDResponseModel { class GetOrderDetailByOrderIDResponseModel {
int iD; int? iD;
int presOrderID; int? presOrderID;
int hHCServiceID; int? hHCServiceID;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
int editedBy; int? editedBy;
String editedOn; String? editedOn;
bool isActive; bool? isActive;
String description; String? description;
String descriptionN; String? descriptionN;
GetOrderDetailByOrderIDResponseModel( GetOrderDetailByOrderIDResponseModel(
{this.iD, {this.iD,

@ -1,45 +1,44 @@
import 'PatientERHHCInsertServicesList.dart'; import 'PatientERHHCInsertServicesList.dart';
class PatientERInsertPresOrderRequestModel { class PatientERInsertPresOrderRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
double latitude; double? latitude;
double longitude; double? longitude;
int createdBy; int? createdBy;
int orderServiceID; int? orderServiceID;
List<PatientERHHCInsertServicesList> patientERHHCInsertServicesList = List(); List<PatientERHHCInsertServicesList>? patientERHHCInsertServicesList = <PatientERHHCInsertServicesList>[];
PatientERInsertPresOrderRequestModel( PatientERInsertPresOrderRequestModel(
{this.versionID, {this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID, this.deviceTypeID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.patientTypeID, this.patientTypeID,
this.patientType, this.patientType,
this.latitude, this.latitude,
this.longitude, this.longitude,
this.createdBy, this.createdBy,
this.orderServiceID, this.orderServiceID,
this.patientERHHCInsertServicesList this.patientERHHCInsertServicesList});
});
PatientERInsertPresOrderRequestModel.fromJson(Map<String, dynamic> json) { PatientERInsertPresOrderRequestModel.fromJson(Map<String, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];
@ -60,11 +59,9 @@ class PatientERInsertPresOrderRequestModel {
createdBy = json['CreatedBy']; createdBy = json['CreatedBy'];
orderServiceID = json['OrderServiceID']; orderServiceID = json['OrderServiceID'];
if (json['PatientER_HHC_InsertServicesList'] != null) { if (json['PatientER_HHC_InsertServicesList'] != null) {
patientERHHCInsertServicesList = patientERHHCInsertServicesList = <PatientERHHCInsertServicesList>[];
new List<PatientERHHCInsertServicesList>();
json['PatientER_HHC_InsertServicesList'].forEach((v) { json['PatientER_HHC_InsertServicesList'].forEach((v) {
patientERHHCInsertServicesList patientERHHCInsertServicesList!.add(new PatientERHHCInsertServicesList.fromJson(v));
.add(new PatientERHHCInsertServicesList.fromJson(v));
}); });
} }
} }
@ -90,8 +87,7 @@ class PatientERInsertPresOrderRequestModel {
// data['CreatedBy'] = this.createdBy; // data['CreatedBy'] = this.createdBy;
data['OrderServiceID'] = this.orderServiceID; data['OrderServiceID'] = this.orderServiceID;
if (this.patientERHHCInsertServicesList != null) { if (this.patientERHHCInsertServicesList != null) {
data['procedures'] = data['procedures'] = this.patientERHHCInsertServicesList!.map((v) => v.toJson()).toList();
this.patientERHHCInsertServicesList.map((v) => v.toJson()).toList();
} }
return data; return data;
} }

@ -1,21 +1,21 @@
class UpdatePresOrderRequestModel { class UpdatePresOrderRequestModel {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int presOrderID; int? presOrderID;
int presOrderStatus; int? presOrderStatus;
int editedBy; int? editedBy;
String rejectionReason; String? rejectionReason;
UpdatePresOrderRequestModel( UpdatePresOrderRequestModel(
{this.versionID, {this.versionID,

@ -1,8 +1,8 @@
class Allergy { class Allergy {
int patientID; int? patientID;
int allergyDiseaseType; int? allergyDiseaseType;
int allergyDiseaseID; int? allergyDiseaseID;
String description; String? description;
dynamic descriptionN; dynamic descriptionN;
dynamic remarks; dynamic remarks;
dynamic avgDoctorRatingList; dynamic avgDoctorRatingList;

@ -2,73 +2,75 @@ import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class ActivePrescriptionReport { class ActivePrescriptionReport {
dynamic address; dynamic address;
int appointmentNo; int? appointmentNo;
dynamic clinic; dynamic clinic;
dynamic companyName; dynamic companyName;
int days; int? days;
dynamic doctorName; dynamic doctorName;
int doseDailyQuantity; int? doseDailyQuantity;
String frequency; String? frequency;
int frequencyNumber; int? frequencyNumber;
// List<int> image; // List<int> image;
// String imageExtension; // String imageExtension;
// dynamic imageSRCUrl; // dynamic imageSRCUrl;
String imageString; String? imageString;
// dynamic imageThumbUrl; // dynamic imageThumbUrl;
dynamic isCovered; dynamic isCovered;
String itemDescription; String? itemDescription;
int itemID; int? itemID;
DateTime orderDate; DateTime? orderDate;
int patientID; int? patientID;
dynamic patientName; dynamic patientName;
dynamic phoneOffice1; dynamic phoneOffice1;
dynamic prescriptionQR; dynamic prescriptionQR;
int prescriptionTimes; int? prescriptionTimes;
dynamic productImage; dynamic productImage;
String productImageBase64; String? productImageBase64;
String productImageString; String? productImageString;
int projectID; int? projectID;
dynamic projectName; dynamic projectName;
dynamic remarks; dynamic remarks;
String route; String? route;
String sKU; String? sKU;
int scaleOffset; int? scaleOffset;
DateTime startDate; DateTime? startDate;
ActivePrescriptionReport( ActivePrescriptionReport(
{this.address, {this.address,
this.appointmentNo, this.appointmentNo,
this.clinic, this.clinic,
this.companyName, this.companyName,
this.days, this.days,
this.doctorName, this.doctorName,
this.doseDailyQuantity, this.doseDailyQuantity,
this.frequency, this.frequency,
this.frequencyNumber, this.frequencyNumber,
// this.image, // this.image,
// this.imageExtension, // this.imageExtension,
// this.imageSRCUrl, // this.imageSRCUrl,
this.imageString, this.imageString,
// this.imageThumbUrl, // this.imageThumbUrl,
this.isCovered, this.isCovered,
this.itemDescription, this.itemDescription,
this.itemID, this.itemID,
this.orderDate, this.orderDate,
this.patientID, this.patientID,
this.patientName, this.patientName,
this.phoneOffice1, this.phoneOffice1,
this.prescriptionQR, this.prescriptionQR,
this.prescriptionTimes, this.prescriptionTimes,
this.productImage, this.productImage,
this.productImageBase64, this.productImageBase64,
this.productImageString, this.productImageString,
this.projectID, this.projectID,
this.projectName, this.projectName,
this.remarks, this.remarks,
this.route, this.route,
this.sKU, this.sKU,
this.scaleOffset, this.scaleOffset,
this.startDate}); this.startDate});
ActivePrescriptionReport.fromJson(Map<String, dynamic> json) { ActivePrescriptionReport.fromJson(Map<String, dynamic> json) {
address = json['Address']; address = json['Address'];

@ -1,9 +1,9 @@
class AskDoctorReqTypes { class AskDoctorReqTypes {
dynamic setupID; dynamic setupID;
int parameterGroup; int? parameterGroup;
int parameterType; int? parameterType;
int parameterCode; int? parameterCode;
String description; String? description;
dynamic descriptionN; dynamic descriptionN;
dynamic alias; dynamic alias;
dynamic aliasN; dynamic aliasN;
@ -12,10 +12,10 @@ class AskDoctorReqTypes {
dynamic isColorCodingRequired; dynamic isColorCodingRequired;
dynamic backColor; dynamic backColor;
dynamic foreColor; dynamic foreColor;
bool isBuiltIn; bool? isBuiltIn;
bool isActive; bool? isActive;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
dynamic editedBy; dynamic editedBy;
dynamic editedOn; dynamic editedOn;
dynamic rowVer; dynamic rowVer;

@ -1,19 +1,19 @@
class DoctorResponse { class DoctorResponse {
int projectID; int? projectID;
int transactionNo; int? transactionNo;
int patientID; int? patientID;
int doctorID; int? doctorID;
int requestType; int? requestType;
String requestTypeDescription; String? requestTypeDescription;
dynamic requestTypeDescriptionN; dynamic requestTypeDescriptionN;
int status; int? status;
String remarks; String? remarks;
String createdOn; String? createdOn;
dynamic readStatus; dynamic readStatus;
String doctorName; String? doctorName;
bool isDoctorRespond; bool? isDoctorRespond;
bool isPatientRead; bool? isPatientRead;
List<dynamic> transactions; List<dynamic>? transactions;
DoctorResponse( DoctorResponse(
{this.projectID, {this.projectID,
@ -69,7 +69,7 @@ class DoctorResponse {
data['IsDoctorRespond'] = this.isDoctorRespond; data['IsDoctorRespond'] = this.isDoctorRespond;
data['IsPatientRead'] = this.isPatientRead; data['IsPatientRead'] = this.isPatientRead;
if (this.transactions != null) { if (this.transactions != null) {
data['Transactions'] = this.transactions.map((v) => v.toJson()).toList(); data['Transactions'] = this.transactions!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }

@ -1,21 +1,21 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class List_BloodGroupDetailsModel { class List_BloodGroupDetailsModel {
int iD; int? iD;
int patientID; int? patientID;
int patientType; int? patientType;
bool patientOutSA; bool? patientOutSA;
int zipCode; int? zipCode;
String cellNumber; String? cellNumber;
String cityCode; String? cityCode;
String city; String? city;
int gender; int? gender;
String bloodGroup; String? bloodGroup;
String nationalID; String? nationalID;
bool isActive; bool? isActive;
int createdBy; int? createdBy;
DateTime createdOn; DateTime? createdOn;
int editedBy; int? editedBy;
DateTime editedOn; DateTime? editedOn;
List_BloodGroupDetailsModel( List_BloodGroupDetailsModel(
{this.iD, {this.iD,

@ -1,7 +1,7 @@
class CitiesModel { class CitiesModel {
int iD; int? iD;
String description; String? description;
String descriptionN; String? descriptionN;
CitiesModel({this.iD, this.description, this.descriptionN}); CitiesModel({this.iD, this.description, this.descriptionN});

@ -1,13 +1,13 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class List_BabyInformationModel { class List_BabyInformationModel {
int alertBy; int? alertBy;
int babyID; int? babyID;
String babyName; String? babyName;
DateTime dOB; DateTime? dOB;
int gender; int? gender;
String genderDescription; String? genderDescription;
int patientID; int? patientID;
int userID; int? userID;
List_BabyInformationModel( List_BabyInformationModel(
{this.alertBy, {this.alertBy,

@ -1,50 +1,50 @@
class CreateNewBaby { class CreateNewBaby {
String babyName; String? babyName;
String gender; String? gender;
String strDOB; String? strDOB;
int editedBy; int? editedBy;
int createdBy; int? createdBy;
bool tempValue; bool? tempValue;
int userID; int? userID;
bool isLogin; bool? isLogin;
int alertBy; int? alertBy;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
CreateNewBaby( CreateNewBaby(
{this.babyName, {this.babyName,
this.gender, this.gender,
this.strDOB, this.strDOB,
this.editedBy, this.editedBy,
this.createdBy, this.createdBy,
this.tempValue, this.tempValue,
this.userID, this.userID,
this.isLogin, this.isLogin,
this.alertBy, this.alertBy,
this.versionID, this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID, this.deviceTypeID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.patientTypeID, this.patientTypeID,
this.patientType}); this.patientType});
CreateNewBaby.fromJson(Map<String, dynamic> json) { CreateNewBaby.fromJson(Map<String, dynamic> json) {
babyName = json['BabyName']; babyName = json['BabyName'];

@ -1,32 +1,32 @@
class CreateNewUser_New { class CreateNewUser_New {
Null date; Null date;
int languageID; int? languageID;
int serviceName; int? serviceName;
Null time; Null time;
Null androidLink; Null androidLink;
Null authenticationTokenID; Null authenticationTokenID;
Null data; Null data;
bool dataw; bool? dataw;
int dietType; int? dietType;
Null errorCode; Null errorCode;
Null errorEndUserMessage; Null errorEndUserMessage;
Null errorEndUserMessageN; Null errorEndUserMessageN;
Null errorMessage; Null errorMessage;
int errorType; int? errorType;
int foodCategory; int? foodCategory;
Null iOSLink; Null iOSLink;
bool isAuthenticated; bool? isAuthenticated;
int mealOrderStatus; int? mealOrderStatus;
int mealType; int? mealType;
int messageStatus; int? messageStatus;
int numberOfResultRecords; int? numberOfResultRecords;
Null patientBlodType; Null patientBlodType;
Null successMsg; Null successMsg;
Null successMsgN; Null successMsgN;
Null htmlResult; Null htmlResult;
bool isHMGPatient; bool? isHMGPatient;
bool isRegister; bool? isRegister;
bool isSendSMS; bool? isSendSMS;
Null listBabyInformationModel; Null listBabyInformationModel;
Null listBabyNeedReminderModel; Null listBabyNeedReminderModel;
Null listCreateVaccinationTableModel; Null listCreateVaccinationTableModel;
@ -35,48 +35,48 @@ class CreateNewUser_New {
Null listUserInformationModelNew; Null listUserInformationModelNew;
Null listVaccinationTableModel; Null listVaccinationTableModel;
Null tokinID; Null tokinID;
int userID; int? userID;
Null verificationCode; Null verificationCode;
CreateNewUser_New( CreateNewUser_New(
{this.date, {this.date,
this.languageID, this.languageID,
this.serviceName, this.serviceName,
this.time, this.time,
this.androidLink, this.androidLink,
this.authenticationTokenID, this.authenticationTokenID,
this.data, this.data,
this.dataw, this.dataw,
this.dietType, this.dietType,
this.errorCode, this.errorCode,
this.errorEndUserMessage, this.errorEndUserMessage,
this.errorEndUserMessageN, this.errorEndUserMessageN,
this.errorMessage, this.errorMessage,
this.errorType, this.errorType,
this.foodCategory, this.foodCategory,
this.iOSLink, this.iOSLink,
this.isAuthenticated, this.isAuthenticated,
this.mealOrderStatus, this.mealOrderStatus,
this.mealType, this.mealType,
this.messageStatus, this.messageStatus,
this.numberOfResultRecords, this.numberOfResultRecords,
this.patientBlodType, this.patientBlodType,
this.successMsg, this.successMsg,
this.successMsgN, this.successMsgN,
this.htmlResult, this.htmlResult,
this.isHMGPatient, this.isHMGPatient,
this.isRegister, this.isRegister,
this.isSendSMS, this.isSendSMS,
this.listBabyInformationModel, this.listBabyInformationModel,
this.listBabyNeedReminderModel, this.listBabyNeedReminderModel,
this.listCreateVaccinationTableModel, this.listCreateVaccinationTableModel,
this.listHisPatientModel, this.listHisPatientModel,
this.listUserInformationModel, this.listUserInformationModel,
this.listUserInformationModelNew, this.listUserInformationModelNew,
this.listVaccinationTableModel, this.listVaccinationTableModel,
this.tokinID, this.tokinID,
this.userID, this.userID,
this.verificationCode}); this.verificationCode});
CreateNewUser_New.fromJson(Map<String, dynamic> json) { CreateNewUser_New.fromJson(Map<String, dynamic> json) {
date = json['Date']; date = json['Date'];
@ -151,8 +151,7 @@ class CreateNewUser_New {
data['IsSendSMS'] = this.isSendSMS; data['IsSendSMS'] = this.isSendSMS;
data['List_BabyInformationModel'] = this.listBabyInformationModel; data['List_BabyInformationModel'] = this.listBabyInformationModel;
data['List_BabyNeedReminderModel'] = this.listBabyNeedReminderModel; data['List_BabyNeedReminderModel'] = this.listBabyNeedReminderModel;
data['List_CreateVaccinationTableModel'] = data['List_CreateVaccinationTableModel'] = this.listCreateVaccinationTableModel;
this.listCreateVaccinationTableModel;
data['List_His_PatientModel'] = this.listHisPatientModel; data['List_His_PatientModel'] = this.listHisPatientModel;
data['List_UserInformationModel'] = this.listUserInformationModel; data['List_UserInformationModel'] = this.listUserInformationModel;
data['List_UserInformationModel_New'] = this.listUserInformationModelNew; data['List_UserInformationModel_New'] = this.listUserInformationModelNew;

@ -1,8 +1,8 @@
class CreateVaccinationTable { class CreateVaccinationTable {
String givenAt; String? givenAt;
String status; String? status;
String vaccinesDescription; String? vaccinesDescription;
String visit; String? visit;
CreateVaccinationTable( CreateVaccinationTable(
{this.givenAt, this.status, this.vaccinesDescription, this.visit}); {this.givenAt, this.status, this.vaccinesDescription, this.visit});

@ -1,20 +1,20 @@
class DeleteBaby { class DeleteBaby {
bool isLogin; bool? isLogin;
int babyID; int? babyID;
int editedBy; int? editedBy;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
DeleteBaby( DeleteBaby(
{this.isLogin, {this.isLogin,
@ -34,7 +34,7 @@ class DeleteBaby {
this.patientTypeID, this.patientTypeID,
this.patientType}); this.patientType});
DeleteBaby.fromJson(Map<String, dynamic> json) { DeleteBaby.fromJson(Map<String?, dynamic> json) {
isLogin = json['IsLogin']; isLogin = json['IsLogin'];
babyID = json['BabyID']; babyID = json['BabyID'];
editedBy = json['EditedBy']; editedBy = json['EditedBy'];
@ -53,8 +53,8 @@ class DeleteBaby {
patientType = json['PatientType']; patientType = json['PatientType'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['IsLogin'] = this.isLogin; data['IsLogin'] = this.isLogin;
data['BabyID'] = this.babyID; data['BabyID'] = this.babyID;
data['EditedBy'] = this.editedBy; data['EditedBy'] = this.editedBy;

@ -1,6 +1,6 @@
class GET_VACCINATIONS_ITEMSMODEL { class GET_VACCINATIONS_ITEMSMODEL {
String dESCRIPTION; String? dESCRIPTION;
String iTEMCODE; String? iTEMCODE;
GET_VACCINATIONS_ITEMSMODEL({this.dESCRIPTION, this.iTEMCODE}); GET_VACCINATIONS_ITEMSMODEL({this.dESCRIPTION, this.iTEMCODE});

@ -1,24 +1,15 @@
class List_UserInformationModel { class List_UserInformationModel {
int userID; int? userID;
String mobileNumber; String? mobileNumber;
String nationalID; String? nationalID;
String emailAddress; String? emailAddress;
int patientID; int? patientID;
int patientType; int? patientType;
bool patientOutSA; bool? patientOutSA;
int createdBy; int? createdBy;
int editedBy; int? editedBy;
List_UserInformationModel( List_UserInformationModel({this.userID, this.mobileNumber, this.nationalID, this.emailAddress, this.patientID, this.patientType, this.patientOutSA, this.createdBy, this.editedBy});
{this.userID,
this.mobileNumber,
this.nationalID,
this.emailAddress,
this.patientID,
this.patientType,
this.patientOutSA,
this.createdBy,
this.editedBy});
List_UserInformationModel.fromJson(Map<String, dynamic> json) { List_UserInformationModel.fromJson(Map<String, dynamic> json) {
userID = json['UserID']; userID = json['UserID'];

@ -1,20 +1,20 @@
class GetHMGLocationsModel { class GetHMGLocationsModel {
dynamic cityID; dynamic cityID;
String cityName; String? cityName;
dynamic cityNameN; dynamic cityNameN;
dynamic distanceInKilometers; dynamic distanceInKilometers;
bool isActive; bool? isActive;
String latitude; String? latitude;
int locationID; int? locationID;
String locationName; String? locationName;
dynamic locationNameN; dynamic locationNameN;
dynamic locationType; dynamic locationType;
String longitude; String? longitude;
int pharmacyLocationID; int? pharmacyLocationID;
String phoneNumber; String? phoneNumber;
int projectID; int? projectID;
String projectImageURL; String? projectImageURL;
int setupID; int? setupID;
dynamic sortOrder; dynamic sortOrder;
GetHMGLocationsModel( GetHMGLocationsModel(

@ -1,30 +1,20 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class GetPatientICProjectsModel { class GetPatientICProjectsModel {
int id; int? id;
String projectName; String? projectName;
String projectNameN; String? projectNameN;
String value; String? value;
dynamic languageId; dynamic languageId;
DateTime createdOn; DateTime? createdOn;
String createdBy; String? createdBy;
dynamic editedOn; dynamic editedOn;
dynamic editedBy; dynamic editedBy;
bool isActive; bool? isActive;
dynamic distanceInKilometers; dynamic distanceInKilometers;
GetPatientICProjectsModel( GetPatientICProjectsModel(
{this.id, {this.id, this.projectName, this.projectNameN, this.value, this.languageId, this.createdOn, this.createdBy, this.editedOn, this.editedBy, this.distanceInKilometers, this.isActive});
this.projectName,
this.projectNameN,
this.value,
this.languageId,
this.createdOn,
this.createdBy,
this.editedOn,
this.editedBy,
this.distanceInKilometers,
this.isActive});
GetPatientICProjectsModel.fromJson(Map<String, dynamic> json) { GetPatientICProjectsModel.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];

@ -1,88 +1,88 @@
class DoctorProfile { class DoctorProfile {
int doctorID; int? doctorID;
String doctorName; String? doctorName;
Null doctorNameN; Null doctorNameN;
int clinicID; int? clinicID;
String clinicDescription; String? clinicDescription;
Null clinicDescriptionN; Null clinicDescriptionN;
Null licenseExpiry; Null licenseExpiry;
int employmentType; int? employmentType;
Null setupID; Null setupID;
int projectID; int? projectID;
String projectName; String? projectName;
String nationalityID; String? nationalityID;
String nationalityName; String? nationalityName;
Null nationalityNameN; Null nationalityNameN;
int gender; int? gender;
String genderDescription; String? genderDescription;
Null genderDescriptionN; Null genderDescriptionN;
Null doctorTitle; Null doctorTitle;
Null projectNameN; Null projectNameN;
bool isAllowWaitList; bool? isAllowWaitList;
String titleDescription; String? titleDescription;
Null titleDescriptionN; Null titleDescriptionN;
Null isRegistered; Null isRegistered;
Null isDoctorDummy; Null isDoctorDummy;
bool isActive; bool? isActive;
Null isDoctorAppointmentDisplayed; Null isDoctorAppointmentDisplayed;
bool doctorClinicActive; bool? doctorClinicActive;
Null isbookingAllowed; Null isbookingAllowed;
String doctorCases; String? doctorCases;
Null doctorPicture; Null doctorPicture;
String doctorProfileInfo; String? doctorProfileInfo;
List<String> specialty; List<String>? specialty;
int actualDoctorRate; int? actualDoctorRate;
String doctorImageURL; String? doctorImageURL;
int doctorRate; int? doctorRate;
String doctorTitleForProfile; String? doctorTitleForProfile;
bool isAppointmentAllowed; bool? isAppointmentAllowed;
String nationalityFlagURL; String? nationalityFlagURL;
int noOfPatientsRate; int? noOfPatientsRate;
String qR; String? qR;
int serviceID; int? serviceID;
DoctorProfile( DoctorProfile(
{this.doctorID, {this.doctorID,
this.doctorName, this.doctorName,
this.doctorNameN, this.doctorNameN,
this.clinicID, this.clinicID,
this.clinicDescription, this.clinicDescription,
this.clinicDescriptionN, this.clinicDescriptionN,
this.licenseExpiry, this.licenseExpiry,
this.employmentType, this.employmentType,
this.setupID, this.setupID,
this.projectID, this.projectID,
this.projectName, this.projectName,
this.nationalityID, this.nationalityID,
this.nationalityName, this.nationalityName,
this.nationalityNameN, this.nationalityNameN,
this.gender, this.gender,
this.genderDescription, this.genderDescription,
this.genderDescriptionN, this.genderDescriptionN,
this.doctorTitle, this.doctorTitle,
this.projectNameN, this.projectNameN,
this.isAllowWaitList, this.isAllowWaitList,
this.titleDescription, this.titleDescription,
this.titleDescriptionN, this.titleDescriptionN,
this.isRegistered, this.isRegistered,
this.isDoctorDummy, this.isDoctorDummy,
this.isActive, this.isActive,
this.isDoctorAppointmentDisplayed, this.isDoctorAppointmentDisplayed,
this.doctorClinicActive, this.doctorClinicActive,
this.isbookingAllowed, this.isbookingAllowed,
this.doctorCases, this.doctorCases,
this.doctorPicture, this.doctorPicture,
this.doctorProfileInfo, this.doctorProfileInfo,
this.specialty, this.specialty,
this.actualDoctorRate, this.actualDoctorRate,
this.doctorImageURL, this.doctorImageURL,
this.doctorRate, this.doctorRate,
this.doctorTitleForProfile, this.doctorTitleForProfile,
this.isAppointmentAllowed, this.isAppointmentAllowed,
this.nationalityFlagURL, this.nationalityFlagURL,
this.noOfPatientsRate, this.noOfPatientsRate,
this.qR, this.qR,
this.serviceID}); this.serviceID});
DoctorProfile.fromJson(Map<String, dynamic> json) { DoctorProfile.fromJson(Map<String, dynamic> json) {
doctorID = json['DoctorID']; doctorID = json['DoctorID'];

@ -1,9 +1,9 @@
class DoctorRating { class DoctorRating {
Null projectID; Null projectID;
Null clinicID; Null clinicID;
int doctorID; int? doctorID;
int patientNumber; int? patientNumber;
int doctorRate; int? doctorRate;
DoctorRating( DoctorRating(
{this.projectID, {this.projectID,

@ -1,158 +1,158 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class PatientDoctorAppointment { class PatientDoctorAppointment {
String setupID; String? setupID;
int projectID; int? projectID;
int appointmentNo; int? appointmentNo;
DateTime appointmentDate; DateTime? appointmentDate;
String appointmentDateN; String? appointmentDateN;
bool appointmentType; bool? appointmentType;
DateTime bookDate; DateTime? bookDate;
bool patientType; bool? patientType;
int patientID; int? patientID;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
DateTime endDate; DateTime? endDate;
String startTime; String? startTime;
String endTime; String? endTime;
bool status; bool? status;
bool visitType; bool? visitType;
String visitFor; String? visitFor;
String patientStatusType; String? patientStatusType;
String actualVisitStartTime; String? actualVisitStartTime;
String actualVisitEndTime; String? actualVisitEndTime;
bool isReminderActivated; bool? isReminderActivated;
String reminderDisplayInterval; String? reminderDisplayInterval;
String reminderDisplayIntervalUnit; String? reminderDisplayIntervalUnit;
String mainAppointmentNo; String? mainAppointmentNo;
String notes; String? notes;
int companyID; int? companyID;
String dHCCPatApptRef; String? dHCCPatApptRef;
String bookedBy; String? bookedBy;
DateTime bookedOn; DateTime? bookedOn;
String confirmedBy; String? confirmedBy;
DateTime confirmedOn; DateTime? confirmedOn;
String arrivalChangedBy; String? arrivalChangedBy;
DateTime arrivedOn; DateTime? arrivedOn;
String rescheduledBy; String? rescheduledBy;
String rescheduledOn; String? rescheduledOn;
String mRStatus; String? mRStatus;
String mRSentBy; String? mRSentBy;
String mRSentOn; String? mRSentOn;
String mRReceiptBy; String? mRReceiptBy;
String mRReceiptOn; String? mRReceiptOn;
String isDocumentScanned; String? isDocumentScanned;
String documentScanDateTime; String? documentScanDateTime;
String documentScannedUser; String? documentScannedUser;
String editedBy; String? editedBy;
String editedOn; String? editedOn;
String isRecordedByNurse; String? isRecordedByNurse;
String isCheckedByDoctor; String? isCheckedByDoctor;
String isVisitClosed; String? isVisitClosed;
String isRecurring; String? isRecurring;
String isPersonallyConfirmed; String? isPersonallyConfirmed;
String confirmationBy; String? confirmationBy;
String relationId; String? relationId;
int appointmentDays; int? appointmentDays;
int isActive; int? isActive;
int actualDoctorRate; int? actualDoctorRate;
String clinicName; String? clinicName;
String doctorCases; String? doctorCases;
String doctorImageURL; String? doctorImageURL;
String doctorInfo; String? doctorInfo;
String doctorName; String? doctorName;
int doctorRate; int? doctorRate;
String doctorTitle; String? doctorTitle;
int gender; int? gender;
String genderDescription; String? genderDescription;
bool isActiveDoctorProfile; bool? isActiveDoctorProfile;
bool isAppointmentAllowed; bool? isAppointmentAllowed;
bool isDoctorAllowVedioCall; bool? isDoctorAllowVedioCall;
String nationalityFlagURL; String? nationalityFlagURL;
String nationalityID; String? nationalityID;
String nationalityName; String? nationalityName;
int noOfPatientsRate; int? noOfPatientsRate;
String projectName; String? projectName;
String qR; String? qR;
List<String> speciality; List<String?>? speciality;
PatientDoctorAppointment( PatientDoctorAppointment(
{this.setupID, {this.setupID,
this.projectID, this.projectID,
this.appointmentNo, this.appointmentNo,
this.appointmentDate, this.appointmentDate,
this.appointmentDateN, this.appointmentDateN,
this.appointmentType, this.appointmentType,
this.bookDate, this.bookDate,
this.patientType, this.patientType,
this.patientID, this.patientID,
this.clinicID, this.clinicID,
this.doctorID, this.doctorID,
this.endDate, this.endDate,
this.startTime, this.startTime,
this.endTime, this.endTime,
this.status, this.status,
this.visitType, this.visitType,
this.visitFor, this.visitFor,
this.patientStatusType, this.patientStatusType,
this.actualVisitStartTime, this.actualVisitStartTime,
this.actualVisitEndTime, this.actualVisitEndTime,
this.isReminderActivated, this.isReminderActivated,
this.reminderDisplayInterval, this.reminderDisplayInterval,
this.reminderDisplayIntervalUnit, this.reminderDisplayIntervalUnit,
this.mainAppointmentNo, this.mainAppointmentNo,
this.notes, this.notes,
this.companyID, this.companyID,
this.dHCCPatApptRef, this.dHCCPatApptRef,
this.bookedBy, this.bookedBy,
this.bookedOn, this.bookedOn,
this.confirmedBy, this.confirmedBy,
this.confirmedOn, this.confirmedOn,
this.arrivalChangedBy, this.arrivalChangedBy,
this.arrivedOn, this.arrivedOn,
this.rescheduledBy, this.rescheduledBy,
this.rescheduledOn, this.rescheduledOn,
this.mRStatus, this.mRStatus,
this.mRSentBy, this.mRSentBy,
this.mRSentOn, this.mRSentOn,
this.mRReceiptBy, this.mRReceiptBy,
this.mRReceiptOn, this.mRReceiptOn,
this.isDocumentScanned, this.isDocumentScanned,
this.documentScanDateTime, this.documentScanDateTime,
this.documentScannedUser, this.documentScannedUser,
this.editedBy, this.editedBy,
this.editedOn, this.editedOn,
this.isRecordedByNurse, this.isRecordedByNurse,
this.isCheckedByDoctor, this.isCheckedByDoctor,
this.isVisitClosed, this.isVisitClosed,
this.isRecurring, this.isRecurring,
this.isPersonallyConfirmed, this.isPersonallyConfirmed,
this.confirmationBy, this.confirmationBy,
this.relationId, this.relationId,
this.appointmentDays, this.appointmentDays,
this.isActive, this.isActive,
this.actualDoctorRate, this.actualDoctorRate,
this.clinicName, this.clinicName,
this.doctorCases, this.doctorCases,
this.doctorImageURL, this.doctorImageURL,
this.doctorInfo, this.doctorInfo,
this.doctorName, this.doctorName,
this.doctorRate, this.doctorRate,
this.doctorTitle, this.doctorTitle,
this.gender, this.gender,
this.genderDescription, this.genderDescription,
this.isActiveDoctorProfile, this.isActiveDoctorProfile,
this.isAppointmentAllowed, this.isAppointmentAllowed,
this.isDoctorAllowVedioCall, this.isDoctorAllowVedioCall,
this.nationalityFlagURL, this.nationalityFlagURL,
this.nationalityID, this.nationalityID,
this.nationalityName, this.nationalityName,
this.noOfPatientsRate, this.noOfPatientsRate,
this.projectName, this.projectName,
this.qR, this.qR,
this.speciality}); this.speciality});
PatientDoctorAppointment.fromJson(Map<String, dynamic> json) { PatientDoctorAppointment.fromJson(Map<String?, dynamic> json) {
try { try {
setupID = json['SetupID']; setupID = json['SetupID'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
@ -182,11 +182,11 @@ class PatientDoctorAppointment {
companyID = json['CompanyID']; companyID = json['CompanyID'];
dHCCPatApptRef = json['DHCCPatApptRef']; dHCCPatApptRef = json['DHCCPatApptRef'];
bookedBy = json['BookedBy']; bookedBy = json['BookedBy'];
// bookedOn = DateUtil.convertStringToDate(json['BookedOn']); // bookedOn = DateUtil.convertStringToDate(json['BookedOn']);
confirmedBy = json['ConfirmedBy']; confirmedBy = json['ConfirmedBy'];
// confirmedOn = DateUtil.convertStringToDate(json['ConfirmedOn']); // confirmedOn = DateUtil.convertStringToDate(json['ConfirmedOn']);
arrivalChangedBy = json['ArrivalChangedBy']; arrivalChangedBy = json['ArrivalChangedBy'];
// arrivedOn = DateUtil.convertStringToDate(json['ArrivedOn']); // arrivedOn = DateUtil.convertStringToDate(json['ArrivedOn']);
rescheduledBy = json['RescheduledBy']; rescheduledBy = json['RescheduledBy'];
rescheduledOn = json['RescheduledOn']; rescheduledOn = json['RescheduledOn'];
mRStatus = json['MRStatus']; mRStatus = json['MRStatus'];
@ -227,14 +227,14 @@ class PatientDoctorAppointment {
noOfPatientsRate = json['NoOfPatientsRate']; noOfPatientsRate = json['NoOfPatientsRate'];
projectName = json['ProjectName']; projectName = json['ProjectName'];
qR = json['QR']; qR = json['QR'];
// speciality = json['Speciality'].cast<String>(); // speciality = json['Speciality'].cast<String?>();
} catch (e) { } catch (e) {
print(e); print(e);
} }
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['AppointmentNo'] = this.appointmentNo; data['AppointmentNo'] = this.appointmentNo;
@ -313,13 +313,11 @@ class PatientDoctorAppointment {
} }
} }
class PatientDoctorAppointmentList{ class PatientDoctorAppointmentList {
String? filterName = "";
List<PatientDoctorAppointment> patientDoctorAppointmentList = <PatientDoctorAppointment>[];
String filterName =""; PatientDoctorAppointmentList({this.filterName, PatientDoctorAppointment? patientDoctorAppointment}) {
List<PatientDoctorAppointment> patientDoctorAppointmentList = List(); patientDoctorAppointmentList.add(patientDoctorAppointment!);
PatientDoctorAppointmentList({this.filterName,PatientDoctorAppointment patientDoctorAppointment}){
patientDoctorAppointmentList.add(patientDoctorAppointment);
} }
} }

@ -1,38 +1,38 @@
class RequestPatientDoctorAppointment { class RequestPatientDoctorAppointment {
int top; int? top;
double versionID; double? versionID;
int beforeDays; int? beforeDays;
int exludType; int? exludType;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
RequestPatientDoctorAppointment( RequestPatientDoctorAppointment(
{this.top, {this.top,
this.versionID, this.versionID,
this.beforeDays, this.beforeDays,
this.exludType, this.exludType,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.sessionID, this.sessionID,
this.isDentalAllowedBackend, this.isDentalAllowedBackend,
this.deviceTypeID, this.deviceTypeID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.patientTypeID, this.patientTypeID,
this.patientType}); this.patientType});
RequestPatientDoctorAppointment.fromJson(Map<String, dynamic> json) { RequestPatientDoctorAppointment.fromJson(Map<String, dynamic> json) {
top = json['Top']; top = json['Top'];

@ -1,19 +1,19 @@
class RequestDoctorProfile { class RequestDoctorProfile {
int doctorID; int? doctorID;
bool license; bool? license;
bool isRegistered; bool? isRegistered;
int projectID; int? projectID;
int clinicID; int? clinicID;
int patientID; int? patientID;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
RequestDoctorProfile( RequestDoctorProfile(
{this.doctorID, {this.doctorID,

@ -1,26 +1,16 @@
class RequestDoctorRating { class RequestDoctorRating {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int doctorID; int? doctorID;
RequestDoctorRating( RequestDoctorRating({this.versionID, this.channel, this.languageID, this.iPAdress, this.generalid, this.patientOutSA, this.sessionID, this.isDentalAllowedBackend, this.deviceTypeID, this.doctorID});
{this.versionID,
this.channel,
this.languageID,
this.iPAdress,
this.generalid,
this.patientOutSA,
this.sessionID,
this.isDentalAllowedBackend,
this.deviceTypeID,
this.doctorID});
RequestDoctorRating.fromJson(Map<String, dynamic> json) { RequestDoctorRating.fromJson(Map<String, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];

@ -1,56 +1,56 @@
class AmbulanceRequestOrdersModel { class AmbulanceRequestOrdersModel {
String statusText; String? statusText;
num paymentStatus; num? paymentStatus;
dynamic clientRequestid; dynamic clientRequestid;
dynamic paymentStatusText; dynamic paymentStatusText;
dynamic projectName; dynamic projectName;
String nearestProjectName; String? nearestProjectName;
num paymentAmount; num? paymentAmount;
WFOrder wFOrder; WFOrder? wFOrder;
String serviceText; String? serviceText;
bool isSentForApproval; bool? isSentForApproval;
num exaCartOrderId; num? exaCartOrderId;
String exaCartGUID; String? exaCartGUID;
bool isTimer; bool? isTimer;
num timeSeconds; num? timeSeconds;
num totalPendingSeconds; num? totalPendingSeconds;
num timeMinute; num? timeMinute;
num timeHour; num? timeHour;
num timeTotalSeconds; num? timeTotalSeconds;
num timeTotalMinute; num? timeTotalMinute;
num timeTotalHour; num? timeTotalHour;
dynamic approvalStatus; dynamic approvalStatus;
bool isActive; bool? isActive;
num clickButton; num? clickButton;
dynamic orderHistory; dynamic orderHistory;
String pickupLocation; String? pickupLocation;
String dropOffLocation; String? dropOffLocation;
String clinicName; String? clinicName;
String doctorName; String? doctorName;
String branch; String? branch;
String time; String? time;
String notes; String? notes;
num iD; num? iD;
num patientId; num? patientId;
num patientOutSa; num? patientOutSa;
bool isOutPatient; bool? isOutPatient;
num projectId; num? projectId;
num nearestProjectId; num? nearestProjectId;
dynamic longitude; dynamic longitude;
dynamic latitude; dynamic latitude;
dynamic appointmentNo; dynamic appointmentNo;
dynamic dischargeId; dynamic dischargeId;
num statusId; num? statusId;
num serviceId; num? serviceId;
num channel; num? channel;
Orderpayment orderpayment; Orderpayment? orderpayment;
dynamic wforder; dynamic wforder;
dynamic orderapprovalobj; dynamic orderapprovalobj;
String created; String? created;
dynamic createdBy; dynamic createdBy;
dynamic modified; dynamic modified;
dynamic modifiedBy; dynamic modifiedBy;
bool isDeleted; bool? isDeleted;
AmbulanceRequestOrdersModel( AmbulanceRequestOrdersModel(
{this.statusText, {this.statusText,
@ -106,7 +106,7 @@ class AmbulanceRequestOrdersModel {
this.modifiedBy, this.modifiedBy,
this.isDeleted}); this.isDeleted});
AmbulanceRequestOrdersModel.fromJson(Map<String, dynamic> json) { AmbulanceRequestOrdersModel.fromJson(Map<String?, dynamic> json) {
statusText = json['StatusText']; statusText = json['StatusText'];
paymentStatus = json['PaymentStatus']; paymentStatus = json['PaymentStatus'];
clientRequestid = json['ClientRequestid']; clientRequestid = json['ClientRequestid'];
@ -165,8 +165,8 @@ class AmbulanceRequestOrdersModel {
isDeleted = json['IsDeleted']; isDeleted = json['IsDeleted'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['StatusText'] = this.statusText; data['StatusText'] = this.statusText;
data['PaymentStatus'] = this.paymentStatus; data['PaymentStatus'] = this.paymentStatus;
data['ClientRequestid'] = this.clientRequestid; data['ClientRequestid'] = this.clientRequestid;
@ -175,7 +175,7 @@ class AmbulanceRequestOrdersModel {
data['NearestProjectName'] = this.nearestProjectName; data['NearestProjectName'] = this.nearestProjectName;
data['PaymentAmount'] = this.paymentAmount; data['PaymentAmount'] = this.paymentAmount;
if (this.wFOrder != null) { if (this.wFOrder != null) {
data['WF_order'] = this.wFOrder.toJson(); data['WF_order'] = this.wFOrder!.toJson();
} }
data['ServiceText'] = this.serviceText; data['ServiceText'] = this.serviceText;
data['isSentForApproval'] = this.isSentForApproval; data['isSentForApproval'] = this.isSentForApproval;
@ -214,7 +214,7 @@ class AmbulanceRequestOrdersModel {
data['ServiceId'] = this.serviceId; data['ServiceId'] = this.serviceId;
data['Channel'] = this.channel; data['Channel'] = this.channel;
if (this.orderpayment != null) { if (this.orderpayment != null) {
data['orderpayment'] = this.orderpayment.toJson(); data['orderpayment'] = this.orderpayment!.toJson();
} }
data['wforder'] = this.wforder; data['wforder'] = this.wforder;
data['orderapprovalobj'] = this.orderapprovalobj; data['orderapprovalobj'] = this.orderapprovalobj;
@ -229,17 +229,17 @@ class AmbulanceRequestOrdersModel {
class WFOrder { class WFOrder {
dynamic wfButtonsDTO; dynamic wfButtonsDTO;
num iD; num? iD;
num orderId; num? orderId;
num previousStep; num? previousStep;
num nextStep; num? nextStep;
num serviceId; num? serviceId;
dynamic order; dynamic order;
String created; String? created;
dynamic createdBy; dynamic createdBy;
dynamic modified; dynamic modified;
dynamic modifiedBy; dynamic modifiedBy;
bool isDeleted; bool? isDeleted;
WFOrder( WFOrder(
{this.wfButtonsDTO, {this.wfButtonsDTO,
@ -255,7 +255,7 @@ class WFOrder {
this.modifiedBy, this.modifiedBy,
this.isDeleted}); this.isDeleted});
WFOrder.fromJson(Map<String, dynamic> json) { WFOrder.fromJson(Map<String?, dynamic> json) {
wfButtonsDTO = json['wf_ButtonsDTO']; wfButtonsDTO = json['wf_ButtonsDTO'];
iD = json['ID']; iD = json['ID'];
orderId = json['OrderId']; orderId = json['OrderId'];
@ -270,8 +270,8 @@ class WFOrder {
isDeleted = json['IsDeleted']; isDeleted = json['IsDeleted'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['wf_ButtonsDTO'] = this.wfButtonsDTO; data['wf_ButtonsDTO'] = this.wfButtonsDTO;
data['ID'] = this.iD; data['ID'] = this.iD;
data['OrderId'] = this.orderId; data['OrderId'] = this.orderId;
@ -289,17 +289,17 @@ class WFOrder {
} }
class Orderpayment { class Orderpayment {
num iD; num? iD;
num orderId; num? orderId;
dynamic clientRequestId; dynamic clientRequestId;
num totalAmount; num? totalAmount;
num paymentStatus; num? paymentStatus;
dynamic order; dynamic order;
String created; String? created;
dynamic createdBy; dynamic createdBy;
dynamic modified; dynamic modified;
dynamic modifiedBy; dynamic modifiedBy;
bool isDeleted; bool? isDeleted;
Orderpayment( Orderpayment(
{this.iD, {this.iD,
@ -314,7 +314,7 @@ class Orderpayment {
this.modifiedBy, this.modifiedBy,
this.isDeleted}); this.isDeleted});
Orderpayment.fromJson(Map<String, dynamic> json) { Orderpayment.fromJson(Map<String?, dynamic> json) {
iD = json['ID']; iD = json['ID'];
orderId = json['OrderId']; orderId = json['OrderId'];
clientRequestId = json['ClientRequestId']; clientRequestId = json['ClientRequestId'];
@ -328,8 +328,8 @@ class Orderpayment {
isDeleted = json['IsDeleted']; isDeleted = json['IsDeleted'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['ID'] = this.iD; data['ID'] = this.iD;
data['OrderId'] = this.orderId; data['OrderId'] = this.orderId;
data['ClientRequestId'] = this.clientRequestId; data['ClientRequestId'] = this.clientRequestId;

@ -1,23 +1,23 @@
class ErPatientShareModel { class ErPatientShareModel {
int cashPrice; int? cashPrice;
int cashPriceTax; int? cashPriceTax;
int cashPriceWithTax; int? cashPriceWithTax;
int companyId; int? companyId;
String companyName; String? companyName;
int companyShareWithTax; int? companyShareWithTax;
dynamic errCode; dynamic errCode;
int groupID; int? groupID;
dynamic insurancePolicyNo; dynamic insurancePolicyNo;
String message; String? message;
dynamic patientCardID; dynamic patientCardID;
num patientShare; num? patientShare;
num patientShareWithTax; num? patientShareWithTax;
num patientTaxAmount; num? patientTaxAmount;
int policyId; int? policyId;
String policyName; String? policyName;
String procedureName; String? procedureName;
dynamic setupID; dynamic setupID;
int statusCode; int? statusCode;
dynamic subPolicyNo; dynamic subPolicyNo;
ErPatientShareModel( ErPatientShareModel(
@ -42,7 +42,7 @@ class ErPatientShareModel {
this.statusCode, this.statusCode,
this.subPolicyNo}); this.subPolicyNo});
ErPatientShareModel.fromJson(Map<String, dynamic> json) { ErPatientShareModel.fromJson(Map<String?, dynamic> json) {
cashPrice = json['CashPrice']; cashPrice = json['CashPrice'];
cashPriceTax = json['CashPriceTax']; cashPriceTax = json['CashPriceTax'];
cashPriceWithTax = json['CashPriceWithTax']; cashPriceWithTax = json['CashPriceWithTax'];
@ -65,8 +65,8 @@ class ErPatientShareModel {
subPolicyNo = json['SubPolicyNo']; subPolicyNo = json['SubPolicyNo'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['CashPrice'] = this.cashPrice; data['CashPrice'] = this.cashPrice;
data['CashPriceTax'] = this.cashPriceTax; data['CashPriceTax'] = this.cashPriceTax;
data['CashPriceWithTax'] = this.cashPriceWithTax; data['CashPriceWithTax'] = this.cashPriceWithTax;

@ -1,34 +1,34 @@
class PatientAllPresOrders { class PatientAllPresOrders {
int iD; int? iD;
String patientID; String? patientID;
bool patientOutSA; bool? patientOutSA;
bool isOutPatient; bool? isOutPatient;
int projectID; int? projectID;
int nearestProjectID; int? nearestProjectID;
double longitude; double? longitude;
double latitude; double? latitude;
String appointmentNo; String? appointmentNo;
String dischargeID; String? dischargeID;
int lineItemNo; int? lineItemNo;
int status; int? status;
String description; String? description;
String descriptionN; String? descriptionN;
String createdOn; String? createdOn;
int serviceID; int? serviceID;
int createdBy; int? createdBy;
String editedOn; String? editedOn;
int editedBy; int? editedBy;
int channel; int? channel;
dynamic clientRequestID; dynamic clientRequestID;
bool returnedToQueue; bool? returnedToQueue;
dynamic pickupDateTime; dynamic pickupDateTime;
dynamic pickupLocationName; dynamic pickupLocationName;
dynamic dropoffLocationName; dynamic dropoffLocationName;
int realRRTHaveTransactions; int? realRRTHaveTransactions;
String nearestProjectDescription; String? nearestProjectDescription;
String nearestProjectDescriptionN; String? nearestProjectDescriptionN;
String projectDescription; String? projectDescription;
String projectDescriptionN; String? projectDescriptionN;
PatientAllPresOrders( PatientAllPresOrders(
{this.iD, {this.iD,
@ -62,7 +62,7 @@ class PatientAllPresOrders {
this.projectDescription, this.projectDescription,
this.projectDescriptionN}); this.projectDescriptionN});
PatientAllPresOrders.fromJson(Map<String, dynamic> json) { PatientAllPresOrders.fromJson(Map<String?, dynamic> json) {
iD = json['ID']; iD = json['ID'];
patientID = json['PatientID']; patientID = json['PatientID'];
patientOutSA = json['PatientOutSA']; patientOutSA = json['PatientOutSA'];
@ -95,8 +95,8 @@ class PatientAllPresOrders {
projectDescriptionN = json['ProjectDescriptionN']; projectDescriptionN = json['ProjectDescriptionN'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['ID'] = this.iD; data['ID'] = this.iD;
data['PatientID'] = this.patientID; data['PatientID'] = this.patientID;
data['PatientOutSA'] = this.patientOutSA; data['PatientOutSA'] = this.patientOutSA;

@ -3,55 +3,55 @@ import 'package:diplomaticquarterapp/core/enum/Ambulate.dart';
import 'get_all_transportation_method_list_model.dart'; import 'get_all_transportation_method_list_model.dart';
class PatientER { class PatientER {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
dynamic patientOutSA; dynamic patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int orderServiceID; int? orderServiceID;
String patientIdentificationID; String? patientIdentificationID;
int direction; int? direction;
bool haveAppointment; bool? haveAppointment;
int tripType; int? tripType;
int pickupUrgency; int? pickupUrgency;
int pickupSpot; int? pickupSpot;
String pickupDateTime; String? pickupDateTime;
int transportationMethodId; int? transportationMethodId;
int selectedAmbulate; int? selectedAmbulate;
String requesterNote; String? requesterNote;
int requesterFileNo; int? requesterFileNo;
String requesterMobileNo; String? requesterMobileNo;
bool requesterIsOutSA; bool? requesterIsOutSA;
int isOutPatient; int? isOutPatient;
String pickupLocationName; String? pickupLocationName;
String dropoffLocationName; String? dropoffLocationName;
int projectID; int? projectID;
int createdBy; int? createdBy;
int lineItemNo; int? lineItemNo;
double cost; double? cost;
double vAT; double? vAT;
double totalPrice; double? totalPrice;
String pickupLocationLattitude; String? pickupLocationLattitude;
String pickupLocationLongitude; String? pickupLocationLongitude;
String dropoffLocationLattitude; String? dropoffLocationLattitude;
String dropoffLocationLongitude; String? dropoffLocationLongitude;
String latitude; String? latitude;
String longitude; String? longitude;
String appointmentNo; String? appointmentNo;
dynamic appointmentClinicName; dynamic appointmentClinicName;
dynamic appointmentDoctorName; dynamic appointmentDoctorName;
dynamic appointmentBranch; dynamic appointmentBranch;
dynamic appointmentTime; dynamic appointmentTime;
PatientERTransportationMethod patientERTransportationMethod; PatientERTransportationMethod? patientERTransportationMethod;
Ambulate ambulate; Ambulate? ambulate;
PatientER( PatientER(
{this.versionID, {this.versionID,
this.channel, this.channel,
@ -103,7 +103,7 @@ class PatientER {
this.patientERTransportationMethod, this.patientERTransportationMethod,
this.ambulate}); this.ambulate});
PatientER.fromJson(Map<String, dynamic> json) { PatientER.fromJson(Map<String?, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];
channel = json['Channel']; channel = json['Channel'];
languageID = json['LanguageID']; languageID = json['LanguageID'];
@ -153,8 +153,8 @@ class PatientER {
appointmentTime = json['AppointmentTime']; appointmentTime = json['AppointmentTime'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['VersionID'] = this.versionID; data['VersionID'] = this.versionID;
data['Channel'] = this.channel; data['Channel'] = this.channel;
data['LanguageID'] = this.languageID; data['LanguageID'] = this.languageID;

@ -1,26 +1,26 @@
import 'package:diplomaticquarterapp/core/model/er/get_all_transportation_method_list_model.dart'; import 'package:diplomaticquarterapp/core/model/er/get_all_transportation_method_list_model.dart';
class PatientER_RC { class PatientER_RC {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
bool patientOutSA; bool? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int orderServiceID; int? orderServiceID;
String patientIdentificationID; String? patientIdentificationID;
dynamic patientOutSa; dynamic patientOutSa;
int projectID; int? projectID;
int lineItemNo; int? lineItemNo;
TransportationDetails transportationDetails; TransportationDetails? transportationDetails;
PatientERTransportationMethod patientERTransportationMethod; PatientERTransportationMethod? patientERTransportationMethod;
PatientER_RC( PatientER_RC(
{this.versionID, {this.versionID,
@ -43,7 +43,7 @@ class PatientER_RC {
this.lineItemNo, this.lineItemNo,
this.transportationDetails}); this.transportationDetails});
PatientER_RC.fromJson(Map<String, dynamic> json) { PatientER_RC.fromJson(Map<String?, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];
channel = json['Channel']; channel = json['Channel'];
languageID = json['LanguageID']; languageID = json['LanguageID'];
@ -67,8 +67,8 @@ class PatientER_RC {
: null; : null;
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['VersionID'] = this.versionID; data['VersionID'] = this.versionID;
data['Channel'] = this.channel; data['Channel'] = this.channel;
data['LanguageID'] = this.languageID; data['LanguageID'] = this.languageID;
@ -88,37 +88,37 @@ class PatientER_RC {
data['projectID'] = this.projectID; data['projectID'] = this.projectID;
data['lineItemNo'] = this.lineItemNo; data['lineItemNo'] = this.lineItemNo;
if (this.transportationDetails != null) { if (this.transportationDetails != null) {
data['transportationDetails'] = this.transportationDetails.toJson(); data['transportationDetails'] = this.transportationDetails!.toJson();
} }
return data; return data;
} }
} }
class TransportationDetails { class TransportationDetails {
int direction; int? direction;
int haveAppointment; int? haveAppointment;
int tripType; int? tripType;
int pickupUrgency; int? pickupUrgency;
int pickupSpot; int? pickupSpot;
String pickupDateTime; String? pickupDateTime;
String transportationType; String? transportationType;
int ambulate; int? ambulate;
String ambulateTitle; String? ambulateTitle;
String notes; String? notes;
int requesterFileNo; int? requesterFileNo;
String requesterMobileNo; String? requesterMobileNo;
bool requesterIsOutSA; bool? requesterIsOutSA;
String pickupLocationName; String? pickupLocationName;
String dropoffLocationName; String? dropoffLocationName;
String pickupLatitude; String? pickupLatitude;
String pickupLongitude; String? pickupLongitude;
String dropoffLatitude; String? dropoffLatitude;
String dropoffLongitude; String? dropoffLongitude;
String appointmentNo; String? appointmentNo;
String appointmentClinicName; String? appointmentClinicName;
String appointmentDoctorName; String? appointmentDoctorName;
String appointmentBranch; String? appointmentBranch;
String appointmentTime; String? appointmentTime;
TransportationDetails( TransportationDetails(
{this.direction, {this.direction,
@ -146,7 +146,7 @@ class TransportationDetails {
this.appointmentBranch, this.appointmentBranch,
this.appointmentTime}); this.appointmentTime});
TransportationDetails.fromJson(Map<String, dynamic> json) { TransportationDetails.fromJson(Map<String?, dynamic> json) {
direction = json['direction']; direction = json['direction'];
haveAppointment = json['haveAppointment']; haveAppointment = json['haveAppointment'];
tripType = json['tripType']; tripType = json['tripType'];
@ -173,8 +173,8 @@ class TransportationDetails {
appointmentTime = json['appointmentTime']; appointmentTime = json['appointmentTime'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['direction'] = this.direction; data['direction'] = this.direction;
data['haveAppointment'] = this.haveAppointment; data['haveAppointment'] = this.haveAppointment;
data['tripType'] = this.tripType; data['tripType'] = this.tripType;

@ -1,52 +1,52 @@
class PickUpRequestPresOrder { class PickUpRequestPresOrder {
int id; int? id;
int presOrderID; int? presOrderID;
String createDate; String? createDate;
String lastEditDate; String? lastEditDate;
int createdBy; int? createdBy;
int lastEditBy; int? lastEditBy;
bool isActive; bool? isActive;
String requestNo; String? requestNo;
int requesterId; int? requesterId;
int direction; int? direction;
bool haveAppointment; bool? haveAppointment;
dynamic appointmentId; dynamic appointmentId;
int tripType; int? tripType;
int pickupUrgency; int? pickupUrgency;
String pickupDateTime; String? pickupDateTime;
dynamic pickupLocationId; dynamic pickupLocationId;
int pickupSpot; int? pickupSpot;
dynamic dropoffLocationId; dynamic dropoffLocationId;
int transportationMethodId; int? transportationMethodId;
dynamic cost; dynamic cost;
dynamic vAT; dynamic vAT;
double totalPrice; double? totalPrice;
int amountCollected; int? amountCollected;
int selectedAmbulate; int? selectedAmbulate;
String requesterNote; String? requesterNote;
int status; int? status;
int paymentStatus; int? paymentStatus;
dynamic rejectReason; dynamic rejectReason;
int visibility; int? visibility;
dynamic durationId; dynamic durationId;
dynamic imageId; dynamic imageId;
String requesterFileNo; String? requesterFileNo;
String requesterMobileNo; String? requesterMobileNo;
bool requesterIsOutSA; bool? requesterIsOutSA;
String pickupLocationLongitude; String? pickupLocationLongitude;
String pickupLocationLattitude; String? pickupLocationLattitude;
String dropoffLocationLongitude; String? dropoffLocationLongitude;
String dropoffLocationLattitude; String? dropoffLocationLattitude;
dynamic appointmentClinicName; dynamic appointmentClinicName;
dynamic appointmentDoctorName; dynamic appointmentDoctorName;
dynamic appointmentBranch; dynamic appointmentBranch;
dynamic appointmentTime; dynamic appointmentTime;
String pickupLocationName; String? pickupLocationName;
String dropoffLocationName; String? dropoffLocationName;
String title; String? title;
String titleAR; String? titleAR;
String ambulateDescription; String? ambulateDescription;
String ambulateDescriptionN; String? ambulateDescriptionN;
PickUpRequestPresOrder( PickUpRequestPresOrder(
{this.id, {this.id,
@ -98,7 +98,7 @@ class PickUpRequestPresOrder {
this.ambulateDescription, this.ambulateDescription,
this.ambulateDescriptionN}); this.ambulateDescriptionN});
PickUpRequestPresOrder.fromJson(Map<String, dynamic> json) { PickUpRequestPresOrder.fromJson(Map<String?, dynamic> json) {
id = json['Id']; id = json['Id'];
presOrderID = json['PresOrderID']; presOrderID = json['PresOrderID'];
createDate = json['CreateDate']; createDate = json['CreateDate'];
@ -149,8 +149,8 @@ class PickUpRequestPresOrder {
ambulateDescriptionN = json['AmbulateDescriptionN']; ambulateDescriptionN = json['AmbulateDescriptionN'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['Id'] = this.id; data['Id'] = this.id;
data['PresOrderID'] = this.presOrderID; data['PresOrderID'] = this.presOrderID;
data['CreateDate'] = this.createDate; data['CreateDate'] = this.createDate;

@ -1,36 +1,38 @@
import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart'; import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart';
class TriageInformationRequest { class TriageInformationRequest {
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String sessionID; String? sessionID;
int patientID; int? patientID;
String tokenID; String? tokenID;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int projectID; int? projectID;
ERTriageInformation eRTriageInformation; ERTriageInformation? eRTriageInformation;
HospitalsModel selectedHospital; HospitalsModel? selectedHospital;
TriageInformationRequest( TriageInformationRequest(
{this.versionID, {this.versionID,
this.channel, this.channel,
this.languageID, this.languageID,
this.iPAdress, this.iPAdress,
this.sessionID, this.sessionID,
this.patientID, this.patientID,
this.tokenID, this.tokenID,
this.generalid, this.generalid,
this.patientOutSA, this.patientOutSA,
this.patientTypeID, this.patientTypeID,
this.patientType, this.patientType,
this.projectID, this.projectID,
this.eRTriageInformation,this.selectedHospital}); this.eRTriageInformation,
this.selectedHospital});
TriageInformationRequest.fromJson(Map<String, dynamic> json) { TriageInformationRequest.fromJson(Map<String?, dynamic> json) {
versionID = json['VersionID']; versionID = json['VersionID'];
channel = json['Channel']; channel = json['Channel'];
languageID = json['LanguageID']; languageID = json['LanguageID'];
@ -43,13 +45,11 @@ class TriageInformationRequest {
patientTypeID = json['PatientTypeID']; patientTypeID = json['PatientTypeID'];
patientType = json['PatientType']; patientType = json['PatientType'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
eRTriageInformation = json['ERTriageInformation'] != null eRTriageInformation = json['ERTriageInformation'] != null ? new ERTriageInformation.fromJson(json['ERTriageInformation']) : null;
? new ERTriageInformation.fromJson(json['ERTriageInformation'])
: null;
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['VersionID'] = this.versionID; data['VersionID'] = this.versionID;
data['Channel'] = this.channel; data['Channel'] = this.channel;
data['LanguageID'] = this.languageID; data['LanguageID'] = this.languageID;
@ -63,71 +63,60 @@ class TriageInformationRequest {
data['PatientType'] = this.patientType; data['PatientType'] = this.patientType;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
if (this.eRTriageInformation != null) { if (this.eRTriageInformation != null) {
data['ERTriageInformation'] = this.eRTriageInformation.toJson(); data['ERTriageInformation'] = this.eRTriageInformation!.toJson();
} }
return data; return data;
} }
} }
class ERTriageInformation { class ERTriageInformation {
String notes; String? notes;
String chiefComplaint; String? chiefComplaint;
int patientId; int? patientId;
int projectId; int? projectId;
int riskScore; int? riskScore;
List<Checklist> checklist; List<Checklist>? checklist;
ERTriageInformation( ERTriageInformation({this.notes, this.chiefComplaint, this.patientId, this.projectId, this.riskScore, this.checklist});
{this.notes,
this.chiefComplaint,
this.patientId,
this.projectId,
this.riskScore,
this.checklist});
ERTriageInformation.fromJson(Map<String, dynamic> json) { ERTriageInformation.fromJson(Map<String?, dynamic> json) {
notes = json['Notes']; notes = json['Notes'];
chiefComplaint = json['ChiefComplaint']; chiefComplaint = json['ChiefComplaint'];
patientId = json['PatientId']; patientId = json['PatientId'];
projectId = json['ProjectId']; projectId = json['ProjectId'];
riskScore = json['RiskScore']; riskScore = json['RiskScore'];
if (json['checklist'] != null) { if (json['checklist'] != null) {
checklist = new List<Checklist>(); checklist = <Checklist>[];
json['checklist'].forEach((v) { json['checklist'].forEach((v) {
checklist.add(new Checklist.fromJson(v)); checklist!.add(new Checklist.fromJson(v));
}); });
} }
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['Notes'] = this.notes; data['Notes'] = this.notes;
data['ChiefComplaint'] = this.chiefComplaint; data['ChiefComplaint'] = this.chiefComplaint;
data['PatientId'] = this.patientId; data['PatientId'] = this.patientId;
data['ProjectId'] = this.projectId; data['ProjectId'] = this.projectId;
data['RiskScore'] = this.riskScore; data['RiskScore'] = this.riskScore;
if (this.checklist != null) { if (this.checklist != null) {
data['checklist'] = this.checklist.map((v) => v.toJson()).toList(); data['checklist'] = this.checklist!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Checklist { class Checklist {
int isSelected; int? isSelected;
int parameterCode; int? parameterCode;
int parameterGroup; int? parameterGroup;
int parameterType; int? parameterType;
int score; int? score;
Checklist( Checklist({this.isSelected, this.parameterCode, this.parameterGroup, this.parameterType, this.score});
{this.isSelected,
this.parameterCode,
this.parameterGroup,
this.parameterType,
this.score});
Checklist.fromJson(Map<String, dynamic> json) { Checklist.fromJson(Map<String?, dynamic> json) {
isSelected = json['IsSelected']; isSelected = json['IsSelected'];
parameterCode = json['ParameterCode']; parameterCode = json['ParameterCode'];
parameterGroup = json['ParameterGroup']; parameterGroup = json['ParameterGroup'];
@ -135,8 +124,8 @@ class Checklist {
score = json['Score']; score = json['Score'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['IsSelected'] = this.isSelected; data['IsSelected'] = this.isSelected;
data['ParameterCode'] = this.parameterCode; data['ParameterCode'] = this.parameterCode;
data['ParameterGroup'] = this.parameterGroup; data['ParameterGroup'] = this.parameterGroup;

@ -1,14 +1,14 @@
class TriageQuestionsModel { class TriageQuestionsModel {
String adultPoints; String? adultPoints;
String headerSequence; String? headerSequence;
int parameterCode; int? parameterCode;
int parameterGroup; int? parameterGroup;
int parameterType; int? parameterType;
String pediaPoints; String? pediaPoints;
String question; String? question;
String questionN; String? questionN;
String scoreGroup; String? scoreGroup;
String titles; String? titles;
TriageQuestionsModel( TriageQuestionsModel(
{this.adultPoints, {this.adultPoints,
@ -22,7 +22,7 @@ class TriageQuestionsModel {
this.scoreGroup, this.scoreGroup,
this.titles}); this.titles});
TriageQuestionsModel.fromJson(Map<String, dynamic> json) { TriageQuestionsModel.fromJson(Map<String?, dynamic> json) {
adultPoints = json['AdultPoints']; adultPoints = json['AdultPoints'];
headerSequence = json['HeaderSequence']; headerSequence = json['HeaderSequence'];
parameterCode = json['ParameterCode']; parameterCode = json['ParameterCode'];
@ -35,8 +35,8 @@ class TriageQuestionsModel {
titles = json['Titles']; titles = json['Titles'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['AdultPoints'] = this.adultPoints; data['AdultPoints'] = this.adultPoints;
data['HeaderSequence'] = this.headerSequence; data['HeaderSequence'] = this.headerSequence;
data['ParameterCode'] = this.parameterCode; data['ParameterCode'] = this.parameterCode;

@ -1,15 +1,15 @@
class PatientERTransportationMethod { class PatientERTransportationMethod {
int iD; int? iD;
String serviceID; String? serviceID;
int orderServiceID; int? orderServiceID;
String text; String? text;
String textN; String? textN;
dynamic price; dynamic price;
dynamic priceVAT; dynamic priceVAT;
dynamic priceTotal; dynamic priceTotal;
bool isEnabled; bool? isEnabled;
int orderId; int? orderId;
int quantity; int? quantity;
PatientERTransportationMethod( PatientERTransportationMethod(
{this.iD, {this.iD,
@ -24,7 +24,7 @@ class PatientERTransportationMethod {
this.orderId, this.orderId,
this.quantity}); this.quantity});
PatientERTransportationMethod.fromJson(Map<String, dynamic> json) { PatientERTransportationMethod.fromJson(Map<String?, dynamic> json) {
iD = json['ID']; iD = json['ID'];
serviceID = json['ServiceID']; serviceID = json['ServiceID'];
orderServiceID = json['OrderServiceID']; orderServiceID = json['OrderServiceID'];
@ -38,8 +38,8 @@ class PatientERTransportationMethod {
quantity = json['Quantity']; quantity = json['Quantity'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['ID'] = this.iD; data['ID'] = this.iD;
data['ServiceID'] = this.serviceID; data['ServiceID'] = this.serviceID;
data['OrderServiceID'] = this.orderServiceID; data['OrderServiceID'] = this.orderServiceID;

@ -1,14 +1,14 @@
class ProjectAvgERWaitingTime { class ProjectAvgERWaitingTime {
int iD; int? iD;
int projectID; int? projectID;
int avgTimeInMinutes; int? avgTimeInMinutes;
String avgTimeInHHMM; String? avgTimeInHHMM;
dynamic distanceInKilometers; dynamic distanceInKilometers;
String latitude; String? latitude;
String longitude; String? longitude;
String phoneNumber; String? phonenumber;
String projectImageURL; String? projectImageURL;
String projectName; String? projectName;
ProjectAvgERWaitingTime( ProjectAvgERWaitingTime(
{this.iD, {this.iD,
@ -18,11 +18,11 @@ class ProjectAvgERWaitingTime {
this.distanceInKilometers, this.distanceInKilometers,
this.latitude, this.latitude,
this.longitude, this.longitude,
this.phoneNumber, this.phonenumber,
this.projectImageURL, this.projectImageURL,
this.projectName}); this.projectName});
ProjectAvgERWaitingTime.fromJson(Map<String, dynamic> json) { ProjectAvgERWaitingTime.fromJson(Map<String?, dynamic> json) {
iD = json['ID']; iD = json['ID'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
avgTimeInMinutes = json['AvgTimeInMinutes']; avgTimeInMinutes = json['AvgTimeInMinutes'];
@ -30,13 +30,13 @@ class ProjectAvgERWaitingTime {
distanceInKilometers = json['DistanceInKilometers']; distanceInKilometers = json['DistanceInKilometers'];
latitude = json['Latitude']; latitude = json['Latitude'];
longitude = json['Longitude']; longitude = json['Longitude'];
phoneNumber = json['PhoneNumber']; phonenumber = json['Phonenum?ber'];
projectImageURL = json['ProjectImageURL']; projectImageURL = json['ProjectImageURL'];
projectName = json['ProjectName']; projectName = json['ProjectName'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['ID'] = this.iD; data['ID'] = this.iD;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['AvgTimeInMinutes'] = this.avgTimeInMinutes; data['AvgTimeInMinutes'] = this.avgTimeInMinutes;
@ -44,23 +44,23 @@ class ProjectAvgERWaitingTime {
data['DistanceInKilometers'] = this.distanceInKilometers; data['DistanceInKilometers'] = this.distanceInKilometers;
data['Latitude'] = this.latitude; data['Latitude'] = this.latitude;
data['Longitude'] = this.longitude; data['Longitude'] = this.longitude;
data['PhoneNumber'] = this.phoneNumber; data['Phonenum?ber'] = this.phonenumber;
data['ProjectImageURL'] = this.projectImageURL; data['ProjectImageURL'] = this.projectImageURL;
data['ProjectName'] = this.projectName; data['ProjectName'] = this.projectName;
return data; return data;
} }
} }
//class ProjectAvgERWaitingTime { //class ProjectAvgERWaitingTime {
// int iD; // int? iD;
// int projectID; // int? projectID;
// int avgTimeInMinutes; // int? avgTimeInMinutes;
// String avgTimeInHHMM; // String? avgTimeInHHMM;
// String distanceInKilometers; // String? distanceInKilometers;
// String latitude; // String? latitude;
// String longitude; // String? longitude;
// String phoneNumber; // String? phonenum?ber;
// String projectImageURL; // String? projectImageURL;
// String projectName; // String? projectName;
// //
// ProjectAvgERWaitingTime( // ProjectAvgERWaitingTime(
// {this.iD, // {this.iD,
@ -70,11 +70,11 @@ class ProjectAvgERWaitingTime {
// this.distanceInKilometers, // this.distanceInKilometers,
// this.latitude, // this.latitude,
// this.longitude, // this.longitude,
// this.phoneNumber, // this.phonenum?ber,
// this.projectImageURL, // this.projectImageURL,
// this.projectName}); // this.projectName});
// //
// ProjectAvgERWaitingTime.fromJson(Map<String, dynamic> json) { // ProjectAvgERWaitingTime.fromJson(Map<String?, dynamic> json) {
// iD = json['ID']; // iD = json['ID'];
// projectID = json['ProjectID']; // projectID = json['ProjectID'];
// avgTimeInMinutes = json['AvgTimeInMinutes']; // avgTimeInMinutes = json['AvgTimeInMinutes'];
@ -82,13 +82,13 @@ class ProjectAvgERWaitingTime {
// distanceInKilometers = json['DistanceInKilometers']; // distanceInKilometers = json['DistanceInKilometers'];
// latitude = json['Latitude']; // latitude = json['Latitude'];
// longitude = json['Longitude']; // longitude = json['Longitude'];
// phoneNumber = json['PhoneNumber']; // phonenum?ber = json['Phonenum?ber'];
// projectImageURL = json['ProjectImageURL']; // projectImageURL = json['ProjectImageURL'];
// projectName = json['ProjectName']; // projectName = json['ProjectName'];
// } // }
// //
// Map<String, dynamic> toJson() { // Map<String?, dynamic> toJson() {
// final Map<String, dynamic> data = new Map<String, dynamic>(); // final Map<String?, dynamic> data = new Map<String?, dynamic>();
// data['ID'] = this.iD; // data['ID'] = this.iD;
// data['ProjectID'] = this.projectID; // data['ProjectID'] = this.projectID;
// data['AvgTimeInMinutes'] = this.avgTimeInMinutes; // data['AvgTimeInMinutes'] = this.avgTimeInMinutes;
@ -96,7 +96,7 @@ class ProjectAvgERWaitingTime {
// data['DistanceInKilometers'] = this.distanceInKilometers; // data['DistanceInKilometers'] = this.distanceInKilometers;
// data['Latitude'] = this.latitude; // data['Latitude'] = this.latitude;
// data['Longitude'] = this.longitude; // data['Longitude'] = this.longitude;
// data['PhoneNumber'] = this.phoneNumber; // data['Phonenum?ber'] = this.phonenum?ber;
// data['ProjectImageURL'] = this.projectImageURL; // data['ProjectImageURL'] = this.projectImageURL;
// data['ProjectName'] = this.projectName; // data['ProjectName'] = this.projectName;
// return data; // return data;

@ -1,72 +1,72 @@
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class AppoimentAllHistoryResultList { class AppoimentAllHistoryResultList {
String setupID; String? setupID;
int projectID; int? projectID;
int appointmentNo; int? appointmentNo;
String appointmentDate; String? appointmentDate;
Null appointmentDateN; Null appointmentDateN;
int appointmentType; int? appointmentType;
DateTime bookDate; DateTime? bookDate;
dynamic patientType; dynamic patientType;
int patientID; int? patientID;
dynamic clinicID; dynamic clinicID;
int doctorID; int? doctorID;
String endDate; String? endDate;
String startTime; String? startTime;
String endTime; String? endTime;
dynamic status; dynamic status;
dynamic visitType; dynamic visitType;
int visitFor; int? visitFor;
int patientStatusType; int? patientStatusType;
int companyID; int? companyID;
int bookedBy; int? bookedBy;
String bookedOn; String? bookedOn;
int confirmedBy; int? confirmedBy;
String confirmedOn; String? confirmedOn;
int arrivalChangedBy; int? arrivalChangedBy;
String arrivedOn; String? arrivedOn;
Null editedBy; Null editedBy;
Null editedOn; Null editedOn;
Null doctorName; Null doctorName;
Null doctorNameN; Null doctorNameN;
String statusDesc; String? statusDesc;
Null statusDescN; Null statusDescN;
bool vitalStatus; bool? vitalStatus;
Null vitalSignAppointmentNo; Null vitalSignAppointmentNo;
int episodeID; int? episodeID;
int actualDoctorRate; int? actualDoctorRate;
String clinicName; String? clinicName;
bool complainExists; bool? complainExists;
String doctorImageURL; String? doctorImageURL;
String doctorNameObj; String? doctorNameObj;
int doctorRate; int? doctorRate;
List<String> doctorSpeciality; List<String>? doctorSpeciality;
String doctorTitle; String? doctorTitle;
int gender; int? gender;
String genderDescription; String? genderDescription;
bool iSAllowOnlineCheckedIN; bool? iSAllowOnlineCheckedIN;
bool isActiveDoctor; bool? isActiveDoctor;
bool isActiveDoctorProfile; bool? isActiveDoctorProfile;
bool isDoctorAllowVedioCall; bool? isDoctorAllowVedioCall;
bool isExecludeDoctor; bool? isExecludeDoctor;
int isFollowup; int? isFollowup;
bool isLiveCareAppointment; bool? isLiveCareAppointment;
bool isMedicalReportRequested; bool? isMedicalReportRequested;
bool isOnlineCheckedIN; bool? isOnlineCheckedIN;
String latitude; String? latitude;
List<ListHISGetContactLensPerscription> listHISGetContactLensPerscription; List<ListHISGetContactLensPerscription>? listHISGetContactLensPerscription;
List<ListHISGetGlassPerscription> listHISGetGlassPerscription; List<ListHISGetGlassPerscription>? listHISGetGlassPerscription;
String longitude; String? longitude;
int nextAction; int? nextAction;
int noOfPatientsRate; int? noOfPatientsRate;
int originalClinicID; int? originalClinicID;
int originalProjectID; int? originalProjectID;
String projectName; String? projectName;
String qR; String? qR;
int remaniningHoursTocanPay; int? remaniningHoursTocanPay;
bool sMSButtonVisable; bool? sMSButtonVisable;
bool isInOutPatient; bool? isInOutPatient;
AppoimentAllHistoryResultList({ AppoimentAllHistoryResultList({
this.setupID, this.setupID,
@ -137,7 +137,7 @@ class AppoimentAllHistoryResultList {
this.isInOutPatient, this.isInOutPatient,
}); });
AppoimentAllHistoryResultList.fromJson(Map<String, dynamic> json) { AppoimentAllHistoryResultList.fromJson(Map<String?, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
projectID = json['ProjectID']; projectID = json['ProjectID'];
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];
@ -178,7 +178,7 @@ class AppoimentAllHistoryResultList {
doctorImageURL = json['DoctorImageURL']; doctorImageURL = json['DoctorImageURL'];
doctorNameObj = json['DoctorNameObj']; doctorNameObj = json['DoctorNameObj'];
doctorRate = json['DoctorRate']; doctorRate = json['DoctorRate'];
if (doctorSpeciality != null) doctorSpeciality = json['DoctorSpeciality'].cast<String>(); if (doctorSpeciality != null) doctorSpeciality = json['DoctorSpeciality'].cast<String?>();
doctorTitle = json['DoctorTitle']; doctorTitle = json['DoctorTitle'];
gender = json['Gender']; gender = json['Gender'];
genderDescription = json['GenderDescription']; genderDescription = json['GenderDescription'];
@ -193,15 +193,15 @@ class AppoimentAllHistoryResultList {
isOnlineCheckedIN = json['IsOnlineCheckedIN']; isOnlineCheckedIN = json['IsOnlineCheckedIN'];
latitude = json['Latitude']; latitude = json['Latitude'];
if (json['List_HIS_GetContactLensPerscription'] != null) { if (json['List_HIS_GetContactLensPerscription'] != null) {
listHISGetContactLensPerscription = new List<ListHISGetContactLensPerscription>(); listHISGetContactLensPerscription = <ListHISGetContactLensPerscription>[];
json['List_HIS_GetContactLensPerscription'].forEach((v) { json['List_HIS_GetContactLensPerscription'].forEach((v) {
listHISGetContactLensPerscription.add(new ListHISGetContactLensPerscription.fromJson(v)); listHISGetContactLensPerscription!.add(new ListHISGetContactLensPerscription.fromJson(v));
}); });
} }
if (json['List_HIS_GetGlassPerscription'] != null) { if (json['List_HIS_GetGlassPerscription'] != null) {
listHISGetGlassPerscription = new List<ListHISGetGlassPerscription>(); listHISGetGlassPerscription = <ListHISGetGlassPerscription>[];
json['List_HIS_GetGlassPerscription'].forEach((v) { json['List_HIS_GetGlassPerscription'].forEach((v) {
listHISGetGlassPerscription.add(new ListHISGetGlassPerscription.fromJson(v)); listHISGetGlassPerscription!.add(new ListHISGetGlassPerscription.fromJson(v));
}); });
} }
longitude = json['Longitude']; longitude = json['Longitude'];
@ -220,8 +220,8 @@ class AppoimentAllHistoryResultList {
isInOutPatient = json['IsInOutPatient']; isInOutPatient = json['IsInOutPatient'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['AppointmentNo'] = this.appointmentNo; data['AppointmentNo'] = this.appointmentNo;
@ -277,10 +277,20 @@ class AppoimentAllHistoryResultList {
data['IsOnlineCheckedIN'] = this.isOnlineCheckedIN; data['IsOnlineCheckedIN'] = this.isOnlineCheckedIN;
data['Latitude'] = this.latitude; data['Latitude'] = this.latitude;
if (this.listHISGetContactLensPerscription != null) { if (this.listHISGetContactLensPerscription != null) {
data['List_HIS_GetContactLensPerscription'] = this.listHISGetContactLensPerscription.map((v) => v.toJson()).toList(); data['List_HIS_GetContactLensPerscription'] = this
.listHISGetContactLensPerscription!
.map(
(v) => v.toJson(),
)
.toList();
} }
if (this.listHISGetGlassPerscription != null) { if (this.listHISGetGlassPerscription != null) {
data['List_HIS_GetGlassPerscription'] = this.listHISGetGlassPerscription.map((v) => v.toJson()).toList(); data['List_HIS_GetGlassPerscription'] = this
.listHISGetGlassPerscription!
.map(
(v) => v.toJson(),
)
.toList();
} }
data['Longitude'] = this.longitude; data['Longitude'] = this.longitude;
data['NextAction'] = this.nextAction; data['NextAction'] = this.nextAction;
@ -300,13 +310,13 @@ class AppoimentAllHistoryResultList {
} }
class ListHISGetContactLensPerscription { class ListHISGetContactLensPerscription {
String setupId; String? setupId;
int projectId; int? projectId;
int patientType; int? patientType;
int patientId; int? patientId;
int encounterType; int? encounterType;
int encounterNo; int? encounterNo;
int oDOS; int? oDOS;
dynamic brand; dynamic brand;
dynamic baseCurve; dynamic baseCurve;
dynamic power; dynamic power;
@ -314,10 +324,10 @@ class ListHISGetContactLensPerscription {
dynamic oZ; dynamic oZ;
dynamic cT; dynamic cT;
dynamic blend; dynamic blend;
String remarks; String? remarks;
int status; int? status;
bool isActive; bool? isActive;
String createdOn; String? createdOn;
ListHISGetContactLensPerscription( ListHISGetContactLensPerscription(
{this.setupId, {this.setupId,
@ -339,7 +349,7 @@ class ListHISGetContactLensPerscription {
this.isActive, this.isActive,
this.createdOn}); this.createdOn});
ListHISGetContactLensPerscription.fromJson(Map<String, dynamic> json) { ListHISGetContactLensPerscription.fromJson(Map<String?, dynamic> json) {
setupId = json['SetupId']; setupId = json['SetupId'];
projectId = json['ProjectId']; projectId = json['ProjectId'];
patientType = json['PatientType']; patientType = json['PatientType'];
@ -360,8 +370,8 @@ class ListHISGetContactLensPerscription {
createdOn = json['CreatedOn']; createdOn = json['CreatedOn'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['SetupId'] = this.setupId; data['SetupId'] = this.setupId;
data['ProjectId'] = this.projectId; data['ProjectId'] = this.projectId;
data['PatientType'] = this.patientType; data['PatientType'] = this.patientType;
@ -386,28 +396,28 @@ class ListHISGetContactLensPerscription {
class ListHISGetGlassPerscription { class ListHISGetGlassPerscription {
dynamic projectID; dynamic projectID;
String setupID; String? setupID;
dynamic patientId; dynamic patientId;
dynamic encounterType; dynamic encounterType;
dynamic encounterNo; dynamic encounterNo;
String visionType; String? visionType;
double rightEyeSpherical; double? rightEyeSpherical;
dynamic rightEyeCylinder; dynamic rightEyeCylinder;
dynamic rightEyeAxis; dynamic rightEyeAxis;
dynamic rightEyePrism; dynamic rightEyePrism;
dynamic rightEyeVA; dynamic rightEyeVA;
String rightEyeRemarks; String? rightEyeRemarks;
dynamic leftEyeSpherical; dynamic leftEyeSpherical;
dynamic leftEyeCylinder; dynamic leftEyeCylinder;
dynamic leftEyeAxis; dynamic leftEyeAxis;
dynamic leftEyePrism; dynamic leftEyePrism;
dynamic leftEyeVA; dynamic leftEyeVA;
String leftEyeRemarks; String? leftEyeRemarks;
dynamic pD; dynamic pD;
dynamic bVD; dynamic bVD;
dynamic status; dynamic status;
bool isActive; bool? isActive;
String createdOn; String? createdOn;
ListHISGetGlassPerscription( ListHISGetGlassPerscription(
{this.projectID, {this.projectID,
@ -434,7 +444,7 @@ class ListHISGetGlassPerscription {
this.isActive, this.isActive,
this.createdOn}); this.createdOn});
ListHISGetGlassPerscription.fromJson(Map<String, dynamic> json) { ListHISGetGlassPerscription.fromJson(Map<String?, dynamic> json) {
projectID = json['ProjectID']; projectID = json['ProjectID'];
setupID = json['SetupID']; setupID = json['SetupID'];
patientId = json['PatientId']; patientId = json['PatientId'];
@ -460,8 +470,8 @@ class ListHISGetGlassPerscription {
createdOn = json['CreatedOn']; createdOn = json['CreatedOn'];
} }
Map<String, dynamic> toJson() { Map<String?, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String?, dynamic> data = new Map<String?, dynamic>();
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['PatientId'] = this.patientId; data['PatientId'] = this.patientId;

@ -1,8 +1,8 @@
import 'AppoimentAllHistoryResult.dart'; import 'AppoimentAllHistoryResult.dart';
class AppointmentFilter { class AppointmentFilter {
List<AppoimentAllHistoryResultList> appointmentAllHistoryResultList = List(); List<AppoimentAllHistoryResultList>appointmentAllHistoryResultList = [];
String filterName; String? filterName;
AppointmentFilter( AppointmentFilter(
AppoimentAllHistoryResultList allHistoryResultList, String filterName) { AppoimentAllHistoryResultList allHistoryResultList, String filterName) {

@ -1,24 +1,24 @@
class AddFamilyFileReq { class AddFamilyFileReq {
int searchType; int? searchType;
int sharedPatientID; int? sharedPatientID;
String sharedPatientIdentificationID; String? sharedPatientIdentificationID;
String sharedPatientMobileNumber; String? sharedPatientMobileNumber;
String zipCode; String? zipCode;
bool isRegister; bool? isRegister;
int patientStatus; int? patientStatus;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
AddFamilyFileReq( AddFamilyFileReq(
{this.searchType, {this.searchType,

@ -1,21 +1,21 @@
class InsertSharePatientFileReq { class InsertSharePatientFileReq {
int responseID; int? responseID;
String shareFamilyPatientName; String? shareFamilyPatientName;
int status; int? status;
int regionID; int? regionID;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
InsertSharePatientFileReq( InsertSharePatientFileReq(
{this.responseID, {this.responseID,

@ -1,32 +1,32 @@
class COCItem { class COCItem {
Null appointment; Null appointment;
String appointmentClinicName; String? appointmentClinicName;
String appointmentDate; String? appointmentDate;
String appointmentProjectName; String? appointmentProjectName;
String cOCID; String? cOCID;
String cOCTitle; String? cOCTitle;
String channel; String? channel;
dynamic clinic; dynamic clinic;
String clinicID; String? clinicID;
String date; String? date;
dynamic detail; dynamic detail;
dynamic doctor; dynamic doctor;
String doctorID; String? doctorID;
String formType; String? formType;
int formTypeID; int? formTypeID;
dynamic identificationNo; dynamic identificationNo;
int itemID; int? itemID;
dynamic mobileNo; dynamic mobileNo;
dynamic naturename; dynamic naturename;
dynamic patientID; dynamic patientID;
dynamic patientName; dynamic patientName;
dynamic project; dynamic project;
dynamic projectID; dynamic projectID;
String solution; String? solution;
String status; String? status;
String statusAr; String? statusAr;
dynamic statusEn; dynamic statusEn;
int statusId; int? statusId;
COCItem({ COCItem({
this.appointment, this.appointment,

@ -1,35 +1,36 @@
class RequestInsertCOCItem { class RequestInsertCOCItem {
bool isUserLoggedIn; bool? isUserLoggedIn;
String mobileNo; String? mobileNo;
int identificationNo; int? identificationNo;
int patientID; int? patientID;
int patientOutSA; int? patientOutSA;
int patientTypeID; int? patientTypeID;
String tokenID; String? tokenID;
String patientName; String? patientName;
int projectID; int? projectID;
String fileName; String? fileName;
String attachment; String? attachment;
String uILanguage; String? uILanguage;
String browserInfo; String? browserInfo;
String cOCTypeName; String? cOCTypeName;
String formTypeID; String? formTypeID;
String details; String? details;
String deviceInfo; String? deviceInfo;
String deviceType; String? deviceType;
String title; String? title;
String resolution; String? resolution;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int patientType; int? patientType;
double appVersion; double? appVersion;
bool forDemo; bool? forDemo;
RequestInsertCOCItem( RequestInsertCOCItem(
{this.isUserLoggedIn, {this.isUserLoggedIn,
this.mobileNo, this.mobileNo,

@ -6,11 +6,11 @@ import 'package:diplomaticquarterapp/core/service/base_service.dart';
import 'package:diplomaticquarterapp/pages/feedback/appointment_history.dart'; import 'package:diplomaticquarterapp/pages/feedback/appointment_history.dart';
class ReportsService extends BaseService { class ReportsService extends BaseService {
List<Reports> reportsList = List(); List<Reports> reportsList = [];
List<Reports> inpatientReportsList = List(); List<Reports> inpatientReportsList =[];
List<AppointmentHistory> appointHistoryList = List(); List<AppointmentHistory> appointHistoryList =[];
List<AdmissionMedicalReport> admissionsMedicalReport = List(); List<AdmissionMedicalReport> admissionsMedicalReport = [];
String userAgreementContent = ""; String userAgreementContent = "";
RequestReports _requestReports = RequestReports(isReport: true, encounterType: 1, requestType: 1, patientOutSA: 0, projectID: 0); RequestReports _requestReports = RequestReports(isReport: true, encounterType: 1, requestType: 1, patientOutSA: 0, projectID: 0);

Loading…
Cancel
Save