class documentation

class DiagnoseForm(FormLoggerMixin, forms.ModelForm):

View In Hierarchy

Form to create and edit diagnoses, based on their model definition. Nothing special is happening here: Only some widgets are defined for the few fields of the models.Diagnose model and a loop over all implemented LNLs saves us some hard-coding of a long list of widgets for the node levels.

Class Meta Connects the form to the model.
Method save Save diagnose to existing patient.
def save(self, commit=True):

Save diagnose to existing patient.