Form CutoffInfo
Synopsis
- modal Dialog to show 6 most probable diagnoses
- This is a bootstrap modal form.
Url/Route
None, modal form.
GUI
- 6 labels (name: lblDiagnose1..lblDiagnose6), stacked one above the other.
- button (name: btnClose) on click execute action Exit
- On Show: call initialize
Actions
Exit
- Close dialog
Initialize
- Let SymCount be 1+the number of records in selectedSymptoms
- construct a MaxProbable array with 6 records:
- Order probabilities on Prob[SymCount] descending
- take the 1st 6 records.
- Fill the 6 labels from the MaxProbable array:
- Label text equals Diagnose.Name.Language
- Color is:
- Green if Procent(Prob[SymCount])>Diagnose.Cutoff
- Red if Procent(Prob[SymCount])<=Diagnose.Cutoff