| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -32,193 +32,190 @@ class PrescriptionsPage extends StatelessWidget {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        onModelReady: (model) => patient.admissionNo == null
 | 
					 | 
					 | 
					 | 
					        onModelReady: (model) => patient.admissionNo == null
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            ? model.getPrescriptions(patient, patientType: patientType)
 | 
					 | 
					 | 
					 | 
					            ? model.getPrescriptions(patient, patientType: patientType)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            : model.getMedicationForInPatient(patient),
 | 
					 | 
					 | 
					 | 
					            : model.getMedicationForInPatient(patient),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        builder: (_, model, w) => NetworkBaseView(
 | 
					 | 
					 | 
					 | 
					        builder: (_, model, w) => AppScaffold(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              baseViewModel: model,
 | 
					 | 
					 | 
					 | 
					            baseViewModel: model,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              child: AppScaffold(
 | 
					 | 
					 | 
					 | 
					            isShowAppBar: true,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  baseViewModel: model,
 | 
					 | 
					 | 
					 | 
					            backgroundColor: Colors.grey[100],
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  isShowAppBar: true,
 | 
					 | 
					 | 
					 | 
					            appBar: PatientProfileAppBar(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  backgroundColor: Colors.grey[100],
 | 
					 | 
					 | 
					 | 
					              patient,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  appBar: PatientProfileAppBar(
 | 
					 | 
					 | 
					 | 
					              isInpatient: isInpatient,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    patient,
 | 
					 | 
					 | 
					 | 
					            ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    isInpatient: isInpatient,
 | 
					 | 
					 | 
					 | 
					            body: patient.admissionNo == null
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  ),
 | 
					 | 
					 | 
					 | 
					                ? FractionallySizedBox(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  body: patient.admissionNo == null
 | 
					 | 
					 | 
					 | 
					                    widthFactor: 1.0,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                      ? FractionallySizedBox(
 | 
					 | 
					 | 
					 | 
					                    child: ListView(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          widthFactor: 1.0,
 | 
					 | 
					 | 
					 | 
					                      physics: BouncingScrollPhysics(),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          child: ListView(
 | 
					 | 
					 | 
					 | 
					                      children: <Widget>[
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            physics: BouncingScrollPhysics(),
 | 
					 | 
					 | 
					 | 
					                        SizedBox(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            children: <Widget>[
 | 
					 | 
					 | 
					 | 
					                          height: 12,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              SizedBox(
 | 
					 | 
					 | 
					 | 
					                        ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                height: 12,
 | 
					 | 
					 | 
					 | 
					                        if (model.prescriptionsList.isNotEmpty && patient.patientStatusType != 43)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ),
 | 
					 | 
					 | 
					 | 
					                          Padding(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              if (model.prescriptionsList.isNotEmpty && patient.patientStatusType != 43)
 | 
					 | 
					 | 
					 | 
					                            padding: const EdgeInsets.all(8.0),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                Padding(
 | 
					 | 
					 | 
					 | 
					                            child: Column(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  padding: const EdgeInsets.all(8.0),
 | 
					 | 
					 | 
					 | 
					                              crossAxisAlignment: CrossAxisAlignment.start,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  child: Column(
 | 
					 | 
					 | 
					 | 
					                              children: [
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    crossAxisAlignment: CrossAxisAlignment.start,
 | 
					 | 
					 | 
					 | 
					                                AppText(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    children: [
 | 
					 | 
					 | 
					 | 
					                                  TranslationBase.of(context).orders,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      AppText(
 | 
					 | 
					 | 
					 | 
					                                  style: "caption2",
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        TranslationBase.of(context).orders,
 | 
					 | 
					 | 
					 | 
					                                  color: Colors.black,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        style: "caption2",
 | 
					 | 
					 | 
					 | 
					                                  fontSize: 13,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        color: Colors.black,
 | 
					 | 
					 | 
					 | 
					                                ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        fontSize: 13,
 | 
					 | 
					 | 
					 | 
					                                AppText(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      ),
 | 
					 | 
					 | 
					 | 
					                                  TranslationBase.of(context).prescriptions,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      AppText(
 | 
					 | 
					 | 
					 | 
					                                  bold: true,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        TranslationBase.of(context).prescriptions,
 | 
					 | 
					 | 
					 | 
					                                  fontSize: 22,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        bold: true,
 | 
					 | 
					 | 
					 | 
					                                ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        fontSize: 22,
 | 
					 | 
					 | 
					 | 
					                              ],
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                          ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        if (patient.patientStatusType != null && patient.patientStatusType == 43)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                          Padding(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            padding: const EdgeInsets.all(8.0),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            child: Column(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                              crossAxisAlignment: CrossAxisAlignment.start,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                              children: [
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                AppText(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  TranslationBase.of(context).orders,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  style: "caption2",
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  color: Colors.black,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  fontSize: 13,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                AppText(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  TranslationBase.of(context).prescriptions,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  bold: true,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  fontSize: 22,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                              ],
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                          ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        if ((patient.patientStatusType != null && patient.patientStatusType == 43) ||
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            (isFromLiveCare && patient.appointmentNo != null))
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                          AddNewOrder(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            onTap: () {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                              Navigator.push(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                context,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                MaterialPageRoute(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                    builder: (context) => BaseAddProcedureTabPage(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          patient: patient,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          prescriptionModel: model,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          procedureType: ProcedureType.PRESCRIPTION,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                        ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                    settings: RouteSettings(name: 'AddProcedureTabPage')),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                              );
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            label: TranslationBase.of(context).applyForNewPrescriptionsOrder,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                          ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        ...List.generate(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            model.prescriptionsList.length,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            (index) => InkWell(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                onTap: () => Navigator.push(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                      context,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                      FadePage(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                        page: PrescriptionItemsPage(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          prescriptions: model.prescriptionsList[index],
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          patient: patient,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          patientType: patientType,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          arrivalType: arrivalType,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                        ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      ),
 | 
					 | 
					 | 
					 | 
					                                      ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    ],
 | 
					 | 
					 | 
					 | 
					                                    ),
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                child: DoctorCard(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  doctorName: model.prescriptionsList[index].doctorName,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  profileUrl: model.prescriptionsList[index].doctorImageURL,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  branch: model.prescriptionsList[index].name,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  clinic: model.prescriptionsList[index].clinicDescription,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  isPrescriptions: true,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  appointmentDate: AppDateUtils.getDateTimeFromServerFormat(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                    model.prescriptionsList[index].appointmentDate,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  ),
 | 
					 | 
					 | 
					 | 
					                                  ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                ))),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                        if (model.prescriptionsList.isEmpty && patient.patientStatusType != 43)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                          Center(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            child: Column(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                              crossAxisAlignment: CrossAxisAlignment.center,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                              children: [
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                SizedBox(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  height: 100,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ),
 | 
					 | 
					 | 
					 | 
					                                ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              if (patient.patientStatusType != null && patient.patientStatusType == 43)
 | 
					 | 
					 | 
					 | 
					                                Image.asset('assets/images/no-data.png'),
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                Padding(
 | 
					 | 
					 | 
					 | 
					                                Padding(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  padding: const EdgeInsets.all(8.0),
 | 
					 | 
					 | 
					 | 
					                                  padding: const EdgeInsets.all(8.0),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  child: Column(
 | 
					 | 
					 | 
					 | 
					                                  child: AppText(TranslationBase.of(context).noPrescriptionsFound),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    crossAxisAlignment: CrossAxisAlignment.start,
 | 
					 | 
					 | 
					 | 
					                                )
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    children: [
 | 
					 | 
					 | 
					 | 
					                              ],
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      AppText(
 | 
					 | 
					 | 
					 | 
					                            ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        TranslationBase.of(context).orders,
 | 
					 | 
					 | 
					 | 
					                          )
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        style: "caption2",
 | 
					 | 
					 | 
					 | 
					                      ],
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        color: Colors.black,
 | 
					 | 
					 | 
					 | 
					                    ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        fontSize: 13,
 | 
					 | 
					 | 
					 | 
					                  )
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      ),
 | 
					 | 
					 | 
					 | 
					                : NetworkBaseView(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      AppText(
 | 
					 | 
					 | 
					 | 
					                    baseViewModel: model,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        TranslationBase.of(context).prescriptions,
 | 
					 | 
					 | 
					 | 
					                    child: FractionallySizedBox(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        bold: true,
 | 
					 | 
					 | 
					 | 
					                      widthFactor: 1.0,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        fontSize: 22,
 | 
					 | 
					 | 
					 | 
					                      child: ListView(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      ),
 | 
					 | 
					 | 
					 | 
					                        physics: BouncingScrollPhysics(),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    ],
 | 
					 | 
					 | 
					 | 
					                        children: <Widget>[
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  ),
 | 
					 | 
					 | 
					 | 
					                          // SizedBox(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ),
 | 
					 | 
					 | 
					 | 
					                          //   height: 12,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              if ((patient.patientStatusType != null && patient.patientStatusType == 43) ||
 | 
					 | 
					 | 
					 | 
					                          // ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  (isFromLiveCare && patient.appointmentNo != null))
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                AddNewOrder(
 | 
					 | 
					 | 
					 | 
					                          ListView.builder(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  onTap: () {
 | 
					 | 
					 | 
					 | 
					                              scrollDirection: Axis.vertical,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    Navigator.push(
 | 
					 | 
					 | 
					 | 
					                              shrinkWrap: true,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      context,
 | 
					 | 
					 | 
					 | 
					                              itemCount: model.medicationForInPatient.length,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      MaterialPageRoute(
 | 
					 | 
					 | 
					 | 
					                              itemBuilder: (context, index) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          builder: (context) => BaseAddProcedureTabPage(
 | 
					 | 
					 | 
					 | 
					                                //model.medicationForInPatient.length,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                patient: patient,
 | 
					 | 
					 | 
					 | 
					                                return InkWell(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                prescriptionModel: model,
 | 
					 | 
					 | 
					 | 
					                                    onTap: () => Navigator.push(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                procedureType: ProcedureType.PRESCRIPTION,
 | 
					 | 
					 | 
					 | 
					                                          context,
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                          FadePage(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                            page: PrescriptionItemsInPatientPage(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                              prescriptionIndex: index,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                              prescriptions: model.medicationForInPatient[index],
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                              patient: patient,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                              patientType: patientType,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                              arrivalType: arrivalType,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                              startOn: AppDateUtils.getDateTimeFromServerFormat(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                                model.medicationForInPatient[index].startDatetime,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                              ),
 | 
					 | 
					 | 
					 | 
					                                              ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          settings: RouteSettings(name: 'AddProcedureTabPage')),
 | 
					 | 
					 | 
					 | 
					                                              stopOn: AppDateUtils.getDateTimeFromServerFormat(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    );
 | 
					 | 
					 | 
					 | 
					                                                model.medicationForInPatient[index].stopDatetime,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  },
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  label: TranslationBase.of(context).applyForNewPrescriptionsOrder,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ...List.generate(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  model.prescriptionsList.length,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  (index) => InkWell(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      onTap: () => Navigator.push(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            context,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            FadePage(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                              page: PrescriptionItemsPage(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                prescriptions: model.prescriptionsList[index],
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                patient: patient,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                patientType: patientType,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                arrivalType: arrivalType,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                              ),
 | 
					 | 
					 | 
					 | 
					                                              ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            ),
 | 
					 | 
					 | 
					 | 
					                                            ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          ),
 | 
					 | 
					 | 
					 | 
					                                          ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      child: DoctorCard(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        doctorName: model.prescriptionsList[index].doctorName,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        profileUrl: model.prescriptionsList[index].doctorImageURL,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        branch: model.prescriptionsList[index].name,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        clinic: model.prescriptionsList[index].clinicDescription,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        isPrescriptions: true,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        appointmentDate: AppDateUtils.getDateTimeFromServerFormat(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          model.prescriptionsList[index].appointmentDate,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        ),
 | 
					 | 
					 | 
					 | 
					                                        ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      ))),
 | 
					 | 
					 | 
					 | 
					                                    child: InPatientDoctorCard(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              if (model.prescriptionsList.isEmpty && patient.patientStatusType != 43)
 | 
					 | 
					 | 
					 | 
					                                      doctorName: model.medicationForInPatient[index].pHRItemDescription,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                Center(
 | 
					 | 
					 | 
					 | 
					                                      profileUrl: 'sss',
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  child: Column(
 | 
					 | 
					 | 
					 | 
					                                      branch: 'hamza',
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    crossAxisAlignment: CrossAxisAlignment.center,
 | 
					 | 
					 | 
					 | 
					                                      clinic: 'basheer',
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    children: [
 | 
					 | 
					 | 
					 | 
					                                      isPrescriptions: true,
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      SizedBox(
 | 
					 | 
					 | 
					 | 
					                                      appointmentDate: AppDateUtils.getDateTimeFromServerFormat(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        height: 100,
 | 
					 | 
					 | 
					 | 
					                                        model.medicationForInPatient[index].prescriptionDatetime,
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      ),
 | 
					 | 
					 | 
					 | 
					                                      ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      Image.asset('assets/images/no-data.png'),
 | 
					 | 
					 | 
					 | 
					                                      createdBy: model.medicationForInPatient[index].doctorName.toString(),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      Padding(
 | 
					 | 
					 | 
					 | 
					                                    ));
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        padding: const EdgeInsets.all(8.0),
 | 
					 | 
					 | 
					 | 
					                              }),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        child: AppText(TranslationBase.of(context).noPrescriptionsFound),
 | 
					 | 
					 | 
					 | 
					                          if (model.medicationForInPatient.length == 0)
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      )
 | 
					 | 
					 | 
					 | 
					                            Center(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    ],
 | 
					 | 
					 | 
					 | 
					                              child: Column(
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                crossAxisAlignment: CrossAxisAlignment.center,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                children: [
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                  SizedBox(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                                    height: 100,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  ),
 | 
					 | 
					 | 
					 | 
					                                  ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                )
 | 
					 | 
					 | 
					 | 
					                                  Image.asset('assets/images/no-data.png'),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            ],
 | 
					 | 
					 | 
					 | 
					                                  Padding(
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          ),
 | 
					 | 
					 | 
					 | 
					                                    padding: const EdgeInsets.all(8.0),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        )
 | 
					 | 
					 | 
					 | 
					                                    child: AppText(TranslationBase.of(context).noPrescriptionsFound),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                      : NetworkBaseView(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          baseViewModel: model,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          child: FractionallySizedBox(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            widthFactor: 1.0,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            child: ListView(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              physics: BouncingScrollPhysics(),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              children: <Widget>[
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                // SizedBox(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                //   height: 12,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                // ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ListView.builder(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    scrollDirection: Axis.vertical,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    shrinkWrap: true,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    itemCount: model.medicationForInPatient.length,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    itemBuilder: (context, index) {
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      //model.medicationForInPatient.length,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      return InkWell(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          onTap: () => Navigator.push(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                context,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                FadePage(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                  page: PrescriptionItemsInPatientPage(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    prescriptionIndex: index,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    prescriptions: model.medicationForInPatient[index],
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    patient: patient,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    patientType: patientType,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    arrivalType: arrivalType,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    startOn: AppDateUtils.getDateTimeFromServerFormat(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                      model.medicationForInPatient[index].startDatetime,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    stopOn: AppDateUtils.getDateTimeFromServerFormat(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                      model.medicationForInPatient[index].stopDatetime,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                    ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                  ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                                ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                              ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          child: InPatientDoctorCard(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            doctorName: model.medicationForInPatient[index].pHRItemDescription,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            profileUrl: 'sss',
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            branch: 'hamza',
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            clinic: 'basheer',
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            isPrescriptions: true,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            appointmentDate: AppDateUtils.getDateTimeFromServerFormat(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                              model.medicationForInPatient[index].prescriptionDatetime,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                            createdBy: model.medicationForInPatient[index].doctorName.toString(),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          ));
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    }),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                if (model.medicationForInPatient.length == 0)
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  Center(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    child: Column(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      crossAxisAlignment: CrossAxisAlignment.center,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      children: [
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        SizedBox(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          height: 100,
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        Image.asset('assets/images/no-data.png'),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        Padding(
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          padding: const EdgeInsets.all(8.0),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                          child: AppText(TranslationBase.of(context).noPrescriptionsFound),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                        )
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                      ],
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    ),
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  )
 | 
					 | 
					 | 
					 | 
					                                  )
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ],
 | 
					 | 
					 | 
					 | 
					                                ],
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            ),
 | 
					 | 
					 | 
					 | 
					                              ),
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          ),
 | 
					 | 
					 | 
					 | 
					                            )
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        )),
 | 
					 | 
					 | 
					 | 
					                        ],
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            ));
 | 
					 | 
					 | 
					 | 
					                      ),
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    ),
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  )));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }
 | 
					 | 
					 | 
					 | 
					  }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
 
 |