diff --git a/lib/models/patient/prescription_req_model.dart b/lib/models/patient/prescription_req_model.dart new file mode 100644 index 00000000..e69de29b diff --git a/lib/models/patient/prescription_res_model.dart b/lib/models/patient/prescription_res_model.dart new file mode 100644 index 00000000..3b57a845 --- /dev/null +++ b/lib/models/patient/prescription_res_model.dart @@ -0,0 +1,64 @@ +class PrescriptionReqModel { + int patientID; + int setupID; + int projectID; + int languageID; + String stamp; + String iPAdress; + double versionID; + int channel; + String tokenID; + String sessionID; + bool isLoginForDoctorApp; + bool patientOutSA; + int patientTypeID; + + PrescriptionReqModel( + {this.patientID, + this.setupID, + this.projectID, + this.languageID, + this.stamp, + this.iPAdress, + this.versionID, + this.channel, + this.tokenID, + this.sessionID, + this.isLoginForDoctorApp, + this.patientOutSA, + this.patientTypeID}); + + PrescriptionReqModel.fromJson(Map json) { + patientID = json['PatientID']; + setupID = json['SetupID']; + 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 toJson() { + final Map data = new Map(); + data['PatientID'] = this.patientID; + data['SetupID'] = this.setupID; + 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; + } +} diff --git a/lib/screens/patients/profile/lab_result/lab_orders_screen.dart b/lib/screens/patients/profile/lab_result/lab_orders_screen.dart index 76d30856..7f576f8c 100644 --- a/lib/screens/patients/profile/lab_result/lab_orders_screen.dart +++ b/lib/screens/patients/profile/lab_result/lab_orders_screen.dart @@ -97,7 +97,8 @@ class _LabOrdersScreenState extends State { SizeConfig.realScreenWidth * 0.05, 0), child: ListView.builder( - itemCount: patientsProv.patientLabResultOrdersList.length, + itemCount: + patientsProv.patientLabResultOrdersList.length, itemBuilder: (BuildContext ctxt, int index) { return InkWell( child: CardWithBgWidget( @@ -112,34 +113,37 @@ class _LabOrdersScreenState extends State { 12, backgroundImage: NetworkImage( patientsProv - .patientLabResultOrdersList[index] + .patientLabResultOrdersList[ + index] .doctorImageURL), backgroundColor: Colors.transparent, ), - Padding( - padding: const EdgeInsets.fromLTRB( - 8, 0, 0, 0), - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - AppText( - '${patientsProv.patientLabResultOrdersList[index].doctorName}', - fontSize: 2.5 * - SizeConfig.textMultiplier, - ), - SizedBox( - height: 8, - ), - AppText( - ' ${patientsProv.patientLabResultOrdersList[index].clinicName}', + Expanded( + child: Padding( + padding: const EdgeInsets.fromLTRB( + 8, 0, 0, 0), + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + AppText( + '${patientsProv.patientLabResultOrdersList[index].doctorName}', fontSize: 2.5 * - SizeConfig - .textMultiplier), - SizedBox( - height: 8, - ), - ], + SizeConfig.textMultiplier, + ), + SizedBox( + height: 8, + ), + AppText( + ' ${patientsProv.patientLabResultOrdersList[index].clinicName}', + fontSize: 2.5 * + SizeConfig + .textMultiplier), + SizedBox( + height: 8, + ), + ], + ), ), ) ], diff --git a/lib/screens/patients/profile/vital_sign/vital_sign_screen.dart b/lib/screens/patients/profile/vital_sign/vital_sign_screen.dart index 61d13adf..8c97588b 100644 --- a/lib/screens/patients/profile/vital_sign/vital_sign_screen.dart +++ b/lib/screens/patients/profile/vital_sign/vital_sign_screen.dart @@ -119,30 +119,32 @@ class _VitalSignScreenState extends State { .doctorImageURL), backgroundColor: Colors.transparent, ), - Padding( - padding: const EdgeInsets.fromLTRB( - 8, 0, 0, 0), - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - AppText( - '${patientsProv.patientVitalSignList[index].doctorName}', - fontSize: 2.5 * - SizeConfig.textMultiplier, - ), - SizedBox( - height: 8, - ), - AppText( - ' ${patientsProv.patientVitalSignList[index].clinicName}', + Expanded( + child: Padding( + padding: const EdgeInsets.fromLTRB( + 8, 0, 0, 0), + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + AppText( + '${patientsProv.patientVitalSignList[index].doctorName}', fontSize: 2.5 * - SizeConfig - .textMultiplier), - SizedBox( - height: 8, - ), - ], + SizeConfig.textMultiplier, + ), + SizedBox( + height: 8, + ), + AppText( + ' ${patientsProv.patientVitalSignList[index].clinicName}', + fontSize: 2.5 * + SizeConfig + .textMultiplier), + SizedBox( + height: 8, + ), + ], + ), ), ) ],