|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
*@author:Modified by amjad add getter and setter Amjad Amireh
|
|
|
|
*@author:Modified by amjad add getter and setter Amjad Amireh
|
|
|
|
*@Date:11/5/2020
|
|
|
|
*@Date:11/5/2020
|
|
|
@ -29,91 +28,88 @@ class PatientModel {
|
|
|
|
String SessionID;
|
|
|
|
String SessionID;
|
|
|
|
bool IsLoginForDoctorApp;
|
|
|
|
bool IsLoginForDoctorApp;
|
|
|
|
bool PatientOutSA;
|
|
|
|
bool PatientOutSA;
|
|
|
|
|
|
|
|
int Searchtype;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int get getProjectID => ProjectID;
|
|
|
|
|
|
|
|
|
|
|
|
int get getProjectID => ProjectID;
|
|
|
|
set setProjectID(int ProjectID) => this.ProjectID = ProjectID;
|
|
|
|
|
|
|
|
|
|
|
|
set setProjectID(int ProjectID) => this.ProjectID = ProjectID;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int get getClinicID => ClinicID;
|
|
|
|
int get getClinicID => ClinicID;
|
|
|
|
|
|
|
|
|
|
|
|
set setClinicID(int ClinicID) => this.ClinicID = ClinicID;
|
|
|
|
set setClinicID(int ClinicID) => this.ClinicID = ClinicID;
|
|
|
|
|
|
|
|
|
|
|
|
int get getDoctorID => DoctorID;
|
|
|
|
int get getDoctorID => DoctorID;
|
|
|
|
|
|
|
|
|
|
|
|
set setDoctorID(int DoctorID) => this.DoctorID = DoctorID;
|
|
|
|
set setDoctorID(int DoctorID) => this.DoctorID = DoctorID;
|
|
|
|
String get getFirstName => FirstName;
|
|
|
|
String get getFirstName => FirstName;
|
|
|
|
|
|
|
|
|
|
|
|
set setFirstName(String FirstName) => this.FirstName = FirstName;
|
|
|
|
set setFirstName(String FirstName) => this.FirstName = FirstName;
|
|
|
|
|
|
|
|
|
|
|
|
String get getMiddleName => MiddleName;
|
|
|
|
String get getMiddleName => MiddleName;
|
|
|
|
|
|
|
|
|
|
|
|
set setMiddleName(String MiddleName) => this.MiddleName = MiddleName;
|
|
|
|
set setMiddleName(String MiddleName) => this.MiddleName = MiddleName;
|
|
|
|
|
|
|
|
|
|
|
|
String get getLastName => LastName;
|
|
|
|
String get getLastName => LastName;
|
|
|
|
|
|
|
|
|
|
|
|
set setLastName(String LastName) => this.LastName = LastName;
|
|
|
|
set setLastName(String LastName) => this.LastName = LastName;
|
|
|
|
|
|
|
|
|
|
|
|
String get getPatientMobileNumber => PatientMobileNumber;
|
|
|
|
String get getPatientMobileNumber => PatientMobileNumber;
|
|
|
|
|
|
|
|
|
|
|
|
set setPatientMobileNumber(String PatientMobileNumber) => this.PatientMobileNumber = PatientMobileNumber;
|
|
|
|
set setPatientMobileNumber(String PatientMobileNumber) =>
|
|
|
|
|
|
|
|
this.PatientMobileNumber = PatientMobileNumber;
|
|
|
|
|
|
|
|
|
|
|
|
// String get getPatientIdentificationID => PatientIdentificationID;
|
|
|
|
// String get getPatientIdentificationID => PatientIdentificationID;
|
|
|
|
|
|
|
|
|
|
|
|
// set setPatientIdentificationID(String PatientIdentificationID) => this.PatientIdentificationID = PatientIdentificationID;
|
|
|
|
// set setPatientIdentificationID(String PatientIdentificationID) => this.PatientIdentificationID = PatientIdentificationID;
|
|
|
|
|
|
|
|
|
|
|
|
int get getPatientID => PatientID;
|
|
|
|
int get getPatientID => PatientID;
|
|
|
|
|
|
|
|
|
|
|
|
set setPatientID(int PatientID) => this.PatientID = PatientID;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String get getFrom => From;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set setFrom(String From) => this.From = From;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String get getTo => To;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set setTo(String To) => this.To = To;
|
|
|
|
set setPatientID(int PatientID) => this.PatientID = PatientID;
|
|
|
|
|
|
|
|
|
|
|
|
int get getLanguageID => LanguageID;
|
|
|
|
String get getFrom => From;
|
|
|
|
|
|
|
|
|
|
|
|
set setLanguageID(int LanguageID) => this.LanguageID = LanguageID;
|
|
|
|
set setFrom(String From) => this.From = From;
|
|
|
|
|
|
|
|
|
|
|
|
String get getStamp => stamp;
|
|
|
|
String get getTo => To;
|
|
|
|
|
|
|
|
|
|
|
|
set setStamp(String stamp) => this.stamp = stamp;
|
|
|
|
set setTo(String To) => this.To = To;
|
|
|
|
|
|
|
|
|
|
|
|
String get getIPAdress => IPAdress;
|
|
|
|
int get getLanguageID => LanguageID;
|
|
|
|
|
|
|
|
|
|
|
|
set setIPAdress(String IPAdress) => this.IPAdress = IPAdress;
|
|
|
|
set setLanguageID(int LanguageID) => this.LanguageID = LanguageID;
|
|
|
|
|
|
|
|
|
|
|
|
double get getVersionID => VersionID;
|
|
|
|
String get getStamp => stamp;
|
|
|
|
|
|
|
|
|
|
|
|
set setVersionID(double VersionID) => this.VersionID = VersionID;
|
|
|
|
set setStamp(String stamp) => this.stamp = stamp;
|
|
|
|
|
|
|
|
|
|
|
|
int get getChannel => Channel;
|
|
|
|
String get getIPAdress => IPAdress;
|
|
|
|
|
|
|
|
|
|
|
|
set setChannel(int Channel) => this.Channel = Channel;
|
|
|
|
set setIPAdress(String IPAdress) => this.IPAdress = IPAdress;
|
|
|
|
|
|
|
|
|
|
|
|
String get getTokenID => TokenID;
|
|
|
|
double get getVersionID => VersionID;
|
|
|
|
|
|
|
|
|
|
|
|
set setTokenID(String TokenID) => this.TokenID = TokenID;
|
|
|
|
set setVersionID(double VersionID) => this.VersionID = VersionID;
|
|
|
|
|
|
|
|
|
|
|
|
String get getSessionID => SessionID;
|
|
|
|
int get getChannel => Channel;
|
|
|
|
|
|
|
|
|
|
|
|
set setSessionID(String SessionID) => this.SessionID = SessionID;
|
|
|
|
set setChannel(int Channel) => this.Channel = Channel;
|
|
|
|
|
|
|
|
|
|
|
|
bool get getIsLoginForDoctorApp => IsLoginForDoctorApp;
|
|
|
|
String get getTokenID => TokenID;
|
|
|
|
|
|
|
|
|
|
|
|
set setIsLoginForDoctorApp(bool IsLoginForDoctorApp) => this.IsLoginForDoctorApp = IsLoginForDoctorApp;
|
|
|
|
set setTokenID(String TokenID) => this.TokenID = TokenID;
|
|
|
|
|
|
|
|
|
|
|
|
bool get getPatientOutSA => PatientOutSA;
|
|
|
|
String get getSessionID => SessionID;
|
|
|
|
|
|
|
|
|
|
|
|
set setPatientOutSA(bool PatientOutSA) => this.PatientOutSA = PatientOutSA;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set setSessionID(String SessionID) => this.SessionID = SessionID;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool get getIsLoginForDoctorApp => IsLoginForDoctorApp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set setIsLoginForDoctorApp(bool IsLoginForDoctorApp) =>
|
|
|
|
|
|
|
|
this.IsLoginForDoctorApp = IsLoginForDoctorApp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool get getPatientOutSA => PatientOutSA;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set setPatientOutSA(bool PatientOutSA) => this.PatientOutSA = PatientOutSA;
|
|
|
|
|
|
|
|
|
|
|
|
PatientModel(
|
|
|
|
PatientModel(
|
|
|
|
{this.ProjectID,
|
|
|
|
{this.ProjectID,
|
|
|
@ -135,15 +131,13 @@ class PatientModel {
|
|
|
|
this.TokenID,
|
|
|
|
this.TokenID,
|
|
|
|
this.SessionID,
|
|
|
|
this.SessionID,
|
|
|
|
this.IsLoginForDoctorApp,
|
|
|
|
this.IsLoginForDoctorApp,
|
|
|
|
this.PatientOutSA});
|
|
|
|
this.PatientOutSA,
|
|
|
|
|
|
|
|
this.Searchtype});
|
|
|
|
|
|
|
|
|
|
|
|
factory PatientModel.fromJson(Map<String, dynamic> json) => PatientModel(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
factory PatientModel.fromJson(Map<String, dynamic> json) => PatientModel(
|
|
|
|
FirstName: json["FirstName"],
|
|
|
|
FirstName: json["FirstName"],
|
|
|
|
LastName: json["LasttName"],
|
|
|
|
LastName: json["LasttName"],
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
data['ProjectID'] = this.ProjectID;
|
|
|
|
data['ProjectID'] = this.ProjectID;
|
|
|
@ -167,8 +161,8 @@ class PatientModel {
|
|
|
|
data['SessionID'] = this.SessionID;
|
|
|
|
data['SessionID'] = this.SessionID;
|
|
|
|
data['IsLoginForDoctorApp'] = this.IsLoginForDoctorApp;
|
|
|
|
data['IsLoginForDoctorApp'] = this.IsLoginForDoctorApp;
|
|
|
|
data['PatientOutSA'] = this.PatientOutSA;
|
|
|
|
data['PatientOutSA'] = this.PatientOutSA;
|
|
|
|
|
|
|
|
data['Searchtype'] = this.Searchtype;
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//***************************
|
|
|
|
//***************************
|
|
|
|
|
|
|
|
|