Merge branch 'master' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into elham
commit
d4ba01de5b
@ -0,0 +1,80 @@
|
||||
class ClinicByProjectIdRequest {
|
||||
|
||||
/*
|
||||
*@author: Ibrahim Albitar
|
||||
*@Date:03/06/2020
|
||||
*@param:
|
||||
*@return:
|
||||
*@desc: ClinicByProjectIdRequest
|
||||
*/
|
||||
|
||||
int projectID;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
int patientTypeID;
|
||||
/*
|
||||
{
|
||||
"ProjectID": 21,
|
||||
"LanguageID": 2,
|
||||
"stamp": "2020-06-03T11:18:19.979Z",
|
||||
"IPAdress": "11.11.11.11",
|
||||
"VersionID": 1.2,
|
||||
"Channel": 9,
|
||||
"TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
|
||||
"SessionID": "JBXRsDl37L",
|
||||
"IsLoginForDoctorApp": true,
|
||||
"PatientOutSA": false,
|
||||
"PatientTypeID": 1
|
||||
}
|
||||
*/
|
||||
|
||||
ClinicByProjectIdRequest(
|
||||
{this.projectID,
|
||||
this.languageID = 2,
|
||||
this.stamp = "2020-06-03T11:18:19.979Z",
|
||||
this.iPAdress = "11.11.11.11",
|
||||
this.versionID = 1.2,
|
||||
this.channel = 9,
|
||||
this.tokenID,
|
||||
this.sessionID = "JBXRsDl37L",
|
||||
this.isLoginForDoctorApp = true,
|
||||
this.patientOutSA = false,
|
||||
this.patientTypeID = 1});
|
||||
|
||||
ClinicByProjectIdRequest.fromJson(Map<String, dynamic> json) {
|
||||
projectID = json['ProjectID'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ProjectID'] = this.projectID;
|
||||
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;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
class DoctorsByClinicIdRequest {
|
||||
|
||||
/*
|
||||
*@author: Ibrahim Albitar
|
||||
*@Date:03/06/2020
|
||||
*@param:
|
||||
*@return:
|
||||
*@desc: DoctorsByClinicIdRequest
|
||||
*/
|
||||
|
||||
int projectID;
|
||||
String clinicID;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
int patientTypeID;
|
||||
|
||||
/*
|
||||
{
|
||||
"ProjectID": 21,
|
||||
"ClinicID": "0",
|
||||
"LanguageID": 2,
|
||||
"stamp": "2020-06-03T11:22:04.702Z",
|
||||
"IPAdress": "11.11.11.11",
|
||||
"VersionID": 1.2,
|
||||
"Channel": 9,
|
||||
"TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
|
||||
"SessionID": "JBXRsDl37L",
|
||||
"IsLoginForDoctorApp": true,
|
||||
"PatientOutSA": false,
|
||||
"PatientTypeID": 1
|
||||
}
|
||||
*/
|
||||
|
||||
DoctorsByClinicIdRequest(
|
||||
{this.projectID,
|
||||
this.clinicID,
|
||||
this.languageID = 2,
|
||||
this.stamp = "2020-06-03T11:22:04.702Z",
|
||||
this.iPAdress = "11.11.11.11",
|
||||
this.versionID = 1.2,
|
||||
this.channel = 9,
|
||||
this.tokenID,
|
||||
this.sessionID = "JBXRsDl37L",
|
||||
this.isLoginForDoctorApp = true,
|
||||
this.patientOutSA = false,
|
||||
this.patientTypeID = 1});
|
||||
|
||||
DoctorsByClinicIdRequest.fromJson(Map<String, dynamic> json) {
|
||||
projectID = json['ProjectID'];
|
||||
clinicID = json['ClinicID'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['ClinicID'] = this.clinicID;
|
||||
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;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
class STPReferralFrequencyRequest {
|
||||
|
||||
/*
|
||||
*@author: Ibrahim Albitar
|
||||
*@Date:03/06/2020
|
||||
*@param:
|
||||
*@return:
|
||||
*@desc:
|
||||
*/
|
||||
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
int patientTypeID;
|
||||
/*
|
||||
{
|
||||
"LanguageID": 2,
|
||||
"stamp": "2020-06-03T11:18:19.986Z",
|
||||
"IPAdress": "11.11.11.11",
|
||||
"VersionID": 1.2,
|
||||
"Channel": 9,
|
||||
"TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
|
||||
"SessionID": "JBXRsDl37L",
|
||||
"IsLoginForDoctorApp": true,
|
||||
"PatientOutSA": false,
|
||||
"PatientTypeID": 1
|
||||
}
|
||||
*/
|
||||
|
||||
STPReferralFrequencyRequest(
|
||||
{this.languageID = 2,
|
||||
this.stamp = "2020-06-03T11:18:19.986Z",
|
||||
this.iPAdress = "11.11.11.11",
|
||||
this.versionID = 1.2,
|
||||
this.channel = 9,
|
||||
this.tokenID,
|
||||
this.sessionID = "JBXRsDl37L",
|
||||
this.isLoginForDoctorApp = true,
|
||||
this.patientOutSA = false,
|
||||
this.patientTypeID = 1});
|
||||
|
||||
STPReferralFrequencyRequest.fromJson(Map<String, dynamic> json) {
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
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;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
class ReferToDoctorRequest {
|
||||
|
||||
/*
|
||||
*@author: Ibrahim Albitar
|
||||
*@Date:03/06/2020
|
||||
*@param:
|
||||
*@return:
|
||||
*@desc: ReferToDoctor
|
||||
*/
|
||||
|
||||
int projectID;
|
||||
int admissionNo;
|
||||
String roomID;
|
||||
String referralClinic;
|
||||
String referralDoctor;
|
||||
int createdBy;
|
||||
int editedBy;
|
||||
int patientID;
|
||||
int patientTypeID;
|
||||
int referringClinic;
|
||||
int referringDoctor;
|
||||
String referringDoctorRemarks;
|
||||
String priority;
|
||||
String frequency;
|
||||
String extension;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
|
||||
|
||||
/*
|
||||
{
|
||||
"ProjectID": 21,
|
||||
"AdmissionNo": 2020005477,
|
||||
"RoomID": "ISO-6",
|
||||
"ReferralClinic": "36",
|
||||
"ReferralDoctor": "230893",
|
||||
"CreatedBy": 121814,
|
||||
"EditedBy": 121814,
|
||||
"PatientID": 3349491,
|
||||
"PatientTypeID": 1,
|
||||
"ReferringClinic": 14,
|
||||
"ReferringDoctor": 121814,
|
||||
"ReferringDoctorRemarks": "dfcdfdfdf",
|
||||
"Priority": "1",
|
||||
"Frequency": "1",
|
||||
"Extension": "eeee",
|
||||
"LanguageID": 2,
|
||||
"stamp": "2020-06-03T11:26:42.358Z",
|
||||
"IPAdress": "11.11.11.11",
|
||||
"VersionID": 1.2,
|
||||
"Channel": 9,
|
||||
"TokenID": "gyIQFH4WWEm2Tq7xjYMjsg==",
|
||||
"SessionID": "JBXRsDl37L",
|
||||
"IsLoginForDoctorApp": true,
|
||||
"PatientOutSA": false
|
||||
}
|
||||
*/
|
||||
|
||||
ReferToDoctorRequest(
|
||||
{this.projectID,
|
||||
this.admissionNo,
|
||||
this.roomID = "ISO-6",
|
||||
this.referralClinic,
|
||||
this.referralDoctor ,
|
||||
this.createdBy,
|
||||
this.editedBy ,
|
||||
this.patientID,
|
||||
this.patientTypeID = 1,
|
||||
this.referringClinic,
|
||||
this.referringDoctor,
|
||||
this.referringDoctorRemarks,
|
||||
this.priority ,
|
||||
this.frequency,
|
||||
this.extension,
|
||||
this.languageID = 2,
|
||||
this.stamp = "2020-06-03T11:26:42.358Z",
|
||||
this.iPAdress = "11.11.11.11",
|
||||
this.versionID = 1.2,
|
||||
this.channel = 9,
|
||||
this.tokenID,
|
||||
this.sessionID = "JBXRsDl37L",
|
||||
this.isLoginForDoctorApp = true,
|
||||
this.patientOutSA = false});
|
||||
|
||||
ReferToDoctorRequest.fromJson(Map<String, dynamic> json) {
|
||||
projectID = json['ProjectID'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
roomID = json['RoomID'];
|
||||
referralClinic = json['ReferralClinic'];
|
||||
referralDoctor = json['ReferralDoctor'];
|
||||
createdBy = json['CreatedBy'];
|
||||
editedBy = json['EditedBy'];
|
||||
patientID = json['PatientID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
referringClinic = json['ReferringClinic'];
|
||||
referringDoctor = json['ReferringDoctor'];
|
||||
referringDoctorRemarks = json['ReferringDoctorRemarks'];
|
||||
priority = json['Priority'];
|
||||
frequency = json['Frequency'];
|
||||
extension = json['Extension'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['RoomID'] = this.roomID;
|
||||
data['ReferralClinic'] = this.referralClinic;
|
||||
data['ReferralDoctor'] = this.referralDoctor;
|
||||
data['CreatedBy'] = this.createdBy;
|
||||
data['EditedBy'] = this.editedBy;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
data['ReferringClinic'] = this.referringClinic;
|
||||
data['ReferringDoctor'] = this.referringDoctor;
|
||||
data['ReferringDoctorRemarks'] = this.referringDoctorRemarks;
|
||||
data['Priority'] = this.priority;
|
||||
data['Frequency'] = this.frequency;
|
||||
data['Extension'] = this.extension;
|
||||
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;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,140 @@
|
||||
class PrescriptionReport {
|
||||
String address;
|
||||
int appointmentNo;
|
||||
String clinic;
|
||||
String companyName;
|
||||
int days;
|
||||
String doctorName;
|
||||
int doseDailyQuantity;
|
||||
String frequency;
|
||||
int frequencyNumber;
|
||||
Null imageExtension;
|
||||
Null imageSRCUrl;
|
||||
Null imageString;
|
||||
Null imageThumbUrl;
|
||||
String isCovered;
|
||||
String itemDescription;
|
||||
int itemID;
|
||||
String orderDate;
|
||||
int patientID;
|
||||
String patientName;
|
||||
String phoneOffice1;
|
||||
Null prescriptionQR;
|
||||
int prescriptionTimes;
|
||||
Null productImage;
|
||||
String productImageBase64;
|
||||
String productImageString;
|
||||
int projectID;
|
||||
String projectName;
|
||||
String remarks;
|
||||
String route;
|
||||
String sKU;
|
||||
int scaleOffset;
|
||||
String startDate;
|
||||
|
||||
PrescriptionReport(
|
||||
{this.address,
|
||||
this.appointmentNo,
|
||||
this.clinic,
|
||||
this.companyName,
|
||||
this.days,
|
||||
this.doctorName,
|
||||
this.doseDailyQuantity,
|
||||
this.frequency,
|
||||
this.frequencyNumber,
|
||||
this.imageExtension,
|
||||
this.imageSRCUrl,
|
||||
this.imageString,
|
||||
this.imageThumbUrl,
|
||||
this.isCovered,
|
||||
this.itemDescription,
|
||||
this.itemID,
|
||||
this.orderDate,
|
||||
this.patientID,
|
||||
this.patientName,
|
||||
this.phoneOffice1,
|
||||
this.prescriptionQR,
|
||||
this.prescriptionTimes,
|
||||
this.productImage,
|
||||
this.productImageBase64,
|
||||
this.productImageString,
|
||||
this.projectID,
|
||||
this.projectName,
|
||||
this.remarks,
|
||||
this.route,
|
||||
this.sKU,
|
||||
this.scaleOffset,
|
||||
this.startDate});
|
||||
|
||||
PrescriptionReport.fromJson(Map<String, dynamic> json) {
|
||||
address = json['Address'];
|
||||
appointmentNo = json['AppointmentNo'];
|
||||
clinic = json['Clinic'];
|
||||
companyName = json['CompanyName'];
|
||||
days = json['Days'];
|
||||
doctorName = json['DoctorName'];
|
||||
doseDailyQuantity = json['DoseDailyQuantity'];
|
||||
frequency = json['Frequency'];
|
||||
frequencyNumber = json['FrequencyNumber'];
|
||||
imageExtension = json['ImageExtension'];
|
||||
imageSRCUrl = json['ImageSRCUrl'];
|
||||
imageString = json['ImageString'];
|
||||
imageThumbUrl = json['ImageThumbUrl'];
|
||||
isCovered = json['IsCovered'];
|
||||
itemDescription = json['ItemDescription'];
|
||||
itemID = json['ItemID'];
|
||||
orderDate = json['OrderDate'];
|
||||
patientID = json['PatientID'];
|
||||
patientName = json['PatientName'];
|
||||
phoneOffice1 = json['PhoneOffice1'];
|
||||
prescriptionQR = json['PrescriptionQR'];
|
||||
prescriptionTimes = json['PrescriptionTimes'];
|
||||
productImage = json['ProductImage'];
|
||||
productImageBase64 = json['ProductImageBase64'];
|
||||
productImageString = json['ProductImageString'];
|
||||
projectID = json['ProjectID'];
|
||||
projectName = json['ProjectName'];
|
||||
remarks = json['Remarks'];
|
||||
route = json['Route'];
|
||||
sKU = json['SKU'];
|
||||
scaleOffset = json['ScaleOffset'];
|
||||
startDate = json['StartDate'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Address'] = this.address;
|
||||
data['AppointmentNo'] = this.appointmentNo;
|
||||
data['Clinic'] = this.clinic;
|
||||
data['CompanyName'] = this.companyName;
|
||||
data['Days'] = this.days;
|
||||
data['DoctorName'] = this.doctorName;
|
||||
data['DoseDailyQuantity'] = this.doseDailyQuantity;
|
||||
data['Frequency'] = this.frequency;
|
||||
data['FrequencyNumber'] = this.frequencyNumber;
|
||||
data['ImageExtension'] = this.imageExtension;
|
||||
data['ImageSRCUrl'] = this.imageSRCUrl;
|
||||
data['ImageString'] = this.imageString;
|
||||
data['ImageThumbUrl'] = this.imageThumbUrl;
|
||||
data['IsCovered'] = this.isCovered;
|
||||
data['ItemDescription'] = this.itemDescription;
|
||||
data['ItemID'] = this.itemID;
|
||||
data['OrderDate'] = this.orderDate;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientName'] = this.patientName;
|
||||
data['PhoneOffice1'] = this.phoneOffice1;
|
||||
data['PrescriptionQR'] = this.prescriptionQR;
|
||||
data['PrescriptionTimes'] = this.prescriptionTimes;
|
||||
data['ProductImage'] = this.productImage;
|
||||
data['ProductImageBase64'] = this.productImageBase64;
|
||||
data['ProductImageString'] = this.productImageString;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['ProjectName'] = this.projectName;
|
||||
data['Remarks'] = this.remarks;
|
||||
data['Route'] = this.route;
|
||||
data['SKU'] = this.sKU;
|
||||
data['ScaleOffset'] = this.scaleOffset;
|
||||
data['StartDate'] = this.startDate;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
class RequestPrescriptionReport {
|
||||
int projectID;
|
||||
int appointmentNo;
|
||||
int episodeID;
|
||||
String setupID;
|
||||
int patientTypeID;
|
||||
int languageID;
|
||||
String stamp;
|
||||
String iPAdress;
|
||||
double versionID;
|
||||
int channel;
|
||||
String tokenID;
|
||||
String sessionID;
|
||||
bool isLoginForDoctorApp;
|
||||
bool patientOutSA;
|
||||
|
||||
RequestPrescriptionReport(
|
||||
{this.projectID,
|
||||
this.appointmentNo,
|
||||
this.episodeID,
|
||||
this.setupID,
|
||||
this.patientTypeID,
|
||||
this.languageID,
|
||||
this.stamp,
|
||||
this.iPAdress,
|
||||
this.versionID,
|
||||
this.channel,
|
||||
this.tokenID,
|
||||
this.sessionID,
|
||||
this.isLoginForDoctorApp,
|
||||
this.patientOutSA});
|
||||
|
||||
RequestPrescriptionReport.fromJson(Map<String, dynamic> json) {
|
||||
projectID = json['ProjectID'];
|
||||
appointmentNo = json['AppointmentNo'];
|
||||
episodeID = json['EpisodeID'];
|
||||
setupID = json['SetupID'];
|
||||
patientTypeID = json['PatientTypeID'];
|
||||
languageID = json['LanguageID'];
|
||||
stamp = json['stamp'];
|
||||
iPAdress = json['IPAdress'];
|
||||
versionID = json['VersionID'];
|
||||
channel = json['Channel'];
|
||||
tokenID = json['TokenID'];
|
||||
sessionID = json['SessionID'];
|
||||
isLoginForDoctorApp = json['IsLoginForDoctorApp'];
|
||||
patientOutSA = json['PatientOutSA'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['AppointmentNo'] = this.appointmentNo;
|
||||
data['EpisodeID'] = this.episodeID;
|
||||
data['SetupID'] = this.setupID;
|
||||
data['PatientTypeID'] = this.patientTypeID;
|
||||
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;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
import 'package:doctor_app_flutter/models/patient/prescription_res_model.dart';
|
||||
import 'package:doctor_app_flutter/models/request_prescription_report.dart';
|
||||
import 'package:doctor_app_flutter/providers/patients_provider.dart';
|
||||
import 'package:doctor_app_flutter/screens/patients/profile/prescriptions/out_patient_prescription_details_item.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/card_with_bgNew_widget.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/dr_app_circular_progress_Indeicator.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class OutPatientPrescriptionDetailsScreen extends StatefulWidget {
|
||||
final PrescriptionResModel prescriptionResModel;
|
||||
|
||||
OutPatientPrescriptionDetailsScreen({Key key, this.prescriptionResModel});
|
||||
|
||||
@override
|
||||
_OutPatientPrescriptionDetailsScreenState createState() =>
|
||||
_OutPatientPrescriptionDetailsScreenState();
|
||||
}
|
||||
|
||||
class _OutPatientPrescriptionDetailsScreenState
|
||||
extends State<OutPatientPrescriptionDetailsScreen> {
|
||||
bool _isInit = true;
|
||||
PatientsProvider patientsProvider;
|
||||
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
super.didChangeDependencies();
|
||||
if (_isInit) {
|
||||
patientsProvider = Provider.of<PatientsProvider>(context);
|
||||
|
||||
RequestPrescriptionReport prescriptionReqModel =
|
||||
RequestPrescriptionReport(
|
||||
appointmentNo: widget.prescriptionResModel.appointmentNo,
|
||||
episodeID: widget.prescriptionResModel.episodeID,
|
||||
setupID: widget.prescriptionResModel.setupID,
|
||||
patientTypeID: widget.prescriptionResModel.patientID);
|
||||
patientsProvider.getPrescriptionReport(prescriptionReqModel.toJson());
|
||||
}
|
||||
_isInit = false;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AppScaffold(
|
||||
appBarTitle: 'Prescription Details',
|
||||
body: patientsProvider.isLoading
|
||||
? DrAppCircularProgressIndeicator()
|
||||
: patientsProvider.isError
|
||||
? DrAppEmbeddedError(error: patientsProvider.error)
|
||||
: CardWithBgWidgetNew(
|
||||
widget: ListView.builder(
|
||||
itemCount: patientsProvider.prescriptionReport.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return OutPatientPrescriptionDetailsItem(
|
||||
prescriptionReport:
|
||||
patientsProvider.prescriptionReport[index],
|
||||
);
|
||||
}),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,138 @@
|
||||
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||
import 'package:doctor_app_flutter/models/prescription_report.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class OutPatientPrescriptionDetailsItem extends StatefulWidget {
|
||||
final PrescriptionReport prescriptionReport;
|
||||
|
||||
OutPatientPrescriptionDetailsItem({Key key, this.prescriptionReport});
|
||||
|
||||
@override
|
||||
_OutPatientPrescriptionDetailsItemState createState() =>
|
||||
_OutPatientPrescriptionDetailsItemState();
|
||||
}
|
||||
|
||||
class _OutPatientPrescriptionDetailsItemState
|
||||
extends State<OutPatientPrescriptionDetailsItem> {
|
||||
bool _showDetails = false;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Row(
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
flex: 5,
|
||||
child: AppText(
|
||||
'${widget.prescriptionReport.itemDescription} ',
|
||||
fontSize: 2.5 * SizeConfig.textMultiplier,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
flex: 1,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
_showDetails = !_showDetails;
|
||||
});
|
||||
},
|
||||
child: Icon(_showDetails
|
||||
? Icons.keyboard_arrow_up
|
||||
: Icons.keyboard_arrow_down)),
|
||||
),
|
||||
],
|
||||
),
|
||||
!_showDetails
|
||||
? Container()
|
||||
: AnimatedContainer(
|
||||
duration: Duration(milliseconds: 200),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
SizedBox(
|
||||
height: 5,
|
||||
),
|
||||
Divider(
|
||||
color: Color(0xFF000000),
|
||||
height: 0.5,
|
||||
),
|
||||
Table(
|
||||
border: TableBorder.symmetric(
|
||||
inside: BorderSide(width: 0.5),
|
||||
),
|
||||
children: [
|
||||
buildTableRow(
|
||||
key: 'Route',
|
||||
des: widget.prescriptionReport.route),
|
||||
buildTableRow(
|
||||
key: 'Frequency Timing',
|
||||
des: widget.prescriptionReport.frequency),
|
||||
buildTableRow(key: 'Insurance Covered', des: ''),
|
||||
buildTableRow(
|
||||
key: 'Duration Days',
|
||||
des: widget.prescriptionReport.days),
|
||||
buildTableRow(
|
||||
key: 'IDoctor Remarks',
|
||||
des: widget.prescriptionReport.remarks),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
color: Color(0xFF000000),
|
||||
height: 0.5,
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
TableRow buildTableRow({des, key}) {
|
||||
print('$key: $des');
|
||||
return TableRow(children: [
|
||||
Container(
|
||||
margin: EdgeInsets.all(2.5),
|
||||
padding: EdgeInsets.all(5),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
child: Container(
|
||||
child: AppText(
|
||||
key,
|
||||
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||
fontWeight: FontWeight.bold,
|
||||
textAlign: TextAlign.start,
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
margin:
|
||||
EdgeInsets.only(left: 4, top: 2.5, right: 2.5, bottom: 2.5),
|
||||
padding: EdgeInsets.all(5),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
AppText(
|
||||
'${des}',
|
||||
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||
fontWeight: FontWeight.w300,
|
||||
textAlign: TextAlign.center,
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
]);
|
||||
}
|
||||
}
|
@ -0,0 +1,267 @@
|
||||
import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../../../config/size_config.dart';
|
||||
import '../../../providers/patients_provider.dart';
|
||||
import '../../../util/dr_app_shared_pref.dart';
|
||||
import '../../../widgets/shared/app_scaffold_widget.dart';
|
||||
import '../../../widgets/shared/app_texts_widget.dart';
|
||||
import '../../../widgets/shared/dr_app_circular_progress_Indeicator.dart';
|
||||
|
||||
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
||||
|
||||
/*
|
||||
*@author: ibrahim albitar
|
||||
*@Date:4/6/2020
|
||||
*@param:
|
||||
*@return:
|
||||
*@desc:
|
||||
*/
|
||||
|
||||
class ReferPatientScreen extends StatefulWidget {
|
||||
@override
|
||||
_ReferPatientState createState() => _ReferPatientState();
|
||||
}
|
||||
|
||||
class _ReferPatientState extends State<ReferPatientScreen> {
|
||||
PatientsProvider patientsProv;
|
||||
var doctorsList;
|
||||
var clinicsList;
|
||||
var referralFrequancyList;
|
||||
final _controller = TextEditingController();
|
||||
var _isInit = true;
|
||||
|
||||
String _selectedClinic;
|
||||
String _selectedDoctor;
|
||||
String _selectedReferralFrequancy;
|
||||
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
super.didChangeDependencies();
|
||||
if (_isInit) {
|
||||
patientsProv = Provider.of<PatientsProvider>(context);
|
||||
patientsProv.getClinicsList();
|
||||
patientsProv.getReferralFrequancyList();
|
||||
setState(() {
|
||||
clinicsList = patientsProv.clinicsList;
|
||||
referralFrequancyList = patientsProv.referalFrequancyList;
|
||||
});
|
||||
}
|
||||
_isInit = false;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AppScaffold(
|
||||
appBarTitle: "Progress Note",
|
||||
body: patientsProv.isLoading
|
||||
? DrAppCircularProgressIndeicator()
|
||||
: patientsProv.isError
|
||||
? DrAppEmbeddedError(error: patientsProv.error)
|
||||
: clinicsList == null
|
||||
? DrAppEmbeddedError(
|
||||
error: 'You don\'t have any Progress Note')
|
||||
: Column(
|
||||
children: <Widget>[
|
||||
RoundedContainer(
|
||||
margin: 0,
|
||||
showBorder: true,
|
||||
raduis: 30,
|
||||
borderColor: Color(0xff707070),
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: SizeConfig.widthMultiplier * 0.9,
|
||||
bottom: SizeConfig.widthMultiplier * 0.9,
|
||||
right: SizeConfig.widthMultiplier * 3,
|
||||
left: SizeConfig.widthMultiplier * 3),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
// add Expanded to have your dropdown button fill remaining space
|
||||
child: DropdownButton(
|
||||
isExpanded: true,
|
||||
value: _selectedClinic,
|
||||
iconSize: 40,
|
||||
elevation: 16,
|
||||
selectedItemBuilder:
|
||||
(BuildContext context) {
|
||||
return patientsProv
|
||||
.getClinicNameList()
|
||||
.map((item) {
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: <Widget>[
|
||||
AppText(
|
||||
item,
|
||||
fontSize:
|
||||
SizeConfig.textMultiplier *
|
||||
2.1,
|
||||
),
|
||||
],
|
||||
);
|
||||
}).toList();
|
||||
},
|
||||
onChanged: (newValue) => {
|
||||
setState(() {
|
||||
_selectedDoctor = null;
|
||||
_selectedClinic = newValue;
|
||||
var clinicInfo =
|
||||
clinicsList.singleWhere((i) =>
|
||||
i['ClinicDescription']
|
||||
.toString()
|
||||
.contains(_selectedClinic));
|
||||
var clinicId =
|
||||
clinicInfo['ClinicID'].toString();
|
||||
patientsProv.getDoctorsList(clinicId);
|
||||
})
|
||||
},
|
||||
items: patientsProv
|
||||
.getClinicNameList()
|
||||
.map((item) {
|
||||
return DropdownMenuItem(
|
||||
value: item.toString(),
|
||||
child: Text(
|
||||
item,
|
||||
textAlign: TextAlign.end,
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
//--------------------------------------------------------------------//
|
||||
RoundedContainer(
|
||||
margin: 0,
|
||||
showBorder: true,
|
||||
raduis: 30,
|
||||
borderColor: Color(0xff707070),
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: SizeConfig.widthMultiplier * 0.9,
|
||||
bottom: SizeConfig.widthMultiplier * 0.9,
|
||||
right: SizeConfig.widthMultiplier * 3,
|
||||
left: SizeConfig.widthMultiplier * 3),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
// add Expanded to have your dropdown button fill remaining space
|
||||
child: DropdownButton(
|
||||
isExpanded: true,
|
||||
value: _selectedDoctor,
|
||||
iconSize: 40,
|
||||
elevation: 16,
|
||||
selectedItemBuilder:
|
||||
(BuildContext context) {
|
||||
return patientsProv
|
||||
.getDoctorNameList()
|
||||
.map((item) {
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: <Widget>[
|
||||
AppText(
|
||||
item,
|
||||
fontSize:
|
||||
SizeConfig.textMultiplier *
|
||||
2.1,
|
||||
),
|
||||
],
|
||||
);
|
||||
}).toList();
|
||||
},
|
||||
onChanged: (newValue) => {
|
||||
setState(() {
|
||||
_selectedDoctor = newValue;
|
||||
})
|
||||
},
|
||||
items: patientsProv
|
||||
.getDoctorNameList()
|
||||
.map((item) {
|
||||
return DropdownMenuItem(
|
||||
value: item.toString(),
|
||||
child: Text(
|
||||
item,
|
||||
textAlign: TextAlign.end,
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
), //-----------------------------///
|
||||
RoundedContainer(
|
||||
margin: 0,
|
||||
showBorder: true,
|
||||
raduis: 30,
|
||||
borderColor: Color(0xff707070),
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: SizeConfig.widthMultiplier * 0.9,
|
||||
bottom: SizeConfig.widthMultiplier * 0.9,
|
||||
right: SizeConfig.widthMultiplier * 3,
|
||||
left: SizeConfig.widthMultiplier * 3),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
// add Expanded to have your dropdown button fill remaining space
|
||||
child: DropdownButton(
|
||||
isExpanded: true,
|
||||
value: _selectedReferralFrequancy,
|
||||
iconSize: 40,
|
||||
elevation: 16,
|
||||
selectedItemBuilder:
|
||||
(BuildContext context) {
|
||||
return patientsProv
|
||||
.getReferralNamesList()
|
||||
.map((item) {
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: <Widget>[
|
||||
AppText(
|
||||
item,
|
||||
fontSize:
|
||||
SizeConfig.textMultiplier *
|
||||
2.1,
|
||||
),
|
||||
],
|
||||
);
|
||||
}).toList();
|
||||
},
|
||||
onChanged: (newValue) => {
|
||||
setState(() {
|
||||
_selectedReferralFrequancy = newValue;
|
||||
})
|
||||
},
|
||||
items: patientsProv
|
||||
.getReferralNamesList()
|
||||
.map((item) {
|
||||
return DropdownMenuItem(
|
||||
value: item.toString(),
|
||||
child: Text(
|
||||
item,
|
||||
textAlign: TextAlign.end,
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue