You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/models/patient/patient_model.dart

174 lines
4.6 KiB
Dart

/*
*@author:Modified by amjad add getter and setter Amjad Amireh
*@Date:11/5/2020
*@param:
*@return:PatientsScreen Search textbox filter
*@desc:
*/
class PatientModel {
int ProjectID;
int ClinicID;
int DoctorID;
String FirstName;
String MiddleName;
String LastName;
String PatientMobileNumber;
String PatientIdentificationID;
int PatientID;
String From;
String To;
int LanguageID;
String stamp;
String IPAdress;
double VersionID;
int Channel;
String TokenID;
String SessionID;
bool IsLoginForDoctorApp;
bool PatientOutSA;
5 years ago
int Searchtype;
5 years ago
String IdentificationNo;
String MobileNo;
5 years ago
int get getProjectID => ProjectID;
6 years ago
5 years ago
set setProjectID(int ProjectID) => this.ProjectID = ProjectID;
5 years ago
int get getClinicID => ClinicID;
5 years ago
set setClinicID(int ClinicID) => this.ClinicID = ClinicID;
5 years ago
int get getDoctorID => DoctorID;
5 years ago
set setDoctorID(int DoctorID) => this.DoctorID = DoctorID;
String get getFirstName => FirstName;
5 years ago
set setFirstName(String FirstName) => this.FirstName = FirstName;
5 years ago
String get getMiddleName => MiddleName;
5 years ago
set setMiddleName(String MiddleName) => this.MiddleName = MiddleName;
5 years ago
String get getLastName => LastName;
5 years ago
set setLastName(String LastName) => this.LastName = LastName;
5 years ago
String get getPatientMobileNumber => PatientMobileNumber;
5 years ago
set setPatientMobileNumber(String PatientMobileNumber) =>
this.PatientMobileNumber = PatientMobileNumber;
// String get getPatientIdentificationID => PatientIdentificationID;
// set setPatientIdentificationID(String PatientIdentificationID) => this.PatientIdentificationID = PatientIdentificationID;
5 years ago
int get getPatientID => PatientID;
5 years ago
set setPatientID(int PatientID) => this.PatientID = PatientID;
5 years ago
String get getFrom => From;
5 years ago
set setFrom(String From) => this.From = From;
5 years ago
String get getTo => To;
5 years ago
set setTo(String To) => this.To = To;
5 years ago
int get getLanguageID => LanguageID;
5 years ago
set setLanguageID(int LanguageID) => this.LanguageID = LanguageID;
5 years ago
String get getStamp => stamp;
5 years ago
set setStamp(String stamp) => this.stamp = stamp;
5 years ago
String get getIPAdress => IPAdress;
5 years ago
set setIPAdress(String IPAdress) => this.IPAdress = IPAdress;
5 years ago
double get getVersionID => VersionID;
5 years ago
set setVersionID(double VersionID) => this.VersionID = VersionID;
5 years ago
int get getChannel => Channel;
5 years ago
set setChannel(int Channel) => this.Channel = Channel;
5 years ago
String get getTokenID => TokenID;
5 years ago
set setTokenID(String TokenID) => this.TokenID = TokenID;
5 years ago
String get getSessionID => SessionID;
5 years ago
set setSessionID(String SessionID) => this.SessionID = SessionID;
5 years ago
bool get getIsLoginForDoctorApp => IsLoginForDoctorApp;
6 years ago
5 years ago
set setIsLoginForDoctorApp(bool IsLoginForDoctorApp) =>
this.IsLoginForDoctorApp = IsLoginForDoctorApp;
6 years ago
5 years ago
bool get getPatientOutSA => PatientOutSA;
6 years ago
5 years ago
set setPatientOutSA(bool PatientOutSA) => this.PatientOutSA = PatientOutSA;
6 years ago
PatientModel(
{this.ProjectID,
this.ClinicID,
this.DoctorID,
this.FirstName,
this.MiddleName,
this.LastName,
this.PatientMobileNumber,
this.PatientIdentificationID,
this.PatientID,
this.From,
this.To,
this.LanguageID,
this.stamp,
this.IPAdress,
this.VersionID,
this.Channel,
this.TokenID,
this.SessionID,
this.IsLoginForDoctorApp,
5 years ago
this.PatientOutSA,
5 years ago
this.Searchtype,
this.IdentificationNo,
this.MobileNo});
6 years ago
5 years ago
factory PatientModel.fromJson(Map<String, dynamic> json) => PatientModel(
6 years ago
FirstName: json["FirstName"],
5 years ago
LastName: json["LasttName"],
);
6 years ago
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['ProjectID'] = this.ProjectID;
data['ClinicID'] = this.ClinicID;
data['DoctorID'] = this.DoctorID;
data['PatientID'] = this.PatientID;
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['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;
5 years ago
data['Searchtype'] = this.Searchtype;
5 years ago
data['IdentificationNo'] = this.IdentificationNo;
data['MobileNo'] = this.MobileNo;
6 years ago
return data;
}
}
6 years ago
//***************************