work with patient model

pull/206/head
Elham Rababah 5 years ago
parent 44779e6ee7
commit df4eb94042

@ -1,98 +1,112 @@
import 'dart:convert';
//PatiantInformtion patiantInformtionFromJson(String str) => PatiantInformtion.fromJson(json.decode(str));
////String patiantInformtionToJson(PatiantInformtion data) => json.encode(data.toJson());
//****************************** */
/*
*@author: Amjad Amireh
*@Date:27/4/2020
*@param:
*@return:Patian information Model
*@desc:
*/
// TODO : it have to be changed.
class PatiantInformtion { class PatiantInformtion {
final List<PatiantInformtion> list; final List<PatiantInformtion> list;
int projectId; int genderInt;
int clinicId; String age;
int doctorId; String appointmentDate;
int patientId; int appointmentNo;
String doctorName; String appointmentType;
String doctorNameN; String arrivedOn;
String firstName; int clinicGroupId;
String middleName; String companyName;
String lastName; Null dischargeStatus;
String firstNameN; Null doctorDetails;
String middleNameN; int doctorId;
String lastNameN; String endTime;
int gender; int episodeNo;
String dateofBirth; int fallRiskScore;
String nationalityId; bool isSigned;
String mobileNumber; int medicationOrders;
String emailAddress; String mobileNumber;
String patientIdentificationNo; String nationality;
int patientType; int projectId;
String admissionNo; int clinicId;
String admissionDate; int patientId;
String roomId; String doctorName;
String bedId; String doctorNameN;
String nursingStationId; String firstName;
String description; String middleName;
String clinicDescription; String lastName;
String clinicDescriptionN; String firstNameN;
String nationalityName; String middleNameN;
String nationalityNameN; String lastNameN;
String age; int gender;
String genderDescription; String dateofBirth;
String nursingStationName; String nationalityId;
String appointmentDate; String emailAddress;
String startTime; String patientIdentificationNo;
int patientType;
PatiantInformtion({ String admissionNo;
this.list, String admissionDate;
this.projectId, String roomId;
this.clinicId, String bedId;
this.doctorId, String nursingStationId;
this.patientId, String description;
this.doctorName, String clinicDescription;
this.doctorNameN, String clinicDescriptionN;
this.firstName, String nationalityName;
this.middleName, String nationalityNameN;
this.lastName, String genderDescription;
this.firstNameN, String nursingStationName;
this.middleNameN, String startTime;
this.lastNameN,
this.gender,
this.dateofBirth,
this.nationalityId,
this.mobileNumber,
this.emailAddress,
this.patientIdentificationNo,
this.patientType,
this.admissionNo,
this.admissionDate,
this.roomId,
this.bedId,
this.nursingStationId,
this.description,
this.clinicDescription,
this.clinicDescriptionN,
this.nationalityName,
this.nationalityNameN,
this.age,
this.genderDescription,
this.nursingStationName,
this.appointmentDate,
this.startTime,
}); PatiantInformtion({
this.list,
this.projectId,
this.clinicId,
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.nationalityId,
this.mobileNumber,
this.emailAddress,
this.patientIdentificationNo,
this.patientType,
this.admissionNo,
this.admissionDate,
this.roomId,
this.bedId,
this.nursingStationId,
this.description,
this.clinicDescription,
this.clinicDescriptionN,
this.nationalityName,
this.nationalityNameN,
this.age,
this.genderDescription,
this.nursingStationName,
this.appointmentDate,
this.startTime,
this.appointmentNo,
this.appointmentType,
this.arrivedOn,
this.clinicGroupId,
this.companyName,
this.dischargeStatus,
this.doctorDetails,
this.endTime,
this.episodeNo,
this.fallRiskScore,
this.genderInt,
this.isSigned,
this.medicationOrders,
this.nationality,
});
factory PatiantInformtion.fromJson(Map<String, dynamic> json) => PatiantInformtion( factory PatiantInformtion.fromJson(Map<String, dynamic> json) =>
PatiantInformtion(
projectId: json["ProjectID"], projectId: json["ProjectID"],
clinicId: json["ClinicID"], clinicId: json["ClinicID"],
doctorId: json["DoctorID"], doctorId: json["DoctorID"],
@ -127,6 +141,19 @@ class PatiantInformtion {
nursingStationName: json["NursingStationName"], nursingStationName: json["NursingStationName"],
appointmentDate: json["AppointmentDate"]?? '', appointmentDate: json["AppointmentDate"]?? '',
startTime: json["StartTime"], startTime: json["StartTime"],
appointmentNo :json['appointmentNo'],
appointmentType :json['appointmentType'],
arrivedOn :json['arrivedOn'],
clinicGroupId :json['clinicGroupId'],
companyName :json['companyName'],
dischargeStatus :json['dischargeStatus'],
doctorDetails :json['doctorDetails'],
endTime :json['endTime'],
episodeNo :json['episodeNo'],
fallRiskScore :json['fallRiskScore'],
isSigned :json['isSigned'],
medicationOrders :json['medicationOrders'],
nationality :json['nationality'],
); );

Loading…
Cancel
Save