From 5c5ed35df87c62313ecc602c03e35d4eabdbe9ac Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Sun, 20 Aug 2023 10:57:55 +0300 Subject: [PATCH] Clinic & Doctor ID added --- ...admission_request_info_response_model.dart | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/lib/models/InPatientServices/get_admission_request_info_response_model.dart b/lib/models/InPatientServices/get_admission_request_info_response_model.dart index 4c31c1fe..c11a7ccd 100644 --- a/lib/models/InPatientServices/get_admission_request_info_response_model.dart +++ b/lib/models/InPatientServices/get_admission_request_info_response_model.dart @@ -9,23 +9,29 @@ class GetAdmissionRequestInfoResponseModel { int projectId; String projectName; String setupId; + int clinicId; + int doctorId; GetAdmissionRequestInfoResponseModel( {this.admissionRequestNo, - this.clinicName, - this.doctorName, - this.expectedAdmissionDate, - this.medicalInstructions, - this.medicalInstructionsXML, - this.medicalRemarks, - this.projectId, - this.projectName, - this.setupId}); + this.clinicName, + this.doctorName, + this.expectedAdmissionDate, + this.medicalInstructions, + this.medicalInstructionsXML, + this.medicalRemarks, + this.projectId, + this.projectName, + this.setupId, + this.clinicId, + this.doctorId}); GetAdmissionRequestInfoResponseModel.fromJson(Map json) { admissionRequestNo = json['admissionRequestNo']; clinicName = json['clinicName']; doctorName = json['doctorName']; + clinicId = json['ClinicID']; + doctorId = json['DoctorID']; expectedAdmissionDate = json['expectedAdmissionDate']; if (json['medicaLInstructions'] != null) { medicalInstructions = []; @@ -45,10 +51,11 @@ class GetAdmissionRequestInfoResponseModel { data['admissionRequestNo'] = this.admissionRequestNo; data['clinicName'] = this.clinicName; data['doctorName'] = this.doctorName; + data['clinicId'] = this.clinicId; + data['doctorId'] = this.doctorId; data['expectedAdmissionDate'] = this.expectedAdmissionDate; if (this.medicalInstructions != null) { - data['medicaLInstructions'] = - this.medicalInstructions.map((v) => v.toJson()).toList(); + data['medicaLInstructions'] = this.medicalInstructions.map((v) => v.toJson()).toList(); } data['medicalInstructionsXML'] = this.medicalInstructionsXML; data['medicalRemarks'] = this.medicalRemarks;