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/patiant_info_model.dart

256 lines
8.5 KiB
Dart

// TODO : it have to be changed.
6 years ago
class PatiantInformtion {
final PatiantInformtion patientDetails;
int genderInt;
5 years ago
dynamic age;
String appointmentDate;
5 years ago
dynamic appointmentNo;
dynamic appointmentType;
5 years ago
String arrivalTime;
String arrivalTimeD;
int callStatus;
dynamic callStatusDisc;
5 years ago
int callTypeID;
String clientRequestID;
String clinicName;
String consoltationEnd;
String consultationNotes;
int appointmentTypeId;
String arrivedOn;
int clinicGroupId;
String companyName;
dynamic dischargeStatus;
dynamic doctorDetails;
int doctorId;
String endTime;
int episodeNo;
int fallRiskScore;
bool isSigned;
int medicationOrders;
String mobileNumber;
String nationality;
int projectId;
int clinicId;
5 years ago
dynamic patientId;
String doctorName;
String doctorNameN;
String firstName;
String middleName;
String lastName;
String firstNameN;
String middleNameN;
String lastNameN;
String fullName;
String fullNameN;
int gender;
String dateofBirth;
String nationalityId;
String emailAddress;
String patientIdentificationNo;
int patientType;
5 years ago
int patientMRN;
String admissionNo;
String admissionDate;
5 years ago
String createdOn;
String roomId;
String bedId;
String nursingStationId;
String description;
String clinicDescription;
String clinicDescriptionN;
String nationalityName;
String nationalityNameN;
String genderDescription;
String nursingStationName;
String startTime;
String visitType;
String nationalityFlagURL;
5 years ago
int patientStatus;
int patientStatusType;
int visitTypeId;
5 years ago
String startTimes;
String dischargeDate;
5 years ago
int status;
5 years ago
int vcId;
5 years ago
String voipToken;
5 years ago
PatiantInformtion(
{this.patientDetails,
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.createdOn,
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,
5 years ago
this.arrivalTime,
this.arrivalTimeD,
this.callStatus,
this.callStatusDisc,
this.callTypeID,
this.clientRequestID,
this.clinicName,
this.consoltationEnd,
this.consultationNotes,
this.appointmentType,
this.appointmentTypeId,
this.arrivedOn,
this.clinicGroupId,
this.companyName,
this.dischargeStatus,
this.doctorDetails,
this.endTime,
this.episodeNo,
this.fallRiskScore,
this.genderInt,
this.isSigned,
this.medicationOrders,
this.nationality,
this.patientMRN,
this.visitType,
this.fullName,
this.fullNameN,
this.nationalityFlagURL,
this.patientStatusType,
5 years ago
this.patientStatus,
5 years ago
this.visitTypeId,
5 years ago
this.startTimes,
this.dischargeDate,
this.status,
this.vcId,
this.voipToken});
6 years ago
factory PatiantInformtion.fromJson(Map<String, dynamic> json) =>
PatiantInformtion(
5 years ago
patientDetails: json['patientDetails'] != null
? new PatiantInformtion.fromJson(json['patientDetails'])
: null,
5 years ago
projectId: json["ProjectID"] ?? json["projectID"],
clinicId: json["ClinicID"] ?? json["clinicID"],
doctorId: json["DoctorID"] ?? json["doctorID"],
5 years ago
patientId: json["PatientID"] != null
? json["PatientID"] is String
? int.parse(json["PatientID"])
: json["PatientID"]
: json["patientID"] ?? json['patientMRN'] ?? json['PatientMRN'],
5 years ago
doctorName: json["DoctorName"] ?? json["doctorName"],
doctorNameN: json["DoctorNameN"] ?? json["doctorNameN"],
firstName: json["FirstName"] ?? json["firstName"],
middleName: json["MiddleName"] ?? json["middleName"],
lastName: json["LastName"] ?? json["lastName"],
firstNameN: json["FirstNameN"] ?? json["firstNameN"],
middleNameN: json["MiddleNameN"] ?? json["middleNameN"],
lastNameN: json["LastNameN"] ?? json["lastNameN"],
5 years ago
gender: json["Gender"] != null
? json["Gender"] is String
? int.parse(json["Gender"])
: json["Gender"]
: json["gender"],
fullName: json["fullName"] ?? json["fullName"] ?? json["PatientName"],
fullNameN:
json["fullNameN"] ?? json["fullNameN"] ?? json["PatientName"],
dateofBirth: json["DateofBirth"] ?? json["dob"] ?? json['DateOfBirth'],
5 years ago
nationalityId: json["NationalityID"] ?? json["nationalityID"],
mobileNumber: json["MobileNumber"] ?? json["mobileNumber"],
emailAddress: json["EmailAddress"] ?? json["emailAddress"],
patientIdentificationNo:
json["PatientIdentificationNo"] ?? json["patientIdentificationNo"],
5 years ago
//TODO make 7 dynamic when the backend retrun it in patient arrival
5 years ago
patientType: json["PatientType"] ?? json["patientType"] ?? 1,
5 years ago
admissionNo: json["AdmissionNo"] ?? json["admissionNo"],
admissionDate: json["AdmissionDate"] ?? json["admissionDate"],
createdOn: json["CreatedOn"] ?? json["CreatedOn"],
roomId: json["RoomID"] ?? json["roomID"],
bedId: json["BedID"] ?? json["bedID"],
nursingStationId: json["NursingStationID"] ?? json["nursingStationID"],
description: json["Description"] ?? json["description"],
clinicDescription:
json["ClinicDescription"] ?? json["clinicDescription"],
clinicDescriptionN:
json["ClinicDescriptionN"] ?? json["clinicDescriptionN"],
nationalityName: json["NationalityName"] ??
json["nationalityName"] ??
json['NationalityName'],
nationalityNameN: json["NationalityNameN"] ??
json["nationalityNameN"] ??
json['NationalityNameN'],
age: json["Age"] ?? json["age"],
genderDescription: json["GenderDescription"],
nursingStationName: json["NursingStationName"],
appointmentDate: json["AppointmentDate"] ?? '',
5 years ago
startTime: json["startTime"] ?? json['StartTime'],
5 years ago
appointmentNo: json['appointmentNo'] ?? json['AppointmentNo'],
appointmentType: json['appointmentType'],
5 years ago
appointmentTypeId:
json['appointmentTypeId'] ?? json['appointmentTypeid'],
arrivedOn: json['ArrivedOn'] ?? json['arrivedOn'] ?? json['ArrivedOn'],
5 years ago
clinicGroupId: json['clinicGroupId'],
companyName: json['companyName'],
dischargeStatus: json['dischargeStatus'],
doctorDetails: json['doctorDetails'],
endTime: json['endTime'],
5 years ago
episodeNo: json['episodeNo'] ?? json['EpisodeID'] ?? json['EpisodeNo'],
5 years ago
fallRiskScore: json['fallRiskScore'],
isSigned: json['isSigned'],
medicationOrders: json['medicationOrders'],
nationality: json['nationality'] ?? json['NationalityNameN'],
5 years ago
patientMRN: json['patientMRN'] ?? json['PatientMRN']?? (
json["PatientID"] != null ?
int.parse(json["PatientID"].toString())
: int.parse(json["patientID"].toString())),
5 years ago
visitType: json['visitType'] ?? json['visitType'] ?? json['visitType'],
5 years ago
nationalityFlagURL:
json['NationalityFlagURL'] ?? json['NationalityFlagURL'],
patientStatusType:
5 years ago
json['patientStatusType'] ?? json['PatientStatusType'],
5 years ago
visitTypeId:
json['visitTypeId'] ?? json['visitTypeId'] ?? json['visitTypeid'],
5 years ago
startTimes: json['StartTime'] ?? json['StartTime'],
5 years ago
dischargeDate: json['DischargeDate'],
status: json['Status'],
vcId: json['VC_ID'],
arrivalTime: json['ArrivalTime'],
arrivalTimeD: json['ArrivalTimeD'],
callStatus: json['CallStatus'],
callStatusDisc: json['CallStatusDisc'],
callTypeID: json['CallTypeID'],
clientRequestID: json['ClientRequestID'],
clinicName: json['ClinicName'],
consoltationEnd: json['ConsoltationEnd'],
consultationNotes: json['ConsultationNotes'],
patientStatus: json['PatientStatus'],
voipToken: json['VoipToken'],
5 years ago
);
6 years ago
}