Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into sultan
commit
bbdbc3cc25
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
@ -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,144 @@
|
|||||||
|
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;
|
||||||
|
|
||||||
|
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});
|
||||||
|
|
||||||
|
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'];
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
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,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();
|
||||||
|
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_MY_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,65 @@
|
|||||||
|
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> get filterData => filterData2.isNotEmpty? filterData2:myDischargedPatient;
|
||||||
|
|
||||||
|
List<PatiantInformtion> filterData2 = [];
|
||||||
|
|
||||||
|
searchData(String str) {
|
||||||
|
var strExist = str.length > 0 ? true : false;
|
||||||
|
if (strExist) {
|
||||||
|
filterData2 = [];
|
||||||
|
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)) {
|
||||||
|
filterData2.add(myDischargedPatient[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
notifyListeners();
|
||||||
|
} else {
|
||||||
|
filterData2 = myDischargedPatient;
|
||||||
|
notifyListeners();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Future getDischargedPatient() async {
|
||||||
|
setState(ViewState.Busy);
|
||||||
|
await _dischargedPatientService.getDischargedPatient();
|
||||||
|
if (_dischargedPatientService.hasError) {
|
||||||
|
error = _dischargedPatientService.error;
|
||||||
|
setState(ViewState.Error);
|
||||||
|
} else
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,336 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/DischargedPatientViewModel.dart';
|
||||||
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
||||||
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/app_text_form_field.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import '../../routes.dart';
|
||||||
|
|
||||||
|
class DischargedPatient extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_DischargedPatientState createState() => _DischargedPatientState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _DischargedPatientState extends State<DischargedPatient> {
|
||||||
|
final _controller = TextEditingController();
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BaseView<DischargedPatientViewModel>(
|
||||||
|
onModelReady: (model) => model.getDischargedPatient(),
|
||||||
|
builder: (_, model, w) => AppScaffold(
|
||||||
|
appBarTitle: 'Discharged Patient',
|
||||||
|
backgroundColor: Colors.grey[200],
|
||||||
|
isShowAppBar: true,
|
||||||
|
baseViewModel: model,
|
||||||
|
body: model.filterData.isEmpty?Center(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
SizedBox(
|
||||||
|
height: 100,
|
||||||
|
),
|
||||||
|
Image.asset('assets/images/no-data.png'),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: AppText(
|
||||||
|
'No Discharged Patient',
|
||||||
|
color: Theme.of(context).errorColor,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
):Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
SizedBox(height: 12,),
|
||||||
|
Container(
|
||||||
|
width: double.maxFinite,
|
||||||
|
height: 75,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(
|
||||||
|
Radius.circular(6.0)),
|
||||||
|
border: Border.all(
|
||||||
|
width: 1.0,
|
||||||
|
color: Color(0xffCCCCCC),
|
||||||
|
),
|
||||||
|
color: Colors.white),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
left: 10, top: 10),
|
||||||
|
child: AppText(
|
||||||
|
TranslationBase.of(
|
||||||
|
context)
|
||||||
|
.searchPatientName,
|
||||||
|
fontSize: 13,
|
||||||
|
)),
|
||||||
|
AppTextFormField(
|
||||||
|
// focusNode: focusProject,
|
||||||
|
controller: _controller,
|
||||||
|
borderColor: Colors.white,
|
||||||
|
prefix: IconButton(
|
||||||
|
icon: Icon(
|
||||||
|
DoctorApp.filter_1,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
iconSize: 20,
|
||||||
|
padding:
|
||||||
|
EdgeInsets.only(
|
||||||
|
bottom: 30),
|
||||||
|
),
|
||||||
|
onChanged: (String str) {
|
||||||
|
model.searchData(str);
|
||||||
|
}),
|
||||||
|
])),
|
||||||
|
SizedBox(height: 5,),
|
||||||
|
Expanded(
|
||||||
|
child: ListView.builder(
|
||||||
|
itemCount: model.filterData.length,
|
||||||
|
itemBuilder: (context,index)=>InkWell(
|
||||||
|
onTap: () {
|
||||||
|
Navigator.of(context)
|
||||||
|
.pushNamed(
|
||||||
|
PATIENTS_PROFILE,
|
||||||
|
arguments: {
|
||||||
|
"patient": model.filterData[index],
|
||||||
|
"patientType": "1",
|
||||||
|
"isSearch": false,
|
||||||
|
"isInpatient":true,
|
||||||
|
"isDischargedPatient":true
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
child: Container(
|
||||||
|
width: double.maxFinite,
|
||||||
|
margin: EdgeInsets.all(8),
|
||||||
|
padding: EdgeInsets.only(left: 0, right: 5, bottom: 5, top: 5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(15),
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(left: 12.0),
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
Row(children: [
|
||||||
|
Container(
|
||||||
|
width: 170,
|
||||||
|
child: AppText(
|
||||||
|
(Helpers.capitalize(model
|
||||||
|
.filterData[index]
|
||||||
|
.firstName) +
|
||||||
|
" " +
|
||||||
|
Helpers.capitalize(model
|
||||||
|
.filterData[index]
|
||||||
|
.lastName)),
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
textOverflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
model.filterData[index].gender == 1
|
||||||
|
? Icon(
|
||||||
|
DoctorApp.male_2,
|
||||||
|
color: Colors.blue,
|
||||||
|
)
|
||||||
|
: Icon(
|
||||||
|
DoctorApp.female_1,
|
||||||
|
color: Colors.pink,
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
model.filterData[index].nationalityName != null
|
||||||
|
? model.filterData[index].nationalityName.trim()
|
||||||
|
: model.filterData[index].nationality != null
|
||||||
|
? model.filterData[index].nationality.trim()
|
||||||
|
: model.filterData[index].nationalityId != null
|
||||||
|
? model.filterData[index].nationalityId
|
||||||
|
: "",
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 14,
|
||||||
|
textOverflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
model.filterData[index]
|
||||||
|
.nationality !=
|
||||||
|
null ||
|
||||||
|
model.filterData[index]
|
||||||
|
.nationalityId !=
|
||||||
|
null
|
||||||
|
? ClipRRect(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(20.0),
|
||||||
|
child: Image.network(
|
||||||
|
model.filterData[index].nationalityFlagURL != null ?
|
||||||
|
model.filterData[index].nationalityFlagURL
|
||||||
|
: '',
|
||||||
|
height: 25,
|
||||||
|
width: 30,
|
||||||
|
errorBuilder:
|
||||||
|
(BuildContext context,
|
||||||
|
Object exception,
|
||||||
|
StackTrace stackTrace) {
|
||||||
|
return AppText(
|
||||||
|
'',
|
||||||
|
fontSize: 10,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
))
|
||||||
|
: SizedBox()
|
||||||
|
],
|
||||||
|
)
|
||||||
|
],
|
||||||
|
)),
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(left: 12.0),
|
||||||
|
child: Container(
|
||||||
|
width: 60,
|
||||||
|
height: 60,
|
||||||
|
child: Image.asset(
|
||||||
|
model.filterData[index].gender ==
|
||||||
|
1
|
||||||
|
? 'assets/images/male_avatar.png'
|
||||||
|
: 'assets/images/female_avatar.png',
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
width: 10,
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
child: RichText(
|
||||||
|
text: new TextSpan(
|
||||||
|
style: new TextStyle(
|
||||||
|
fontSize:
|
||||||
|
2.0 * SizeConfig.textMultiplier,
|
||||||
|
color: Colors.black),
|
||||||
|
children: <TextSpan>[
|
||||||
|
new TextSpan(
|
||||||
|
text: TranslationBase.of(context)
|
||||||
|
.fileNumber,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
fontFamily: 'Poppins')),
|
||||||
|
new TextSpan(
|
||||||
|
text: model
|
||||||
|
.filterData[index]
|
||||||
|
.patientId
|
||||||
|
.toString(),
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontSize: 15)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
child: RichText(
|
||||||
|
text: new TextSpan(
|
||||||
|
style: new TextStyle(
|
||||||
|
fontSize:
|
||||||
|
2.0 * SizeConfig.textMultiplier,
|
||||||
|
color: Colors.black,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
),
|
||||||
|
children: <TextSpan>[
|
||||||
|
new TextSpan(
|
||||||
|
text: model.filterData[index].admissionDate == null ? "" :
|
||||||
|
TranslationBase.of(context).admissionDate + " : ",
|
||||||
|
style: TextStyle(fontSize: 14)),
|
||||||
|
new TextSpan(
|
||||||
|
text: model.filterData[index].admissionDate == null ? ""
|
||||||
|
: "${DateUtils.convertDateFromServerFormat(model.filterData[index].admissionDate.toString(), 'yyyy-MM-dd')}",
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 15)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
child: RichText(
|
||||||
|
text: new TextSpan(
|
||||||
|
style: new TextStyle(
|
||||||
|
fontSize:
|
||||||
|
2.0 * SizeConfig.textMultiplier,
|
||||||
|
color: Colors.black,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
),
|
||||||
|
children: <TextSpan>[
|
||||||
|
new TextSpan(
|
||||||
|
text: model.filterData[index].dischargeDate == null ? ""
|
||||||
|
: "Discharge Date : ",
|
||||||
|
style: TextStyle(fontSize: 14)),
|
||||||
|
new TextSpan(
|
||||||
|
text: model.filterData[index].dischargeDate == null ? ""
|
||||||
|
: "${DateUtils.convertDateFromServerFormat(model.filterData[index].dischargeDate.toString(), 'yyyy-MM-dd')}",
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 15)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"${TranslationBase.of(context).numOfDays}: ",
|
||||||
|
fontSize: 14,fontWeight: FontWeight.w300,
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
"${DateTime.now().difference(DateUtils.getDateTimeFromServerFormat(model.filterData[index].admissionDate)).inDays + 1}",
|
||||||
|
fontSize: 15,
|
||||||
|
fontWeight: FontWeight.w700),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,592 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/DischargeReferralPatient.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/patient-referral-viewmodel.dart';
|
||||||
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import '../../routes.dart';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class ReferralDischargedPatientDetails extends StatelessWidget {
|
||||||
|
final DischargeReferralPatient referredPatient;
|
||||||
|
|
||||||
|
ReferralDischargedPatientDetails(this.referredPatient,);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BaseView<PatientReferralViewModel>(
|
||||||
|
builder: (_, model, w) => AppScaffold(
|
||||||
|
baseViewModel: model,
|
||||||
|
isShowAppBar: false,
|
||||||
|
body: Container(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
padding: EdgeInsets.only(left: 0, right: 5, bottom: 5, top: 5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
child: Container(
|
||||||
|
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
|
||||||
|
margin: EdgeInsets.only(top: 50),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
padding: EdgeInsets.only(left: 12.0),
|
||||||
|
child: Row(children: [
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.arrow_back_ios),
|
||||||
|
color: Colors.black, //Colors.black,
|
||||||
|
onPressed: () => Navigator.pop(context),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
(Helpers.capitalize(
|
||||||
|
"${referredPatient.firstName} ${referredPatient.lastName}")),
|
||||||
|
fontSize: SizeConfig.textMultiplier * 2.5,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
referredPatient.gender == 1
|
||||||
|
? Icon(
|
||||||
|
DoctorApp.male_2,
|
||||||
|
color: Colors.blue,
|
||||||
|
)
|
||||||
|
: Icon(
|
||||||
|
DoctorApp.female_1,
|
||||||
|
color: Colors.pink,
|
||||||
|
),
|
||||||
|
InkWell(
|
||||||
|
onTap: () {
|
||||||
|
PatiantInformtion patient =
|
||||||
|
model.getPatientFromDischargeReferralPatient(referredPatient);
|
||||||
|
Navigator.of(context)
|
||||||
|
.pushNamed(PATIENTS_PROFILE, arguments: {
|
||||||
|
"patient": patient,
|
||||||
|
"patientType": "1",
|
||||||
|
"isInpatient": true,
|
||||||
|
"arrivalType": "1",
|
||||||
|
"from": DateUtils.convertDateToFormat(DateTime.now(), 'yyyy-MM-dd'),
|
||||||
|
"to": DateUtils.convertDateToFormat(DateTime.now(), 'yyyy-MM-dd'),
|
||||||
|
});
|
||||||
|
},
|
||||||
|
child: Icon(
|
||||||
|
Icons.account_circle,
|
||||||
|
size: 25,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
]),
|
||||||
|
),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
//TODO from backend
|
||||||
|
// Padding(
|
||||||
|
// padding: EdgeInsets.only(left: 12.0),
|
||||||
|
// child: Container(
|
||||||
|
// width: 60,
|
||||||
|
// height: 60,
|
||||||
|
// child: Image.network(
|
||||||
|
// referredPatient.doctorImageURL
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
SizedBox(
|
||||||
|
width: 10,
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"${model.getReferralStatusNameByCode(referredPatient.referralStatus, context)}",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontSize: 1.9 * SizeConfig.textMultiplier,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
color: referredPatient.referralStatus == 1
|
||||||
|
? Color(0xffc4aa54)
|
||||||
|
: referredPatient.referralStatus == 46
|
||||||
|
? Colors.green[700]
|
||||||
|
: Colors.red[700],
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
DateUtils.getDayMonthYearDateFormatted(referredPatient.referralDate,),
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 2.0 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF28353E),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Admission Date: ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
DateUtils.convertDateFromServerFormat(
|
||||||
|
referredPatient.admissionDate,
|
||||||
|
"dd MMM,yyyy"),
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Discharge Date: ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
DateUtils.convertDateFromServerFormat(
|
||||||
|
referredPatient.dischargeDate,
|
||||||
|
"dd MMM,yyyy"),
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Number of Days: ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
DateUtils.convertDateFromServerFormat(
|
||||||
|
referredPatient.dischargeDate,
|
||||||
|
"dd MMM,yyyy"),
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Referring Doctor ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
referredPatient.referringDoctorName,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context)
|
||||||
|
.fileNumber,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize:
|
||||||
|
1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
"${referredPatient.patientID}",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"${TranslationBase.of(context).refClinic}: ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
referredPatient
|
||||||
|
.referringClinicDescription,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 1.8 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context)
|
||||||
|
.frequency +
|
||||||
|
": ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
referredPatient
|
||||||
|
.frequencyDescription,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 1.8 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context).priority +
|
||||||
|
": ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
referredPatient.priorityDescription,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Referring Clinic ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
referredPatient.referringClinicDescription,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Frequency ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
referredPatient.frequency.toString(),
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Priority ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
referredPatient.frequency.toString(),
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context)
|
||||||
|
.maxResponseTime +
|
||||||
|
": ",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF575757),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
DateUtils.convertDateFromServerFormat(
|
||||||
|
referredPatient.mAXResponseTime,
|
||||||
|
"dd MMM,yyyy"),
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize:
|
||||||
|
1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
margin:
|
||||||
|
EdgeInsets.only(left: 10, right: 0),
|
||||||
|
child: Image.asset(
|
||||||
|
'assets/images/patient/ic_ref_arrow_left.png',
|
||||||
|
height: 50,
|
||||||
|
width: 30,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
//TODO from backend
|
||||||
|
// Container(
|
||||||
|
// margin: EdgeInsets.only(
|
||||||
|
// left: 0,
|
||||||
|
// top: 25,
|
||||||
|
// right: 0,
|
||||||
|
// bottom: 0),
|
||||||
|
// padding: EdgeInsets.only(
|
||||||
|
// left: 4.0, right: 4.0),
|
||||||
|
// child: referredPatient.doctorImageURL !=
|
||||||
|
// null
|
||||||
|
// ? ClipRRect(
|
||||||
|
// borderRadius:
|
||||||
|
// BorderRadius.circular(20.0),
|
||||||
|
// child: Image.network(
|
||||||
|
// referredPatient.doctorImageURL,
|
||||||
|
// height: 25,
|
||||||
|
// width: 30,
|
||||||
|
// errorBuilder:
|
||||||
|
// (BuildContext context,
|
||||||
|
// Object exception,
|
||||||
|
// StackTrace stackTrace) {
|
||||||
|
// return Text('No Image');
|
||||||
|
// },
|
||||||
|
// ))
|
||||||
|
// : Container(
|
||||||
|
// child: Image.asset(
|
||||||
|
// referredPatient.gender == 1
|
||||||
|
// ? 'assets/images/male_avatar.png'
|
||||||
|
// : 'assets/images/female_avatar.png',
|
||||||
|
// fit: BoxFit.cover,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
Expanded(
|
||||||
|
flex: 4,
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.only(
|
||||||
|
left: 10,
|
||||||
|
top: 30,
|
||||||
|
right: 10,
|
||||||
|
bottom: 0),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"Dr ${referredPatient.referringDoctorName}",
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w800,
|
||||||
|
fontSize: 1.5 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
referredPatient
|
||||||
|
.referringClinicDescription,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 1.3 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
shape: BoxShape.rectangle,
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||||
|
border: Border.fromBorderSide(BorderSide(
|
||||||
|
color: Colors.white,
|
||||||
|
width: 1.0,
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context).remarks,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 2.4 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
referredPatient.referringDoctorRemarks,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 8,
|
||||||
|
),
|
||||||
|
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,97 @@
|
|||||||
|
import 'package:doctor_app_flutter/core/viewModel/patient-referral-viewmodel.dart';
|
||||||
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/patients/patient-referral-item-widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/transitions/fade_page.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
|
|
||||||
|
import 'ReferralDischargedPatientDetails.dart';
|
||||||
|
|
||||||
|
class ReferralDischargedPatientPage extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_ReferralDischargedPatientPageState createState() => _ReferralDischargedPatientPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ReferralDischargedPatientPageState extends State<ReferralDischargedPatientPage> {
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BaseView<PatientReferralViewModel>(
|
||||||
|
onModelReady: (model) => model.gtMyDischargeReferralPatient(),
|
||||||
|
builder: (_, model, w) => AppScaffold(
|
||||||
|
appBarTitle: 'Referral Discharged ',
|
||||||
|
backgroundColor: Colors.grey[200],
|
||||||
|
isShowAppBar: true,
|
||||||
|
baseViewModel: model,
|
||||||
|
body: model.myDischargeReferralPatient.isEmpty?Center(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
SizedBox(
|
||||||
|
height: 100,
|
||||||
|
),
|
||||||
|
Image.asset('assets/images/no-data.png'),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: AppText(
|
||||||
|
'No Discharged Patient',
|
||||||
|
color: Theme.of(context).errorColor,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
):Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
SizedBox(height: 5,),
|
||||||
|
Expanded(
|
||||||
|
child: ListView.builder(
|
||||||
|
itemCount: model.myDischargeReferralPatient.length,
|
||||||
|
itemBuilder: (context,index)=>InkWell(
|
||||||
|
onTap: () {
|
||||||
|
Navigator.push(
|
||||||
|
context,
|
||||||
|
FadePage(
|
||||||
|
page: ReferralDischargedPatientDetails(model.myDischargeReferralPatient[index]),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
child: PatientReferralItemWidget(
|
||||||
|
referralStatus: model.getReferralStatusNameByCode(model.myDischargeReferralPatient[index].referralStatus,context),
|
||||||
|
referralStatusCode: model.myDischargeReferralPatient[index].referralStatus,
|
||||||
|
patientName: model.myDischargeReferralPatient[index].firstName+" "+model.myDischargeReferralPatient[index].lastName,
|
||||||
|
patientGender: model.myDischargeReferralPatient[index].gender,
|
||||||
|
referredDate: DateUtils.getDayMonthYearDateFormatted(model.myDischargeReferralPatient[index].referralDate),
|
||||||
|
referredTime: DateUtils.getTimeHHMMA(model.myDischargeReferralPatient[index].referralDate),
|
||||||
|
patientID: "${model.myDischargeReferralPatient[index].patientID}",
|
||||||
|
isSameBranch: false,
|
||||||
|
isReferral: true,
|
||||||
|
isReferralClinic: true,
|
||||||
|
referralClinic:"${model.myDischargeReferralPatient[index].referringClinicDescription}",
|
||||||
|
remark: model.myDischargeReferralPatient[index].referringDoctorRemarks,
|
||||||
|
nationality: model.myDischargeReferralPatient[index].nationalityName,
|
||||||
|
nationalityFlag: '',//model.myDischargeReferralPatient[index].nationalityFlagURL, //TODO From backend
|
||||||
|
doctorAvatar: '',//model.myDischargeReferralPatient[index].doctorImageURL, //TODO From backend
|
||||||
|
referralDoctorName: model.myDischargeReferralPatient[index].referringDoctorName,
|
||||||
|
clinicDescription: model.myDischargeReferralPatient[index].referringClinicDescription,
|
||||||
|
infoIcon: Icon(FontAwesomeIcons.arrowRight,
|
||||||
|
size: 25, color: Colors.black),
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue