Pubspec & Models Null Safety Update

update_flutter_3.16.0_voipcall
Aamir Muhammad 2 years ago
parent fe03cc606f
commit 435567305e

@ -1,5 +1,3 @@
//@dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:io' show Platform; import 'dart:io' show Platform;
@ -24,9 +22,9 @@ Utils helpers = new Utils();
class BaseAppClient { class BaseAppClient {
//TODO change the post fun to nun static when you change all service //TODO change the post fun to nun static when you change all service
post(String endPoint, post(String endPoint,
{Map<String, dynamic> body, {required Map<String, dynamic> body,
Function(dynamic response, int statusCode) onSuccess, required Function(dynamic response, int statusCode) onSuccess,
Function(String error, int statusCode) onFailure, required Function(String error, int statusCode) onFailure,
bool isAllowAny = false, bool isAllowAny = false,
bool isLiveCare = false, bool isLiveCare = false,
bool isFallLanguage = false}) async { bool isFallLanguage = false}) async {
@ -38,25 +36,23 @@ class BaseAppClient {
bool callLog = true; bool callLog = true;
try { try {
Map profile = await sharedPref.getObj(DOCTOR_PROFILE); Map<String, dynamic>? profile = await sharedPref.getObj(DOCTOR_PROFILE);
String token = await sharedPref.getString(TOKEN); String token = await sharedPref.getString(TOKEN);
if (profile != null) { if (profile != null) {
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile); DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
if (body['DoctorID'] == null) { if (body['DoctorID'] == null) {
body['DoctorID'] = doctorProfile?.doctorID; body['DoctorID'] = doctorProfile.doctorID;
} }
if (body['DoctorID'] == "") body['DoctorID'] = null; if (body['DoctorID'] == "") body['DoctorID'] = null;
if (body['EditedBy'] == null) if (body['EditedBy'] == null) body['EditedBy'] = doctorProfile.doctorID;
body['EditedBy'] = doctorProfile?.doctorID;
if (body['ProjectID'] == null) { if (body['ProjectID'] == null) {
body['ProjectID'] = doctorProfile?.projectID; body['ProjectID'] = doctorProfile.projectID;
} }
if (body['ClinicID'] == null) if (body['ClinicID'] == null) body['ClinicID'] = doctorProfile.clinicID;
body['ClinicID'] = doctorProfile?.clinicID;
} else { } else {
String doctorID = await sharedPref.getString(DOCTOR_ID); String? doctorID = await sharedPref.getString(DOCTOR_ID);
if (body['DoctorID'] == '') { if (body['DoctorID'] == '') {
body['DoctorID'] = null; body['DoctorID'] = null;
} else if (doctorID != null) body['DoctorID'] = int.parse(doctorID); } else if (doctorID != null) body['DoctorID'] = int.parse(doctorID);
@ -70,7 +66,7 @@ class BaseAppClient {
} }
if (!isFallLanguage) { if (!isFallLanguage) {
String lang = await sharedPref.getString(APP_Language); String? lang = await sharedPref.getString(APP_Language);
if (lang != null && lang == 'ar') if (lang != null && lang == 'ar')
body['LanguageID'] = 1; body['LanguageID'] = 1;
else else
@ -88,21 +84,16 @@ class BaseAppClient {
body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP; body['IsLoginForDoctorApp'] = IS_LOGIN_FOR_DOCTOR_APP;
body['PatientOutSA'] = body['PatientOutSA'] ?? 0; // PATIENT_OUT_SA; body['PatientOutSA'] = body['PatientOutSA'] ?? 0; // PATIENT_OUT_SA;
if (body['VidaAuthTokenID'] == null) { if (body['VidaAuthTokenID'] == null) {
body['VidaAuthTokenID'] = body['VidaAuthTokenID'] = await sharedPref.getString(VIDA_AUTH_TOKEN_ID);
await sharedPref.getString(VIDA_AUTH_TOKEN_ID);
} }
if (body['VidaRefreshTokenID'] == null) { if (body['VidaRefreshTokenID'] == null) {
body['VidaRefreshTokenID'] = body['VidaRefreshTokenID'] = await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
await sharedPref.getString(VIDA_REFRESH_TOKEN_ID);
} }
int projectID = await sharedPref.getInt(PROJECT_ID); int projectID = await sharedPref.getInt(PROJECT_ID);
if (projectID == 2 || projectID == 3) if (projectID == 2 || projectID == 3)
body['PatientOutSA'] = true; body['PatientOutSA'] = true;
else if ((body.containsKey('facilityId') && body['facilityId'] == 2 || else if ((body.containsKey('facilityId') && body['facilityId'] == 2 || body['facilityId'] == 3) || body['ProjectID'] == 2 || body['ProjectID'] == 3)
body['facilityId'] == 3) ||
body['ProjectID'] == 2 ||
body['ProjectID'] == 3)
body['PatientOutSA'] = true; body['PatientOutSA'] = true;
else else
body['PatientOutSA'] = false; body['PatientOutSA'] = false;
@ -113,29 +104,21 @@ class BaseAppClient {
var asd = json.encode(body); var asd = json.encode(body);
var asd2; var asd2;
if (await Utils.checkConnection()) { if (await Utils.checkConnection()) {
final response = await http.post(Uri.parse(url), final response = await http.post(Uri.parse(url), body: json.encode(body), headers: {'Content-Type': 'application/json', 'Accept': 'application/json'});
body: json.encode(body),
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
});
final int statusCode = response.statusCode; final int statusCode = response.statusCode;
if (statusCode < 200 || statusCode >= 400) { if (statusCode < 200 || statusCode >= 400) {
onFailure(Utils.generateContactAdminMsg(), statusCode); onFailure(Utils.generateContactAdminMsg(), statusCode);
} else { } else {
var parsed = json.decode(response.body.toString()); var parsed = json.decode(response.body.toString());
if (parsed['ErrorType'] == 4) { if (parsed['ErrorType'] == 4) {
helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], parsed['AndroidLink'], parsed['IOSLink']);
parsed['AndroidLink'], parsed['IOSLink']);
} }
if (parsed['IsAuthenticated'] != null && !parsed['IsAuthenticated']) { if (parsed['IsAuthenticated'] != null && !parsed['IsAuthenticated']) {
if (body['OTP_SendType'] != null) { if (body['OTP_SendType'] != null) {
onFailure(getError(parsed), statusCode); onFailure(getError(parsed), statusCode);
} else if (!isAllowAny) { } else if (!isAllowAny) {
await Provider.of<AuthenticationViewModel>(AppGlobal.CONTEX, await Provider.of<AuthenticationViewModel>(AppGlobal.CONTEX, listen: false).logout();
listen: false)
.logout();
Utils.showErrorToast('Your session expired Please login again'); Utils.showErrorToast('Your session expired Please login again');
locator<NavigationService>().pushNamedAndRemoveUntil(ROOT); locator<NavigationService>().pushNamedAndRemoveUntil(ROOT);
@ -162,30 +145,26 @@ class BaseAppClient {
} }
postPatient(String endPoint, postPatient(String endPoint,
{Map<String, dynamic> body, {required Map<String, dynamic> body,
Function(dynamic response, int statusCode) onSuccess, required Function(dynamic response, int statusCode) onSuccess,
Function(String error, int statusCode) onFailure, required Function(String error, int statusCode) onFailure,
@required PatiantInformtion patient, required PatiantInformtion patient,
bool isExternal = false}) async { bool isExternal = false}) async {
String url = BASE_URL + endPoint; String url = BASE_URL + endPoint;
try { try {
Map<String, String> headers = { Map<String, String> headers = {'Content-Type': 'application/json', 'Accept': 'application/json'};
'Content-Type': 'application/json',
'Accept': 'application/json'
};
String token = await sharedPref.getString(TOKEN); String token = await sharedPref.getString(TOKEN);
Map profile = await sharedPref.getObj(DOCTOR_PROFILE); Map<String, dynamic>? profile = await sharedPref.getObj(DOCTOR_PROFILE);
if (profile != null) { if (profile != null) {
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile); DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
if (body['DoctorID'] == null) { if (body['DoctorID'] == null) {
body['DoctorID'] = doctorProfile?.doctorID; body['DoctorID'] = doctorProfile.doctorID;
} }
} }
var languageID = var languageID = await sharedPref.getStringWithDefaultValue(APP_Language, 'en');
await sharedPref.getStringWithDefaultValue(APP_Language, 'en');
body['SetupID'] = body.containsKey('SetupID') body['SetupID'] = body.containsKey('SetupID')
? body['SetupID'] != null ? body['SetupID'] != null
? body['SetupID'] ? body['SetupID']
@ -205,12 +184,11 @@ class BaseAppClient {
: PATIENT_OUT_SA_PATIENT_REQ; : PATIENT_OUT_SA_PATIENT_REQ;
if (body.containsKey('isDentalAllowedBackend')) { if (body.containsKey('isDentalAllowedBackend')) {
body['isDentalAllowedBackend'] = body['isDentalAllowedBackend'] = body.containsKey('isDentalAllowedBackend')
body.containsKey('isDentalAllowedBackend') ? body['isDentalAllowedBackend'] != null
? body['isDentalAllowedBackend'] != null ? body['isDentalAllowedBackend']
? body['isDentalAllowedBackend'] : IS_DENTAL_ALLOWED_BACKEND
: IS_DENTAL_ALLOWED_BACKEND : IS_DENTAL_ALLOWED_BACKEND;
: IS_DENTAL_ALLOWED_BACKEND;
} }
body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2; body['DeviceTypeID'] = Platform.isAndroid ? 1 : 2;
@ -231,10 +209,8 @@ class BaseAppClient {
: PATIENT_TYPE_ID : PATIENT_TYPE_ID
: PATIENT_TYPE_ID; : PATIENT_TYPE_ID;
body['TokenID'] = body.containsKey('TokenID') ? body['TokenID']??token : token; body['TokenID'] = body.containsKey('TokenID') ? body['TokenID'] ?? token : token;
body['PatientID'] = body['PatientID'] != null body['PatientID'] = body['PatientID'] != null ? body['PatientID'] : patient.patientId ?? patient.patientMRN;
? body['PatientID']
: patient.patientId ?? patient.patientMRN;
body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it body['PatientOutSA'] = 0; //user['OutSA']; //TODO change it
body['SessionID'] = SESSION_ID; //getSe body['SessionID'] = SESSION_ID; //getSe
@ -247,11 +223,8 @@ class BaseAppClient {
print("URL : $url"); print("URL : $url");
print("Body : ${json.encode(body)}"); print("Body : ${json.encode(body)}");
var asd = json.encode(body);
var asd2;
if (await Utils.checkConnection()) { if (await Utils.checkConnection()) {
final response = await http.post(Uri.parse(url.trim()), final response = await http.post(Uri.parse(url.trim()), body: json.encode(body), headers: headers);
body: json.encode(body), headers: headers);
final int statusCode = response.statusCode; final int statusCode = response.statusCode;
print("statusCode :$statusCode"); print("statusCode :$statusCode");
if (statusCode < 200 || statusCode >= 400 || json == null) { if (statusCode < 200 || statusCode >= 400 || json == null) {
@ -263,8 +236,7 @@ class BaseAppClient {
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
} else { } else {
if (parsed['ErrorType'] == 4) { if (parsed['ErrorType'] == 4) {
helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], helpers.navigateToUpdatePage(parsed['ErrorEndUserMessage'], parsed['AndroidLink'], parsed['IOSLink']);
parsed['AndroidLink'], parsed['IOSLink']);
} }
if (parsed['IsAuthenticated'] == null) { if (parsed['IsAuthenticated'] == null) {
if (parsed['isSMSSent'] == true) { if (parsed['isSMSSent'] == true) {
@ -280,28 +252,20 @@ class BaseAppClient {
onFailure(getError(parsed), statusCode); onFailure(getError(parsed), statusCode);
} }
} }
} else if (parsed['MessageStatus'] == 1 || } else if (parsed['MessageStatus'] == 1 || parsed['SMSLoginRequired'] == true) {
parsed['SMSLoginRequired'] == true) {
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
} else if (parsed['MessageStatus'] == 2 && } else if (parsed['MessageStatus'] == 2 && parsed['IsAuthenticated']) {
parsed['IsAuthenticated']) {
if (parsed['SameClinicApptList'] != null) { if (parsed['SameClinicApptList'] != null) {
onSuccess(parsed, statusCode); onSuccess(parsed, statusCode);
} else { } else {
if (parsed['message'] == null && if (parsed['message'] == null && parsed['ErrorEndUserMessage'] == null) {
parsed['ErrorEndUserMessage'] == null) {
if (parsed['ErrorSearchMsg'] == null) { if (parsed['ErrorSearchMsg'] == null) {
onFailure("Server Error found with no available message", onFailure("Server Error found with no available message", statusCode);
statusCode);
} else { } else {
onFailure(parsed['ErrorSearchMsg'], statusCode); onFailure(parsed['ErrorSearchMsg'], statusCode);
} }
} else { } else {
onFailure( onFailure(parsed['message'] ?? parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'], statusCode);
parsed['message'] ??
parsed['ErrorEndUserMessage'] ??
parsed['ErrorMessage'],
statusCode);
} }
} }
} else { } else {
@ -311,9 +275,7 @@ class BaseAppClient {
if (parsed['message'] != null) { if (parsed['message'] != null) {
onFailure(parsed['message'] ?? parsed['message'], statusCode); onFailure(parsed['message'] ?? parsed['message'], statusCode);
} else { } else {
onFailure( onFailure(parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'], statusCode);
parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'],
statusCode);
} }
} }
} }
@ -334,14 +296,9 @@ class BaseAppClient {
if (parsed["ValidationErrors"] != null) { if (parsed["ValidationErrors"] != null) {
error = parsed["ValidationErrors"]["StatusMessage"].toString() + "\n"; error = parsed["ValidationErrors"]["StatusMessage"].toString() + "\n";
if (parsed["ValidationErrors"]["ValidationErrors"] != null && if (parsed["ValidationErrors"]["ValidationErrors"] != null && parsed["ValidationErrors"]["ValidationErrors"].length != 0) {
parsed["ValidationErrors"]["ValidationErrors"].length != 0) { for (var i = 0; i < parsed["ValidationErrors"]["ValidationErrors"].length; i++) {
for (var i = 0; error = error + parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] + "\n";
i < parsed["ValidationErrors"]["ValidationErrors"].length;
i++) {
error = error +
parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] +
"\n";
} }
} }
} }

@ -5,15 +5,15 @@ 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 bool isPortrait = true; static bool isPortrait = true;
static double widthMultiplier; static double? widthMultiplier;
static bool isMobilePortrait = false; static bool isMobilePortrait = false;
static bool isMobile = false; static bool isMobile = false;
static bool isHeightShort = false; static bool isHeightShort = false;
@ -44,7 +44,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;
} }
// textMultiplier = _blockHeight; // textMultiplier = _blockHeight;
@ -59,8 +59,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;
@ -77,7 +77,7 @@ class SizeConfig {
print('isMobilePortrait $isMobilePortrait'); print('isMobilePortrait $isMobilePortrait');
} }
static getTextMultiplierBasedOnWidth({double width}) { static getTextMultiplierBasedOnWidth({double? width}) {
// TODO handel LandScape case // TODO handel LandScape case
if (width != null) { if (width != null) {
return width / 100; return width / 100;
@ -85,7 +85,7 @@ class SizeConfig {
return widthMultiplier; return widthMultiplier;
} }
static getWidthMultiplier({double width}) { static getWidthMultiplier({double? width}) {
// TODO handel LandScape case // TODO handel LandScape case
if (width != null) { if (width != null) {
return width / 100; return width / 100;
@ -93,7 +93,7 @@ class SizeConfig {
return widthMultiplier; return widthMultiplier;
} }
static getHeightMultiplier({double height}) { static getHeightMultiplier({double? height}) {
// TODO handel LandScape case // TODO handel LandScape case
if (height != null) { if (height != null) {
return height / 100; return height / 100;

@ -1,8 +1,8 @@
class DoctorErSignAssessmentReqModel { class DoctorErSignAssessmentReqModel {
String setupID; String? setupID;
int signInType; int? signInType;
int loginDoctorID; int? loginDoctorID;
int patientID; int? patientID;
DoctorErSignAssessmentReqModel( DoctorErSignAssessmentReqModel(
{this.setupID, this.signInType, this.loginDoctorID, this.patientID}); {this.setupID, this.signInType, this.loginDoctorID, this.patientID});

@ -1,200 +1,190 @@
class AdmissionRequest { class AdmissionRequest {
int patientMRN; int? patientMRN;
int admitToClinic; int? admitToClinic;
bool isPregnant; bool? isPregnant;
int pregnancyWeeks; int? pregnancyWeeks;
int pregnancyType; int? pregnancyType;
int noOfBabies; int? noOfBabies;
int mrpDoctorID; int? mrpDoctorID;
String admissionDate; String? admissionDate;
int expectedDays; int? expectedDays;
int admissionType; int? admissionType;
int admissionLocationID; int? admissionLocationID;
int roomCategoryID; int? roomCategoryID;
int wardID; int? wardID;
bool isSickLeaveRequired; bool? isSickLeaveRequired;
String sickLeaveComments; String? sickLeaveComments;
bool isTransport; bool? isTransport;
String transportComments; String? transportComments;
bool isPhysioAppointmentNeeded; bool? isPhysioAppointmentNeeded;
String physioAppointmentComments; String? physioAppointmentComments;
bool isOPDFollowupAppointmentNeeded; bool? isOPDFollowupAppointmentNeeded;
String opdFollowUpComments; String? opdFollowUpComments;
bool isDietType; bool? isDietType;
int dietType; int? dietType;
String dietRemarks; String? dietRemarks;
bool isPhysicalActivityModification; bool? isPhysicalActivityModification;
String physicalActivityModificationComments; String? physicalActivityModificationComments;
int orStatus; int? orStatus;
String mainLineOfTreatment; String? mainLineOfTreatment;
int estimatedCost; int? estimatedCost;
String elementsForImprovement; String? elementsForImprovement;
bool isPackagePatient; bool? isPackagePatient;
String complications; String? complications;
String otherDepartmentInterventions; String? otherDepartmentInterventions;
String otherProcedures; String? otherProcedures;
String pastMedicalHistory; String? pastMedicalHistory;
String pastSurgicalHistory; String? pastSurgicalHistory;
List<dynamic> admissionRequestDiagnoses; List<dynamic>? admissionRequestDiagnoses;
List<dynamic> admissionRequestProcedures; List<dynamic>? admissionRequestProcedures;
int appointmentNo; int? appointmentNo;
int episodeID; int? episodeID;
int admissionRequestNo; int? admissionRequestNo;
AdmissionRequest( AdmissionRequest({
{this.patientMRN, this.patientMRN,
this.admitToClinic, this.admitToClinic,
this.isPregnant, this.isPregnant,
this.pregnancyWeeks = 0, this.pregnancyWeeks,
this.pregnancyType = 0, this.pregnancyType,
this.noOfBabies = 0, this.noOfBabies,
this.mrpDoctorID, this.mrpDoctorID,
this.admissionDate, this.admissionDate,
this.expectedDays, this.expectedDays,
this.admissionType, this.admissionType,
this.admissionLocationID = 0, this.admissionLocationID,
this.roomCategoryID = 0, this.roomCategoryID,
this.wardID, this.wardID,
this.isSickLeaveRequired, this.isSickLeaveRequired,
this.sickLeaveComments = "", this.sickLeaveComments,
this.isTransport = false, this.isTransport,
this.transportComments = "", this.transportComments,
this.isPhysioAppointmentNeeded = false, this.isPhysioAppointmentNeeded,
this.physioAppointmentComments = "", this.physioAppointmentComments,
this.isOPDFollowupAppointmentNeeded = false, this.isOPDFollowupAppointmentNeeded,
this.opdFollowUpComments = "", this.opdFollowUpComments,
this.isDietType, this.isDietType,
this.dietType, this.dietType,
this.dietRemarks, this.dietRemarks,
this.isPhysicalActivityModification = false, this.isPhysicalActivityModification,
this.physicalActivityModificationComments = "", this.physicalActivityModificationComments,
this.orStatus = 1, this.orStatus,
this.mainLineOfTreatment, this.mainLineOfTreatment,
this.estimatedCost, this.estimatedCost,
this.elementsForImprovement, this.elementsForImprovement,
this.isPackagePatient = false, this.isPackagePatient,
this.complications = "", this.complications,
this.otherDepartmentInterventions = "", this.otherDepartmentInterventions,
this.otherProcedures = "", this.otherProcedures,
this.pastMedicalHistory = "", this.pastMedicalHistory,
this.pastSurgicalHistory = "", this.pastSurgicalHistory,
this.admissionRequestDiagnoses, this.admissionRequestDiagnoses,
this.admissionRequestProcedures, this.admissionRequestProcedures,
this.appointmentNo, this.appointmentNo,
this.episodeID, this.episodeID,
this.admissionRequestNo}); this.admissionRequestNo,
});
AdmissionRequest.fromJson(Map<String, dynamic> json) { AdmissionRequest.fromJson(Map<String, dynamic>? json) {
patientMRN = json['patientMRN']; if (json != null) {
admitToClinic = json['admitToClinic']; patientMRN = json['patientMRN'];
isPregnant = json['isPregnant']; admitToClinic = json['admitToClinic'];
pregnancyWeeks = json['pregnancyWeeks']; isPregnant = json['isPregnant'];
pregnancyType = json['pregnancyType']; pregnancyWeeks = json['pregnancyWeeks'];
noOfBabies = json['noOfBabies']; pregnancyType = json['pregnancyType'];
mrpDoctorID = json['mrpDoctorID']; noOfBabies = json['noOfBabies'];
admissionDate = json['admissionDate']; mrpDoctorID = json['mrpDoctorID'];
expectedDays = json['expectedDays']; admissionDate = json['admissionDate'];
admissionType = json['admissionType']; expectedDays = json['expectedDays'];
admissionLocationID = json['admissionLocationID']; admissionType = json['admissionType'];
roomCategoryID = json['roomCategoryID']; admissionLocationID = json['admissionLocationID'];
wardID = json['wardID']; roomCategoryID = json['roomCategoryID'];
isSickLeaveRequired = json['isSickLeaveRequired']; wardID = json['wardID'];
sickLeaveComments = json['sickLeaveComments']; isSickLeaveRequired = json['isSickLeaveRequired'];
isTransport = json['isTransport']; sickLeaveComments = json['sickLeaveComments'];
transportComments = json['transportComments']; isTransport = json['isTransport'];
isPhysioAppointmentNeeded = json['isPhysioAppointmentNeeded']; transportComments = json['transportComments'];
physioAppointmentComments = json['physioAppointmentComments']; isPhysioAppointmentNeeded = json['isPhysioAppointmentNeeded'];
isOPDFollowupAppointmentNeeded = json['isOPDFollowupAppointmentNeeded']; physioAppointmentComments = json['physioAppointmentComments'];
opdFollowUpComments = json['opdFollowUpComments']; isOPDFollowupAppointmentNeeded = json['isOPDFollowupAppointmentNeeded'];
isDietType = json['isDietType']; opdFollowUpComments = json['opdFollowUpComments'];
dietType = json['dietType']; isDietType = json['isDietType'];
dietRemarks = json['dietRemarks']; dietType = json['dietType'];
isPhysicalActivityModification = json['isPhysicalActivityModification']; dietRemarks = json['dietRemarks'];
physicalActivityModificationComments = isPhysicalActivityModification =
json['physicalActivityModificationComments']; json['isPhysicalActivityModification'];
orStatus = json['orStatus']; physicalActivityModificationComments =
mainLineOfTreatment = json['mainLineOfTreatment']; json['physicalActivityModificationComments'];
estimatedCost = json['estimatedCost']; orStatus = json['orStatus'];
elementsForImprovement = json['elementsForImprovement']; mainLineOfTreatment = json['mainLineOfTreatment'];
isPackagePatient = json['isPackagePatient']; estimatedCost = json['estimatedCost'];
complications = json['complications']; elementsForImprovement = json['elementsForImprovement'];
otherDepartmentInterventions = json['otherDepartmentInterventions']; isPackagePatient = json['isPackagePatient'];
otherProcedures = json['otherProcedures']; complications = json['complications'];
pastMedicalHistory = json['pastMedicalHistory']; otherDepartmentInterventions = json['otherDepartmentInterventions'];
pastSurgicalHistory = json['pastSurgicalHistory']; otherProcedures = json['otherProcedures'];
if (json['admissionRequestDiagnoses'] != null) { pastMedicalHistory = json['pastMedicalHistory'];
admissionRequestDiagnoses = new List<dynamic>(); pastSurgicalHistory = json['pastSurgicalHistory'];
json['admissionRequestDiagnoses'].forEach((v) { if (json['admissionRequestDiagnoses'] != null) {
admissionRequestDiagnoses.add(v); admissionRequestDiagnoses = List<dynamic>.from(
// admissionRequestDiagnoses json['admissionRequestDiagnoses'],
// .add(new AdmissionRequestDiagnoses.fromJson(v)); );
}); }
if (json['admissionRequestProcedures'] != null) {
admissionRequestProcedures = List<dynamic>.from(
json['admissionRequestProcedures'],
);
}
appointmentNo = json['appointmentNo'];
episodeID = json['episodeID'];
admissionRequestNo = json['admissionRequestNo'];
} }
if (json['admissionRequestProcedures'] != null) {
admissionRequestProcedures = new List<dynamic>();
json['admissionRequestProcedures'].forEach((v) {
admissionRequestProcedures.add(v);
// admissionRequestProcedures
// .add(new AdmissionRequestProcedures.fromJson(v));
});
}
appointmentNo = json['appointmentNo'];
episodeID = json['episodeID'];
admissionRequestNo = json['admissionRequestNo'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = {};
data['patientMRN'] = this.patientMRN; data['patientMRN'] = patientMRN;
data['admitToClinic'] = this.admitToClinic; data['admitToClinic'] = admitToClinic;
data['isPregnant'] = this.isPregnant; data['isPregnant'] = isPregnant;
data['pregnancyWeeks'] = this.pregnancyWeeks; data['pregnancyWeeks'] = pregnancyWeeks;
data['pregnancyType'] = this.pregnancyType; data['pregnancyType'] = pregnancyType;
data['noOfBabies'] = this.noOfBabies; data['noOfBabies'] = noOfBabies;
data['mrpDoctorID'] = this.mrpDoctorID; data['mrpDoctorID'] = mrpDoctorID;
data['admissionDate'] = this.admissionDate; data['admissionDate'] = admissionDate;
data['expectedDays'] = this.expectedDays; data['expectedDays'] = expectedDays;
data['admissionType'] = this.admissionType; data['admissionType'] = admissionType;
data['admissionLocationID'] = this.admissionLocationID; data['admissionLocationID'] = admissionLocationID;
data['roomCategoryID'] = this.roomCategoryID; data['roomCategoryID'] = roomCategoryID;
data['wardID'] = this.wardID; data['wardID'] = wardID;
data['isSickLeaveRequired'] = this.isSickLeaveRequired; data['isSickLeaveRequired'] = isSickLeaveRequired;
data['sickLeaveComments'] = this.sickLeaveComments; data['sickLeaveComments'] = sickLeaveComments;
data['isTransport'] = this.isTransport; data['isTransport'] = isTransport;
data['transportComments'] = this.transportComments; data['transportComments'] = transportComments;
data['isPhysioAppointmentNeeded'] = this.isPhysioAppointmentNeeded; data['isPhysioAppointmentNeeded'] = isPhysioAppointmentNeeded;
data['physioAppointmentComments'] = this.physioAppointmentComments; data['physioAppointmentComments'] = physioAppointmentComments;
data['isOPDFollowupAppointmentNeeded'] = data['isOPDFollowupAppointmentNeeded'] = isOPDFollowupAppointmentNeeded;
this.isOPDFollowupAppointmentNeeded; data['opdFollowUpComments'] = opdFollowUpComments;
data['opdFollowUpComments'] = this.opdFollowUpComments; data['isDietType'] = isDietType;
data['isDietType'] = this.isDietType; data['dietType'] = dietType;
data['dietType'] = this.dietType; data['dietRemarks'] = dietRemarks;
data['dietRemarks'] = this.dietRemarks; data['isPhysicalActivityModification'] = isPhysicalActivityModification;
data['isPhysicalActivityModification'] =
this.isPhysicalActivityModification;
data['physicalActivityModificationComments'] = data['physicalActivityModificationComments'] =
this.physicalActivityModificationComments; physicalActivityModificationComments;
data['orStatus'] = this.orStatus; data['orStatus'] = orStatus;
data['mainLineOfTreatment'] = this.mainLineOfTreatment; data['mainLineOfTreatment'] = mainLineOfTreatment;
data['estimatedCost'] = this.estimatedCost; data['estimatedCost'] = estimatedCost;
data['elementsForImprovement'] = this.elementsForImprovement; data['elementsForImprovement'] = elementsForImprovement;
data['isPackagePatient'] = this.isPackagePatient; data['isPackagePatient'] = isPackagePatient;
data['complications'] = this.complications; data['complications'] = complications;
data['otherDepartmentInterventions'] = this.otherDepartmentInterventions; data['otherDepartmentInterventions'] = otherDepartmentInterventions;
data['otherProcedures'] = this.otherProcedures; data['otherProcedures'] = otherProcedures;
data['pastMedicalHistory'] = this.pastMedicalHistory; data['pastMedicalHistory'] = pastMedicalHistory;
data['pastSurgicalHistory'] = this.pastSurgicalHistory; data['pastSurgicalHistory'] = pastSurgicalHistory;
if (this.admissionRequestDiagnoses != null) { data['admissionRequestDiagnoses'] = admissionRequestDiagnoses;
data['admissionRequestDiagnoses'] = this.admissionRequestDiagnoses; data['admissionRequestProcedures'] = admissionRequestProcedures;
// this.admissionRequestDiagnoses.map((v) => v.toJson()).toList(); data['appointmentNo'] = appointmentNo;
} data['episodeID'] = episodeID;
if (this.admissionRequestProcedures != null) { data['admissionRequestNo'] = admissionRequestNo;
data['admissionRequestProcedures'] =
this.admissionRequestProcedures.map((v) => v.toJson()).toList();
}
data['appointmentNo'] = this.appointmentNo;
data['episodeID'] = this.episodeID;
data['admissionRequestNo'] = this.admissionRequestNo;
return data; return data;
} }
} }

@ -1,32 +1,35 @@
class Clinic { class Clinic {
int clinicGroupID; int? clinicGroupID;
String clinicGroupName; String? clinicGroupName;
int clinicID; int? clinicID;
String clinicNameArabic; String? clinicNameArabic;
String clinicNameEnglish; String? clinicNameEnglish;
Clinic( Clinic({
{this.clinicGroupID, this.clinicGroupID,
this.clinicGroupName, this.clinicGroupName,
this.clinicID, this.clinicID,
this.clinicNameArabic, this.clinicNameArabic,
this.clinicNameEnglish}); this.clinicNameEnglish,
});
Clinic.fromJson(Map<String, dynamic> json) { Clinic.fromJson(Map<String, dynamic>? json) {
clinicGroupID = json['clinicGroupID']; if (json != null) {
clinicGroupName = json['clinicGroupName']; clinicGroupID = json['clinicGroupID'];
clinicID = json['clinicID']; clinicGroupName = json['clinicGroupName'];
clinicNameArabic = json['clinicNameArabic']; clinicID = json['clinicID'];
clinicNameEnglish = json['clinicNameEnglish']; clinicNameArabic = json['clinicNameArabic'];
clinicNameEnglish = json['clinicNameEnglish'];
}
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = {};
data['clinicGroupID'] = this.clinicGroupID; data['clinicGroupID'] = clinicGroupID;
data['clinicGroupName'] = this.clinicGroupName; data['clinicGroupName'] = clinicGroupName;
data['clinicID'] = this.clinicID; data['clinicID'] = clinicID;
data['clinicNameArabic'] = this.clinicNameArabic; data['clinicNameArabic'] = clinicNameArabic;
data['clinicNameEnglish'] = this.clinicNameEnglish; data['clinicNameEnglish'] = clinicNameEnglish;
return data; return data;
} }
} }

@ -1,8 +1,8 @@
class WardModel { class WardModel {
String description; String? description;
String descriptionN; String? descriptionN;
int floorID; int? floorID;
bool isActive; bool? isActive;
WardModel({this.description, this.descriptionN, this.floorID, this.isActive}); WardModel({this.description, this.descriptionN, this.floorID, this.isActive});

@ -1,15 +1,15 @@
class AdmissionOrdersModel { class AdmissionOrdersModel {
int procedureID; int? procedureID;
String procedureName; String? procedureName;
String procedureNameN; String? procedureNameN;
int orderNo; int? orderNo;
int doctorID; int? doctorID;
int clinicID; int? clinicID;
String createdOn; String? createdOn;
int createdBy; int? createdBy;
String editedOn; String? editedOn;
int editedBy; int? editedBy;
String createdByName; String? createdByName;
AdmissionOrdersModel( AdmissionOrdersModel(
{this.procedureID, {this.procedureID,

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

@ -1,12 +1,12 @@
class ActivationCodeModel { class ActivationCodeModel {
int channel; int? channel;
int languageID; int? languageID;
int loginDoctorID; int? loginDoctorID;
double versionID; double? versionID;
int memberID; int? memberID;
int facilityId; int? facilityId;
String generalid; String? generalid;
String otpSendType; String? otpSendType;
ActivationCodeModel( ActivationCodeModel(
{this.channel, {this.channel,

@ -1,18 +1,18 @@
class ActivationCodeForVerificationScreenModel { class ActivationCodeForVerificationScreenModel {
int oTPSendType; int? oTPSendType;
String mobileNumber; String? mobileNumber;
String zipCode; String? zipCode;
int channel; int? channel;
int loginDoctorID; int? loginDoctorID;
int languageID; int? languageID;
double versionID; double? versionID;
int memberID; int? memberID;
int facilityId; int? facilityId;
String generalid; String? generalid;
int isMobileFingerPrint; int? isMobileFingerPrint;
String vidaAuthTokenID; String? vidaAuthTokenID;
String vidaRefreshTokenID; String? vidaRefreshTokenID;
String iMEI; String? iMEI;
ActivationCodeForVerificationScreenModel( ActivationCodeForVerificationScreenModel(
{this.oTPSendType, {this.oTPSendType,

@ -1,59 +1,48 @@
import 'package:doctor_app_flutter/core/model/doctor/doctor_profile_model.dart'; import 'package:doctor_app_flutter/core/model/doctor/doctor_profile_model.dart';
class CheckActivationCodeForDoctorAppResponseModel { class CheckActivationCodeForDoctorAppResponseModel {
String authenticationTokenID; String? authenticationTokenID;
List<ListDoctorsClinic> listDoctorsClinic; List<ListDoctorsClinic>? listDoctorsClinic;
List<DoctorProfileModel> listDoctorProfile; List<DoctorProfileModel>? listDoctorProfile;
MemberInformation memberInformation; MemberInformation? memberInformation;
String vidaAuthTokenID; String? vidaAuthTokenID;
String vidaRefreshTokenID; String? vidaRefreshTokenID;
CheckActivationCodeForDoctorAppResponseModel( CheckActivationCodeForDoctorAppResponseModel({this.authenticationTokenID, this.listDoctorsClinic, this.memberInformation, this.listDoctorProfile, this.vidaAuthTokenID, this.vidaRefreshTokenID});
{this.authenticationTokenID,
this.listDoctorsClinic, CheckActivationCodeForDoctorAppResponseModel.fromJson(Map<String, dynamic> json) {
this.memberInformation,
this.listDoctorProfile,
this.vidaAuthTokenID,
this.vidaRefreshTokenID});
CheckActivationCodeForDoctorAppResponseModel.fromJson(
Map<String, dynamic> json) {
authenticationTokenID = json['AuthenticationTokenID']; authenticationTokenID = json['AuthenticationTokenID'];
if (json['List_DoctorsClinic'] != null) { if (json['List_DoctorsClinic'] != null) {
listDoctorsClinic = new List<ListDoctorsClinic>(); listDoctorsClinic = <ListDoctorsClinic>[];
json['List_DoctorsClinic'].forEach((v) { json['List_DoctorsClinic'].forEach((v) {
listDoctorsClinic.add(new ListDoctorsClinic.fromJson(v)); listDoctorsClinic!.add(new ListDoctorsClinic.fromJson(v));
}); });
} }
if (json['List_DoctorProfile'] != null) { if (json['List_DoctorProfile'] != null) {
listDoctorProfile = new List<DoctorProfileModel>(); listDoctorProfile = <DoctorProfileModel>[];
json['List_DoctorProfile'].forEach((v) { json['List_DoctorProfile'].forEach((v) {
listDoctorProfile.add(new DoctorProfileModel.fromJson(v)); listDoctorProfile!.add(new DoctorProfileModel.fromJson(v));
}); });
} }
vidaAuthTokenID = json['VidaAuthTokenID']; vidaAuthTokenID = json['VidaAuthTokenID'];
vidaRefreshTokenID = json['VidaRefreshTokenID']; vidaRefreshTokenID = json['VidaRefreshTokenID'];
memberInformation = json['memberInformation'] != null memberInformation = json['memberInformation'] != null ? new MemberInformation.fromJson(json['memberInformation']) : null;
? new MemberInformation.fromJson(json['memberInformation'])
: 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['AuthenticationTokenID'] = this.authenticationTokenID; data['AuthenticationTokenID'] = this.authenticationTokenID;
if (this.listDoctorsClinic != null) { if (this.listDoctorsClinic != null) {
data['List_DoctorsClinic'] = data['List_DoctorsClinic'] = this.listDoctorsClinic!.map((v) => v.toJson()).toList();
this.listDoctorsClinic.map((v) => v.toJson()).toList();
} }
if (this.listDoctorProfile != null) { if (this.listDoctorProfile != null) {
data['List_DoctorProfile'] = data['List_DoctorProfile'] = this.listDoctorProfile!.map((v) => v.toJson()).toList();
this.listDoctorProfile.map((v) => v.toJson()).toList();
} }
if (this.memberInformation != null) { if (this.memberInformation != null) {
data['memberInformation'] = this.memberInformation.toJson(); data['memberInformation'] = this.memberInformation!.toJson();
} }
return data; return data;
} }
@ -61,19 +50,13 @@ class CheckActivationCodeForDoctorAppResponseModel {
class ListDoctorsClinic { class ListDoctorsClinic {
Null setupID; Null setupID;
int projectID; int? projectID;
int doctorID; int? doctorID;
int clinicID; int? clinicID;
bool isActive; bool? isActive;
String clinicName; String? clinicName;
ListDoctorsClinic( ListDoctorsClinic({this.setupID, this.projectID, this.doctorID, this.clinicID, this.isActive, this.clinicName});
{this.setupID,
this.projectID,
this.doctorID,
this.clinicID,
this.isActive,
this.clinicName});
ListDoctorsClinic.fromJson(Map<String, dynamic> json) { ListDoctorsClinic.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
@ -97,32 +80,23 @@ class ListDoctorsClinic {
} }
class MemberInformation { class MemberInformation {
List<Clinics> clinics; List<Clinics>? clinics;
int doctorId; int? doctorId;
String email; String? email;
int employeeId; int? employeeId;
int memberId; int? memberId;
Null memberName; Null memberName;
Null memberNameArabic; Null memberNameArabic;
String preferredLanguage; String? preferredLanguage;
List<Roles> roles; List<Roles>? roles;
MemberInformation( MemberInformation({this.clinics, this.doctorId, this.email, this.employeeId, this.memberId, this.memberName, this.memberNameArabic, this.preferredLanguage, this.roles});
{this.clinics,
this.doctorId,
this.email,
this.employeeId,
this.memberId,
this.memberName,
this.memberNameArabic,
this.preferredLanguage,
this.roles});
MemberInformation.fromJson(Map<String, dynamic> json) { MemberInformation.fromJson(Map<String, dynamic> json) {
if (json['clinics'] != null) { if (json['clinics'] != null) {
clinics = new List<Clinics>(); clinics = <Clinics>[];
json['clinics'].forEach((v) { json['clinics'].forEach((v) {
clinics.add(new Clinics.fromJson(v)); clinics!.add(new Clinics.fromJson(v));
}); });
} }
doctorId = json['doctorId']; doctorId = json['doctorId'];
@ -133,9 +107,9 @@ class MemberInformation {
memberNameArabic = json['memberNameArabic']; memberNameArabic = json['memberNameArabic'];
preferredLanguage = json['preferredLanguage']; preferredLanguage = json['preferredLanguage'];
if (json['roles'] != null) { if (json['roles'] != null) {
roles = new List<Roles>(); roles = <Roles>[];
json['roles'].forEach((v) { json['roles'].forEach((v) {
roles.add(new Roles.fromJson(v)); roles!.add(new Roles.fromJson(v));
}); });
} }
} }
@ -143,7 +117,7 @@ class MemberInformation {
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>();
if (this.clinics != null) { if (this.clinics != null) {
data['clinics'] = this.clinics.map((v) => v.toJson()).toList(); data['clinics'] = this.clinics!.map((v) => v.toJson()).toList();
} }
data['doctorId'] = this.doctorId; data['doctorId'] = this.doctorId;
data['email'] = this.email; data['email'] = this.email;
@ -153,16 +127,16 @@ class MemberInformation {
data['memberNameArabic'] = this.memberNameArabic; data['memberNameArabic'] = this.memberNameArabic;
data['preferredLanguage'] = this.preferredLanguage; data['preferredLanguage'] = this.preferredLanguage;
if (this.roles != null) { if (this.roles != null) {
data['roles'] = this.roles.map((v) => v.toJson()).toList(); data['roles'] = this.roles!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Clinics { class Clinics {
bool defaultClinic; bool? defaultClinic;
int id; int? id;
String name; String? name;
Clinics({this.defaultClinic, this.id, this.name}); Clinics({this.defaultClinic, this.id, this.name});
@ -182,8 +156,8 @@ class Clinics {
} }
class Roles { class Roles {
String name; String? name;
int roleId; int? roleId;
Roles({this.name, this.roleId}); Roles({this.name, this.roleId});

@ -1,24 +1,24 @@
class CheckActivationCodeRequestModel { class CheckActivationCodeRequestModel {
String mobileNumber; String? mobileNumber;
String zipCode; String? zipCode;
int doctorID; int? doctorID;
int memberID; int? memberID;
int loginDoctorID; int? loginDoctorID;
String password; String? password;
String facilityId; String? facilityId;
String iPAdress; String? iPAdress;
int channel; int? channel;
int languageID; int? languageID;
int projectID; int? projectID;
double versionID; double? versionID;
String generalid; String? generalid;
String logInTokenID; String? logInTokenID;
String activationCode; String? activationCode;
String vidaAuthTokenID; String? vidaAuthTokenID;
String vidaRefreshTokenID; String? vidaRefreshTokenID;
String iMEI; String? iMEI;
bool isForSilentLogin; bool? isForSilentLogin;
int oTPSendType; int? oTPSendType;
CheckActivationCodeRequestModel( CheckActivationCodeRequestModel(
{this.mobileNumber, {this.mobileNumber,

@ -1,33 +1,33 @@
class GetIMEIDetailsModel { class GetIMEIDetailsModel {
int iD; int? iD;
String iMEI; String? iMEI;
int logInTypeID; int? logInTypeID;
bool outSA; bool? outSA;
String mobile; String? mobile;
dynamic identificationNo; dynamic? identificationNo;
int doctorID; int? doctorID;
String doctorName; String? doctorName;
String doctorNameN; String? doctorNameN;
int clinicID; int? clinicID;
String clinicDescription; String? clinicDescription;
dynamic clinicDescriptionN; dynamic? clinicDescriptionN;
int projectID; int? projectID;
String projectName; String? projectName;
String genderDescription; String? genderDescription;
dynamic genderDescriptionN; dynamic? genderDescriptionN;
String titleDescription; String? titleDescription;
dynamic titleDescriptionN; dynamic? titleDescriptionN;
dynamic zipCode; dynamic? zipCode;
String createdOn; String? createdOn;
dynamic createdBy; dynamic? createdBy;
String editedOn; String? editedOn;
dynamic editedBy; dynamic? editedBy;
bool biometricEnabled; bool? biometricEnabled;
dynamic preferredLanguage; dynamic? preferredLanguage;
bool isActive; bool? isActive;
String vidaAuthTokenID; String? vidaAuthTokenID;
String vidaRefreshTokenID; String? vidaRefreshTokenID;
String password; String? password;
GetIMEIDetailsModel( GetIMEIDetailsModel(
{this.iD, {this.iD,

@ -1,39 +1,38 @@
class InsertIMEIDetailsModel { class InsertIMEIDetailsModel {
String iMEI; String? iMEI;
int logInTypeID; int? logInTypeID;
dynamic outSA; dynamic? outSA;
String mobile; String? mobile;
dynamic identificationNo; dynamic? identificationNo;
int doctorID; int? doctorID;
String doctorName; String? doctorName;
String doctorNameN; String? doctorNameN;
int clinicID; int? clinicID;
String clinicDescription; String? clinicDescription;
Null clinicDescriptionN; Null? clinicDescriptionN;
String projectName; String? projectName;
String genderDescription; String? genderDescription;
Null genderDescriptionN; Null? genderDescriptionN;
String titleDescription; String? titleDescription;
Null titleDescriptionN; Null? titleDescriptionN;
bool bioMetricEnabled; bool? bioMetricEnabled;
Null preferredLanguage; Null? preferredLanguage;
bool isActive; bool? isActive;
int editedBy; int? editedBy;
int projectID; int? projectID;
String tokenID; String? tokenID;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
int patientOutSA; int? patientOutSA;
String vidaAuthTokenID; String? vidaAuthTokenID;
String vidaRefreshTokenID; String? vidaRefreshTokenID;
dynamic password; dynamic? password;
int loginDoctorID; int? loginDoctorID;
InsertIMEIDetailsModel( InsertIMEIDetailsModel(
{this.iMEI, {this.iMEI,
@ -68,7 +67,8 @@ class InsertIMEIDetailsModel {
this.patientOutSA, this.patientOutSA,
this.vidaAuthTokenID, this.vidaAuthTokenID,
this.vidaRefreshTokenID, this.vidaRefreshTokenID,
this.password, this.loginDoctorID}); this.password,
this.loginDoctorID});
InsertIMEIDetailsModel.fromJson(Map<String, dynamic> json) { InsertIMEIDetailsModel.fromJson(Map<String, dynamic> json) {
iMEI = json['IMEI']; iMEI = json['IMEI'];
@ -104,7 +104,8 @@ class InsertIMEIDetailsModel {
vidaAuthTokenID = json['VidaAuthTokenID']; vidaAuthTokenID = json['VidaAuthTokenID'];
vidaRefreshTokenID = json['VidaRefreshTokenID']; vidaRefreshTokenID = json['VidaRefreshTokenID'];
password = json['Password']; password = json['Password'];
loginDoctorID = json['LoginDoctorID']; } loginDoctorID = json['LoginDoctorID'];
}
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>();

@ -1,31 +1,32 @@
class NewLoginInformationModel { class NewLoginInformationModel {
int doctorID; int? doctorID;
List<ListMemberInformation> listMemberInformation; List<ListMemberInformation>? listMemberInformation;
String logInTokenID; String? logInTokenID;
String mobileNumber; String? mobileNumber;
Null sELECTDeviceIMEIbyIMEIList; Null? sELECTDeviceIMEIbyIMEIList;
int userID; int? userID;
String zipCode; String? zipCode;
bool isActiveCode; bool? isActiveCode;
bool isSMSSent; bool? isSMSSent;
NewLoginInformationModel( NewLoginInformationModel({
{this.doctorID, this.doctorID,
this.listMemberInformation, this.listMemberInformation,
this.logInTokenID, this.logInTokenID,
this.mobileNumber, this.mobileNumber,
this.sELECTDeviceIMEIbyIMEIList, this.sELECTDeviceIMEIbyIMEIList,
this.userID, this.userID,
this.zipCode, this.zipCode,
this.isActiveCode, this.isActiveCode,
this.isSMSSent}); this.isSMSSent,
});
NewLoginInformationModel.fromJson(Map<String, dynamic> json) { NewLoginInformationModel.fromJson(Map<String, dynamic> json) {
doctorID = json['DoctorID']; doctorID = json['DoctorID'];
if (json['List_MemberInformation'] != null) { if (json['List_MemberInformation'] != null) {
listMemberInformation = new List<ListMemberInformation>(); listMemberInformation = <ListMemberInformation>[];
json['List_MemberInformation'].forEach((v) { json['List_MemberInformation'].forEach((v) {
listMemberInformation.add(new ListMemberInformation.fromJson(v)); listMemberInformation?.add(ListMemberInformation.fromJson(v));
}); });
} }
logInTokenID = json['LogInTokenID']; logInTokenID = json['LogInTokenID'];
@ -38,48 +39,49 @@ class NewLoginInformationModel {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['DoctorID'] = this.doctorID; data['DoctorID'] = doctorID;
if (this.listMemberInformation != null) { if (listMemberInformation != null) {
data['List_MemberInformation'] = data['List_MemberInformation'] =
this.listMemberInformation.map((v) => v.toJson()).toList(); listMemberInformation?.map((v) => v.toJson()).toList();
} }
data['LogInTokenID'] = this.logInTokenID; data['LogInTokenID'] = logInTokenID;
data['MobileNumber'] = this.mobileNumber; data['MobileNumber'] = mobileNumber;
data['SELECTDeviceIMEIbyIMEI_List'] = this.sELECTDeviceIMEIbyIMEIList; data['SELECTDeviceIMEIbyIMEI_List'] = sELECTDeviceIMEIbyIMEIList;
data['UserID'] = this.userID; data['UserID'] = userID;
data['ZipCode'] = this.zipCode; data['ZipCode'] = zipCode;
data['isActiveCode'] = this.isActiveCode; data['isActiveCode'] = isActiveCode;
data['isSMSSent'] = this.isSMSSent; data['isSMSSent'] = isSMSSent;
return data; return data;
} }
} }
class ListMemberInformation { class ListMemberInformation {
Null setupID; Null? setupID;
int memberID; int? memberID;
String memberName; String? memberName;
Null memberNameN; Null? memberNameN;
String preferredLang; String? preferredLang;
String pIN; String? pIN;
String saltHash; String? saltHash;
int referenceID; int? referenceID;
int employeeID; int? employeeID;
int roleID; int? roleID;
int projectid; int? projectid;
ListMemberInformation( ListMemberInformation({
{this.setupID, this.setupID,
this.memberID, this.memberID,
this.memberName, this.memberName,
this.memberNameN, this.memberNameN,
this.preferredLang, this.preferredLang,
this.pIN, this.pIN,
this.saltHash, this.saltHash,
this.referenceID, this.referenceID,
this.employeeID, this.employeeID,
this.roleID, this.roleID,
this.projectid}); this.projectid,
});
ListMemberInformation.fromJson(Map<String, dynamic> json) { ListMemberInformation.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
@ -96,18 +98,18 @@ class ListMemberInformation {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = <String, dynamic>{};
data['SetupID'] = this.setupID; data['SetupID'] = setupID;
data['MemberID'] = this.memberID; data['MemberID'] = memberID;
data['MemberName'] = this.memberName; data['MemberName'] = memberName;
data['MemberNameN'] = this.memberNameN; data['MemberNameN'] = memberNameN;
data['PreferredLang'] = this.preferredLang; data['PreferredLang'] = preferredLang;
data['PIN'] = this.pIN; data['PIN'] = pIN;
data['SaltHash'] = this.saltHash; data['SaltHash'] = saltHash;
data['ReferenceID'] = this.referenceID; data['ReferenceID'] = referenceID;
data['EmployeeID'] = this.employeeID; data['EmployeeID'] = employeeID;
data['RoleID'] = this.roleID; data['RoleID'] = roleID;
data['projectid'] = this.projectid; data['projectid'] = projectid;
return data; return data;
} }
} }

@ -1,8 +1,8 @@
class SendActivationCodeForDoctorAppResponseModel { class SendActivationCodeForDoctorAppResponseModel {
String logInTokenID; String? logInTokenID;
String verificationCode; String? verificationCode;
String vidaAuthTokenID; String? vidaAuthTokenID;
String vidaRefreshTokenID; String? vidaRefreshTokenID;
SendActivationCodeForDoctorAppResponseModel( SendActivationCodeForDoctorAppResponseModel(
{this.logInTokenID, {this.logInTokenID,

@ -1,9 +1,3 @@
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:charts_flutter/flutter.dart';
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/widgets/data_display/list/flexible_container.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:flutter/material.dart';
class TimeSeriesSales { class TimeSeriesSales {
final DateTime time; final DateTime time;
final int sales; final int sales;

@ -1,7 +1,7 @@
class DashboardModel { class DashboardModel {
String kPIName; String? kPIName;
int displaySequence; int? displaySequence;
List<Summaryoptions> summaryoptions; List<Summaryoptions>? summaryoptions;
DashboardModel({this.kPIName, this.displaySequence, this.summaryoptions}); DashboardModel({this.kPIName, this.displaySequence, this.summaryoptions});
@ -9,9 +9,9 @@ class DashboardModel {
kPIName = json['KPIName']; kPIName = json['KPIName'];
displaySequence = json['displaySequence']; displaySequence = json['displaySequence'];
if (json['summaryoptions'] != null) { if (json['summaryoptions'] != null) {
summaryoptions = new List<Summaryoptions>(); summaryoptions = <Summaryoptions>[];
json['summaryoptions'].forEach((v) { json['summaryoptions'].forEach((v) {
summaryoptions.add(new Summaryoptions.fromJson(v)); summaryoptions!.add(new Summaryoptions.fromJson(v));
}); });
} }
} }
@ -22,20 +22,20 @@ class DashboardModel {
data['displaySequence'] = this.displaySequence; data['displaySequence'] = this.displaySequence;
if (this.summaryoptions != null) { if (this.summaryoptions != null) {
data['summaryoptions'] = data['summaryoptions'] =
this.summaryoptions.map((v) => v.toJson()).toList(); this.summaryoptions!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Summaryoptions { class Summaryoptions {
String kPIParameter; String? kPIParameter;
String captionColor; String? captionColor;
bool isCaptionBold; bool? isCaptionBold;
bool isValueBold; bool? isValueBold;
int order; int? order;
int value; int? value;
String valueColor; String? valueColor;
Summaryoptions( Summaryoptions(
{this.kPIParameter, {this.kPIParameter,

@ -1,9 +1,9 @@
class GetSpecialClinicalCareListResponseModel { class GetSpecialClinicalCareListResponseModel {
int projectID; int? projectID;
int clinicID; int? clinicID;
String clinicDescription; String? clinicDescription;
String clinicDescriptionN; String? clinicDescriptionN;
bool isActive; bool? isActive;
GetSpecialClinicalCareListResponseModel( GetSpecialClinicalCareListResponseModel(
{this.projectID, {this.projectID,

@ -1,10 +1,10 @@
class GetSpecialClinicalCareMappingListResponseModel { class GetSpecialClinicalCareMappingListResponseModel {
int mappingProjectID; int? mappingProjectID;
int clinicID; int? clinicID;
int nursingStationID; int? nursingStationID;
bool isActive; bool? isActive;
int projectID; int? projectID;
String description; String? description;
GetSpecialClinicalCareMappingListResponseModel( GetSpecialClinicalCareMappingListResponseModel(
{this.mappingProjectID, {this.mappingProjectID,

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

@ -1,12 +1,12 @@
class GetDiabeticChartValuesRequestModel { class GetDiabeticChartValuesRequestModel {
int deviceTypeID; int? deviceTypeID;
int patientID; int? patientID;
int resultType; int? resultType;
int admissionNo; int? admissionNo;
String setupID; String? setupID;
bool patientOutSA; bool? patientOutSA;
int patientType; int? patientType;
int patientTypeID; int? patientTypeID;
GetDiabeticChartValuesRequestModel( GetDiabeticChartValuesRequestModel(
{this.deviceTypeID, {this.deviceTypeID,

@ -1,10 +1,10 @@
class GetDiabeticChartValuesResponseModel { class GetDiabeticChartValuesResponseModel {
String resultType; String? resultType;
int admissionNo; int? admissionNo;
String dateChart; String? dateChart;
int resultValue; int? resultValue;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
GetDiabeticChartValuesResponseModel( GetDiabeticChartValuesResponseModel(
{this.resultType, {this.resultType,

@ -1,9 +1,9 @@
class GetDiagnosisForInPatientRequestModel { class GetDiagnosisForInPatientRequestModel {
int patientID; int? patientID;
int admissionNo; int? admissionNo;
String setupID; String? setupID;
int patientType; int? patientType;
int patientTypeID; int? patientTypeID;
GetDiagnosisForInPatientRequestModel( GetDiagnosisForInPatientRequestModel(
{this.patientID, {this.patientID,

@ -1,15 +1,15 @@
class GetDiagnosisForInPatientResponseModel { class GetDiagnosisForInPatientResponseModel {
String iCDCode10ID; String? iCDCode10ID;
int diagnosisTypeID; int? diagnosisTypeID;
int conditionID; int? conditionID;
bool complexDiagnosis; bool? complexDiagnosis;
String asciiDesc; String? asciiDesc;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
int editedBy; int? editedBy;
String editedOn; String? editedOn;
String createdByName; String? createdByName;
String editedByName; String? editedByName;
GetDiagnosisForInPatientResponseModel( GetDiagnosisForInPatientResponseModel(
{this.iCDCode10ID, {this.iCDCode10ID,

@ -1,8 +1,8 @@
class GetDischargeSummaryReqModel { class GetDischargeSummaryReqModel {
int patientID; int? patientID;
int admissionNo; int? admissionNo;
int patientType; int? patientType;
int patientTypeID; int? patientTypeID;
GetDischargeSummaryReqModel( GetDischargeSummaryReqModel(
{this.patientID, {this.patientID,

@ -1,51 +1,51 @@
class GetDischargeSummaryResModel { class GetDischargeSummaryResModel {
String setupID; String? setupID;
int projectID; int? projectID;
int dischargeNo; int? dischargeNo;
String dischargeDate; String? dischargeDate;
int admissionNo; int? admissionNo;
int assessmentNo; int? assessmentNo;
int patientType; int? patientType;
int patientID; int? patientID;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
String finalDiagnosis; String? finalDiagnosis;
String persentation; String? persentation;
String pastHistory; String? pastHistory;
String planOfCare; String? planOfCare;
String investigations; String? investigations;
String followupPlan; String? followupPlan;
String conditionOnDischarge; String? conditionOnDischarge;
String significantFindings; String? significantFindings;
String planedProcedure; String? planedProcedure;
int daysStayed; int? daysStayed;
String remarks; String? remarks;
String eRCare; String? eRCare;
int status; int? status;
bool isActive; bool? isActive;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
int editedBy; int? editedBy;
String editedOn; String? editedOn;
bool isPatientDied; bool? isPatientDied;
dynamic isMedicineApproved; dynamic? isMedicineApproved;
dynamic isOpenBillDischarge; dynamic? isOpenBillDischarge;
dynamic activatedDate; dynamic? activatedDate;
dynamic activatedBy; dynamic? activatedBy;
dynamic lAMA; dynamic? lAMA;
dynamic patientCodition; dynamic? patientCodition;
dynamic others; dynamic? others;
dynamic reconciliationInstruction; dynamic? reconciliationInstruction;
String dischargeInstructions; String? dischargeInstructions;
String reason; String? reason;
dynamic dischargeDisposition; dynamic? dischargeDisposition;
dynamic hospitalID; dynamic? hospitalID;
String createdByName; String? createdByName;
dynamic createdByNameN; dynamic? createdByNameN;
String editedByName; String? editedByName;
dynamic editedByNameN; dynamic? editedByNameN;
String clinicName; String? clinicName;
String projectName; String? projectName;
GetDischargeSummaryResModel( GetDischargeSummaryResModel(
{this.setupID, {this.setupID,

@ -1,17 +1,11 @@
/*
*@author: Elham Rababah
*@Date:17/5/2020
*@param:
*@return:
*@desc: Clinic Model
*/
class ClinicModel { class ClinicModel {
Null setupID; Null setupID;
int projectID; int? projectID;
int doctorID; int? doctorID;
int clinicID; int? clinicID;
bool isActive; bool? isActive;
String clinicName; String? clinicName;
ClinicModel( ClinicModel(
{this.setupID, {this.setupID,

@ -1,45 +1,45 @@
class DoctorProfileModel { class DoctorProfileModel {
int doctorID; int? doctorID;
String doctorName; String? doctorName;
Null doctorNameN; dynamic doctorNameN;
int clinicID; int? clinicID;
String clinicDescription; String? clinicDescription;
Null clinicDescriptionN; dynamic clinicDescriptionN;
Null licenseExpiry; dynamic licenseExpiry;
int employmentType; int? employmentType;
dynamic setupID; dynamic setupID;
int projectID; int? projectID;
String projectName; String? projectName;
String nationalityID; String? nationalityID;
String nationalityName; String? nationalityName;
Null nationalityNameN; dynamic nationalityNameN;
int gender; int? gender;
String genderDescription; String? genderDescription;
Null genderDescriptionN; dynamic genderDescriptionN;
Null doctorTitle; dynamic doctorTitle;
Null projectNameN; dynamic projectNameN;
bool isAllowWaitList; bool? isAllowWaitList;
String titleDescription; String? titleDescription;
Null titleDescriptionN; dynamic titleDescriptionN;
Null isRegistered; dynamic isRegistered;
Null isDoctorDummy; dynamic isDoctorDummy;
bool isActive; bool? isActive;
Null isDoctorAppointmentDisplayed; dynamic isDoctorAppointmentDisplayed;
bool doctorClinicActive; bool? doctorClinicActive;
Null isbookingAllowed; dynamic isbookingAllowed;
String doctorCases; String? doctorCases;
Null doctorPicture; dynamic 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;
DoctorProfileModel( DoctorProfileModel(
{this.doctorID, {this.doctorID,

@ -1,11 +1,11 @@
import 'package:doctor_app_flutter/utils/date-utils.dart'; import 'package:doctor_app_flutter/utils/date-utils.dart';
class ListDoctorWorkingHoursTable { class ListDoctorWorkingHoursTable {
DateTime date; DateTime? date;
String dayName; String? dayName;
String workingHours; String? workingHours;
String projectName; String? projectName;
String clinicName; String? clinicName;
ListDoctorWorkingHoursTable({ ListDoctorWorkingHoursTable({
this.date, this.date,
@ -34,8 +34,8 @@ class ListDoctorWorkingHoursTable {
} }
class WorkingHours { class WorkingHours {
String from; String? from;
String to; String? to;
WorkingHours({this.from, this.to}); WorkingHours({this.from, this.to});
} }

@ -1,37 +1,38 @@
class ListGtMyPatientsQuestions { class ListGtMyPatientsQuestions {
Null rowID; dynamic rowID;
String setupID; String? setupID;
int projectID; int? projectID;
int transactionNo; int? transactionNo;
int patientType; int? patientType;
int patientID; int? patientID;
int doctorID; int? doctorID;
int requestType; int? requestType;
String requestDate; String? requestDate;
String requestTime; String? requestTime;
String remarks; String? remarks;
int status; int? status;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
int editedBy; int? editedBy;
String editedOn; String? editedOn;
String patientName; String? patientName;
Null patientNameN; dynamic patientNameN;
int gender; int? gender;
String dateofBirth; String? dateofBirth;
String mobileNumber; String? mobileNumber;
String emailAddress; String? emailAddress;
int infoStatus; int? infoStatus;
String infoDesc; String? infoDesc;
String doctorResponse; String? doctorResponse;
dynamic responseDate; dynamic responseDate;
int memberID; int? memberID;
String memberName; String? memberName;
String memberNameN; String? memberNameN;
String age; String? age;
String genderDescription; String? genderDescription;
bool isVidaCall; bool? isVidaCall;
String requestTypeDescription; String? requestTypeDescription;
ListGtMyPatientsQuestions( ListGtMyPatientsQuestions(
{this.rowID, {this.rowID,

@ -1,24 +1,17 @@
/*
*@author: Elham Rababah
*@Date:17/5/2020
*@param:
*@return:
*@desc: ProfileReqModel
*/
class ProfileReqModel { class ProfileReqModel {
int projectID; int? projectID;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
bool isRegistered; bool? isRegistered;
bool license; bool? license;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
ProfileReqModel( ProfileReqModel(
{this.projectID, {this.projectID,

@ -1,24 +1,15 @@
class CreateDoctorResponseModel { class CreateDoctorResponseModel {
String setupID; String? setupID;
int projectID; int? projectID;
String transactionNo; String? transactionNo;
int infoEnteredBy; int? infoEnteredBy;
int infoStatus; int? infoStatus;
int createdBy; int? createdBy;
int editedBy; int? editedBy;
String doctorResponse; String? doctorResponse;
int doctorID; int? doctorID;
CreateDoctorResponseModel( CreateDoctorResponseModel({this.setupID, this.projectID, this.transactionNo, this.infoEnteredBy, this.infoStatus, this.createdBy, this.editedBy, this.doctorResponse, this.doctorID});
{this.setupID,
this.projectID,
this.transactionNo,
this.infoEnteredBy,
this.infoStatus,
this.createdBy,
this.editedBy,
this.doctorResponse,
this.doctorID});
CreateDoctorResponseModel.fromJson(Map<String, dynamic> json) { CreateDoctorResponseModel.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];

@ -1,21 +1,21 @@
import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/config.dart';
class RequestDoctorReply { class RequestDoctorReply {
int projectID; int? projectID;
int doctorID; int? doctorID;
int transactionNo; int? transactionNo;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
int pageIndex; int? pageIndex;
int pageSize; int? pageSize;
int infoStatus; int? infoStatus;
RequestDoctorReply( RequestDoctorReply(
{this.projectID, {this.projectID,

@ -1,22 +1,22 @@
import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/config.dart';
class RequestAddReferredDoctorRemarks { class RequestAddReferredDoctorRemarks {
int projectID; int? projectID;
String admissionNo; String? admissionNo;
int lineItemNo; int? lineItemNo;
String referredDoctorRemarks; String? referredDoctorRemarks;
int editedBy; int? editedBy;
int patientID; int? patientID;
int referringDoctor; int? referringDoctor;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
RequestAddReferredDoctorRemarks( RequestAddReferredDoctorRemarks(
{this.projectID, {this.projectID,

@ -1,18 +1,18 @@
class RequestSchedule { class RequestSchedule {
int projectID; int? projectID;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
int doctorWorkingHoursDays; int? doctorWorkingHoursDays;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
int patientTypeID; int? patientTypeID;
RequestSchedule( RequestSchedule(
{this.projectID, {this.projectID,

@ -1,10 +1,10 @@
class StatsticsForCertainDoctorRequest { class StatsticsForCertainDoctorRequest {
bool outSA; bool? outSA;
int doctorID; int? doctorID;
String tokenID; String? tokenID;
int channel; int? channel;
int projectID; int? projectID;
String generalid; String? generalid;
StatsticsForCertainDoctorRequest( StatsticsForCertainDoctorRequest(
{this.outSA, {this.outSA,

@ -1,16 +1,16 @@
class UserModel { class UserModel {
String userID; String? userID;
String password; String? password;
int projectID; int? projectID;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String sessionID; String? sessionID;
String tokenID; String? tokenID;
String stamp; String? stamp;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
int patientOutSA; int? patientOutSA;
UserModel( UserModel(
{this.userID, {this.userID,

@ -1,28 +1,28 @@
import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/config.dart';
class VerifyReferralDoctorRemarks { class VerifyReferralDoctorRemarks {
int projectID; int? projectID;
String admissionNo; String? admissionNo;
int lineItemNo; int? lineItemNo;
String referredDoctorRemarks; String? referredDoctorRemarks;
int editedBy; int? editedBy;
int patientID; int? patientID;
int referringDoctor; int? referringDoctor;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
String firstName; String? firstName;
String middleName; String? middleName;
String lastName; String? lastName;
String patientMobileNumber; String? patientMobileNumber;
String patientIdentificationID; String? patientIdentificationID;
VerifyReferralDoctorRemarks({ VerifyReferralDoctorRemarks({
this.projectID, this.projectID,

@ -1,24 +1,15 @@
class GetHospitalsRequestModel { class GetHospitalsRequestModel {
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
String memberID; String? memberID;
GetHospitalsRequestModel( GetHospitalsRequestModel({this.languageID, this.stamp, this.iPAdress, this.versionID, this.channel, this.tokenID, this.sessionID, this.isLoginForDoctorApp, this.memberID});
{this.languageID,
this.stamp,
this.iPAdress,
this.versionID,
this.channel,
this.tokenID,
this.sessionID,
this.isLoginForDoctorApp,
this.memberID});
GetHospitalsRequestModel.fromJson(Map<String, dynamic> json) { GetHospitalsRequestModel.fromJson(Map<String, dynamic> json) {
languageID = json['LanguageID']; languageID = json['LanguageID'];

@ -1,7 +1,7 @@
class GetHospitalsResponseModel { class GetHospitalsResponseModel {
String facilityGroupId; String? facilityGroupId;
int facilityId; int? facilityId;
String facilityName; String? facilityName;
GetHospitalsResponseModel( GetHospitalsResponseModel(
{this.facilityGroupId, this.facilityId, this.facilityName}); {this.facilityGroupId, this.facilityId, this.facilityName});

@ -1,70 +1,56 @@
class ApporvalDetails { class ApporvalDetails {
int approvalNo; int? approvalNo;
String? procedureName;
String? status;
String? isInvoicedDesc;
String procedureName; ApporvalDetails({this.approvalNo, this.procedureName, this.status, this.isInvoicedDesc});
//String procedureNameN;
String status;
String isInvoicedDesc;
ApporvalDetails(
{this.approvalNo, this.procedureName, this.status, this.isInvoicedDesc});
ApporvalDetails.fromJson(Map<String, dynamic> json) { ApporvalDetails.fromJson(Map<String, dynamic> json) {
approvalNo = json['ApprovalNo']; approvalNo = json['ApprovalNo'];
procedureName = json['ProcedureName']; procedureName = json['ProcedureName'];
status = json['Status']; status = json['Status'];
isInvoicedDesc = json['IsInvoicedDesc']; isInvoicedDesc = json['IsInvoicedDesc'];
} }
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['ApprovalNo'] = this.approvalNo; data['ApprovalNo'] = this.approvalNo;
data['ProcedureName'] = this.procedureName; data['ProcedureName'] = this.procedureName;
data['Status'] = this.status; data['Status'] = this.status;
data['IsInvoicedDesc'] = this.isInvoicedDesc; data['IsInvoicedDesc'] = this.isInvoicedDesc;
return data; return data;
} }
} }
class InsuranceApprovalModel { class InsuranceApprovalModel {
List<ApporvalDetails> apporvalDetails; List<ApporvalDetails>? apporvalDetails;
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 eXuldAPPNO; int? eXuldAPPNO;
int projectID; int? projectID;
String doctorName; String? doctorName;
String clinicName; String? clinicName;
String patientDescription; String? patientDescription;
int approvalNo; int? approvalNo;
String approvalStatusDescption; String? approvalStatusDescption;
int unUsedCount; int? unUsedCount;
String doctorImage; String? doctorImage;
String projectName; String? projectName;
String? expiryDate;
//String companyName; String? rceiptOn;
String expiryDate; int? appointmentNo;
String rceiptOn;
int appointmentNo;
InsuranceApprovalModel( InsuranceApprovalModel(
{this.versionID, {this.versionID,
@ -127,9 +113,9 @@ class InsuranceApprovalModel {
doctorImage = json['DoctorImageURL']; doctorImage = json['DoctorImageURL'];
clinicName = json['ClinicName']; clinicName = json['ClinicName'];
if (json['ApporvalDetails'] != null) { if (json['ApporvalDetails'] != null) {
apporvalDetails = new List<ApporvalDetails>(); apporvalDetails = <ApporvalDetails>[];
json['ApporvalDetails'].forEach((v) { json['ApporvalDetails'].forEach((v) {
apporvalDetails.add(new ApporvalDetails.fromJson(v)); apporvalDetails!.add(new ApporvalDetails.fromJson(v));
}); });
} }
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];

@ -1,36 +1,36 @@
class InsuranceApprovalInPatientModel { class InsuranceApprovalInPatientModel {
String setupID; String? setupID;
int projectID; int? projectID;
int approvalNo; int? approvalNo;
int status; int? status;
String approvalDate; String? approvalDate;
int patientType; int? patientType;
int patientID; int? patientID;
int companyID; int? companyID;
bool subCategoryID; bool? subCategoryID;
int doctorID; int? doctorID;
int clinicID; int? clinicID;
int approvalType; int? approvalType;
int inpatientApprovalSubType; int? inpatientApprovalSubType;
dynamic isApprovalOnGross; dynamic isApprovalOnGross;
String companyApprovalNo; String? companyApprovalNo;
dynamic progNoteOrderNo; dynamic progNoteOrderNo;
String submitOn; String? submitOn;
String receiptOn; String? receiptOn;
String expiryDate; String? expiryDate;
int admissionNo; int? admissionNo;
int admissionRequestNo; int? admissionRequestNo;
String approvalStatusDescption; String? approvalStatusDescption;
dynamic approvalStatusDescptionN; dynamic approvalStatusDescptionN;
dynamic remarks; dynamic remarks;
List<ApporvalDetails> apporvalDetails; List<ApporvalDetails>? apporvalDetails;
String clinicName; String? clinicName;
dynamic companyName; dynamic companyName;
String doctorName; String? doctorName;
String projectName; String? projectName;
int totaUnUsedCount; int? totaUnUsedCount;
int unUsedCount; int? unUsedCount;
String doctorImage; String? doctorImage;
InsuranceApprovalInPatientModel( InsuranceApprovalInPatientModel(
{this.setupID, {this.setupID,
@ -93,9 +93,9 @@ class InsuranceApprovalInPatientModel {
approvalStatusDescptionN = json['ApprovalStatusDescptionN']; approvalStatusDescptionN = json['ApprovalStatusDescptionN'];
remarks = json['Remarks']; remarks = json['Remarks'];
if (json['ApporvalDetails'] != null) { if (json['ApporvalDetails'] != null) {
apporvalDetails = new List<ApporvalDetails>(); apporvalDetails = <ApporvalDetails>[];
json['ApporvalDetails'].forEach((v) { json['ApporvalDetails'].forEach((v) {
apporvalDetails.add(new ApporvalDetails.fromJson(v)); apporvalDetails!.add(new ApporvalDetails.fromJson(v));
}); });
} }
clinicName = json['ClinicName']; clinicName = json['ClinicName'];
@ -134,8 +134,7 @@ class InsuranceApprovalInPatientModel {
data['ApprovalStatusDescptionN'] = this.approvalStatusDescptionN; data['ApprovalStatusDescptionN'] = this.approvalStatusDescptionN;
data['Remarks'] = this.remarks; data['Remarks'] = this.remarks;
if (this.apporvalDetails != null) { if (this.apporvalDetails != null) {
data['ApporvalDetails'] = data['ApporvalDetails'] = this.apporvalDetails!.map((v) => v.toJson()).toList();
this.apporvalDetails.map((v) => v.toJson()).toList();
} }
data['ClinicName'] = this.clinicName; data['ClinicName'] = this.clinicName;
data['CompanyName'] = this.companyName; data['CompanyName'] = this.companyName;
@ -148,35 +147,35 @@ class InsuranceApprovalInPatientModel {
} }
class ApporvalDetails { class ApporvalDetails {
Null setupID; dynamic setupID;
Null projectID; dynamic projectID;
int approvalNo; int? approvalNo;
Null lineItemNo; dynamic lineItemNo;
Null orderType; dynamic orderType;
Null procedureID; dynamic procedureID;
Null toothNo; dynamic toothNo;
Null price; dynamic price;
Null approvedAmount; dynamic approvedAmount;
Null unapprovedPatientShare; dynamic unapprovedPatientShare;
Null waivedAmount; dynamic waivedAmount;
Null discountType; dynamic discountType;
Null discountValue; dynamic discountValue;
Null shareType; dynamic shareType;
Null patientShareTypeValue; dynamic patientShareTypeValue;
Null companyShareTypeValue; dynamic companyShareTypeValue;
Null patientShare; dynamic patientShare;
Null companyShare; dynamic companyShare;
Null deductableAmount; dynamic deductableAmount;
String disapprovedRemarks; String? disapprovedRemarks;
Null progNoteOrderNo; dynamic progNoteOrderNo;
Null progNoteLineItemNo; dynamic progNoteLineItemNo;
Null invoiceTransactionType; dynamic invoiceTransactionType;
Null invoiceNo; dynamic invoiceNo;
String procedureName; String? procedureName;
String procedureNameN; String? procedureNameN;
String status; String? status;
Null isInvoiced; dynamic isInvoiced;
String isInvoicedDesc; String? isInvoicedDesc;
ApporvalDetails( ApporvalDetails(
{this.setupID, {this.setupID,

@ -5,52 +5,52 @@ class AllSpecialLabResultModel {
dynamic appointmentDate; dynamic appointmentDate;
dynamic appointmentNo; dynamic appointmentNo;
dynamic appointmentTime; dynamic appointmentTime;
String clinicDescription; String? clinicDescription;
String clinicDescriptionEnglish; String? clinicDescriptionEnglish;
dynamic clinicDescriptionN; dynamic clinicDescriptionN;
dynamic clinicID; dynamic clinicID;
dynamic createdOn; dynamic createdOn;
double decimalDoctorRate; double? decimalDoctorRate;
dynamic doctorID; dynamic doctorID;
String doctorImageURL; String? doctorImageURL;
String doctorName; String? doctorName;
String doctorNameEnglish; String? doctorNameEnglish;
dynamic doctorNameN; dynamic doctorNameN;
dynamic doctorRate; dynamic doctorRate;
dynamic doctorStarsRate; dynamic doctorStarsRate;
String doctorTitle; String? doctorTitle;
dynamic gender; dynamic gender;
String genderDescription; String? genderDescription;
bool inOutPatient; bool? inOutPatient;
String invoiceNo; String? invoiceNo;
bool isActiveDoctorProfile; bool? isActiveDoctorProfile;
bool isDoctorAllowVedioCall; bool? isDoctorAllowVedioCall;
bool isExecludeDoctor; bool? isExecludeDoctor;
bool isInOutPatient; bool? isInOutPatient;
dynamic isInOutPatientDescription; dynamic isInOutPatientDescription;
dynamic isInOutPatientDescriptionN; dynamic isInOutPatientDescriptionN;
bool isLiveCareAppointment; bool? isLiveCareAppointment;
bool isRead; bool? isRead;
bool isSendEmail; bool? isSendEmail;
String moduleID; String? moduleID;
String nationalityFlagURL; String? nationalityFlagURL;
dynamic noOfPatientsRate; dynamic noOfPatientsRate;
dynamic orderDate; dynamic orderDate;
String orderNo; String? orderNo;
dynamic patientID; dynamic patientID;
String projectID; String? projectID;
String projectName; String? projectName;
dynamic projectNameN; dynamic projectNameN;
String qR; String? qR;
String resultData; String? resultData;
String resultDataHTML; String? resultDataHTML;
dynamic resultDataTxt; dynamic resultDataTxt;
String setupID; String? setupID;
//List<String> speciality; //List<String> speciality;
dynamic status; dynamic status;
dynamic statusDesc; dynamic statusDesc;
String strOrderDate; String? strOrderDate;
AllSpecialLabResultModel( AllSpecialLabResultModel(
{this.actualDoctorRate, {this.actualDoctorRate,

@ -1,18 +1,18 @@
class AllSpecialLabResultRequestModel { class AllSpecialLabResultRequestModel {
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;
String tokenID; String? tokenID;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
int patientID; int? patientID;
int projectID; int? projectID;
AllSpecialLabResultRequestModel( AllSpecialLabResultRequestModel(
{this.versionID, {this.versionID,

@ -1,23 +1,23 @@
class LabOrderResult { class LabOrderResult {
String description; String? description;
dynamic femaleInterpretativeData; dynamic femaleInterpretativeData;
int gender; int? gender;
int lineItemNo; int? lineItemNo;
dynamic maleInterpretativeData; dynamic maleInterpretativeData;
dynamic notes; dynamic notes;
String packageID; String? packageID;
int patientID; int? patientID;
String projectID; String? projectID;
String referanceRange; String? referanceRange;
String resultValue; String? resultValue;
String sampleCollectedOn; String? sampleCollectedOn;
String sampleReceivedOn; String? sampleReceivedOn;
String setupID; String? setupID;
dynamic superVerifiedOn; dynamic superVerifiedOn;
String testCode; String? testCode;
String uOM; String? uOM;
String verifiedOn; String? verifiedOn;
String verifiedOnDateTime; String? verifiedOnDateTime;
LabOrderResult( LabOrderResult(
{this.description, {this.description,

@ -1,24 +1,24 @@
class LabResult { class LabResult {
String description; String? description;
dynamic femaleInterpretativeData; dynamic femaleInterpretativeData;
int gender; int? gender;
int lineItemNo; int? lineItemNo;
dynamic maleInterpretativeData; dynamic maleInterpretativeData;
String notes; String? notes;
String packageID; String? packageID;
int patientID; int? patientID;
String projectID; String? projectID;
String referanceRange; String? referanceRange;
String resultValue; String? resultValue;
String maxValue; String? maxValue;
String minValue; String? minValue;
String sampleCollectedOn; String? sampleCollectedOn;
String sampleReceivedOn; String? sampleReceivedOn;
String setupID; String? setupID;
dynamic superVerifiedOn; dynamic superVerifiedOn;
String testCode; String? testCode;
String uOM; String? uOM;
String verifiedOn; String? verifiedOn;
dynamic verifiedOnDateTime; dynamic verifiedOnDateTime;
LabResult( LabResult(
@ -96,9 +96,9 @@ class LabResult {
int checkResultStatus() { int checkResultStatus() {
try { try {
var max = double.tryParse(maxValue) ?? null; var max = double.tryParse(maxValue!) ?? null;
var min = double.tryParse(minValue) ?? null; var min = double.tryParse(minValue!) ?? null;
var result = double.tryParse(resultValue) ?? null; var result = double.tryParse(resultValue!) ?? null;
if (max != null && min != null && result != null) { if (max != null && min != null && result != null) {
if (result > max) { if (result > max) {
return 1; return 1;
@ -118,9 +118,9 @@ class LabResult {
class LabResultList { class LabResultList {
String filterName = ""; String filterName = "";
List<LabResult> patientLabResultList = List(); List<LabResult> patientLabResultList = [];
LabResultList({this.filterName, LabResult lab}) { LabResultList({required this.filterName, LabResult? lab}) {
patientLabResultList.add(lab); patientLabResultList.add(lab!);
} }
} }

@ -1,28 +1,29 @@
class LabResultHistory { class LabResultHistory {
String description; String? description;
String femaleInterpretativeData; String? femaleInterpretativeData;
int gender; int? gender;
bool isCertificateAllowed; bool? isCertificateAllowed;
int lineItemNo; int? lineItemNo;
String maleInterpretativeData; String? maleInterpretativeData;
String notes; String? notes;
int orderLineItemNo; int? orderLineItemNo;
int orderNo; int? orderNo;
String packageID; String? packageID;
int patientID; int? patientID;
String projectID; String? projectID;
String referanceRange; String? referanceRange;
String resultValue; String? resultValue;
int resultValueBasedLineItemNo; int? resultValueBasedLineItemNo;
String resultValueFlag; String? resultValueFlag;
String sampleCollectedOn; String? sampleCollectedOn;
String sampleReceivedOn; String? sampleReceivedOn;
String setupID; String? setupID;
String superVerifiedOn; String? superVerifiedOn;
String testCode; String? testCode;
String uOM; String? uOM;
String verifiedOn; String? verifiedOn;
String verifiedOnDateTime; String? verifiedOnDateTime;
LabResultHistory( LabResultHistory(
{this.description, {this.description,

@ -1,41 +1,42 @@
import 'package:doctor_app_flutter/utils/date-utils.dart'; import 'package:doctor_app_flutter/utils/date-utils.dart';
class PatientLabOrders { class PatientLabOrders {
int actualDoctorRate; int? actualDoctorRate;
String clinicDescription; String? clinicDescription;
String clinicDescriptionEnglish; String? clinicDescriptionEnglish;
Null clinicDescriptionN; dynamic clinicDescriptionN;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
String doctorImageURL; String? doctorImageURL;
String doctorName; String? doctorName;
String doctorNameEnglish; String? doctorNameEnglish;
Null doctorNameN; dynamic doctorNameN;
int doctorRate; int? doctorRate;
String doctorTitle; String? doctorTitle;
int gender; int? gender;
String genderDescription; String? genderDescription;
String invoiceNo; String? invoiceNo;
bool isActiveDoctorProfile; bool? isActiveDoctorProfile;
bool isDoctorAllowVedioCall; bool? isDoctorAllowVedioCall;
bool isExecludeDoctor; bool? isExecludeDoctor;
bool isInOutPatient; bool? isInOutPatient;
String isInOutPatientDescription; String? isInOutPatientDescription;
String isInOutPatientDescriptionN; String? isInOutPatientDescriptionN;
bool isRead; bool? isRead;
String nationalityFlagURL; String? nationalityFlagURL;
int noOfPatientsRate; int? noOfPatientsRate;
DateTime orderDate; DateTime? orderDate;
DateTime createdOn; DateTime? createdOn;
String orderNo; String? orderNo;
String patientID; String? patientID;
String projectID; String? projectID;
String projectName; String? projectName;
Null projectNameN; dynamic projectNameN;
String qR; String? qR;
String setupID; String? setupID;
List<String> speciality; List<String>? speciality;
bool isLiveCareAppointment; bool? isLiveCareAppointment;
PatientLabOrders( PatientLabOrders(
{this.actualDoctorRate, {this.actualDoctorRate,
@ -153,10 +154,10 @@ class PatientLabOrders {
class PatientLabOrdersList { class PatientLabOrdersList {
String filterName = ""; String filterName = "";
List<PatientLabOrders> patientLabOrdersList = List(); List<PatientLabOrders> patientLabOrdersList = [];
PatientLabOrdersList( PatientLabOrdersList(
{this.filterName, PatientLabOrders patientDoctorAppointment}) { {required this.filterName, PatientLabOrders? patientDoctorAppointment}) {
patientLabOrdersList.add(patientDoctorAppointment); patientLabOrdersList.add(patientDoctorAppointment!);
} }
} }

@ -1,9 +1,9 @@
class PatientLabSpecialResult { class PatientLabSpecialResult {
String invoiceNo; String? invoiceNo;
String moduleID; String? moduleID;
String resultData; String? resultData;
String resultDataHTML; String? resultDataHTML;
Null resultDataTxt; dynamic resultDataTxt;
PatientLabSpecialResult( PatientLabSpecialResult(
{this.invoiceNo, {this.invoiceNo,

@ -1,22 +1,23 @@
class RequestPatientLabSpecialResult { class RequestPatientLabSpecialResult {
String invoiceNo; String? invoiceNo;
String orderNo; String? orderNo;
String setupID; String? setupID;
String projectID; String? projectID;
int clinicID; int? clinicID;
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;
RequestPatientLabSpecialResult( RequestPatientLabSpecialResult(
{this.invoiceNo, {this.invoiceNo,

@ -1,29 +1,30 @@
class RequestSendLabReportEmail { class RequestSendLabReportEmail {
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;
String to; String? to;
String dateofBirth; String? dateofBirth;
String patientIditificationNum; String? patientIditificationNum;
String patientMobileNumber; String? patientMobileNumber;
String patientName; String? patientName;
String setupID; String? setupID;
String projectName; String? projectName;
String clinicName; String? clinicName;
String doctorName; String? doctorName;
String projectID; String? projectID;
String invoiceNo; String? invoiceNo;
String orderDate; String? orderDate;
RequestSendLabReportEmail( RequestSendLabReportEmail(
{this.versionID, {this.versionID,

@ -1,9 +1,9 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class AlternativeService { class AlternativeService {
int serviceID; int? serviceID;
String serviceName; String? serviceName;
bool isSelected; bool? isSelected;
AlternativeService( AlternativeService(
{this.serviceID, this.serviceName, this.isSelected = false}); {this.serviceID, this.serviceName, this.isSelected = false});
@ -23,7 +23,7 @@ class AlternativeService {
} }
class AlternativeServicesList with ChangeNotifier { class AlternativeServicesList with ChangeNotifier {
List<AlternativeService> _alternativeServicesList; List<AlternativeService> _alternativeServicesList = [];
getServicesList() { getServicesList() {
return _alternativeServicesList; return _alternativeServicesList;

@ -1,7 +1,7 @@
class PendingPatientERForDoctorAppRequestModel { class PendingPatientERForDoctorAppRequestModel {
bool outSA; bool? outSA;
int doctorID; int? doctorID;
String sErServiceID; String? sErServiceID;
PendingPatientERForDoctorAppRequestModel( PendingPatientERForDoctorAppRequestModel(
{this.outSA, this.doctorID, this.sErServiceID}); {this.outSA, this.doctorID, this.sErServiceID});

@ -1,9 +1,9 @@
class AddPatientToDoctorListRequestModel { class AddPatientToDoctorListRequestModel {
int vCID; int? vCID;
String tokenID; String? tokenID;
String generalid; String? generalid;
int doctorId; int? doctorId;
bool isOutKsa; bool? isOutKsa;
AddPatientToDoctorListRequestModel( AddPatientToDoctorListRequestModel(
{this.vCID, this.tokenID, this.generalid, this.doctorId, this.isOutKsa}); {this.vCID, this.tokenID, this.generalid, this.doctorId, this.isOutKsa});

@ -1,9 +1,9 @@
class LiveCareUserLoginRequestModel { class LiveCareUserLoginRequestModel {
String tokenID; String? tokenID;
String generalid; String? generalid;
int doctorId; int? doctorId;
int isOutKsa; int? isOutKsa;
int isLogin; int? isLogin;
LiveCareUserLoginRequestModel( LiveCareUserLoginRequestModel(
{this.tokenID, {this.tokenID,

@ -1,9 +1,9 @@
class EndCallReq { class EndCallReq {
int vCID; int? vCID;
String tokenID; String? tokenID;
String generalid; String? generalid;
int doctorId; int? doctorId;
bool isDestroy; bool? isDestroy;
EndCallReq( EndCallReq(
{this.vCID, this.tokenID, this.generalid, this.doctorId, this.isDestroy}); {this.vCID, this.tokenID, this.generalid, this.doctorId, this.isDestroy});

@ -1,9 +1,9 @@
class LiveCarePendingListRequest { class LiveCarePendingListRequest {
PatientData patientData; PatientData? patientData;
int doctorID; int? doctorID;
String sErServiceID; String? sErServiceID;
int projectID; int? projectID;
int sourceID; int? sourceID;
LiveCarePendingListRequest( LiveCarePendingListRequest(
{this.patientData, {this.patientData,
@ -23,7 +23,7 @@ class LiveCarePendingListRequest {
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['PatientData'] = this.patientData.toJson(); data['PatientData'] = this.patientData!.toJson();
data['DoctorID'] = this.doctorID; data['DoctorID'] = this.doctorID;
data['SErServiceID'] = this.sErServiceID; data['SErServiceID'] = this.sErServiceID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
@ -33,7 +33,7 @@ class LiveCarePendingListRequest {
} }
class PatientData { class PatientData {
bool isOutKSA; bool? isOutKSA;
PatientData({this.isOutKSA}); PatientData({this.isOutKSA});

@ -1,43 +1,43 @@
class LiveCarePendingListResponse { class LiveCarePendingListResponse {
dynamic acceptedBy; dynamic acceptedBy;
dynamic acceptedOn; dynamic acceptedOn;
int age; int? age;
dynamic appointmentNo; dynamic appointmentNo;
String arrivalTime; String? arrivalTime;
String arrivalTimeD; String? arrivalTimeD;
int callStatus; int? callStatus;
String clientRequestID; String? clientRequestID;
String clinicName; String? clinicName;
dynamic consoltationEnd; dynamic consoltationEnd;
dynamic consultationNotes; dynamic consultationNotes;
dynamic createdOn; dynamic createdOn;
String dateOfBirth; String? dateOfBirth;
String deviceToken; String? deviceToken;
String deviceType; String? deviceType;
dynamic doctorName; dynamic doctorName;
String editOn; String? editOn;
String gender; String? gender;
bool isFollowUP; bool? isFollowUP;
dynamic isFromVida; dynamic isFromVida;
int isLoginB; int? isLoginB;
bool isOutKSA; bool? isOutKSA;
int isRejected; int? isRejected;
String language; String? language;
double latitude; double? latitude;
double longitude; double? longitude;
String mobileNumber; String? mobileNumber;
dynamic openSession; dynamic openSession;
dynamic openTokenID; dynamic openTokenID;
String patientID; String? patientID;
String patientName; String? patientName;
int patientStatus; int? patientStatus;
String preferredLanguage; String? preferredLanguage;
int projectID; int? projectID;
double scoring; double? scoring;
int serviceID; int? serviceID;
dynamic tokenID; dynamic tokenID;
int vCID; int? vCID;
String voipToken; String? voipToken;
LiveCarePendingListResponse( LiveCarePendingListResponse(
{this.acceptedBy, {this.acceptedBy,

@ -1,14 +1,10 @@
class SessionStatusModel { class SessionStatusModel {
bool isAuthenticated; bool? isAuthenticated;
int messageStatus; int? messageStatus;
String result; String? result;
int sessionStatus; int? sessionStatus;
SessionStatusModel( SessionStatusModel({this.isAuthenticated, this.messageStatus, this.result, this.sessionStatus});
{this.isAuthenticated,
this.messageStatus,
this.result,
this.sessionStatus});
SessionStatusModel.fromJson(Map<dynamic, dynamic> json) { SessionStatusModel.fromJson(Map<dynamic, dynamic> json) {
isAuthenticated = json['IsAuthenticated']; isAuthenticated = json['IsAuthenticated'];

@ -1,15 +1,15 @@
class StartCallReq { class StartCallReq {
String clincName; String? clincName;
int clinicId; int? clinicId;
String docSpec; String? docSpec;
String docotrName; String? docotrName;
int doctorId; int? doctorId;
String generalid; String? generalid;
bool isOutKsa; bool? isOutKsa;
bool isrecall; bool? isrecall;
String projectName; String? projectName;
String tokenID; String? tokenID;
int vCID; int? vCID;
StartCallReq( StartCallReq(
{this.clincName, {this.clincName,

@ -1,11 +1,11 @@
class StartCallRes { class StartCallRes {
String result; String? result;
String openSessionID; String? openSessionID;
String openTokenID; String? openTokenID;
bool isAuthenticated; bool? isAuthenticated;
int messageStatus; int? messageStatus;
String appointmentNo; String? appointmentNo;
bool isRecording; bool? isRecording;
StartCallRes({ StartCallRes({
this.result, this.result,

@ -1,10 +1,10 @@
class TransferToAdminReq { class TransferToAdminReq {
int vCID; int? vCID;
String tokenID; String? tokenID;
String generalid; String? generalid;
int doctorId; int? doctorId;
bool isOutKsa; bool? isOutKsa;
String notes; String? notes;
TransferToAdminReq( TransferToAdminReq(
{this.vCID, {this.vCID,

@ -1,14 +1,14 @@
class MedicalFileModel { class MedicalFileModel {
List<EntityList> entityList; List<EntityList>? entityList;
dynamic statusMessage; dynamic statusMessage;
MedicalFileModel({this.entityList, this.statusMessage}); MedicalFileModel({this.entityList, this.statusMessage});
MedicalFileModel.fromJson(Map<String, dynamic> json) { MedicalFileModel.fromJson(Map<String, dynamic> json) {
if (json['entityList'] != null) { if (json['entityList'] != null) {
entityList = new List<EntityList>(); entityList = <EntityList>[];
json['entityList'].forEach((v) { json['entityList'].forEach((v) {
entityList.add(new EntityList.fromJson(v)); entityList!.add(new EntityList.fromJson(v));
}); });
} }
statusMessage = json['statusMessage']; statusMessage = json['statusMessage'];
@ -17,7 +17,7 @@ class MedicalFileModel {
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>();
if (this.entityList != null) { if (this.entityList != null) {
data['entityList'] = this.entityList.map((v) => v.toJson()).toList(); data['entityList'] = this.entityList!.map((v) => v.toJson()).toList();
} }
data['statusMessage'] = this.statusMessage; data['statusMessage'] = this.statusMessage;
return data; return data;
@ -25,15 +25,15 @@ class MedicalFileModel {
} }
class EntityList { class EntityList {
List<Timelines> timelines; List<Timelines>? timelines;
EntityList({this.timelines}); EntityList({this.timelines});
EntityList.fromJson(Map<String, dynamic> json) { EntityList.fromJson(Map<String, dynamic> json) {
if (json['Timelines'] != null) { if (json['Timelines'] != null) {
timelines = new List<Timelines>(); timelines = <Timelines>[];
json['Timelines'].forEach((v) { json['Timelines'].forEach((v) {
timelines.add(new Timelines.fromJson(v)); timelines!.add(new Timelines.fromJson(v));
}); });
} }
} }
@ -41,25 +41,25 @@ class EntityList {
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>();
if (this.timelines != null) { if (this.timelines != null) {
data['Timelines'] = this.timelines.map((v) => v.toJson()).toList(); data['Timelines'] = this.timelines!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Timelines { class Timelines {
int clinicId; int? clinicId;
String clinicName; String? clinicName;
String date; String? date;
int doctorId; int? doctorId;
String doctorImage; String? doctorImage;
String doctorName; String? doctorName;
int encounterNumber; int? encounterNumber;
String encounterType; String? encounterType;
int projectID; int? projectID;
String projectName; String? projectName;
String setupID; String? setupID;
List<TimeLineEvents> timeLineEvents; List<TimeLineEvents>? timeLineEvents;
Timelines( Timelines(
{this.clinicId, {this.clinicId,
@ -88,9 +88,9 @@ class Timelines {
projectName = json['ProjectName']; projectName = json['ProjectName'];
setupID = json['SetupID']; setupID = json['SetupID'];
if (json['TimeLineEvents'] != null) { if (json['TimeLineEvents'] != null) {
timeLineEvents = new List<TimeLineEvents>(); timeLineEvents = <TimeLineEvents>[];
json['TimeLineEvents'].forEach((v) { json['TimeLineEvents'].forEach((v) {
timeLineEvents.add(new TimeLineEvents.fromJson(v)); timeLineEvents!.add(new TimeLineEvents.fromJson(v));
}); });
} }
} }
@ -109,26 +109,25 @@ class Timelines {
data['ProjectName'] = this.projectName; data['ProjectName'] = this.projectName;
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
if (this.timeLineEvents != null) { if (this.timeLineEvents != null) {
data['TimeLineEvents'] = data['TimeLineEvents'] = this.timeLineEvents!.map((v) => v.toJson()).toList();
this.timeLineEvents.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class TimeLineEvents { class TimeLineEvents {
List<Null> admissions; List<dynamic>? admissions;
String colorClass; String? colorClass;
List<Consulations> consulations; List<Consulations>? consulations;
TimeLineEvents({this.admissions, this.colorClass, this.consulations}); TimeLineEvents({this.admissions, this.colorClass, this.consulations});
TimeLineEvents.fromJson(Map<String, dynamic> json) { TimeLineEvents.fromJson(Map<String, dynamic> json) {
colorClass = json['ColorClass']; colorClass = json['ColorClass'];
if (json['Consulations'] != null) { if (json['Consulations'] != null) {
consulations = new List<Consulations>(); consulations = <Consulations>[];
json['Consulations'].forEach((v) { json['Consulations'].forEach((v) {
consulations.add(new Consulations.fromJson(v)); consulations!.add(new Consulations.fromJson(v));
}); });
} }
} }
@ -138,38 +137,38 @@ class TimeLineEvents {
data['ColorClass'] = this.colorClass; data['ColorClass'] = this.colorClass;
if (this.consulations != null) { if (this.consulations != null) {
data['Consulations'] = this.consulations.map((v) => v.toJson()).toList(); data['Consulations'] = this.consulations!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Consulations { class Consulations {
int admissionNo; int? admissionNo;
String appointmentDate; String? appointmentDate;
int appointmentNo; int? appointmentNo;
String appointmentType; String? appointmentType;
String clinicID; String? clinicID;
String clinicName; String? clinicName;
int doctorID; int? doctorID;
String doctorName; String? doctorName;
String endTime; String? endTime;
String episodeDate; String? episodeDate;
int episodeID; int? episodeID;
int patientID; int? patientID;
int projectID; int? projectID;
String projectName; String? projectName;
String remarks; String? remarks;
String setupID; String? setupID;
String startTime; String? startTime;
String visitFor; String? visitFor;
String visitType; String? visitType;
String dispalyName; String? dispalyName;
List<LstAssessments> lstAssessments; List<LstAssessments>? lstAssessments;
List<LstPhysicalExam> lstPhysicalExam; List<LstPhysicalExam>? lstPhysicalExam;
List<LstProcedure> lstProcedure; List<LstProcedure>? lstProcedure;
List<LstMedicalHistory> lstMedicalHistory; List<LstMedicalHistory>? lstMedicalHistory;
List<LstCheifComplaint> lstCheifComplaint; List<LstCheifComplaint>? lstCheifComplaint;
Consulations( Consulations(
{this.admissionNo, {this.admissionNo,
@ -220,33 +219,33 @@ class Consulations {
visitType = json['VisitType']; visitType = json['VisitType'];
dispalyName = json['dispalyName']; dispalyName = json['dispalyName'];
if (json['lstAssessments'] != null) { if (json['lstAssessments'] != null) {
lstAssessments = new List<LstAssessments>(); lstAssessments = <LstAssessments>[];
json['lstAssessments'].forEach((v) { json['lstAssessments'].forEach((v) {
lstAssessments.add(new LstAssessments.fromJson(v)); lstAssessments!.add(new LstAssessments.fromJson(v));
}); });
} }
if (json['lstCheifComplaint'] != null) { if (json['lstCheifComplaint'] != null) {
lstCheifComplaint = new List<LstCheifComplaint>(); lstCheifComplaint = <LstCheifComplaint>[];
json['lstCheifComplaint'].forEach((v) { json['lstCheifComplaint'].forEach((v) {
lstCheifComplaint.add(new LstCheifComplaint.fromJson(v)); lstCheifComplaint!.add(new LstCheifComplaint.fromJson(v));
}); });
} }
if (json['lstPhysicalExam'] != null) { if (json['lstPhysicalExam'] != null) {
lstPhysicalExam = new List<LstPhysicalExam>(); lstPhysicalExam = <LstPhysicalExam>[];
json['lstPhysicalExam'].forEach((v) { json['lstPhysicalExam'].forEach((v) {
lstPhysicalExam.add(new LstPhysicalExam.fromJson(v)); lstPhysicalExam!.add(new LstPhysicalExam.fromJson(v));
}); });
} }
if (json['lstProcedure'] != null) { if (json['lstProcedure'] != null) {
lstProcedure = new List<LstProcedure>(); lstProcedure = <LstProcedure>[];
json['lstProcedure'].forEach((v) { json['lstProcedure'].forEach((v) {
lstProcedure.add(new LstProcedure.fromJson(v)); lstProcedure!.add(new LstProcedure.fromJson(v));
}); });
} }
if (json['lstMedicalHistory'] != null) { if (json['lstMedicalHistory'] != null) {
lstMedicalHistory = new List<LstMedicalHistory>(); lstMedicalHistory = <LstMedicalHistory>[];
json['lstMedicalHistory'].forEach((v) { json['lstMedicalHistory'].forEach((v) {
lstMedicalHistory.add(new LstMedicalHistory.fromJson(v)); lstMedicalHistory!.add(new LstMedicalHistory.fromJson(v));
}); });
} }
} }
@ -274,41 +273,37 @@ class Consulations {
data['VisitType'] = this.visitType; data['VisitType'] = this.visitType;
data['dispalyName'] = this.dispalyName; data['dispalyName'] = this.dispalyName;
if (this.lstAssessments != null) { if (this.lstAssessments != null) {
data['lstAssessments'] = data['lstAssessments'] = this.lstAssessments!.map((v) => v.toJson()).toList();
this.lstAssessments.map((v) => v.toJson()).toList();
} }
if (this.lstCheifComplaint != null) { if (this.lstCheifComplaint != null) {
data['lstCheifComplaint'] = data['lstCheifComplaint'] = this.lstCheifComplaint!.map((v) => v.toJson()).toList();
this.lstCheifComplaint.map((v) => v.toJson()).toList();
} }
if (this.lstPhysicalExam != null) { if (this.lstPhysicalExam != null) {
data['lstPhysicalExam'] = data['lstPhysicalExam'] = this.lstPhysicalExam!.map((v) => v.toJson()).toList();
this.lstPhysicalExam.map((v) => v.toJson()).toList();
} }
if (this.lstProcedure != null) { if (this.lstProcedure != null) {
data['lstProcedure'] = this.lstProcedure.map((v) => v.toJson()).toList(); data['lstProcedure'] = this.lstProcedure!.map((v) => v.toJson()).toList();
} }
if (this.lstMedicalHistory != null) { if (this.lstMedicalHistory != null) {
data['lstMedicalHistory'] = data['lstMedicalHistory'] = this.lstMedicalHistory!.map((v) => v.toJson()).toList();
this.lstMedicalHistory.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class LstCheifComplaint { class LstCheifComplaint {
int appointmentNo; int? appointmentNo;
String cCDate; String? cCDate;
String chiefComplaint; String? chiefComplaint;
String currentMedication; String? currentMedication;
int episodeID; int? episodeID;
String hOPI; String? hOPI;
int patientID; int? patientID;
String patientType; String? patientType;
int projectID; int? projectID;
String projectName; String? projectName;
String setupID; String? setupID;
String dispalyName; String? dispalyName;
LstCheifComplaint( LstCheifComplaint(
{this.appointmentNo, {this.appointmentNo,
@ -358,19 +353,19 @@ class LstCheifComplaint {
} }
class LstAssessments { class LstAssessments {
int appointmentNo; int? appointmentNo;
String condition; String? condition;
String description; String? description;
int episodeID; int? episodeID;
String iCD10; String? iCD10;
int patientID; int? patientID;
String patientType; String? patientType;
int projectID; int? projectID;
String projectName; String? projectName;
String remarks; String? remarks;
String setupID; String? setupID;
String type; String? type;
String dispalyName; String? dispalyName;
LstAssessments( LstAssessments(
{this.appointmentNo, {this.appointmentNo,
@ -423,19 +418,19 @@ class LstAssessments {
} }
class LstPhysicalExam { class LstPhysicalExam {
String abnormal; String? abnormal;
int appointmentNo; int? appointmentNo;
int episodeID; int? episodeID;
String examDesc; String? examDesc;
String examID; String? examID;
String examType; String? examType;
int patientID; int? patientID;
String patientType; String? patientType;
int projectID; int? projectID;
String projectName; String? projectName;
String remarks; String? remarks;
String setupID; String? setupID;
String dispalyName; String? dispalyName;
LstPhysicalExam( LstPhysicalExam(
{this.abnormal, {this.abnormal,
@ -488,30 +483,20 @@ class LstPhysicalExam {
} }
class LstProcedure { class LstProcedure {
int appointmentNo; int? appointmentNo;
int episodeID; int? episodeID;
String orderDate; String? orderDate;
int patientID; int? patientID;
String patientType; String? patientType;
String procName; String? procName;
String procedureId; String? procedureId;
int projectID; int? projectID;
String projectName; String? projectName;
String setupID; String? setupID;
String dispalyName; String? dispalyName;
LstProcedure( LstProcedure(
{this.appointmentNo, {this.appointmentNo, this.episodeID, this.orderDate, this.patientID, this.patientType, this.procName, this.procedureId, this.projectID, this.projectName, this.setupID, this.dispalyName});
this.episodeID,
this.orderDate,
this.patientID,
this.patientType,
this.procName,
this.procedureId,
this.projectID,
this.projectName,
this.setupID,
this.dispalyName});
LstProcedure.fromJson(Map<String, dynamic> json) { LstProcedure.fromJson(Map<String, dynamic> json) {
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];
@ -545,30 +530,19 @@ class LstProcedure {
} }
class LstMedicalHistory { class LstMedicalHistory {
int appointmentNo; int? appointmentNo;
String checked; String? checked;
int episodeID; int? episodeID;
String history; String? history;
int patientID; int? patientID;
String patientType; String? patientType;
int projectID; int? projectID;
String projectName; String? projectName;
String remarks; String? remarks;
String setupID; String? setupID;
String dispalyName; String? dispalyName;
LstMedicalHistory( LstMedicalHistory({this.appointmentNo, this.checked, this.episodeID, this.history, this.patientID, this.patientType, this.projectID, this.projectName, this.remarks, this.setupID, this.dispalyName});
{this.appointmentNo,
this.checked,
this.episodeID,
this.history,
this.patientID,
this.patientType,
this.projectID,
this.projectName,
this.remarks,
this.setupID,
this.dispalyName});
LstMedicalHistory.fromJson(Map<String, dynamic> json) { LstMedicalHistory.fromJson(Map<String, dynamic> json) {
appointmentNo = json['AppointmentNo']; appointmentNo = json['AppointmentNo'];

@ -1,10 +1,9 @@
class MedicalFileRequestModel { class MedicalFileRequestModel {
int patientMRN; int? patientMRN;
String vidaAuthTokenID; String? vidaAuthTokenID;
String iPAdress; String? iPAdress;
MedicalFileRequestModel( MedicalFileRequestModel({this.patientMRN, this.vidaAuthTokenID, this.iPAdress});
{this.patientMRN, this.vidaAuthTokenID, this.iPAdress});
MedicalFileRequestModel.fromJson(Map<String, dynamic> json) { MedicalFileRequestModel.fromJson(Map<String, dynamic> json) {
patientMRN = json['PatientMRN']; patientMRN = json['PatientMRN'];

@ -1,24 +1,24 @@
class CreateNoteModel { class CreateNoteModel {
int visitType; int? visitType;
int admissionNo; int? admissionNo;
int projectID; int? projectID;
int patientTypeID; int? patientTypeID;
int patientID; int? patientID;
int clinicID; int? clinicID;
String notes; String? notes;
int createdBy; int? createdBy;
int editedBy; int? editedBy;
String nursingRemarks; String? nursingRemarks;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
int conditionId; int? conditionId;
CreateNoteModel( CreateNoteModel(
{this.visitType, {this.visitType,

@ -1,9 +1,9 @@
class GetNursingProgressNoteRequestModel { class GetNursingProgressNoteRequestModel {
int patientID; int? patientID;
int admissionNo; int? admissionNo;
int patientTypeID; int? patientTypeID;
int patientType; int? patientType;
String setupID; String? setupID;
GetNursingProgressNoteRequestModel( GetNursingProgressNoteRequestModel(
{this.patientID, {this.patientID,

@ -1,14 +1,12 @@
class GetNursingProgressNoteResposeModel { class GetNursingProgressNoteResposeModel {
String notes; String? notes;
dynamic conditionType; dynamic conditionType;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
dynamic editedBy; dynamic editedBy;
dynamic editedOn; dynamic editedOn;
String? createdByName;
String createdByName; String? editedByName;
String editedByName;
GetNursingProgressNoteResposeModel( GetNursingProgressNoteResposeModel(
{this.notes, {this.notes,

@ -1,26 +1,27 @@
class NoteModel { class NoteModel {
String setupID; String? setupID;
int projectID; int? projectID;
int patientID; int? patientID;
int patientType; int? patientType;
String admissionNo; String? admissionNo;
int lineItemNo; int? lineItemNo;
int visitType; int? visitType;
String notes; String? notes;
String assessmentDate; String? assessmentDate;
String visitTime; String? visitTime;
int status; int? status;
String nursingRemarks; String? nursingRemarks;
String createdOn; String? createdOn;
String editedOn; String? editedOn;
int createdBy; int? createdBy;
int admissionClinicID; int? admissionClinicID;
String admissionClinicName; String? admissionClinicName;
Null doctorClinicName; dynamic doctorClinicName;
String doctorName; String? doctorName;
String visitTypeDesc; String? visitTypeDesc;
int condition; int? condition;
String conditionDescription; String? conditionDescription;
NoteModel( NoteModel(
{this.setupID, {this.setupID,

@ -1,9 +1,9 @@
class StpMasterListRequestModel { class StpMasterListRequestModel {
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int languageID; int? languageID;
int projectID; int? projectID;
int parameterGroup; int? parameterGroup;
int parameterType; int? parameterType;
StpMasterListRequestModel( StpMasterListRequestModel(
{this.isDentalAllowedBackend, {this.isDentalAllowedBackend,

@ -1,7 +1,7 @@
class StpMasterListResponseModel { class StpMasterListResponseModel {
int parameterCode; int? parameterCode;
String description; String? description;
Null descriptionN; dynamic descriptionN;
StpMasterListResponseModel( StpMasterListResponseModel(
{this.parameterCode, this.description, this.descriptionN}); {this.parameterCode, this.description, this.descriptionN});

@ -1,22 +1,23 @@
class UpdateNoteReqModel { class UpdateNoteReqModel {
int projectID; int? projectID;
int createdBy; int? createdBy;
int admissionNo; int? admissionNo;
int lineItemNo; int? lineItemNo;
String notes; String? notes;
bool verifiedNote; bool? verifiedNote;
bool cancelledNote; bool? cancelledNote;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
int patientTypeID; int? patientTypeID;
int conditionId; int? conditionId;
UpdateNoteReqModel( UpdateNoteReqModel(
{this.projectID, {this.projectID,

@ -1,28 +1,28 @@
class CreateUpdateOperationReportRequestModel { class CreateUpdateOperationReportRequestModel {
String setupID; String? setupID;
int patientID; int? patientID;
int reservationNo; int? reservationNo;
int admissionNo; int? admissionNo;
String preOpDiagmosis; String? preOpDiagmosis;
String postOpDiagmosis; String? postOpDiagmosis;
String surgeon; String? surgeon;
String assistant; String? assistant;
String anasthetist; String? anasthetist;
String operation; String? operation;
String inasion; String? inasion;
String finding; String? finding;
String surgeryProcedure; String? surgeryProcedure;
String postOpInstruction; String? postOpInstruction;
int createdBy; int? createdBy;
int editedBy; int? editedBy;
String complicationDetails; String? complicationDetails;
String bloodLossDetail; String? bloodLossDetail;
String histopathSpecimen; String? histopathSpecimen;
String microbiologySpecimen; String? microbiologySpecimen;
String otherSpecimen; String? otherSpecimen;
String scrubNurse; String? scrubNurse;
String circulatingNurse; String? circulatingNurse;
String bloodTransfusedDetail; String? bloodTransfusedDetail;
CreateUpdateOperationReportRequestModel( CreateUpdateOperationReportRequestModel(
{this.setupID, {this.setupID,

@ -1,18 +1,18 @@
class GetOperationDetailsRequestModel { class GetOperationDetailsRequestModel {
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int deviceTypeID; int? deviceTypeID;
String tokenID; String? tokenID;
int patientID; int? patientID;
int reservationNo; int? reservationNo;
String sessionID; String? sessionID;
int projectID; int? projectID;
String setupID; String? setupID;
bool patientOutSA; bool? patientOutSA;
GetOperationDetailsRequestModel( GetOperationDetailsRequestModel(
{this.isDentalAllowedBackend = false, {this.isDentalAllowedBackend = false,

@ -1,39 +1,40 @@
class GetOperationDetailsResponseModel { class GetOperationDetailsResponseModel {
String setupID; String? setupID;
int projectID; int? projectID;
int reservationNo; int? reservationNo;
int patientID; int? patientID;
int admissionID; int? admissionID;
dynamic surgeryDate; dynamic surgeryDate;
String preOpDiagnosis; String? preOpDiagnosis;
String postOpDiagnosis; String? postOpDiagnosis;
String surgeon; String? surgeon;
String assistant; String? assistant;
String anasthetist; String? anasthetist;
String operation; String? operation;
String inasion; String? inasion;
String finding; String? finding;
String surgeryProcedure; String? surgeryProcedure;
String postOpInstruction; String? postOpInstruction;
bool isActive; bool? isActive;
int createdBy; int? createdBy;
String createdName; String? createdName;
dynamic createdNameN; dynamic createdNameN;
String createdOn; String? createdOn;
dynamic editedBy; dynamic editedBy;
dynamic editedByName; dynamic editedByName;
dynamic editedByNameN; dynamic editedByNameN;
dynamic editedOn; dynamic editedOn;
dynamic oRBookStatus; dynamic oRBookStatus;
String complicationDetail; String? complicationDetail;
String bloodLossDetail; String? bloodLossDetail;
String histopathSpecimen; String? histopathSpecimen;
String microbiologySpecimen; String? microbiologySpecimen;
String otherSpecimen; String? otherSpecimen;
dynamic scrubNurse; dynamic scrubNurse;
dynamic circulatingNurse; dynamic circulatingNurse;
dynamic bloodTransfusedDetail; dynamic bloodTransfusedDetail;
GetOperationDetailsResponseModel( GetOperationDetailsResponseModel(
{this.setupID, {this.setupID,
this.projectID, this.projectID,

@ -1,17 +1,17 @@
class GetReservationsRequestModel { class GetReservationsRequestModel {
int patientID; int? patientID;
int projectID; int? projectID;
String doctorID; String? doctorID;
int clinicID; int? clinicID;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
bool patientOutSA; bool? patientOutSA;
int deviceTypeID; int? deviceTypeID;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
GetReservationsRequestModel( GetReservationsRequestModel(
{this.patientID, {this.patientID,

@ -1,39 +1,40 @@
class GetReservationsResponseModel { class GetReservationsResponseModel {
String setupID; String? setupID;
int projectID; int? projectID;
int oTReservationID; int? oTReservationID;
String oTReservationDate; String? oTReservationDate;
String oTReservationDateN; String? oTReservationDateN;
int oTID; int? oTID;
int admissionRequestNo; int? admissionRequestNo;
int admissionNo; int? admissionNo;
int primaryDoctorID; int? primaryDoctorID;
int patientType; int? patientType;
int patientID; int? patientID;
int patientStatusType; int? patientStatusType;
int clinicID; int? clinicID;
int doctorID; int? doctorID;
String operationDate; String? operationDate;
int operationType; int? operationType;
String endDate; String? endDate;
String timeStart; String? timeStart;
String timeEnd; String? timeEnd;
dynamic remarks; dynamic remarks;
int status; int? status;
int createdBy; int? createdBy;
String createdOn; String? createdOn;
int editedBy; int? editedBy;
String editedOn; String? editedOn;
String patientName; String? patientName;
Null patientNameN; String? patientNameN;
Null gender; String? gender;
String dateofBirth; String? dateofBirth;
String mobileNumber; String? mobileNumber;
String emailAddress; String? emailAddress;
String doctorName; String? doctorName;
Null doctorNameN; String? doctorNameN;
String clinicDescription; String? clinicDescription;
Null clinicDescriptionN; String? clinicDescriptionN;
GetReservationsResponseModel( GetReservationsResponseModel(
{this.setupID, {this.setupID,

@ -1,16 +1,16 @@
class MedicalReportTemplate { class MedicalReportTemplate {
String setupID; String? setupID;
int projectID; int? projectID;
int templateID; int? templateID;
String procedureID; String? procedureID;
int reportType; int? reportType;
String templateName; String? templateName;
String templateNameN; String? templateNameN;
String templateText; String? templateText;
String templateTextN; String? templateTextN;
bool isActive; bool? isActive;
String templateTextHtml; String? templateTextHtml;
String templateTextNHtml; String? templateTextNHtml;
MedicalReportTemplate( MedicalReportTemplate(
{this.setupID, {this.setupID,

@ -1,30 +1,30 @@
class MedicalReportModel { class MedicalReportModel {
String reportData; String? reportData;
String setupID; String? setupID;
int projectID; int? projectID;
String projectName; String? projectName;
String projectNameN; String? projectNameN;
int patientID; int? patientID;
String invoiceNo; String? invoiceNo;
int status; int? status;
String verifiedOn; String? verifiedOn;
dynamic verifiedBy; dynamic verifiedBy;
String editedOn; String? editedOn;
int editedBy; int? editedBy;
int lineItemNo; int? lineItemNo;
String createdOn; String? createdOn;
int templateID; int? templateID;
int doctorID; int? doctorID;
int doctorGender; int? doctorGender;
String doctorGenderDescription; String? doctorGenderDescription;
String doctorGenderDescriptionN; String? doctorGenderDescriptionN;
String doctorImageURL; String? doctorImageURL;
String doctorName; String? doctorName;
String doctorNameN; String? doctorNameN;
int clinicID; int? clinicID;
String clinicName; String? clinicName;
String clinicNameN; String? clinicNameN;
String reportDataHtml; String? reportDataHtml;
MedicalReportModel( MedicalReportModel(
{this.reportData, {this.reportData,

@ -1,23 +1,17 @@
/*
*@author: Elham Rababah
*@Date:6/5/2020
*@param:
*@return:LabOrdersReqModel
*@desc: LabOrdersReqModel class
*/
class LabOrdersReqModel { class LabOrdersReqModel {
int patientID; int? patientID;
int patientTypeID; int? patientTypeID;
int projectID; int? projectID;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
LabOrdersReqModel( LabOrdersReqModel(
{this.patientID, {this.patientID,

@ -1,27 +1,27 @@
import 'package:doctor_app_flutter/utils/date-utils.dart'; import 'package:doctor_app_flutter/utils/date-utils.dart';
class LabOrdersResModel { class LabOrdersResModel {
String setupID; String? setupID;
int projectID; int? projectID;
int patientID; int? patientID;
int patientType; int? patientType;
int orderNo; int? orderNo;
String orderDate; String? orderDate;
int invoiceTransactionType; int? invoiceTransactionType;
int invoiceNo; int? invoiceNo;
int clinicId; int? clinicId;
int doctorId; int? doctorId;
int status; int? status;
String createdBy; String? createdBy;
Null createdByN; dynamic createdByN;
DateTime createdOn; DateTime? createdOn;
String editedBy; String? editedBy;
Null editedByN; dynamic editedByN;
String editedOn; String? editedOn;
String clinicName; String? clinicName;
String doctorImageURL; String? doctorImageURL;
String doctorName; String? doctorName;
String projectName; String? projectName;
LabOrdersResModel( LabOrdersResModel(
{this.setupID, {this.setupID,

@ -1,32 +1,32 @@
class LabResult { class LabResult {
String setupID; String? setupID;
int projectID; int? projectID;
int orderNo; int? orderNo;
int lineItemNo; int? lineItemNo;
int packageID; int? packageID;
int testID; int? testID;
String description; String? description;
String resultValue; String? resultValue;
String referenceRange; String? referenceRange;
Null convertedResultValue; dynamic convertedResultValue;
Null convertedReferenceRange; dynamic convertedReferenceRange;
Null resultValueFlag; dynamic resultValueFlag;
int status; int? status;
String createdBy; String? createdBy;
Null createdByN; dynamic createdByN;
String createdOn; String? createdOn;
String editedBy; String? editedBy;
Null editedByN; dynamic editedByN;
String editedOn; String? editedOn;
String verifiedBy; String? verifiedBy;
Null verifiedByN; dynamic verifiedByN;
String verifiedOn; String? verifiedOn;
Null patientID; dynamic patientID;
int gender; int? gender;
Null maleInterpretativeData; dynamic maleInterpretativeData;
Null femaleInterpretativeData; dynamic femaleInterpretativeData;
String testCode; String? testCode;
String statusDescription; String? statusDescription;
LabResult( LabResult(
{this.setupID, {this.setupID,
@ -90,7 +90,7 @@ class LabResult {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = Map<String, dynamic>();
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['OrderNo'] = this.orderNo; data['OrderNo'] = this.orderNo;

@ -1,18 +1,18 @@
class RequestLabResult { class RequestLabResult {
int projectID; int? projectID;
String setupID; String? setupID;
int orderNo; int? orderNo;
int invoiceNo; int? invoiceNo;
int patientTypeID; int? patientTypeID;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
RequestLabResult( RequestLabResult(
{this.projectID, {this.projectID,
@ -30,7 +30,7 @@ class RequestLabResult {
this.isLoginForDoctorApp, this.isLoginForDoctorApp,
this.patientOutSA}); this.patientOutSA});
RequestLabResult.fromJson(Map<String, dynamic> json) { RequestLabResult.fromJson(Map<String?, dynamic> json) {
projectID = json['ProjectID']; projectID = json['ProjectID'];
setupID = json['SetupID']; setupID = json['SetupID'];
orderNo = json['OrderNo']; orderNo = json['OrderNo'];
@ -48,7 +48,7 @@ class RequestLabResult {
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = Map<String, dynamic>();
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['OrderNo'] = this.orderNo; data['OrderNo'] = this.orderNo;

@ -1,37 +1,37 @@
import '../patiant_info_model.dart'; import '../patiant_info_model.dart';
class PendingReferral { class PendingReferral {
PatiantInformtion patientDetails; PatiantInformtion? patientDetails;
String doctorImageUrl; String? doctorImageUrl;
String nationalityFlagUrl; String? nationalityFlagUrl;
String responded; String? responded;
String answerFromTarget; String? answerFromTarget;
String createdOn; String? createdOn;
int data; int? data;
int isSameBranch; int? isSameBranch;
String editedOn; String? editedOn;
int interBranchReferral; int? interBranchReferral;
int patientID; int? patientID;
String patientName; String? patientName;
int patientType; int? patientType;
int referralNo; int? referralNo;
String referralStatus; String? referralStatus;
String referredByDoctorInfo; String? referredByDoctorInfo;
String referredFromBranchName; String? referredFromBranchName;
String referredOn; String? referredOn;
String referredType; String? referredType;
String remarksFromSource; String? remarksFromSource;
String respondedOn; String? respondedOn;
int sourceAppointmentNo; int? sourceAppointmentNo;
int sourceProjectId; int? sourceProjectId;
String sourceSetupID; String? sourceSetupID;
String startDate; String? startDate;
int targetAppointmentNo; int? targetAppointmentNo;
String targetClinicID; String? targetClinicID;
String targetDoctorID; String? targetDoctorID;
int targetProjectId; int? targetProjectId;
String targetSetupID; String? targetSetupID;
bool isReferralDoctorSameBranch; bool? isReferralDoctorSameBranch;
PendingReferral({ PendingReferral({
this.patientDetails, this.patientDetails,
@ -68,9 +68,7 @@ class PendingReferral {
}); });
PendingReferral.fromJson(Map<String, dynamic> json) { PendingReferral.fromJson(Map<String, dynamic> json) {
patientDetails = json['patientDetails'] != null patientDetails = json['patientDetails'] != null ? PatiantInformtion.fromJson(json['patientDetails']) : null;
? PatiantInformtion.fromJson(json['patientDetails'])
: null;
doctorImageUrl = json['DoctorImageURL']; doctorImageUrl = json['DoctorImageURL'];
nationalityFlagUrl = json['NationalityFlagURL']; nationalityFlagUrl = json['NationalityFlagURL'];
responded = json['Responded']; responded = json['Responded'];

@ -1,43 +1,44 @@
class ClinicDoctor { class ClinicDoctor {
int clinicID; int? clinicID;
String clinicName; String? clinicName;
String doctorTitle; String? doctorTitle;
int iD; int? iD;
String name; String? name;
int projectID; int? projectID;
String projectName; String? projectName;
int actualDoctorRate; int? actualDoctorRate;
int clinicRoomNo; int? clinicRoomNo;
String date; String? date;
String dayName; String? dayName;
int doctorID; int? doctorID;
String doctorImageURL; String? doctorImageURL;
String doctorProfile; String? doctorProfile;
String doctorProfileInfo; String? doctorProfileInfo;
int doctorRate; int? doctorRate;
int gender; int? gender;
String genderDescription; String? genderDescription;
bool isAppointmentAllowed; bool? isAppointmentAllowed;
bool isDoctorAllowVedioCall; bool? isDoctorAllowVedioCall;
bool isDoctorDummy; bool? isDoctorDummy;
bool isLiveCare; bool? isLiveCare;
String latitude; String? latitude;
String longitude; String? longitude;
String nationalityFlagURL; String? nationalityFlagURL;
String nationalityID; String? nationalityID;
String nationalityName; String? nationalityName;
String nearestFreeSlot; String? nearestFreeSlot;
int noOfPatientsRate; int? noOfPatientsRate;
String originalClinicID; String? originalClinicID;
int personRate; int? personRate;
int projectDistanceInKiloMeters; int? projectDistanceInKiloMeters;
String qR; String? qR;
String qRString; String? qRString;
int rateNumber; int? rateNumber;
String serviceID; String? serviceID;
String setupID; String? setupID;
List<String> speciality; List<String>? speciality;
String workingHours; String? workingHours;
ClinicDoctor( ClinicDoctor(
{this.clinicID, {this.clinicID,

@ -1,55 +1,55 @@
import 'package:doctor_app_flutter/utils/date-utils.dart'; import 'package:doctor_app_flutter/utils/date-utils.dart';
class MyReferralPatientModel { class MyReferralPatientModel {
int projectID; int? projectID;
int lineItemNo; int? lineItemNo;
int doctorID; int? doctorID;
int patientID; int? patientID;
String doctorName; String? doctorName;
String doctorNameN; String? doctorNameN;
String firstName; String? firstName;
String middleName; String? middleName;
String lastName; String? lastName;
String firstNameN; String? firstNameN;
String middleNameN; String? middleNameN;
String lastNameN; String? lastNameN;
int gender; int? gender;
String dateofBirth; String? dateofBirth;
String mobileNumber; String? mobileNumber;
String emailAddress; String? emailAddress;
String patientIdentificationNo; String? patientIdentificationNo;
int patientType; int? patientType;
String admissionNo; String? admissionNo;
String admissionDate; String? admissionDate;
String roomID; String? roomID;
String bedID; String? bedID;
String nursingStationID; String? nursingStationID;
String description; String? description;
String nationalityName; String? nationalityName;
String nationalityNameN; String? nationalityNameN;
String clinicDescription; String? clinicDescription;
String clinicDescriptionN; String? clinicDescriptionN;
int referralDoctor; int? referralDoctor;
int referringDoctor; int? referringDoctor;
int referralClinic; int? referralClinic;
int referringClinic; int? referringClinic;
int referralStatus; int? referralStatus;
String referralDate; String? referralDate;
String referringDoctorRemarks; String? referringDoctorRemarks;
String referredDoctorRemarks; String? referredDoctorRemarks;
String referralResponseOn; String? referralResponseOn;
int priority; int? priority;
int frequency; int? frequency;
DateTime mAXResponseTime; DateTime? mAXResponseTime;
String age; String? age;
String frequencyDescription; String? frequencyDescription;
String genderDescription; String? genderDescription;
bool isDoctorLate; bool? isDoctorLate;
bool isDoctorResponse; bool? isDoctorResponse;
String nursingStationName; String? nursingStationName;
String priorityDescription; String? priorityDescription;
String referringClinicDescription; String? referringClinicDescription;
String referringDoctorName; String? referringDoctorName;
MyReferralPatientModel( MyReferralPatientModel(
{this.projectID, {this.projectID,

@ -1,68 +1,68 @@
class MyReferredPatientModel { class MyReferredPatientModel {
String rowID; String? rowID;
int projectID; int? projectID;
int lineItemNo; int? lineItemNo;
int doctorID; int? doctorID;
int patientID; int? patientID;
String doctorName; String? doctorName;
String doctorNameN; String? doctorNameN;
String firstName; String? firstName;
String middleName; String? middleName;
String lastName; String? lastName;
String firstNameN; String? firstNameN;
String middleNameN; String? middleNameN;
String lastNameN; String? lastNameN;
int gender; int? gender;
String dateofBirth; String? dateofBirth;
String mobileNumber; String? mobileNumber;
String emailAddress; String? emailAddress;
String patientIdentificationNo; String? patientIdentificationNo;
int patientType; int? patientType;
String admissionNo; String? admissionNo;
String admissionDate; String? admissionDate;
String roomID; String? roomID;
String bedID; String? bedID;
String nursingStationID; String? nursingStationID;
String description; String? description;
String nationalityName; String? nationalityName;
String nationalityNameN; String? nationalityNameN;
String clinicDescription; String? clinicDescription;
String clinicDescriptionN; String? clinicDescriptionN;
int referralDoctor; int? referralDoctor;
int referringDoctor; int? referringDoctor;
int referralClinic; int? referralClinic;
int referringClinic; int? referringClinic;
int referralStatus; int? referralStatus;
String referralDate; String? referralDate;
String referringDoctorRemarks; String? referringDoctorRemarks;
String referredDoctorRemarks; String? referredDoctorRemarks;
String referralResponseOn; String? referralResponseOn;
int priority; int? priority;
int frequency; int? frequency;
String mAXResponseTime; String? mAXResponseTime;
int episodeID; int? episodeID;
int appointmentNo; int? appointmentNo;
String appointmentDate; String? appointmentDate;
int appointmentType; int? appointmentType;
int patientMRN; int? patientMRN;
String createdOn; String? createdOn;
int clinicID; int? clinicID;
String nationalityID; String? nationalityID;
String age; String? age;
String doctorImageURL; String? doctorImageURL;
String frequencyDescription; String? frequencyDescription;
String genderDescription; String? genderDescription;
bool isDoctorLate; bool? isDoctorLate;
bool isDoctorResponse; bool? isDoctorResponse;
String nationalityFlagURL; String? nationalityFlagURL;
String nursingStationName; String? nursingStationName;
String priorityDescription; String? priorityDescription;
String referringClinicDescription; String? referringClinicDescription;
String referralDoctorName; String? referralDoctorName;
String referralClinicDescription; String? referralClinicDescription;
String referringDoctorName; String? referringDoctorName;
bool isReferralDoctorSameBranch; bool? isReferralDoctorSameBranch;
String referralStatusDesc; String? referralStatusDesc;
MyReferredPatientModel( MyReferredPatientModel(
{this.rowID, {this.rowID,

@ -1,22 +1,14 @@
class GetPatientArrivalListRequestModel { class GetPatientArrivalListRequestModel {
String vidaAuthTokenID; String? vidaAuthTokenID;
String from; String? from;
String to; String? to;
String doctorID; String? doctorID;
int pageIndex; int? pageIndex;
int pageSize; int? pageSize;
int clinicID; int? clinicID;
int patientMRN; int? patientMRN;
GetPatientArrivalListRequestModel( GetPatientArrivalListRequestModel({this.vidaAuthTokenID, this.from, this.to, this.doctorID, this.pageIndex, this.pageSize, this.clinicID, this.patientMRN});
{this.vidaAuthTokenID,
this.from,
this.to,
this.doctorID,
this.pageIndex,
this.pageSize,
this.clinicID,
this.patientMRN});
GetPatientArrivalListRequestModel.fromJson(Map<String, dynamic> json) { GetPatientArrivalListRequestModel.fromJson(Map<String, dynamic> json) {
vidaAuthTokenID = json['VidaAuthTokenID']; vidaAuthTokenID = json['VidaAuthTokenID'];

@ -1,36 +1,36 @@
class PrescriptionReport { class PrescriptionReport {
String address; String? address;
int appointmentNo; int? appointmentNo;
String clinic; String? clinic;
String companyName; String? companyName;
int days; int? days;
String doctorName; String? doctorName;
int doseDailyQuantity; int? doseDailyQuantity;
String frequency; String? frequency;
int frequencyNumber; int? frequencyNumber;
Null imageExtension; dynamic imageExtension;
Null imageSRCUrl; dynamic imageSRCUrl;
Null imageString; dynamic imageString;
Null imageThumbUrl; dynamic imageThumbUrl;
String isCovered; String? isCovered;
String itemDescription; String? itemDescription;
int itemID; int? itemID;
String orderDate; String? orderDate;
int patientID; int? patientID;
String patientName; String? patientName;
String phoneOffice1; String? phoneOffice1;
Null prescriptionQR; dynamic prescriptionQR;
int prescriptionTimes; int? prescriptionTimes;
Null productImage; dynamic productImage;
String productImageBase64; String? productImageBase64;
String productImageString; String? productImageString;
int projectID; int? projectID;
String projectName; String? projectName;
String remarks; String? remarks;
String route; String? route;
String sKU; String? sKU;
int scaleOffset; int? scaleOffset;
String startDate; String? startDate;
PrescriptionReport( PrescriptionReport(
{this.address, {this.address,

@ -1,53 +1,53 @@
import 'package:doctor_app_flutter/utils/date-utils.dart'; import 'package:doctor_app_flutter/utils/date-utils.dart';
class PrescriptionReportForInPatient { class PrescriptionReportForInPatient {
int admissionNo; int? admissionNo;
int authorizedBy; int? authorizedBy;
Null bedNo; dynamic bedNo;
String comments; String? comments;
int createdBy; int? createdBy;
String createdByName; String? createdByName;
Null createdByNameN; dynamic createdByNameN;
String createdOn; String? createdOn;
String direction; String? direction;
int directionID; int? directionID;
Null directionN; dynamic directionN;
String dose; String? dose;
int editedBy; int? editedBy;
Null iVDiluentLine; dynamic iVDiluentLine;
int iVDiluentType; int? iVDiluentType;
Null iVDiluentVolume; dynamic iVDiluentVolume;
Null iVRate; dynamic iVRate;
Null iVStability; dynamic iVStability;
String itemDescription; String? itemDescription;
int itemID; int? itemID;
int lineItemNo; int? lineItemNo;
int locationId; int? locationId;
int noOfDoses; int? noOfDoses;
int orderNo; int? orderNo;
int patientID; int? patientID;
String pharmacyRemarks; String? pharmacyRemarks;
DateTime prescriptionDatetime; DateTime? prescriptionDatetime;
int prescriptionNo; int? prescriptionNo;
String processedBy; String? processedBy;
int projectID; int? projectID;
int refillID; int? refillID;
String refillType; String? refillType;
Null refillTypeN; dynamic refillTypeN;
int reviewedPharmacist; int? reviewedPharmacist;
Null roomId; dynamic roomId;
String route; String? route;
int routeId; int? routeId;
Null routeN; dynamic routeN;
Null setupID; dynamic setupID;
DateTime startDatetime; DateTime? startDatetime;
int status; int? status;
String statusDescription; String? statusDescription;
Null statusDescriptionN; dynamic statusDescriptionN;
DateTime stopDatetime; DateTime? stopDatetime;
int unitofMeasurement; int? unitofMeasurement;
String unitofMeasurementDescription; String? unitofMeasurementDescription;
Null unitofMeasurementDescriptionN; dynamic unitofMeasurementDescriptionN;
PrescriptionReportForInPatient( PrescriptionReportForInPatient(
{this.admissionNo, {this.admissionNo,

@ -1,24 +1,17 @@
/*
*@author: Elham Rababah
*@Date:6/5/2020
*@param:
*@return:PrescriptionReqModel
*@desc: PrescriptionReqModel class
*/
class PrescriptionReqModel { class PrescriptionReqModel {
int patientID; int? patientID;
int setupID; int? setupID;
int projectID; int? projectID;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
int patientTypeID; int? patientTypeID;
PrescriptionReqModel( PrescriptionReqModel(
{this.patientID, {this.patientID,

@ -1,43 +1,36 @@
/*
*@author: Elham Rababah
*@Date:6/5/2020
*@param:
*@return:PrescriptionResModel
*@desc: PrescriptionResModel class
*/
class PrescriptionResModel { class PrescriptionResModel {
String setupID; String? setupID;
int projectID; int? projectID;
int patientID; int? patientID;
int appointmentNo; int? appointmentNo;
String appointmentDate; String? appointmentDate;
String doctorName; String? doctorName;
String clinicDescription; String? clinicDescription;
String name; String? name;
int episodeID; int? episodeID;
int actualDoctorRate; int? actualDoctorRate;
int clinicID; int? clinicID;
String companyName; String? companyName;
String despensedStatus; String? despensedStatus;
String dischargeDate; String? dischargeDate;
int dischargeNo; int? dischargeNo;
int doctorID; int? doctorID;
String doctorImageURL; String? doctorImageURL;
int doctorRate; int? doctorRate;
String doctorTitle; String? doctorTitle;
int gender; int? gender;
String genderDescription; String? genderDescription;
bool isActiveDoctorProfile; bool? isActiveDoctorProfile;
bool isDoctorAllowVedioCall; bool? isDoctorAllowVedioCall;
bool isExecludeDoctor; bool? isExecludeDoctor;
bool isInOutPatient; bool? isInOutPatient;
String isInOutPatientDescription; String? isInOutPatientDescription;
String isInOutPatientDescriptionN; String? isInOutPatientDescriptionN;
bool isInsurancePatient; bool? isInsurancePatient;
String nationalityFlagURL; String? nationalityFlagURL;
int noOfPatientsRate; int? noOfPatientsRate;
String qR; String? qR;
List<dynamic> speciality; List<dynamic>? speciality;
PrescriptionResModel( PrescriptionResModel(
{this.setupID, {this.setupID,

@ -1,18 +1,18 @@
class RequestPrescriptionReport { class RequestPrescriptionReport {
int projectID; int? projectID;
int appointmentNo; int? appointmentNo;
int episodeID; int? episodeID;
String setupID; String? setupID;
int patientTypeID; int? patientTypeID;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
RequestPrescriptionReport( RequestPrescriptionReport(
{this.projectID, {this.projectID,

@ -1,23 +1,16 @@
/*
*@author: Elham Rababah
*@Date:6/5/2020
*@param:
*@return:RadiologyReqModel
*@desc: RadiologyReqModel class
*/
class RadiologyReqModel { class RadiologyReqModel {
int patientID; int? patientID;
int projectID; int? projectID;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
int patientTypeID; int? patientTypeID;
RadiologyReqModel( RadiologyReqModel(
{this.patientID, {this.patientID,

@ -1,26 +1,19 @@
/*
*@author: Elham Rababah
*@Date:6/5/2020
*@param:
*@return:RadiologyResModel
*@desc: RadiologyResModel class
*/
class RadiologyResModel { class RadiologyResModel {
String setupID; String? setupID;
int projectID; int? projectID;
int patientID; int? patientID;
int invoiceLineItemNo; int? invoiceLineItemNo;
int invoiceNo; int? invoiceNo;
String reportData; String? reportData;
String imageURL; String? imageURL;
int clinicId; int? clinicId;
int doctorId; int? doctorId;
String reportDate; String? reportDate;
String clinicName; String? clinicName;
String doctorImageURL; String? doctorImageURL;
String doctorName; String? doctorName;
String projectName; String? projectName;
Null statusDescription; dynamic statusDescription;
RadiologyResModel( RadiologyResModel(
{this.setupID, {this.setupID,

@ -1,35 +1,36 @@
class VitalSignData { class VitalSignData {
int appointmentNo; int? appointmentNo;
int bloodPressureCuffLocation; int? bloodPressureCuffLocation;
int bloodPressureCuffSize; int? bloodPressureCuffSize;
int bloodPressureHigher; int? bloodPressureHigher;
int bloodPressureLower; int? bloodPressureLower;
int bloodPressurePatientPosition; int? bloodPressurePatientPosition;
var bodyMassIndex; dynamic bodyMassIndex;
int fio2; int? fio2;
int headCircumCm; int? headCircumCm;
var heightCm; dynamic heightCm;
int idealBodyWeightLbs; int? idealBodyWeightLbs;
bool isPainManagementDone; bool? isPainManagementDone;
bool isVitalsRequired; bool? isVitalsRequired;
int leanBodyWeightLbs; int? leanBodyWeightLbs;
String painCharacter; String? painCharacter;
String painDuration; String? painDuration;
String painFrequency; String? painFrequency;
String painLocation; String? painLocation;
int painScore; int? painScore;
int patientMRN; int? patientMRN;
int patientType; int? patientType;
int pulseBeatPerMinute; int? pulseBeatPerMinute;
int pulseRhythm; int? pulseRhythm;
int respirationBeatPerMinute; int? respirationBeatPerMinute;
int respirationPattern; int? respirationPattern;
int sao2; int? sao2;
int status; int? status;
var temperatureCelcius; dynamic temperatureCelcius;
int temperatureCelciusMethod; int? temperatureCelciusMethod;
var waistSizeInch; dynamic waistSizeInch;
var weightKg; dynamic weightKg;
VitalSignData( VitalSignData(
{this.appointmentNo, {this.appointmentNo,

@ -25,9 +25,9 @@ class VitalSignHistory {
var painDuration; var painDuration;
var painCharacter; var painCharacter;
var painFrequency; var painFrequency;
bool isPainManagementDone; bool? isPainManagementDone;
var status; var status;
bool isVitalsRequired; bool? isVitalsRequired;
var patientID; var patientID;
var createdOn; var createdOn;
var doctorID; var doctorID;

@ -1,26 +1,19 @@
/*
*@author: Elham Rababah
*@Date:27/4/2020
*@param:
*@return:
*@desc: VitalSignReqModel
*/
class VitalSignReqModel { class VitalSignReqModel {
int patientID; int? patientID;
int projectID; int? projectID;
int patientTypeID; int? patientTypeID;
int inOutpatientType; int? inOutpatientType;
int transNo; int? transNo;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
int channel; int? channel;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
bool patientOutSA; bool? patientOutSA;
VitalSignReqModel( VitalSignReqModel(
{this.patientID, {this.patientID,

@ -1,5 +1,3 @@
//@dart=2.9
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/screens/doctor/doctor_replay/doctor_reply_screen.dart'; import 'package:doctor_app_flutter/screens/doctor/doctor_replay/doctor_reply_screen.dart';
import 'package:doctor_app_flutter/screens/doctor/my_schedule_screen.dart'; import 'package:doctor_app_flutter/screens/doctor/my_schedule_screen.dart';
@ -23,7 +21,7 @@ class LandingPage extends StatefulWidget {
class _LandingPageState extends State<LandingPage> { class _LandingPageState extends State<LandingPage> {
int currentTab = 0; int currentTab = 0;
PageController pageController; late PageController pageController;
_changeCurrentTab(int tab) { _changeCurrentTab(int tab) {
setState(() { setState(() {
@ -44,7 +42,7 @@ class _LandingPageState extends State<LandingPage> {
return AppScaffold( return AppScaffold(
appBar: currentTab != 0 appBar: currentTab != 0
? AppBar( ? AppBar(
toolbarHeight: 95, toolbarHeight: 95,
elevation: 0, elevation: 0,
backgroundColor: HexColor('#FFFFFF'), backgroundColor: HexColor('#FFFFFF'),
//textTheme: TextTheme(headline6: TextStyle(color: Colors.white)), //textTheme: TextTheme(headline6: TextStyle(color: Colors.white)),
@ -61,12 +59,9 @@ class _LandingPageState extends State<LandingPage> {
builder: (BuildContext context) { builder: (BuildContext context) {
return Container( return Container(
width: 40, width: 40,
margin: EdgeInsets.only( margin: EdgeInsets.only(left: projectViewModel.isArabic ? 0 : 20, right: projectViewModel.isArabic ? 20 : 0),
left: projectViewModel.isArabic ? 0 : 20,
right: projectViewModel.isArabic ? 20 : 0),
child: IconButton( child: IconButton(
icon: SvgPicture.asset('assets/images/svgs/menu.svg', icon: SvgPicture.asset('assets/images/svgs/menu.svg', height: 25, width: 10),
height: 25, width: 10),
iconSize: 15, iconSize: 15,
color: Color(0xff2B353E), color: Color(0xff2B353E),
onPressed: () => Scaffold.of(context).openDrawer(), onPressed: () => Scaffold.of(context).openDrawer(),
@ -114,11 +109,11 @@ class _LandingPageState extends State<LandingPage> {
} }
} }
class MyAppbar extends StatelessWidget with PreferredSizeWidget { class MyAppbar extends StatelessWidget {
@override @override
final Size preferredSize; final Size preferredSize;
MyAppbar({Key key}) MyAppbar({Key? key})
: preferredSize = Size.fromHeight(0.0), : preferredSize = Size.fromHeight(0.0),
super(key: key); super(key: key);

@ -68,7 +68,7 @@ class MyApp extends StatelessWidget {
theme: ThemeData( theme: ThemeData(
primarySwatch: Colors.grey, primarySwatch: Colors.grey,
primaryColor: Colors.grey, primaryColor: Colors.grey,
buttonColor: HexColor('#D02127'), //buttonColor: HexColor('#D02127'),
fontFamily: 'Poppins', fontFamily: 'Poppins',
dividerColor: Colors.grey[350], dividerColor: Colors.grey[350],
backgroundColor: Color.fromRGBO(255, 255, 255, 1), backgroundColor: Color.fromRGBO(255, 255, 255, 1),

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save