Medical instructions fix

Dev_3.3_InPatient_CR
haroon amjad 2 years ago
parent 1e572a2760
commit 375cda502b

@ -288,7 +288,7 @@ class _InPatientServicesHomeState extends State<InPatientServicesHome> {
void openGeneralInstructions(BuildContext context) {
ClinicListService service = new ClinicListService();
GifLoaderDialogUtils.showMyDialog(context);
service.getGeneralInstructions(projectViewModel.inPatientProjectID, context).then((res) {
service.getGeneralInstructions(projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.projectID : projectViewModel.getAdmissionRequestInfoResponseModel.projectId, context).then((res) {
if (res['generalInstructions'].length != 0) {
List<GetGeneralInstructions> getGeneralInstructionsList = [];
res['generalInstructions'].forEach((v) {
@ -308,7 +308,7 @@ class _InPatientServicesHomeState extends State<InPatientServicesHome> {
void openMedicalInstructions(BuildContext context) {
ClinicListService service = new ClinicListService();
GifLoaderDialogUtils.showMyDialog(context);
service.getMedicalInstructions(projectViewModel.inPatientProjectID, context).then((res) {
service.getMedicalInstructions(projectViewModel.isPatientAdmitted ? projectViewModel.getAdmissionInfoResponseModel.projectID : projectViewModel.getAdmissionRequestInfoResponseModel.projectId, context).then((res) {
if (res['MedicalInstruction'] != null && res['MedicalInstruction'].length != 0) {
List<GetMedicalInstructions> getMedicalInstructionsList = [];
res['MedicalInstruction'].forEach((v) {

Loading…
Cancel
Save