Problem Description
Context
Part of Epic: [Epic] PathogenTestForm: Composition + Stable Form Refactor
Blocked by: Phase 2
Refactor TuberculosisDiseaseSectionLayout to use the new clean interface signatures.
Remove all bridge method calls (form.addSectionField(...), form.getCurrentDisease(), etc.)
and delegate tube logic to a forthcoming TubeFieldHandler.
Proposed Solution
Tasks
Additional Information
Acceptance Criteria
- No import of
PathogenTestForm
bindFields / unbindFields / onTestTypeChanged all use only FieldGroup + CustomLayout + standard types
- Luxembourg IGRA visibility rules still work correctly
mvn compile -pl sormas-ui passes
Problem Description
Context
Part of Epic: [Epic] PathogenTestForm: Composition + Stable Form Refactor
Blocked by: Phase 2
Refactor
TuberculosisDiseaseSectionLayoutto use the new clean interface signatures.Remove all bridge method calls (
form.addSectionField(...),form.getCurrentDisease(), etc.)and delegate tube logic to a forthcoming
TubeFieldHandler.Proposed Solution
Tasks
form.addSectionField(...)/form.removeSectionField(...)callsfieldGroup.buildAndBind(...)+panel.addComponent(...)directlyFieldHelper.setVisibleWhen(fieldGroup, ...)— capture registrations for cleanup inunbindFields()TubeFieldHandlerusage (can use placeholder until Phase 6)onTestTypeChanged():drugSusceptibilityField.updateFieldsVisibility()Additional Information
Acceptance Criteria
PathogenTestFormbindFields/unbindFields/onTestTypeChangedall use onlyFieldGroup+CustomLayout+ standard typesmvn compile -pl sormas-uipasses