admission card values updated

Dev_3.3_InPatient_CR
haroon amjad 2 years ago
parent 6310c1c615
commit 7389010f91

@ -19,28 +19,34 @@ class GetAdmissionInfoResponseModel {
int status; int status;
String statusDesc; String statusDesc;
String statusDescN; String statusDescN;
String clinicName;
String doctorName;
String projectName;
GetAdmissionInfoResponseModel( GetAdmissionInfoResponseModel(
{this.setupID, {this.setupID,
this.projectID, this.projectID,
this.admissionNo, this.admissionNo,
this.admissionDate, this.admissionDate,
this.admissionRequestNo, this.admissionRequestNo,
this.admissionType, this.admissionType,
this.patientType, this.patientType,
this.patientID, this.patientID,
this.clinicID, this.clinicID,
this.doctorID, this.doctorID,
this.admittingClinicID, this.admittingClinicID,
this.admittingDoctorID, this.admittingDoctorID,
this.categoryID, this.categoryID,
this.roomID, this.roomID,
this.bedID, this.bedID,
this.dischargeDate, this.dischargeDate,
this.approvalNo, this.approvalNo,
this.status, this.status,
this.statusDesc, this.statusDesc,
this.statusDescN}); this.statusDescN,
this.clinicName,
this.doctorName,
this.projectName});
GetAdmissionInfoResponseModel.fromJson(Map<String, dynamic> json) { GetAdmissionInfoResponseModel.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
@ -63,6 +69,9 @@ class GetAdmissionInfoResponseModel {
status = json['Status']; status = json['Status'];
statusDesc = json['StatusDesc']; statusDesc = json['StatusDesc'];
statusDescN = json['StatusDescN']; statusDescN = json['StatusDescN'];
clinicName = json['ClinicName'];
doctorName = json['DoctorName'];
projectName = json['ProjectName'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -87,6 +96,9 @@ class GetAdmissionInfoResponseModel {
data['Status'] = this.status; data['Status'] = this.status;
data['StatusDesc'] = this.statusDesc; data['StatusDesc'] = this.statusDesc;
data['StatusDescN'] = this.statusDescN; data['StatusDescN'] = this.statusDescN;
data['ClinicName'] = this.clinicName;
data['DoctorName'] = this.doctorName;
data['ProjectName'] = this.projectName;
return data; return data;
} }
} }

@ -148,7 +148,9 @@ class _AdmissionNoticeState extends State<AdmissionNotice> {
Padding( Padding(
padding: const EdgeInsets.only(left: 20, right: 20), padding: const EdgeInsets.only(left: 20, right: 20),
child: Text( child: Text(
projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.doctorID.toString() : projectViewModel.getAdmissionRequestInfoResponseModel.doctorName, projectViewModel.isPatientAdmitted
? projectViewModel.getAdmissionInfoResponseModel.doctorName.toString()
: projectViewModel.getAdmissionRequestInfoResponseModel.doctorName,
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@ -162,7 +164,11 @@ class _AdmissionNoticeState extends State<AdmissionNotice> {
Padding( Padding(
padding: const EdgeInsets.only(left: 20, right: 20), padding: const EdgeInsets.only(left: 20, right: 20),
child: Text( child: Text(
TranslationBase.of(context).clinic + ": " + (projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.clinicID.toString() : projectViewModel.getAdmissionRequestInfoResponseModel.clinicName), TranslationBase.of(context).clinic +
": " +
(projectViewModel.isPatientAdmitted
? projectViewModel.getAdmissionInfoResponseModel.clinicName.toString()
: projectViewModel.getAdmissionRequestInfoResponseModel.clinicName),
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 15, fontSize: 15,
@ -174,7 +180,11 @@ class _AdmissionNoticeState extends State<AdmissionNotice> {
Padding( Padding(
padding: const EdgeInsets.only(left: 20, right: 20), padding: const EdgeInsets.only(left: 20, right: 20),
child: Text( child: Text(
TranslationBase.of(context).hospital + ": " + (projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.projectID.toString() : projectViewModel.getAdmissionRequestInfoResponseModel.projectName), TranslationBase.of(context).hospital +
": " +
(projectViewModel.isPatientAdmitted
? projectViewModel.getAdmissionInfoResponseModel.projectName.toString()
: projectViewModel.getAdmissionRequestInfoResponseModel.projectName),
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 15, fontSize: 15,

Loading…
Cancel
Save