Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into development
# Conflicts: # lib/screens/home/home_screen.dart # lib/widgets/auth/login_form.dart # lib/widgets/auth/verfiy_account.dartmerge-requests/616/head
commit
53a610213c
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 348 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 475 B |
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 132 KiB |
@ -0,0 +1,2 @@
|
||||
enum PatientType { inPatient, OutPatient }
|
||||
|
||||
@ -0,0 +1,64 @@
|
||||
class InsuranceApprovalInPatientRequestModel {
|
||||
int patientID;
|
||||
int patientTypeID;
|
||||
int eXuldAPPNO;
|
||||
int projectID;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
|
||||
InsuranceApprovalInPatientRequestModel(
|
||||
{this.patientID,
|
||||
this.patientTypeID,
|
||||
this.eXuldAPPNO,
|
||||
this.projectID,
|
||||
this.languageID,
|
||||
this.stamp,
|
||||
this.iPAdress,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.tokenID,
|
||||
this.sessionID,
|
||||
this.isLoginForDoctorApp,
|
||||
this.patientOutSA});
|
||||
|
||||
InsuranceApprovalInPatientRequestModel.fromJson(Map<String, dynamic> json) {
|
||||
patientID = json['PatientID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
eXuldAPPNO = json['EXuldAPPNO'];
|
||||
projectID = json['ProjectID'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['EXuldAPPNO'] = this.eXuldAPPNO;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['stamp'] = this.stamp;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,218 @@
|
||||
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||
|
||||
class DischargeReferralPatient {
|
||||
dynamic rowID;
|
||||
int projectID;
|
||||
int lineItemNo;
|
||||
int doctorID;
|
||||
int patientID;
|
||||
String doctorName;
|
||||
dynamic doctorNameN;
|
||||
String firstName;
|
||||
String middleName;
|
||||
String lastName;
|
||||
dynamic firstNameN;
|
||||
dynamic middleNameN;
|
||||
dynamic lastNameN;
|
||||
int gender;
|
||||
String dateofBirth;
|
||||
String mobileNumber;
|
||||
String emailAddress;
|
||||
String patientIdentificationNo;
|
||||
int patientType;
|
||||
String admissionNo;
|
||||
String admissionDate;
|
||||
String roomID;
|
||||
String bedID;
|
||||
dynamic nursingStationID;
|
||||
dynamic description;
|
||||
String nationalityName;
|
||||
dynamic nationalityNameN;
|
||||
int referralDoctor;
|
||||
int referringDoctor;
|
||||
int referralClinic;
|
||||
int referringClinic;
|
||||
int referralStatus;
|
||||
DateTime referralDate;
|
||||
String referringDoctorRemarks;
|
||||
String referredDoctorRemarks;
|
||||
String referralResponseOn;
|
||||
int priority;
|
||||
int frequency;
|
||||
String mAXResponseTime;
|
||||
String dischargeDate;
|
||||
dynamic clinicID;
|
||||
String age;
|
||||
String clinicDescription;
|
||||
String frequencyDescription;
|
||||
String genderDescription;
|
||||
bool isDoctorLate;
|
||||
bool isDoctorResponse;
|
||||
String nursingStationName;
|
||||
String priorityDescription;
|
||||
String referringClinicDescription;
|
||||
String referringDoctorName;
|
||||
|
||||
DischargeReferralPatient(
|
||||
{this.rowID,
|
||||
this.projectID,
|
||||
this.lineItemNo,
|
||||
this.doctorID,
|
||||
this.patientID,
|
||||
this.doctorName,
|
||||
this.doctorNameN,
|
||||
this.firstName,
|
||||
this.middleName,
|
||||
this.lastName,
|
||||
this.firstNameN,
|
||||
this.middleNameN,
|
||||
this.lastNameN,
|
||||
this.gender,
|
||||
this.dateofBirth,
|
||||
this.mobileNumber,
|
||||
this.emailAddress,
|
||||
this.patientIdentificationNo,
|
||||
this.patientType,
|
||||
this.admissionNo,
|
||||
this.admissionDate,
|
||||
this.roomID,
|
||||
this.bedID,
|
||||
this.nursingStationID,
|
||||
this.description,
|
||||
this.nationalityName,
|
||||
this.nationalityNameN,
|
||||
this.referralDoctor,
|
||||
this.referringDoctor,
|
||||
this.referralClinic,
|
||||
this.referringClinic,
|
||||
this.referralStatus,
|
||||
this.referralDate,
|
||||
this.referringDoctorRemarks,
|
||||
this.referredDoctorRemarks,
|
||||
this.referralResponseOn,
|
||||
this.priority,
|
||||
this.frequency,
|
||||
this.mAXResponseTime,
|
||||
this.dischargeDate,
|
||||
this.clinicID,
|
||||
this.age,
|
||||
this.clinicDescription,
|
||||
this.frequencyDescription,
|
||||
this.genderDescription,
|
||||
this.isDoctorLate,
|
||||
this.isDoctorResponse,
|
||||
this.nursingStationName,
|
||||
this.priorityDescription,
|
||||
this.referringClinicDescription,
|
||||
this.referringDoctorName});
|
||||
|
||||
DischargeReferralPatient.fromJson(Map<String, dynamic> json) {
|
||||
rowID = json['RowID'];
|
||||
projectID = json['ProjectID'];
|
||||
lineItemNo = json['LineItemNo'];
|
||||
doctorID = json['DoctorID'];
|
||||
patientID = json['PatientID'];
|
||||
doctorName = json['DoctorName'];
|
||||
doctorNameN = json['DoctorNameN'];
|
||||
firstName = json['FirstName'];
|
||||
middleName = json['MiddleName'];
|
||||
lastName = json['LastName'];
|
||||
firstNameN = json['FirstNameN'];
|
||||
middleNameN = json['MiddleNameN'];
|
||||
lastNameN = json['LastNameN'];
|
||||
gender = json['Gender'];
|
||||
dateofBirth = json['DateofBirth'];
|
||||
mobileNumber = json['MobileNumber'];
|
||||
emailAddress = json['EmailAddress'];
|
||||
patientIdentificationNo = json['PatientIdentificationNo'];
|
||||
patientType = json['PatientType'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
admissionDate = json['AdmissionDate'];
|
||||
roomID = json['RoomID'];
|
||||
bedID = json['BedID'];
|
||||
nursingStationID = json['NursingStationID'];
|
||||
description = json['Description'];
|
||||
nationalityName = json['NationalityName'];
|
||||
nationalityNameN = json['NationalityNameN'];
|
||||
referralDoctor = json['ReferralDoctor'];
|
||||
referringDoctor = json['ReferringDoctor'];
|
||||
referralClinic = json['ReferralClinic'];
|
||||
referringClinic = json['ReferringClinic'];
|
||||
referralStatus = json['ReferralStatus'];
|
||||
referralDate = DateUtils.convertStringToDate(json['ReferralDate']);
|
||||
referringDoctorRemarks = json['ReferringDoctorRemarks'];
|
||||
referredDoctorRemarks = json['ReferredDoctorRemarks'];
|
||||
referralResponseOn = json['ReferralResponseOn'];
|
||||
priority = json['Priority'];
|
||||
frequency = json['Frequency'];
|
||||
mAXResponseTime = json['MAXResponseTime'];
|
||||
dischargeDate = json['DischargeDate'];
|
||||
clinicID = json['ClinicID'];
|
||||
age = json['Age'];
|
||||
clinicDescription = json['ClinicDescription'];
|
||||
frequencyDescription = json['FrequencyDescription'];
|
||||
genderDescription = json['GenderDescription'];
|
||||
isDoctorLate = json['IsDoctorLate'];
|
||||
isDoctorResponse = json['IsDoctorResponse'];
|
||||
nursingStationName = json['NursingStationName'];
|
||||
priorityDescription = json['PriorityDescription'];
|
||||
referringClinicDescription = json['ReferringClinicDescription'];
|
||||
referringDoctorName = json['ReferringDoctorName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['RowID'] = this.rowID;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['LineItemNo'] = this.lineItemNo;
|
||||
data['DoctorID'] = this.doctorID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['DoctorName'] = this.doctorName;
|
||||
data['DoctorNameN'] = this.doctorNameN;
|
||||
data['FirstName'] = this.firstName;
|
||||
data['MiddleName'] = this.middleName;
|
||||
data['LastName'] = this.lastName;
|
||||
data['FirstNameN'] = this.firstNameN;
|
||||
data['MiddleNameN'] = this.middleNameN;
|
||||
data['LastNameN'] = this.lastNameN;
|
||||
data['Gender'] = this.gender;
|
||||
data['DateofBirth'] = this.dateofBirth;
|
||||
data['MobileNumber'] = this.mobileNumber;
|
||||
data['EmailAddress'] = this.emailAddress;
|
||||
data['PatientIdentificationNo'] = this.patientIdentificationNo;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['AdmissionDate'] = this.admissionDate;
|
||||
data['RoomID'] = this.roomID;
|
||||
data['BedID'] = this.bedID;
|
||||
data['NursingStationID'] = this.nursingStationID;
|
||||
data['Description'] = this.description;
|
||||
data['NationalityName'] = this.nationalityName;
|
||||
data['NationalityNameN'] = this.nationalityNameN;
|
||||
data['ReferralDoctor'] = this.referralDoctor;
|
||||
data['ReferringDoctor'] = this.referringDoctor;
|
||||
data['ReferralClinic'] = this.referralClinic;
|
||||
data['ReferringClinic'] = this.referringClinic;
|
||||
data['ReferralStatus'] = this.referralStatus;
|
||||
data['ReferralDate'] = this.referralDate;
|
||||
data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
|
||||
data['ReferredDoctorRemarks'] = this.referredDoctorRemarks;
|
||||
data['ReferralResponseOn'] = this.referralResponseOn;
|
||||
data['Priority'] = this.priority;
|
||||
data['Frequency'] = this.frequency;
|
||||
data['MAXResponseTime'] = this.mAXResponseTime;
|
||||
data['DischargeDate'] = this.dischargeDate;
|
||||
data['ClinicID'] = this.clinicID;
|
||||
data['Age'] = this.age;
|
||||
data['ClinicDescription'] = this.clinicDescription;
|
||||
data['FrequencyDescription'] = this.frequencyDescription;
|
||||
data['GenderDescription'] = this.genderDescription;
|
||||
data['IsDoctorLate'] = this.isDoctorLate;
|
||||
data['IsDoctorResponse'] = this.isDoctorResponse;
|
||||
data['NursingStationName'] = this.nursingStationName;
|
||||
data['PriorityDescription'] = this.priorityDescription;
|
||||
data['ReferringClinicDescription'] = this.referringClinicDescription;
|
||||
data['ReferringDoctorName'] = this.referringDoctorName;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,258 @@
|
||||
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||
|
||||
class MyReferralPatientModel {
|
||||
dynamic rowID;
|
||||
int projectID;
|
||||
int lineItemNo;
|
||||
int doctorID;
|
||||
int patientID;
|
||||
String doctorName;
|
||||
dynamic doctorNameN;
|
||||
String firstName;
|
||||
String middleName;
|
||||
String lastName;
|
||||
dynamic firstNameN;
|
||||
dynamic middleNameN;
|
||||
dynamic lastNameN;
|
||||
int gender;
|
||||
String dateofBirth;
|
||||
String mobileNumber;
|
||||
String emailAddress;
|
||||
String patientIdentificationNo;
|
||||
int patientType;
|
||||
String admissionNo;
|
||||
String admissionDate;
|
||||
String roomID;
|
||||
String bedID;
|
||||
dynamic nursingStationID;
|
||||
dynamic description;
|
||||
String nationalityName;
|
||||
dynamic nationalityNameN;
|
||||
String clinicDescription;
|
||||
String clinicDescriptionN;
|
||||
int referralDoctor;
|
||||
int referringDoctor;
|
||||
int referralClinic;
|
||||
int referringClinic;
|
||||
int referralStatus;
|
||||
DateTime referralDate;
|
||||
String referringDoctorRemarks;
|
||||
String referredDoctorRemarks;
|
||||
String referralResponseOn;
|
||||
int priority;
|
||||
int frequency;
|
||||
String mAXResponseTime;
|
||||
int episodeID;
|
||||
int appointmentNo;
|
||||
String appointmentDate;
|
||||
int appointmentType;
|
||||
int patientMRN;
|
||||
String createdOn;
|
||||
int clinicID;
|
||||
String nationalityID;
|
||||
String age;
|
||||
String doctorImageURL;
|
||||
String frequencyDescription;
|
||||
String genderDescription;
|
||||
bool isDoctorLate;
|
||||
bool isDoctorResponse;
|
||||
String nationalityFlagURL;
|
||||
String nursingStationName;
|
||||
String priorityDescription;
|
||||
String referringClinicDescription;
|
||||
String referringDoctorName;
|
||||
|
||||
MyReferralPatientModel(
|
||||
{this.rowID,
|
||||
this.projectID,
|
||||
this.lineItemNo,
|
||||
this.doctorID,
|
||||
this.patientID,
|
||||
this.doctorName,
|
||||
this.doctorNameN,
|
||||
this.firstName,
|
||||
this.middleName,
|
||||
this.lastName,
|
||||
this.firstNameN,
|
||||
this.middleNameN,
|
||||
this.lastNameN,
|
||||
this.gender,
|
||||
this.dateofBirth,
|
||||
this.mobileNumber,
|
||||
this.emailAddress,
|
||||
this.patientIdentificationNo,
|
||||
this.patientType,
|
||||
this.admissionNo,
|
||||
this.admissionDate,
|
||||
this.roomID,
|
||||
this.bedID,
|
||||
this.nursingStationID,
|
||||
this.description,
|
||||
this.nationalityName,
|
||||
this.nationalityNameN,
|
||||
this.clinicDescription,
|
||||
this.clinicDescriptionN,
|
||||
this.referralDoctor,
|
||||
this.referringDoctor,
|
||||
this.referralClinic,
|
||||
this.referringClinic,
|
||||
this.referralStatus,
|
||||
this.referralDate,
|
||||
this.referringDoctorRemarks,
|
||||
this.referredDoctorRemarks,
|
||||
this.referralResponseOn,
|
||||
this.priority,
|
||||
this.frequency,
|
||||
this.mAXResponseTime,
|
||||
this.episodeID,
|
||||
this.appointmentNo,
|
||||
this.appointmentDate,
|
||||
this.appointmentType,
|
||||
this.patientMRN,
|
||||
this.createdOn,
|
||||
this.clinicID,
|
||||
this.nationalityID,
|
||||
this.age,
|
||||
this.doctorImageURL,
|
||||
this.frequencyDescription,
|
||||
this.genderDescription,
|
||||
this.isDoctorLate,
|
||||
this.isDoctorResponse,
|
||||
this.nationalityFlagURL,
|
||||
this.nursingStationName,
|
||||
this.priorityDescription,
|
||||
this.referringClinicDescription,
|
||||
this.referringDoctorName});
|
||||
|
||||
MyReferralPatientModel.fromJson(Map<String, dynamic> json) {
|
||||
rowID = json['RowID'];
|
||||
projectID = json['ProjectID'];
|
||||
lineItemNo = json['LineItemNo'];
|
||||
doctorID = json['DoctorID'];
|
||||
patientID = json['PatientID'];
|
||||
doctorName = json['DoctorName'];
|
||||
doctorNameN = json['DoctorNameN'];
|
||||
firstName = json['FirstName'];
|
||||
middleName = json['MiddleName'];
|
||||
lastName = json['LastName'];
|
||||
firstNameN = json['FirstNameN'];
|
||||
middleNameN = json['MiddleNameN'];
|
||||
lastNameN = json['LastNameN'];
|
||||
gender = json['Gender'];
|
||||
dateofBirth = json['DateofBirth'];
|
||||
mobileNumber = json['MobileNumber'];
|
||||
emailAddress = json['EmailAddress'];
|
||||
patientIdentificationNo = json['PatientIdentificationNo'];
|
||||
patientType = json['PatientType'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
admissionDate = json['AdmissionDate'];
|
||||
roomID = json['RoomID'];
|
||||
bedID = json['BedID'];
|
||||
nursingStationID = json['NursingStationID'];
|
||||
description = json['Description'];
|
||||
nationalityName = json['NationalityName'];
|
||||
nationalityNameN = json['NationalityNameN'];
|
||||
clinicDescription = json['ClinicDescription'];
|
||||
clinicDescriptionN = json['ClinicDescriptionN'];
|
||||
referralDoctor = json['ReferralDoctor'];
|
||||
referringDoctor = json['ReferringDoctor'];
|
||||
referralClinic = json['ReferralClinic'];
|
||||
referringClinic = json['ReferringClinic'];
|
||||
referralStatus = json['ReferralStatus'];
|
||||
referralDate = DateUtils.convertStringToDate(json['ReferralDate']);
|
||||
referringDoctorRemarks = json['ReferringDoctorRemarks'];
|
||||
referredDoctorRemarks = json['ReferredDoctorRemarks'];
|
||||
referralResponseOn = json['ReferralResponseOn'];
|
||||
priority = json['Priority'];
|
||||
frequency = json['Frequency'];
|
||||
mAXResponseTime = json['MAXResponseTime'];
|
||||
episodeID = json['EpisodeID'];
|
||||
appointmentNo = json['AppointmentNo'];
|
||||
appointmentDate = json['AppointmentDate'];
|
||||
appointmentType = json['AppointmentType'];
|
||||
patientMRN = json['PatientMRN'];
|
||||
createdOn = json['CreatedOn'];
|
||||
clinicID = json['ClinicID'];
|
||||
nationalityID = json['NationalityID'];
|
||||
age = json['Age'];
|
||||
doctorImageURL = json['DoctorImageURL'];
|
||||
frequencyDescription = json['FrequencyDescription'];
|
||||
genderDescription = json['GenderDescription'];
|
||||
isDoctorLate = json['IsDoctorLate'];
|
||||
isDoctorResponse = json['IsDoctorResponse'];
|
||||
nationalityFlagURL = json['NationalityFlagURL'];
|
||||
nursingStationName = json['NursingStationName'];
|
||||
priorityDescription = json['PriorityDescription'];
|
||||
referringClinicDescription = json['ReferringClinicDescription'];
|
||||
referringDoctorName = json['ReferringDoctorName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['RowID'] = this.rowID;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['LineItemNo'] = this.lineItemNo;
|
||||
data['DoctorID'] = this.doctorID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['DoctorName'] = this.doctorName;
|
||||
data['DoctorNameN'] = this.doctorNameN;
|
||||
data['FirstName'] = this.firstName;
|
||||
data['MiddleName'] = this.middleName;
|
||||
data['LastName'] = this.lastName;
|
||||
data['FirstNameN'] = this.firstNameN;
|
||||
data['MiddleNameN'] = this.middleNameN;
|
||||
data['LastNameN'] = this.lastNameN;
|
||||
data['Gender'] = this.gender;
|
||||
data['DateofBirth'] = this.dateofBirth;
|
||||
data['MobileNumber'] = this.mobileNumber;
|
||||
data['EmailAddress'] = this.emailAddress;
|
||||
data['PatientIdentificationNo'] = this.patientIdentificationNo;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['AdmissionDate'] = this.admissionDate;
|
||||
data['RoomID'] = this.roomID;
|
||||
data['BedID'] = this.bedID;
|
||||
data['NursingStationID'] = this.nursingStationID;
|
||||
data['Description'] = this.description;
|
||||
data['NationalityName'] = this.nationalityName;
|
||||
data['NationalityNameN'] = this.nationalityNameN;
|
||||
data['ClinicDescription'] = this.clinicDescription;
|
||||
data['ClinicDescriptionN'] = this.clinicDescriptionN;
|
||||
data['ReferralDoctor'] = this.referralDoctor;
|
||||
data['ReferringDoctor'] = this.referringDoctor;
|
||||
data['ReferralClinic'] = this.referralClinic;
|
||||
data['ReferringClinic'] = this.referringClinic;
|
||||
data['ReferralStatus'] = this.referralStatus;
|
||||
data['ReferralDate'] = this.referralDate;
|
||||
data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
|
||||
data['ReferredDoctorRemarks'] = this.referredDoctorRemarks;
|
||||
data['ReferralResponseOn'] = this.referralResponseOn;
|
||||
data['Priority'] = this.priority;
|
||||
data['Frequency'] = this.frequency;
|
||||
data['MAXResponseTime'] = this.mAXResponseTime;
|
||||
data['EpisodeID'] = this.episodeID;
|
||||
data['AppointmentNo'] = this.appointmentNo;
|
||||
data['AppointmentDate'] = this.appointmentDate;
|
||||
data['AppointmentType'] = this.appointmentType;
|
||||
data['PatientMRN'] = this.patientMRN;
|
||||
data['CreatedOn'] = this.createdOn;
|
||||
data['ClinicID'] = this.clinicID;
|
||||
data['NationalityID'] = this.nationalityID;
|
||||
data['Age'] = this.age;
|
||||
data['DoctorImageURL'] = this.doctorImageURL;
|
||||
data['FrequencyDescription'] = this.frequencyDescription;
|
||||
data['GenderDescription'] = this.genderDescription;
|
||||
data['IsDoctorLate'] = this.isDoctorLate;
|
||||
data['IsDoctorResponse'] = this.isDoctorResponse;
|
||||
data['NationalityFlagURL'] = this.nationalityFlagURL;
|
||||
data['NursingStationName'] = this.nursingStationName;
|
||||
data['PriorityDescription'] = this.priorityDescription;
|
||||
data['ReferringClinicDescription'] = this.referringClinicDescription;
|
||||
data['ReferringDoctorName'] = this.referringDoctorName;
|
||||
return data;
|
||||
}
|
||||
|
||||
get patientName {
|
||||
return this.firstName+" "+this.lastName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
class PatientSearchRequestModel {
|
||||
int doctorID;
|
||||
String firstName;
|
||||
String middleName;
|
||||
String lastName;
|
||||
String patientMobileNumber;
|
||||
String patientIdentificationID;
|
||||
int patientID;
|
||||
String from;
|
||||
String to;
|
||||
int searchType;
|
||||
String mobileNo;
|
||||
String identificationNo;
|
||||
|
||||
PatientSearchRequestModel(
|
||||
{this.doctorID =0,
|
||||
this.firstName ="0",
|
||||
this.middleName ="0",
|
||||
this.lastName ="0",
|
||||
this.patientMobileNumber ="0",
|
||||
this.patientIdentificationID ="0",
|
||||
this.patientID =0,
|
||||
this.searchType =1,
|
||||
this.mobileNo="",
|
||||
this.identificationNo="0",
|
||||
this.from ="0",
|
||||
this.to ="0"});
|
||||
|
||||
PatientSearchRequestModel.fromJson(Map<String, dynamic> json) {
|
||||
doctorID = json['DoctorID'];
|
||||
firstName = json['FirstName'];
|
||||
middleName = json['MiddleName'];
|
||||
lastName = json['LastName'];
|
||||
patientMobileNumber = json['PatientMobileNumber'];
|
||||
patientIdentificationID = json['PatientIdentificationID'];
|
||||
patientID = json['PatientID'];
|
||||
from = json['From'];
|
||||
to = json['To'];
|
||||
searchType = json['SearchType'];
|
||||
mobileNo = json['MobileNo'];
|
||||
identificationNo = json['IdentificationNo'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['DoctorID'] = this.doctorID;
|
||||
data['FirstName'] = this.firstName;
|
||||
data['MiddleName'] = this.middleName;
|
||||
data['LastName'] = this.lastName;
|
||||
data['PatientMobileNumber'] = this.patientMobileNumber;
|
||||
data['PatientIdentificationID'] = this.patientIdentificationID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['From'] = this.from;
|
||||
data['To'] = this.to;
|
||||
data['SearchType'] = this.searchType;
|
||||
data['MobileNo'] = this.mobileNo;
|
||||
data['IdentificationNo'] = this.identificationNo;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
class InPatientPrescriptionRequestModel {
|
||||
String vidaAuthTokenID;
|
||||
dynamic patientMRN;
|
||||
dynamic appNo;
|
||||
dynamic admissionNo;
|
||||
|
||||
InPatientPrescriptionRequestModel(
|
||||
{this.vidaAuthTokenID, this.patientMRN, this.appNo, this.admissionNo});
|
||||
|
||||
InPatientPrescriptionRequestModel.fromJson(Map<String, dynamic> json) {
|
||||
vidaAuthTokenID = json['VidaAuthTokenID'];
|
||||
patientMRN = json['PatientID'];
|
||||
appNo = json['AppointmentNo'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
|
||||
data['PatientID'] = this.patientMRN;
|
||||
data['AppointmentNo'] = this.appNo;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,200 @@
|
||||
class PrescriotionInPatient {
|
||||
int admissionNo;
|
||||
int authorizedBy;
|
||||
dynamic bedNo;
|
||||
String comments;
|
||||
int createdBy;
|
||||
String createdByName;
|
||||
dynamic createdByNameN;
|
||||
String createdOn;
|
||||
String direction;
|
||||
int directionID;
|
||||
dynamic directionN;
|
||||
String dose;
|
||||
int editedBy;
|
||||
dynamic iVDiluentLine;
|
||||
int iVDiluentType;
|
||||
dynamic iVDiluentVolume;
|
||||
dynamic iVRate;
|
||||
dynamic iVStability;
|
||||
String itemDescription;
|
||||
int itemID;
|
||||
int lineItemNo;
|
||||
int locationId;
|
||||
int noOfDoses;
|
||||
int orderNo;
|
||||
int patientID;
|
||||
String pharmacyRemarks;
|
||||
String prescriptionDatetime;
|
||||
int prescriptionNo;
|
||||
String processedBy;
|
||||
int projectID;
|
||||
int refillID;
|
||||
String refillType;
|
||||
dynamic refillTypeN;
|
||||
int reviewedPharmacist;
|
||||
dynamic roomId;
|
||||
String route;
|
||||
int routeId;
|
||||
dynamic routeN;
|
||||
dynamic setupID;
|
||||
String startDatetime;
|
||||
int status;
|
||||
String statusDescription;
|
||||
dynamic statusDescriptionN;
|
||||
String stopDatetime;
|
||||
int unitofMeasurement;
|
||||
String unitofMeasurementDescription;
|
||||
dynamic unitofMeasurementDescriptionN;
|
||||
|
||||
PrescriotionInPatient(
|
||||
{this.admissionNo,
|
||||
this.authorizedBy,
|
||||
this.bedNo,
|
||||
this.comments,
|
||||
this.createdBy,
|
||||
this.createdByName,
|
||||
this.createdByNameN,
|
||||
this.createdOn,
|
||||
this.direction,
|
||||
this.directionID,
|
||||
this.directionN,
|
||||
this.dose,
|
||||
this.editedBy,
|
||||
this.iVDiluentLine,
|
||||
this.iVDiluentType,
|
||||
this.iVDiluentVolume,
|
||||
this.iVRate,
|
||||
this.iVStability,
|
||||
this.itemDescription,
|
||||
this.itemID,
|
||||
this.lineItemNo,
|
||||
this.locationId,
|
||||
this.noOfDoses,
|
||||
this.orderNo,
|
||||
this.patientID,
|
||||
this.pharmacyRemarks,
|
||||
this.prescriptionDatetime,
|
||||
this.prescriptionNo,
|
||||
this.processedBy,
|
||||
this.projectID,
|
||||
this.refillID,
|
||||
this.refillType,
|
||||
this.refillTypeN,
|
||||
this.reviewedPharmacist,
|
||||
this.roomId,
|
||||
this.route,
|
||||
this.routeId,
|
||||
this.routeN,
|
||||
this.setupID,
|
||||
this.startDatetime,
|
||||
this.status,
|
||||
this.statusDescription,
|
||||
this.statusDescriptionN,
|
||||
this.stopDatetime,
|
||||
this.unitofMeasurement,
|
||||
this.unitofMeasurementDescription,
|
||||
this.unitofMeasurementDescriptionN});
|
||||
|
||||
PrescriotionInPatient.fromJson(Map<String, dynamic> json) {
|
||||
admissionNo = json['AdmissionNo'];
|
||||
authorizedBy = json['AuthorizedBy'];
|
||||
bedNo = json['BedNo'];
|
||||
comments = json['Comments'];
|
||||
createdBy = json['CreatedBy'];
|
||||
createdByName = json['CreatedByName'];
|
||||
createdByNameN = json['CreatedByNameN'];
|
||||
createdOn = json['CreatedOn'];
|
||||
direction = json['Direction'];
|
||||
directionID = json['DirectionID'];
|
||||
directionN = json['DirectionN'];
|
||||
dose = json['Dose'];
|
||||
editedBy = json['EditedBy'];
|
||||
iVDiluentLine = json['IVDiluentLine'];
|
||||
iVDiluentType = json['IVDiluentType'];
|
||||
iVDiluentVolume = json['IVDiluentVolume'];
|
||||
iVRate = json['IVRate'];
|
||||
iVStability = json['IVStability'];
|
||||
itemDescription = json['ItemDescription'];
|
||||
itemID = json['ItemID'];
|
||||
lineItemNo = json['LineItemNo'];
|
||||
locationId = json['LocationId'];
|
||||
noOfDoses = json['NoOfDoses'];
|
||||
orderNo = json['OrderNo'];
|
||||
patientID = json['PatientID'];
|
||||
pharmacyRemarks = json['PharmacyRemarks'];
|
||||
prescriptionDatetime = json['PrescriptionDatetime'];
|
||||
prescriptionNo = json['PrescriptionNo'];
|
||||
processedBy = json['ProcessedBy'];
|
||||
projectID = json['ProjectID'];
|
||||
refillID = json['RefillID'];
|
||||
refillType = json['RefillType'];
|
||||
refillTypeN = json['RefillTypeN'];
|
||||
reviewedPharmacist = json['ReviewedPharmacist'];
|
||||
roomId = json['RoomId'];
|
||||
route = json['Route'];
|
||||
routeId = json['RouteId'];
|
||||
routeN = json['RouteN'];
|
||||
setupID = json['SetupID'];
|
||||
startDatetime = json['StartDatetime'];
|
||||
status = json['Status'];
|
||||
statusDescription = json['StatusDescription'];
|
||||
statusDescriptionN = json['StatusDescriptionN'];
|
||||
stopDatetime = json['StopDatetime'];
|
||||
unitofMeasurement = json['UnitofMeasurement'];
|
||||
unitofMeasurementDescription = json['UnitofMeasurementDescription'];
|
||||
unitofMeasurementDescriptionN = json['UnitofMeasurementDescriptionN'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['AuthorizedBy'] = this.authorizedBy;
|
||||
data['BedNo'] = this.bedNo;
|
||||
data['Comments'] = this.comments;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['CreatedByName'] = this.createdByName;
|
||||
data['CreatedByNameN'] = this.createdByNameN;
|
||||
data['CreatedOn'] = this.createdOn;
|
||||
data['Direction'] = this.direction;
|
||||
data['DirectionID'] = this.directionID;
|
||||
data['DirectionN'] = this.directionN;
|
||||
data['Dose'] = this.dose;
|
||||
data['EditedBy'] = this.editedBy;
|
||||
data['IVDiluentLine'] = this.iVDiluentLine;
|
||||
data['IVDiluentType'] = this.iVDiluentType;
|
||||
data['IVDiluentVolume'] = this.iVDiluentVolume;
|
||||
data['IVRate'] = this.iVRate;
|
||||
data['IVStability'] = this.iVStability;
|
||||
data['ItemDescription'] = this.itemDescription;
|
||||
data['ItemID'] = this.itemID;
|
||||
data['LineItemNo'] = this.lineItemNo;
|
||||
data['LocationId'] = this.locationId;
|
||||
data['NoOfDoses'] = this.noOfDoses;
|
||||
data['OrderNo'] = this.orderNo;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PharmacyRemarks'] = this.pharmacyRemarks;
|
||||
data['PrescriptionDatetime'] = this.prescriptionDatetime;
|
||||
data['PrescriptionNo'] = this.prescriptionNo;
|
||||
data['ProcessedBy'] = this.processedBy;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['RefillID'] = this.refillID;
|
||||
data['RefillType'] = this.refillType;
|
||||
data['RefillTypeN'] = this.refillTypeN;
|
||||
data['ReviewedPharmacist'] = this.reviewedPharmacist;
|
||||
data['RoomId'] = this.roomId;
|
||||
data['Route'] = this.route;
|
||||
data['RouteId'] = this.routeId;
|
||||
data['RouteN'] = this.routeN;
|
||||
data['SetupID'] = this.setupID;
|
||||
data['StartDatetime'] = this.startDatetime;
|
||||
data['Status'] = this.status;
|
||||
data['StatusDescription'] = this.statusDescription;
|
||||
data['StatusDescriptionN'] = this.statusDescriptionN;
|
||||
data['StopDatetime'] = this.stopDatetime;
|
||||
data['UnitofMeasurement'] = this.unitofMeasurement;
|
||||
data['UnitofMeasurementDescription'] = this.unitofMeasurementDescription;
|
||||
data['UnitofMeasurementDescriptionN'] = this.unitofMeasurementDescriptionN;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
class ReferralRequest {
|
||||
String roomID;
|
||||
String referralClinic;
|
||||
String referralDoctor;
|
||||
int createdBy;
|
||||
int editedBy;
|
||||
int patientID;
|
||||
int patientTypeID;
|
||||
int referringClinic;
|
||||
int referringDoctor;
|
||||
int projectID;
|
||||
int admissionNo;
|
||||
String referringDoctorRemarks;
|
||||
String priority;
|
||||
String frequency;
|
||||
String extension;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
|
||||
ReferralRequest(
|
||||
{this.roomID,
|
||||
this.referralClinic,
|
||||
this.referralDoctor,
|
||||
this.createdBy,
|
||||
this.editedBy,
|
||||
this.patientID,
|
||||
this.patientTypeID,
|
||||
this.referringClinic,
|
||||
this.referringDoctor,
|
||||
this.projectID,
|
||||
this.admissionNo,
|
||||
this.referringDoctorRemarks,
|
||||
this.priority,
|
||||
this.frequency,
|
||||
this.extension,
|
||||
this.languageID,
|
||||
this.stamp,
|
||||
this.iPAdress,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.tokenID,
|
||||
this.sessionID,
|
||||
this.isLoginForDoctorApp,
|
||||
this.patientOutSA});
|
||||
|
||||
ReferralRequest.fromJson(Map<String, dynamic> json) {
|
||||
roomID = json['RoomID'];
|
||||
referralClinic = json['ReferralClinic'];
|
||||
referralDoctor = json['ReferralDoctor'];
|
||||
createdBy = json['CreatedBy'];
|
||||
editedBy = json['EditedBy'];
|
||||
patientID = json['PatientID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
referringClinic = json['ReferringClinic'];
|
||||
referringDoctor = json['ReferringDoctor'];
|
||||
projectID = json['ProjectID'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
referringDoctorRemarks = json['ReferringDoctorRemarks'];
|
||||
priority = json['Priority'];
|
||||
frequency = json['Frequency'];
|
||||
extension = json['Extension'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['RoomID'] = this.roomID;
|
||||
data['ReferralClinic'] = this.referralClinic;
|
||||
data['ReferralDoctor'] = this.referralDoctor;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['EditedBy'] = this.editedBy;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['ReferringClinic'] = this.referringClinic;
|
||||
data['ReferringDoctor'] = this.referringDoctor;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
|
||||
data['Priority'] = this.priority;
|
||||
data['Frequency'] = this.frequency;
|
||||
data['Extension'] = this.extension;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['stamp'] = this.stamp;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,277 @@
|
||||
class InsuranceApprovalInPatientModel {
|
||||
String setupID;
|
||||
int projectID;
|
||||
int approvalNo;
|
||||
int status;
|
||||
String approvalDate;
|
||||
int patientType;
|
||||
int patientID;
|
||||
int companyID;
|
||||
bool subCategoryID;
|
||||
int doctorID;
|
||||
int clinicID;
|
||||
int approvalType;
|
||||
int inpatientApprovalSubType;
|
||||
dynamic isApprovalOnGross;
|
||||
String companyApprovalNo;
|
||||
dynamic progNoteOrderNo;
|
||||
String submitOn;
|
||||
String receiptOn;
|
||||
String expiryDate;
|
||||
int admissionNo;
|
||||
int admissionRequestNo;
|
||||
String approvalStatusDescption;
|
||||
dynamic approvalStatusDescptionN;
|
||||
dynamic remarks;
|
||||
List<ApporvalDetails> apporvalDetails;
|
||||
String clinicName;
|
||||
dynamic companyName;
|
||||
String doctorName;
|
||||
String projectName;
|
||||
int totaUnUsedCount;
|
||||
int unUsedCount;
|
||||
String doctorImage;
|
||||
|
||||
InsuranceApprovalInPatientModel(
|
||||
{this.setupID,
|
||||
this.projectID,
|
||||
this.approvalNo,
|
||||
this.status,
|
||||
this.approvalDate,
|
||||
this.patientType,
|
||||
this.patientID,
|
||||
this.companyID,
|
||||
this.subCategoryID,
|
||||
this.doctorID,
|
||||
this.clinicID,
|
||||
this.approvalType,
|
||||
this.inpatientApprovalSubType,
|
||||
this.isApprovalOnGross,
|
||||
this.companyApprovalNo,
|
||||
this.progNoteOrderNo,
|
||||
this.submitOn,
|
||||
this.receiptOn,
|
||||
this.expiryDate,
|
||||
this.admissionNo,
|
||||
this.admissionRequestNo,
|
||||
this.approvalStatusDescption,
|
||||
this.approvalStatusDescptionN,
|
||||
this.remarks,
|
||||
this.apporvalDetails,
|
||||
this.clinicName,
|
||||
this.companyName,
|
||||
this.doctorName,
|
||||
this.projectName,
|
||||
this.totaUnUsedCount,
|
||||
this.unUsedCount,
|
||||
this.doctorImage});
|
||||
|
||||
InsuranceApprovalInPatientModel.fromJson(Map<String, dynamic> json) {
|
||||
setupID = json['SetupID'];
|
||||
doctorImage = json['DoctorImageURL'];
|
||||
projectID = json['ProjectID'];
|
||||
approvalNo = json['ApprovalNo'];
|
||||
status = json['Status'];
|
||||
approvalDate = json['ApprovalDate'];
|
||||
patientType = json['PatientType'];
|
||||
patientID = json['PatientID'];
|
||||
companyID = json['CompanyID'];
|
||||
subCategoryID = json['SubCategoryID'];
|
||||
doctorID = json['DoctorID'];
|
||||
clinicID = json['ClinicID'];
|
||||
approvalType = json['ApprovalType'];
|
||||
inpatientApprovalSubType = json['InpatientApprovalSubType'];
|
||||
isApprovalOnGross = json['IsApprovalOnGross'];
|
||||
companyApprovalNo = json['CompanyApprovalNo'];
|
||||
progNoteOrderNo = json['ProgNoteOrderNo'];
|
||||
submitOn = json['SubmitOn'];
|
||||
receiptOn = json['ReceiptOn'];
|
||||
expiryDate = json['ExpiryDate'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
admissionRequestNo = json['AdmissionRequestNo'];
|
||||
approvalStatusDescption = json['ApprovalStatusDescption'];
|
||||
approvalStatusDescptionN = json['ApprovalStatusDescptionN'];
|
||||
remarks = json['Remarks'];
|
||||
if (json['ApporvalDetails'] != null) {
|
||||
apporvalDetails = new List<ApporvalDetails>();
|
||||
json['ApporvalDetails'].forEach((v) {
|
||||
apporvalDetails.add(new ApporvalDetails.fromJson(v));
|
||||
});
|
||||
}
|
||||
clinicName = json['ClinicName'];
|
||||
companyName = json['CompanyName'];
|
||||
doctorName = json['DoctorName'];
|
||||
projectName = json['ProjectName'];
|
||||
totaUnUsedCount = json['TotaUnUsedCount'];
|
||||
unUsedCount = json['UnUsedCount'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['SetupID'] = this.setupID;
|
||||
data['DoctorImageURL'] = this.doctorImage;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['ApprovalNo'] = this.approvalNo;
|
||||
data['Status'] = this.status;
|
||||
data['ApprovalDate'] = this.approvalDate;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['CompanyID'] = this.companyID;
|
||||
data['SubCategoryID'] = this.subCategoryID;
|
||||
data['DoctorID'] = this.doctorID;
|
||||
data['ClinicID'] = this.clinicID;
|
||||
data['ApprovalType'] = this.approvalType;
|
||||
data['InpatientApprovalSubType'] = this.inpatientApprovalSubType;
|
||||
data['IsApprovalOnGross'] = this.isApprovalOnGross;
|
||||
data['CompanyApprovalNo'] = this.companyApprovalNo;
|
||||
data['ProgNoteOrderNo'] = this.progNoteOrderNo;
|
||||
data['SubmitOn'] = this.submitOn;
|
||||
data['ReceiptOn'] = this.receiptOn;
|
||||
data['ExpiryDate'] = this.expiryDate;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['AdmissionRequestNo'] = this.admissionRequestNo;
|
||||
data['ApprovalStatusDescption'] = this.approvalStatusDescption;
|
||||
data['ApprovalStatusDescptionN'] = this.approvalStatusDescptionN;
|
||||
data['Remarks'] = this.remarks;
|
||||
if (this.apporvalDetails != null) {
|
||||
data['ApporvalDetails'] =
|
||||
this.apporvalDetails.map((v) => v.toJson()).toList();
|
||||
}
|
||||
data['ClinicName'] = this.clinicName;
|
||||
data['CompanyName'] = this.companyName;
|
||||
data['DoctorName'] = this.doctorName;
|
||||
data['ProjectName'] = this.projectName;
|
||||
data['TotaUnUsedCount'] = this.totaUnUsedCount;
|
||||
data['UnUsedCount'] = this.unUsedCount;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class ApporvalDetails {
|
||||
Null setupID;
|
||||
Null projectID;
|
||||
int approvalNo;
|
||||
Null lineItemNo;
|
||||
Null orderType;
|
||||
Null procedureID;
|
||||
Null toothNo;
|
||||
Null price;
|
||||
Null approvedAmount;
|
||||
Null unapprovedPatientShare;
|
||||
Null waivedAmount;
|
||||
Null discountType;
|
||||
Null discountValue;
|
||||
Null shareType;
|
||||
Null patientShareTypeValue;
|
||||
Null companyShareTypeValue;
|
||||
Null patientShare;
|
||||
Null companyShare;
|
||||
Null deductableAmount;
|
||||
String disapprovedRemarks;
|
||||
Null progNoteOrderNo;
|
||||
Null progNoteLineItemNo;
|
||||
Null invoiceTransactionType;
|
||||
Null invoiceNo;
|
||||
String procedureName;
|
||||
String procedureNameN;
|
||||
String status;
|
||||
Null isInvoiced;
|
||||
String isInvoicedDesc;
|
||||
|
||||
ApporvalDetails(
|
||||
{this.setupID,
|
||||
this.projectID,
|
||||
this.approvalNo,
|
||||
this.lineItemNo,
|
||||
this.orderType,
|
||||
this.procedureID,
|
||||
this.toothNo,
|
||||
this.price,
|
||||
this.approvedAmount,
|
||||
this.unapprovedPatientShare,
|
||||
this.waivedAmount,
|
||||
this.discountType,
|
||||
this.discountValue,
|
||||
this.shareType,
|
||||
this.patientShareTypeValue,
|
||||
this.companyShareTypeValue,
|
||||
this.patientShare,
|
||||
this.companyShare,
|
||||
this.deductableAmount,
|
||||
this.disapprovedRemarks,
|
||||
this.progNoteOrderNo,
|
||||
this.progNoteLineItemNo,
|
||||
this.invoiceTransactionType,
|
||||
this.invoiceNo,
|
||||
this.procedureName,
|
||||
this.procedureNameN,
|
||||
this.status,
|
||||
this.isInvoiced,
|
||||
this.isInvoicedDesc});
|
||||
|
||||
ApporvalDetails.fromJson(Map<String, dynamic> json) {
|
||||
setupID = json['SetupID'];
|
||||
projectID = json['ProjectID'];
|
||||
approvalNo = json['ApprovalNo'];
|
||||
lineItemNo = json['LineItemNo'];
|
||||
orderType = json['OrderType'];
|
||||
procedureID = json['ProcedureID'];
|
||||
toothNo = json['ToothNo'];
|
||||
price = json['Price'];
|
||||
approvedAmount = json['ApprovedAmount'];
|
||||
unapprovedPatientShare = json['UnapprovedPatientShare'];
|
||||
waivedAmount = json['WaivedAmount'];
|
||||
discountType = json['DiscountType'];
|
||||
discountValue = json['DiscountValue'];
|
||||
shareType = json['ShareType'];
|
||||
patientShareTypeValue = json['PatientShareTypeValue'];
|
||||
companyShareTypeValue = json['CompanyShareTypeValue'];
|
||||
patientShare = json['PatientShare'];
|
||||
companyShare = json['CompanyShare'];
|
||||
deductableAmount = json['DeductableAmount'];
|
||||
disapprovedRemarks = json['DisapprovedRemarks'];
|
||||
progNoteOrderNo = json['ProgNoteOrderNo'];
|
||||
progNoteLineItemNo = json['ProgNoteLineItemNo'];
|
||||
invoiceTransactionType = json['InvoiceTransactionType'];
|
||||
invoiceNo = json['InvoiceNo'];
|
||||
procedureName = json['ProcedureName'];
|
||||
procedureNameN = json['ProcedureNameN'];
|
||||
status = json['Status'];
|
||||
isInvoiced = json['IsInvoiced'];
|
||||
isInvoicedDesc = json['IsInvoicedDesc'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['SetupID'] = this.setupID;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['ApprovalNo'] = this.approvalNo;
|
||||
data['LineItemNo'] = this.lineItemNo;
|
||||
data['OrderType'] = this.orderType;
|
||||
data['ProcedureID'] = this.procedureID;
|
||||
data['ToothNo'] = this.toothNo;
|
||||
data['Price'] = this.price;
|
||||
data['ApprovedAmount'] = this.approvedAmount;
|
||||
data['UnapprovedPatientShare'] = this.unapprovedPatientShare;
|
||||
data['WaivedAmount'] = this.waivedAmount;
|
||||
data['DiscountType'] = this.discountType;
|
||||
data['DiscountValue'] = this.discountValue;
|
||||
data['ShareType'] = this.shareType;
|
||||
data['PatientShareTypeValue'] = this.patientShareTypeValue;
|
||||
data['CompanyShareTypeValue'] = this.companyShareTypeValue;
|
||||
data['PatientShare'] = this.patientShare;
|
||||
data['CompanyShare'] = this.companyShare;
|
||||
data['DeductableAmount'] = this.deductableAmount;
|
||||
data['DisapprovedRemarks'] = this.disapprovedRemarks;
|
||||
data['ProgNoteOrderNo'] = this.progNoteOrderNo;
|
||||
data['ProgNoteLineItemNo'] = this.progNoteLineItemNo;
|
||||
data['InvoiceTransactionType'] = this.invoiceTransactionType;
|
||||
data['InvoiceNo'] = this.invoiceNo;
|
||||
data['ProcedureName'] = this.procedureName;
|
||||
data['ProcedureNameN'] = this.procedureNameN;
|
||||
data['Status'] = this.status;
|
||||
data['IsInvoiced'] = this.isInvoiced;
|
||||
data['IsInvoicedDesc'] = this.isInvoicedDesc;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
class CreateNoteModel {
|
||||
int visitType;
|
||||
int admissionNo;
|
||||
int projectID;
|
||||
int patientTypeID;
|
||||
int patientID;
|
||||
int clinicID;
|
||||
String notes;
|
||||
int createdBy;
|
||||
int editedBy;
|
||||
String nursingRemarks;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
|
||||
CreateNoteModel(
|
||||
{this.visitType,
|
||||
this.admissionNo,
|
||||
this.projectID,
|
||||
this.patientTypeID,
|
||||
this.patientID,
|
||||
this.clinicID,
|
||||
this.notes,
|
||||
this.createdBy,
|
||||
this.editedBy,
|
||||
this.nursingRemarks,
|
||||
this.languageID,
|
||||
this.stamp,
|
||||
this.iPAdress,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.tokenID,
|
||||
this.sessionID,
|
||||
this.isLoginForDoctorApp,
|
||||
this.patientOutSA});
|
||||
|
||||
CreateNoteModel.fromJson(Map<String, dynamic> json) {
|
||||
visitType = json['VisitType'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
projectID = json['ProjectID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
patientID = json['PatientID'];
|
||||
clinicID = json['ClinicID'];
|
||||
notes = json['Notes'];
|
||||
createdBy = json['CreatedBy'];
|
||||
editedBy = json['EditedBy'];
|
||||
nursingRemarks = json['NursingRemarks'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['VisitType'] = this.visitType;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['ClinicID'] = this.clinicID;
|
||||
data['Notes'] = this.notes;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['EditedBy'] = this.editedBy;
|
||||
data['NursingRemarks'] = this.nursingRemarks;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['stamp'] = this.stamp;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
class NoteModel {
|
||||
String setupID;
|
||||
int projectID;
|
||||
int patientID;
|
||||
int patientType;
|
||||
String admissionNo;
|
||||
int lineItemNo;
|
||||
int visitType;
|
||||
String notes;
|
||||
String assessmentDate;
|
||||
String visitTime;
|
||||
int status;
|
||||
String nursingRemarks;
|
||||
String createdOn;
|
||||
String editedOn;
|
||||
int createdBy;
|
||||
int admissionClinicID;
|
||||
String admissionClinicName;
|
||||
Null doctorClinicName;
|
||||
String doctorName;
|
||||
String visitTypeDesc;
|
||||
|
||||
NoteModel(
|
||||
{this.setupID,
|
||||
this.projectID,
|
||||
this.patientID,
|
||||
this.patientType,
|
||||
this.admissionNo,
|
||||
this.lineItemNo,
|
||||
this.visitType,
|
||||
this.notes,
|
||||
this.assessmentDate,
|
||||
this.visitTime,
|
||||
this.status,
|
||||
this.nursingRemarks,
|
||||
this.createdOn,
|
||||
this.editedOn,
|
||||
this.createdBy,
|
||||
this.admissionClinicID,
|
||||
this.admissionClinicName,
|
||||
this.doctorClinicName,
|
||||
this.doctorName,
|
||||
this.visitTypeDesc});
|
||||
|
||||
NoteModel.fromJson(Map<String, dynamic> json) {
|
||||
setupID = json['SetupID'];
|
||||
projectID = json['ProjectID'];
|
||||
patientID = json['PatientID'];
|
||||
patientType = json['PatientType'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
lineItemNo = json['LineItemNo'];
|
||||
visitType = json['VisitType'];
|
||||
notes = json['Notes'];
|
||||
assessmentDate = json['AssessmentDate'];
|
||||
visitTime = json['VisitTime'];
|
||||
status = json['Status'];
|
||||
nursingRemarks = json['NursingRemarks'];
|
||||
createdOn = json['CreatedOn'];
|
||||
editedOn = json['EditedOn'];
|
||||
createdBy = json['CreatedBy'];
|
||||
admissionClinicID = json['AdmissionClinicID'];
|
||||
admissionClinicName = json['AdmissionClinicName'];
|
||||
doctorClinicName = json['DoctorClinicName'];
|
||||
doctorName = json['DoctorName'];
|
||||
visitTypeDesc = json['VisitTypeDesc'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['SetupID'] = this.setupID;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['LineItemNo'] = this.lineItemNo;
|
||||
data['VisitType'] = this.visitType;
|
||||
data['Notes'] = this.notes;
|
||||
data['AssessmentDate'] = this.assessmentDate;
|
||||
data['VisitTime'] = this.visitTime;
|
||||
data['Status'] = this.status;
|
||||
data['NursingRemarks'] = this.nursingRemarks;
|
||||
data['CreatedOn'] = this.createdOn;
|
||||
data['EditedOn'] = this.editedOn;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['AdmissionClinicID'] = this.admissionClinicID;
|
||||
data['AdmissionClinicName'] = this.admissionClinicName;
|
||||
data['DoctorClinicName'] = this.doctorClinicName;
|
||||
data['DoctorName'] = this.doctorName;
|
||||
data['VisitTypeDesc'] = this.visitTypeDesc;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
class UpdateNoteReqModel {
|
||||
int projectID;
|
||||
int createdBy;
|
||||
int admissionNo;
|
||||
int lineItemNo;
|
||||
String notes;
|
||||
bool verifiedNote;
|
||||
bool cancelledNote;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
int patientTypeID;
|
||||
|
||||
UpdateNoteReqModel(
|
||||
{this.projectID,
|
||||
this.createdBy,
|
||||
this.admissionNo,
|
||||
this.lineItemNo,
|
||||
this.notes,
|
||||
this.verifiedNote,
|
||||
this.cancelledNote,
|
||||
this.languageID,
|
||||
this.stamp,
|
||||
this.iPAdress,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.tokenID,
|
||||
this.sessionID,
|
||||
this.isLoginForDoctorApp,
|
||||
this.patientOutSA,
|
||||
this.patientTypeID});
|
||||
|
||||
UpdateNoteReqModel.fromJson(Map<String, dynamic> json) {
|
||||
projectID = json['ProjectID'];
|
||||
createdBy = json['CreatedBy'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
lineItemNo = json['LineItemNo'];
|
||||
notes = json['Notes'];
|
||||
verifiedNote = json['VerifiedNote'];
|
||||
cancelledNote = json['CancelledNote'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['LineItemNo'] = this.lineItemNo;
|
||||
data['Notes'] = this.notes;
|
||||
data['VerifiedNote'] = this.verifiedNote;
|
||||
data['CancelledNote'] = this.cancelledNote;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['stamp'] = this.stamp;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['SessionID'] = this.sessionID;
|
||||
data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,156 @@
|
||||
import 'package:doctor_app_flutter/widgets/shared/StarRating.dart';
|
||||
|
||||
class SickLeavePatientModel {
|
||||
String setupID;
|
||||
int projectID;
|
||||
int patientID;
|
||||
int patientType;
|
||||
int clinicID;
|
||||
int doctorID;
|
||||
int requestNo;
|
||||
String requestDate;
|
||||
int sickLeaveDays;
|
||||
int appointmentNo;
|
||||
int admissionNo;
|
||||
int actualDoctorRate;
|
||||
String appointmentDate;
|
||||
String clinicName;
|
||||
String doctorImageURL;
|
||||
String doctorName;
|
||||
int doctorRate;
|
||||
String doctorTitle;
|
||||
int gender;
|
||||
String genderDescription;
|
||||
bool isActiveDoctorProfile;
|
||||
bool isDoctorAllowVedioCall;
|
||||
bool isExecludeDoctor;
|
||||
bool isInOutPatient;
|
||||
String isInOutPatientDescription;
|
||||
String isInOutPatientDescriptionN;
|
||||
bool isLiveCareAppointment;
|
||||
int noOfPatientsRate;
|
||||
dynamic patientName;
|
||||
String projectName;
|
||||
String qR;
|
||||
// List<String> speciality;
|
||||
String strRequestDate;
|
||||
String startDate;
|
||||
String endDate;
|
||||
|
||||
SickLeavePatientModel(
|
||||
{this.setupID,
|
||||
this.projectID,
|
||||
this.patientID,
|
||||
this.patientType,
|
||||
this.clinicID,
|
||||
this.doctorID,
|
||||
this.requestNo,
|
||||
this.requestDate,
|
||||
this.sickLeaveDays,
|
||||
this.appointmentNo,
|
||||
this.admissionNo,
|
||||
this.actualDoctorRate,
|
||||
this.appointmentDate,
|
||||
this.clinicName,
|
||||
this.doctorImageURL,
|
||||
this.doctorName,
|
||||
this.doctorRate,
|
||||
this.doctorTitle,
|
||||
this.gender,
|
||||
this.genderDescription,
|
||||
this.isActiveDoctorProfile,
|
||||
this.isDoctorAllowVedioCall,
|
||||
this.isExecludeDoctor,
|
||||
this.isInOutPatient,
|
||||
this.isInOutPatientDescription,
|
||||
this.isInOutPatientDescriptionN,
|
||||
this.isLiveCareAppointment,
|
||||
this.noOfPatientsRate,
|
||||
this.patientName,
|
||||
this.projectName,
|
||||
this.qR,
|
||||
// this.speciality,
|
||||
this.strRequestDate,
|
||||
this.startDate,
|
||||
this.endDate});
|
||||
|
||||
SickLeavePatientModel.fromJson(Map<String, dynamic> json) {
|
||||
setupID = json['SetupID'];
|
||||
|
||||
projectID = json['ProjectID'];
|
||||
patientID = json['PatientID'];
|
||||
patientType = json['PatientType'];
|
||||
clinicID = json['ClinicID'];
|
||||
doctorID = json['DoctorID'];
|
||||
requestNo = json['RequestNo'];
|
||||
requestDate = json['RequestDate'];
|
||||
sickLeaveDays = json['SickLeaveDays'];
|
||||
appointmentNo = json['AppointmentNo'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
actualDoctorRate = json['ActualDoctorRate'];
|
||||
appointmentDate = json['AppointmentDate'];
|
||||
clinicName = json['ClinicName'];
|
||||
doctorImageURL = json['DoctorImageURL'];
|
||||
doctorName = json['DoctorName'];
|
||||
doctorRate = json['DoctorRate'];
|
||||
doctorTitle = json['DoctorTitle'];
|
||||
gender = json['Gender'];
|
||||
genderDescription = json['GenderDescription'];
|
||||
isActiveDoctorProfile = json['IsActiveDoctorProfile'];
|
||||
isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
|
||||
isExecludeDoctor = json['IsExecludeDoctor'];
|
||||
isInOutPatient = json['IsInOutPatient'];
|
||||
isInOutPatientDescription = json['IsInOutPatientDescription'];
|
||||
isInOutPatientDescriptionN = json['IsInOutPatientDescriptionN'];
|
||||
isLiveCareAppointment = json['IsLiveCareAppointment'];
|
||||
noOfPatientsRate = json['NoOfPatientsRate'];
|
||||
patientName = json['PatientName'];
|
||||
projectName = json['ProjectName'];
|
||||
qR = json['QR'];
|
||||
// speciality = json['Speciality'].cast<String>();
|
||||
strRequestDate = json['StrRequestDate'];
|
||||
startDate = json['StartDate'];
|
||||
endDate = json['EndDate'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['SetupID'] = this.setupID;
|
||||
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['ClinicID'] = this.clinicID;
|
||||
data['DoctorID'] = this.doctorID;
|
||||
data['RequestNo'] = this.requestNo;
|
||||
data['RequestDate'] = this.requestDate;
|
||||
data['SickLeaveDays'] = this.sickLeaveDays;
|
||||
data['AppointmentNo'] = this.appointmentNo;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['ActualDoctorRate'] = this.actualDoctorRate;
|
||||
data['AppointmentDate'] = this.appointmentDate;
|
||||
data['ClinicName'] = this.clinicName;
|
||||
data['DoctorImageURL'] = this.doctorImageURL;
|
||||
data['DoctorName'] = this.doctorName;
|
||||
data['DoctorRate'] = this.doctorRate;
|
||||
data['DoctorTitle'] = this.doctorTitle;
|
||||
data['Gender'] = this.gender;
|
||||
data['GenderDescription'] = this.genderDescription;
|
||||
data['IsActiveDoctorProfile'] = this.isActiveDoctorProfile;
|
||||
data['IsDoctorAllowVedioCall'] = this.isDoctorAllowVedioCall;
|
||||
data['IsExecludeDoctor'] = this.isExecludeDoctor;
|
||||
data['IsInOutPatient'] = this.isInOutPatient;
|
||||
data['IsInOutPatientDescription'] = this.isInOutPatientDescription;
|
||||
data['IsInOutPatientDescriptionN'] = this.isInOutPatientDescriptionN;
|
||||
data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
|
||||
data['NoOfPatientsRate'] = this.noOfPatientsRate;
|
||||
data['PatientName'] = this.patientName;
|
||||
data['ProjectName'] = this.projectName;
|
||||
data['QR'] = this.qR;
|
||||
// data['Speciality'] = this.speciality;
|
||||
data['StrRequestDate'] = this.strRequestDate;
|
||||
data['StartDate'] = this.startDate;
|
||||
data['EndDate'] = this.endDate;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
class SickLeavePatientRequestModel {
|
||||
double versionID;
|
||||
int channel;
|
||||
int languageID;
|
||||
String iPAdress;
|
||||
String generalid;
|
||||
int patientOutSA;
|
||||
int deviceTypeID;
|
||||
int patientType;
|
||||
int patientTypeID;
|
||||
String tokenID;
|
||||
int patientID;
|
||||
String sessionID;
|
||||
|
||||
SickLeavePatientRequestModel(
|
||||
{this.versionID,
|
||||
this.channel,
|
||||
this.languageID,
|
||||
this.iPAdress,
|
||||
this.generalid,
|
||||
this.patientOutSA,
|
||||
this.deviceTypeID,
|
||||
this.patientType,
|
||||
this.patientTypeID,
|
||||
this.tokenID,
|
||||
this.patientID,
|
||||
this.sessionID});
|
||||
|
||||
SickLeavePatientRequestModel.fromJson(Map<String, dynamic> json) {
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
languageID = json['LanguageID'];
|
||||
iPAdress = json['IPAdress'];
|
||||
generalid = json['generalid'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
deviceTypeID = json['DeviceTypeID'];
|
||||
patientType = json['PatientType'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
tokenID = json['TokenID'];
|
||||
patientID = json['PatientID'];
|
||||
sessionID = json['SessionID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['VersionID'] = this.versionID;
|
||||
data['Channel'] = this.channel;
|
||||
data['LanguageID'] = this.languageID;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['generalid'] = this.generalid;
|
||||
data['PatientOutSA'] = this.patientOutSA;
|
||||
data['DeviceTypeID'] = this.deviceTypeID;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['TokenID'] = this.tokenID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['SessionID'] = this.sessionID;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
import 'dart:async';
|
||||
|
||||
class RobotProvider {
|
||||
static final RobotProvider _singleton = RobotProvider._internal();
|
||||
var value;
|
||||
StreamController<Map> controller = StreamController<Map>.broadcast();
|
||||
|
||||
getData() {
|
||||
// return data;
|
||||
}
|
||||
intStream() {
|
||||
controller.add({});
|
||||
}
|
||||
|
||||
setValue(Map data) {
|
||||
value = data;
|
||||
controller.add(value);
|
||||
}
|
||||
|
||||
factory RobotProvider() {
|
||||
return _singleton;
|
||||
}
|
||||
|
||||
RobotProvider._internal();
|
||||
}
|
||||
@ -0,0 +1,76 @@
|
||||
import 'package:doctor_app_flutter/config/config.dart';
|
||||
import 'package:doctor_app_flutter/core/model/DischargeReferralPatient.dart';
|
||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||
|
||||
class DischargedPatientService extends BaseService {
|
||||
List<PatiantInformtion> myDischargedPatients = List();
|
||||
|
||||
List<DischargeReferralPatient> myDischargeReferralPatients = List();
|
||||
|
||||
Future getDischargedPatient() async {
|
||||
hasError = false;
|
||||
Map<String, dynamic> body = Map();
|
||||
await getDoctorProfile(isGetProfile: true);
|
||||
body['DoctorID'] = doctorProfile.doctorID;
|
||||
body['FirstName'] = "0";
|
||||
body['MiddleName'] = "0";
|
||||
body['LastName'] = "0";
|
||||
body['PatientMobileNumber'] = "0";
|
||||
body['PatientIdentificationID'] = "0";
|
||||
body['PatientID'] = 0;
|
||||
body['From'] = "0";
|
||||
body['To'] = "0";
|
||||
body['stamp'] = DateTime.now().toIso8601String();
|
||||
body['IsLoginForDoctorApp'] = true;
|
||||
body['IPAdress'] = "11.11.11.11";
|
||||
body['PatientOutSA'] = false;
|
||||
body['PatientTypeID'] = 1;
|
||||
hasError = false;
|
||||
myDischargedPatients.clear();
|
||||
await baseAppClient.post(GET_DISCHARGE_PATIENT,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
if (response['List_MyDischargePatient'] != null) {
|
||||
response['List_MyDischargePatient'].forEach((v) {
|
||||
myDischargedPatients.add(PatiantInformtion.fromJson(v));
|
||||
});
|
||||
}
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: body);
|
||||
}
|
||||
|
||||
Future gtMyDischargeReferralPatient() async {
|
||||
hasError = false;
|
||||
Map<String, dynamic> body = Map();
|
||||
await getDoctorProfile();
|
||||
body['DoctorID'] = doctorProfile.doctorID;
|
||||
body['FirstName'] = "0";
|
||||
body['MiddleName'] = "0";
|
||||
body['LastName'] = "0";
|
||||
body['PatientMobileNumber'] = "0";
|
||||
body['PatientIdentificationID'] = "0";
|
||||
body['PatientID'] = 0;
|
||||
body['From'] = "0";
|
||||
body['To'] = "0";
|
||||
body['stamp'] = DateTime.now().toIso8601String();
|
||||
body['IsLoginForDoctorApp'] = true;
|
||||
body['IPAdress'] = "11.11.11.11";
|
||||
body['PatientOutSA'] = false;
|
||||
body['PatientTypeID'] = 1;
|
||||
hasError = false;
|
||||
myDischargeReferralPatients.clear();
|
||||
await baseAppClient.post(GET_MY_DISCHARGE_PATIENT,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
if (response['List_MyDischargeReferralPatient'] != null) {
|
||||
response['List_MyDischargeReferralPatient'].forEach((v) {
|
||||
myDischargeReferralPatients.add(DischargeReferralPatient.fromJson(v));
|
||||
});
|
||||
}
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: body);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
import 'package:doctor_app_flutter/config/config.dart';
|
||||
import 'package:doctor_app_flutter/core/model/MyReferralPatientModel.dart';
|
||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||
import 'package:doctor_app_flutter/models/doctor/request_add_referred_doctor_remarks.dart';
|
||||
|
||||
class MyReferralInPatientService extends BaseService {
|
||||
List<MyReferralPatientModel> myReferralPatients = List();
|
||||
|
||||
Future getMyReferralPatientService() async {
|
||||
hasError = false;
|
||||
Map<String, dynamic> body = Map();
|
||||
await getDoctorProfile();
|
||||
body['DoctorID'] = doctorProfile.doctorID;
|
||||
body['FirstName'] = "0";
|
||||
body['MiddleName'] = "0";
|
||||
body['LastName'] = "0";
|
||||
body['PatientMobileNumber'] = "0";
|
||||
body['PatientIdentificationID'] = "0";
|
||||
body['PatientID'] = 0;
|
||||
body['From'] = "0";
|
||||
body['To'] = "0";
|
||||
body['stamp'] = DateTime.now().toIso8601String();
|
||||
body['IsLoginForDoctorApp'] = true;
|
||||
body['IPAdress'] = "11.11.11.11";
|
||||
body['PatientOutSA'] = false;
|
||||
body['PatientTypeID'] = 1;
|
||||
myReferralPatients.clear();
|
||||
await baseAppClient.post(
|
||||
GET_MY_REFERRAL_INPATIENT,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
if (response['List_MyReferralPatient'] != null) {
|
||||
response['List_MyReferralPatient'].forEach((v) {
|
||||
myReferralPatients.add(MyReferralPatientModel.fromJson(v));
|
||||
});
|
||||
}
|
||||
},
|
||||
onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
},
|
||||
body: body,
|
||||
);
|
||||
}
|
||||
|
||||
Future replay(String referredDoctorRemarks, MyReferralPatientModel referral) async {
|
||||
hasError = false;
|
||||
await getDoctorProfile();
|
||||
RequestAddReferredDoctorRemarks _requestAddReferredDoctorRemarks = RequestAddReferredDoctorRemarks();
|
||||
_requestAddReferredDoctorRemarks.projectID = referral.projectID;
|
||||
_requestAddReferredDoctorRemarks.admissionNo = referral.admissionNo.toString();
|
||||
_requestAddReferredDoctorRemarks.lineItemNo = referral.lineItemNo;
|
||||
_requestAddReferredDoctorRemarks.referredDoctorRemarks = referredDoctorRemarks;
|
||||
_requestAddReferredDoctorRemarks.editedBy = doctorProfile.doctorID;
|
||||
_requestAddReferredDoctorRemarks.patientID = referral.patientID;
|
||||
_requestAddReferredDoctorRemarks.referringDoctor = referral.referringDoctor;
|
||||
await baseAppClient.post(
|
||||
ADD_REFERRED_DOCTOR_REMARKS,
|
||||
body: _requestAddReferredDoctorRemarks.toJson(),
|
||||
onSuccess: (dynamic body, int statusCode) {
|
||||
|
||||
},
|
||||
onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
import 'package:doctor_app_flutter/config/config.dart';
|
||||
import 'package:doctor_app_flutter/core/model/ReferralRequest.dart';
|
||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||
|
||||
class ReferralService extends BaseService {
|
||||
|
||||
Future referralPatient(
|
||||
{int admissionNo,
|
||||
String roomID,
|
||||
int referralClinic,
|
||||
int referralDoctor,
|
||||
int patientID,
|
||||
int patientTypeID,
|
||||
int priority,
|
||||
int frequency,
|
||||
String referringDoctorRemarks,
|
||||
String extension}) async {
|
||||
await getDoctorProfile();
|
||||
ReferralRequest referralRequest = ReferralRequest();
|
||||
referralRequest.admissionNo = admissionNo;
|
||||
referralRequest.roomID = roomID;
|
||||
referralRequest.referralClinic = referralClinic.toString();
|
||||
referralRequest.referralDoctor = referralDoctor.toString();
|
||||
referralRequest.patientID = patientID;
|
||||
referralRequest.patientTypeID = patientTypeID;
|
||||
referralRequest.priority = priority.toString();
|
||||
referralRequest.frequency = frequency.toString();
|
||||
referralRequest.referringDoctorRemarks = referringDoctorRemarks;
|
||||
referralRequest.referringClinic = doctorProfile.clinicID;
|
||||
referralRequest.referringDoctor = doctorProfile.doctorID;
|
||||
referralRequest.extension = extension;
|
||||
referralRequest.editedBy = doctorProfile.doctorID;
|
||||
referralRequest.createdBy = doctorProfile.doctorID;
|
||||
referralRequest.patientOutSA = false;
|
||||
|
||||
await baseAppClient.post(
|
||||
REFER_TO_DOCTOR,
|
||||
onSuccess: (dynamic response, int statusCode) {},
|
||||
onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
},
|
||||
body: referralRequest.toJson(),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
import 'package:doctor_app_flutter/config/config.dart';
|
||||
import 'package:doctor_app_flutter/core/model/PatientSearchRequestModel.dart';
|
||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||
|
||||
class OutPatientService extends BaseService {
|
||||
List<PatiantInformtion> _patientList = [];
|
||||
List<PatiantInformtion> get patientList => _patientList;
|
||||
|
||||
|
||||
Future getOutPatient(PatientSearchRequestModel patientSearchRequestModel) async {
|
||||
hasError = false;
|
||||
await baseAppClient.post(
|
||||
GET_MY_OUT_PATIENT,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
_patientList.clear();
|
||||
response['List_MyOutPatient'].forEach((v) {
|
||||
_patientList.add(PatiantInformtion.fromJson(v));
|
||||
});
|
||||
},
|
||||
onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
},
|
||||
body: patientSearchRequestModel.toJson(),
|
||||
);
|
||||
}
|
||||
Future getPatientFileInformation(PatientSearchRequestModel patientSearchRequestModel) async {
|
||||
hasError = false;
|
||||
await baseAppClient.post(
|
||||
PRM_SEARCH_PATIENT,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
_patientList.clear();
|
||||
response['GetPatientFileInformation_PRMList'].forEach((v) {
|
||||
_patientList.add(PatiantInformtion.fromJson(v));
|
||||
});
|
||||
},
|
||||
onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
},
|
||||
body: patientSearchRequestModel.toJson(),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
import 'package:doctor_app_flutter/config/config.dart';
|
||||
import 'package:doctor_app_flutter/core/model/PatientSearchRequestModel.dart';
|
||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||
|
||||
class PatientInPatientService extends BaseService {
|
||||
List<PatiantInformtion> inPatientList = List();
|
||||
|
||||
Future getInPatientList(
|
||||
PatientSearchRequestModel requestModel, bool isMyInpatient) async {
|
||||
hasError = false;
|
||||
await getDoctorProfile();
|
||||
|
||||
if (isMyInpatient) {
|
||||
requestModel.doctorID = doctorProfile.doctorID;
|
||||
}else {
|
||||
requestModel.doctorID = 0;
|
||||
}
|
||||
|
||||
await baseAppClient.post(
|
||||
GET_PATIENT_IN_PATIENT_LIST,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
inPatientList.clear();
|
||||
|
||||
response['List_MyInPatient'].forEach((v) {
|
||||
inPatientList.add(PatiantInformtion.fromJson(v));
|
||||
});
|
||||
},
|
||||
onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
},
|
||||
body: requestModel.toJson(),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
||||
import 'package:doctor_app_flutter/core/service/DischargedPatientService.dart';
|
||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||
|
||||
import '../../locator.dart';
|
||||
import 'base_view_model.dart';
|
||||
|
||||
class DischargedPatientViewModel extends BaseViewModel {
|
||||
DischargedPatientService _dischargedPatientService =
|
||||
locator<DischargedPatientService>();
|
||||
|
||||
List<PatiantInformtion> get myDischargedPatient =>
|
||||
_dischargedPatientService.myDischargedPatients;
|
||||
|
||||
|
||||
List<PatiantInformtion> filterData = [];
|
||||
|
||||
searchData(String str) {
|
||||
var strExist = str.length > 0 ? true : false;
|
||||
if (strExist) {
|
||||
filterData = [];
|
||||
for (var i = 0; i < myDischargedPatient.length; i++) {
|
||||
String firstName = myDischargedPatient[i].firstName.toUpperCase();
|
||||
String lastName = myDischargedPatient[i].lastName.toUpperCase();
|
||||
String mobile = myDischargedPatient[i].mobileNumber.toUpperCase();
|
||||
String patientID = myDischargedPatient[i].patientId.toString();
|
||||
|
||||
if (firstName.contains(str.toUpperCase()) ||
|
||||
lastName.contains(str.toUpperCase()) ||
|
||||
mobile.contains(str) ||
|
||||
patientID.contains(str)) {
|
||||
filterData.add(myDischargedPatient[i]);
|
||||
}
|
||||
}
|
||||
notifyListeners();
|
||||
} else {
|
||||
filterData = myDischargedPatient;
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Future getDischargedPatient() async {
|
||||
setState(ViewState.Busy);
|
||||
await _dischargedPatientService.getDischargedPatient();
|
||||
if (_dischargedPatientService.hasError) {
|
||||
error = _dischargedPatientService.error;
|
||||
setState(ViewState.Error);
|
||||
} else{
|
||||
filterData = myDischargedPatient;
|
||||
setState(ViewState.Idle);}
|
||||
}
|
||||
|
||||
Future gtMyDischargeReferralPatient() async {
|
||||
setState(ViewState.Busy);
|
||||
await _dischargedPatientService.gtMyDischargeReferralPatient();
|
||||
if (_dischargedPatientService.hasError) {
|
||||
error = _dischargedPatientService.error;
|
||||
setState(ViewState.Error);
|
||||
} else
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
@ -1,31 +1,45 @@
|
||||
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
||||
import 'package:doctor_app_flutter/core/model/insurance_approval.dart';
|
||||
import 'package:doctor_app_flutter/core/model/insurance_approval_in_patient_model.dart';
|
||||
import 'package:doctor_app_flutter/core/service/InsuranceCardService.dart';
|
||||
import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
|
||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||
|
||||
import '../../locator.dart';
|
||||
|
||||
class InsuranceViewModel extends BaseViewModel{
|
||||
|
||||
class InsuranceViewModel extends BaseViewModel {
|
||||
InsuranceCardService _insuranceCardService = locator<InsuranceCardService>();
|
||||
|
||||
|
||||
List<InsuranceApprovalModel> get insuranceApproval =>
|
||||
_insuranceCardService.insuranceApproval;
|
||||
List<InsuranceApprovalInPatientModel> get insuranceApprovalInPatient =>
|
||||
_insuranceCardService.insuranceApprovalInPatient;
|
||||
|
||||
Future getInsuranceApproval(PatiantInformtion patient,{int appointmentNo, int projectId}) async {
|
||||
Future getInsuranceApproval(PatiantInformtion patient,
|
||||
{int appointmentNo, int projectId}) async {
|
||||
error = "";
|
||||
setState(ViewState.Busy);
|
||||
if (appointmentNo != null)
|
||||
await _insuranceCardService.getInsuranceApproval(patient,
|
||||
appointmentNo: appointmentNo,projectId: projectId);
|
||||
appointmentNo: appointmentNo, projectId: projectId);
|
||||
else
|
||||
await _insuranceCardService.getInsuranceApproval(patient);
|
||||
if (_insuranceCardService.hasError) {
|
||||
error = "No Insurance Approval Found";
|
||||
setState(ViewState.Error);
|
||||
setState(ViewState.Error);
|
||||
} else
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
|
||||
Future getInsuranceInPatient({int mrn}) async {
|
||||
//hasError = false;
|
||||
//_insuranceCardService.clearInsuranceCard();
|
||||
setState(ViewState.Busy);
|
||||
await _insuranceCardService.getInsuranceApprovalInPatient(mrn: mrn);
|
||||
if (_insuranceCardService.hasError) {
|
||||
error = _insuranceCardService.error;
|
||||
setState(ViewState.ErrorLocal);
|
||||
} else
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,195 @@
|
||||
import 'package:doctor_app_flutter/core/enum/patient_type.dart';
|
||||
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
||||
import 'package:doctor_app_flutter/core/model/PatientSearchRequestModel.dart';
|
||||
import 'package:doctor_app_flutter/core/service/patient/out_patient_service.dart';
|
||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||
|
||||
import '../../locator.dart';
|
||||
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
||||
import 'package:doctor_app_flutter/core/model/PatientSearchRequestModel.dart';
|
||||
import 'package:doctor_app_flutter/core/service/patientInPatientService.dart';
|
||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||
|
||||
import '../../locator.dart';
|
||||
import 'base_view_model.dart';
|
||||
|
||||
class PatientSearchViewModel extends BaseViewModel{
|
||||
OutPatientService _outPatientService = locator<OutPatientService>();
|
||||
|
||||
List<PatiantInformtion> get patientList => _outPatientService.patientList;
|
||||
|
||||
List<PatiantInformtion> filterData = [];
|
||||
|
||||
searchData(String str) {
|
||||
var strExist = str.length > 0 ? true : false;
|
||||
if (strExist) {
|
||||
filterData = [];
|
||||
for (var i = 0; i < _outPatientService.patientList.length; i++) {
|
||||
String firstName = _outPatientService.patientList[i].firstName.toUpperCase();
|
||||
String lastName = _outPatientService.patientList[i].lastName.toUpperCase();
|
||||
String mobile = _outPatientService.patientList[i].mobileNumber.toUpperCase();
|
||||
String patientID = _outPatientService.patientList[i].patientId.toString();
|
||||
|
||||
if (firstName.contains(str.toUpperCase()) ||
|
||||
lastName.contains(str.toUpperCase()) ||
|
||||
mobile.contains(str) ||
|
||||
patientID.contains(str)) {
|
||||
filterData.add(_outPatientService.patientList[i]);
|
||||
}
|
||||
}
|
||||
notifyListeners();
|
||||
} else {
|
||||
filterData = _outPatientService.patientList;
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
getOutPatient(PatientSearchRequestModel patientSearchRequestModel , {bool isLocalBusy = false}) async {
|
||||
if(isLocalBusy) {
|
||||
setState(ViewState.BusyLocal);
|
||||
} else {
|
||||
setState(ViewState.Busy);
|
||||
}
|
||||
|
||||
await _outPatientService.getOutPatient(
|
||||
patientSearchRequestModel);
|
||||
if (_outPatientService.hasError) {
|
||||
error = _outPatientService.error;
|
||||
if(isLocalBusy) {
|
||||
setState(ViewState.ErrorLocal);
|
||||
} else {
|
||||
setState(ViewState.Error);
|
||||
}
|
||||
setState(ViewState.Error);
|
||||
} else {
|
||||
filterData = _outPatientService.patientList;
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
|
||||
getPatientFileInformation(PatientSearchRequestModel patientSearchRequestModel, {bool isLocalBusy = false}) async {
|
||||
setState(ViewState.Busy);
|
||||
await _outPatientService.getPatientFileInformation(
|
||||
patientSearchRequestModel);
|
||||
if (_outPatientService.hasError) {
|
||||
error = _outPatientService.error;
|
||||
setState(ViewState.Error);
|
||||
} else {
|
||||
filterData = _outPatientService.patientList;
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
getPatientBasedOnDate (
|
||||
{item, PatientSearchRequestModel patientSearchRequestModel, PatientType selectedPatientType,
|
||||
bool isSearchWithKeyInfo })async {
|
||||
String dateTo;
|
||||
String dateFrom;
|
||||
if (item == 'Tomorrow') {
|
||||
dateTo = DateUtils.convertDateToFormat(
|
||||
DateTime(DateTime.now().year, DateTime.now().month,
|
||||
DateTime.now().day + 1),
|
||||
'yyyy-MM-dd');
|
||||
dateFrom = DateUtils.convertDateToFormat(
|
||||
DateTime(DateTime.now().year, DateTime.now().month,
|
||||
DateTime.now().day + 1),
|
||||
'yyyy-MM-dd');
|
||||
} else if (item == 'Next Week') {
|
||||
|
||||
|
||||
dateTo = DateUtils.convertDateToFormat(
|
||||
DateTime(DateTime.now().year, DateTime.now().month,
|
||||
DateTime.now().day + 6),
|
||||
'yyyy-MM-dd');
|
||||
|
||||
dateFrom = DateUtils.convertDateToFormat(
|
||||
DateTime(DateTime.now().year, DateTime.now().month,
|
||||
DateTime.now().day + 1),
|
||||
'yyyy-MM-dd');
|
||||
} else {
|
||||
dateFrom = DateUtils.convertDateToFormat(
|
||||
DateTime(
|
||||
DateTime.now().year, DateTime.now().month, DateTime.now().day),
|
||||
'yyyy-MM-dd');
|
||||
dateTo= DateUtils.convertDateToFormat(
|
||||
DateTime(
|
||||
DateTime.now().year, DateTime.now().month, DateTime.now().day),
|
||||
'yyyy-MM-dd');
|
||||
}
|
||||
PatientSearchRequestModel currentModel = PatientSearchRequestModel();
|
||||
currentModel.patientID = patientSearchRequestModel.patientID;
|
||||
currentModel.firstName = patientSearchRequestModel.firstName;
|
||||
currentModel.lastName = patientSearchRequestModel.lastName;
|
||||
currentModel.middleName = patientSearchRequestModel.middleName;
|
||||
currentModel.doctorID = patientSearchRequestModel.doctorID;
|
||||
currentModel.from = dateFrom;
|
||||
currentModel.to = dateTo;
|
||||
|
||||
|
||||
if(isSearchWithKeyInfo) {
|
||||
await getPatientFileInformation(currentModel);
|
||||
} else {
|
||||
await getOutPatient(currentModel, isLocalBusy: true);
|
||||
}
|
||||
filterData = _outPatientService.patientList;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
PatientInPatientService _inPatientService =
|
||||
locator<PatientInPatientService>();
|
||||
|
||||
List<PatiantInformtion> get _inPatientList => _inPatientService.inPatientList;
|
||||
List<PatiantInformtion> filteredInPatientItems = List();
|
||||
|
||||
Future getInPatientList(PatientSearchRequestModel requestModel,
|
||||
{bool isMyInpatient = false, bool isFirstTime = true}) async {
|
||||
await getDoctorProfile();
|
||||
if (isFirstTime)
|
||||
setState(ViewState.Busy);
|
||||
else
|
||||
setState(ViewState.BusyLocal);
|
||||
await _inPatientService.getInPatientList(requestModel, false);
|
||||
if (_inPatientService.hasError) {
|
||||
error = _inPatientService.error;
|
||||
setState(ViewState.Error);
|
||||
} else {
|
||||
filteredInPatientItems.clear();
|
||||
if (_inPatientList.length > 0)
|
||||
filteredInPatientItems.addAll(_inPatientList);
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
|
||||
void filterSearchResults(String query) {
|
||||
var strExist = query.length > 0 ? true : false;
|
||||
if (strExist) {
|
||||
filteredInPatientItems = [];
|
||||
for (var i = 0; i < _inPatientList.length; i++) {
|
||||
String firstName = _inPatientList[i].firstName.toUpperCase();
|
||||
String lastName = _inPatientList[i].lastName.toUpperCase();
|
||||
String mobile = _inPatientList[i].mobileNumber.toUpperCase();
|
||||
String patientID = _inPatientList[i].patientId.toString();
|
||||
|
||||
if (firstName.contains(query.toUpperCase()) ||
|
||||
lastName.contains(query.toUpperCase()) ||
|
||||
mobile.contains(query) ||
|
||||
patientID.contains(query)) {
|
||||
filteredInPatientItems.add(_inPatientList[i]);
|
||||
}
|
||||
}
|
||||
notifyListeners();
|
||||
} else {
|
||||
if (_inPatientList.length > 0)
|
||||
filteredInPatientItems.clear();
|
||||
filteredInPatientItems.addAll(_inPatientList);
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue