def not_found(self, patient): new_obj = self.detail_service.new_object(patient) if new_obj.can_edit(current_user): return redirect(url_for('salt_wasting.edit_clinical_features', patient_id=patient.id)) else: context = dict( patient=patient, patient_data=get_patient_data(patient), ) return render_template(self.get_template_name(), **context)
def not_found(self, patient, disease_group): new_obj = self.detail_service.new_object(patient, disease_group) if new_obj.can_edit(current_user): return redirect(url_for('genetics.edit_genetics', patient_id=patient.id, disease_group_id=disease_group.id)) else: context = dict( patient=patient, patient_data=get_patient_data(patient), disease_group=disease_group, ) return render_template(self.get_template_name(), **context)