Problem Description
Context
Part of Epic: [Epic] PathogenTestForm: Composition + Stable Form Refactor
Blocked by: Phases 3 & 4
Clean up PathogenTestForm now that all sections are self-contained. Remove bridge methods,
instance vars that leaked into sections, and update swapDiseaseSection() to use the
rebuildSectionFieldAllowances() pattern.
Proposed Solution
Tasks
Additional Information
Acceptance Criteria
PathogenTestForm has no addSectionField, removeSectionField, getCurrentDisease, or updateDrugSusceptibilityFieldSpecifications methods
swapDiseaseSection() compiles with new helpers
mvn compile -pl sormas-ui passes
Problem Description
Context
Part of Epic: [Epic] PathogenTestForm: Composition + Stable Form Refactor
Blocked by: Phases 3 & 4
Clean up
PathogenTestFormnow that all sections are self-contained. Remove bridge methods,instance vars that leaked into sections, and update
swapDiseaseSection()to use therebuildSectionFieldAllowances()pattern.Proposed Solution
Tasks
addSectionField,addSectionTubeFields,addSectionDrugSusceptibilityField,removeSectionField,getCurrentDiseaseupdateDrugSusceptibilityFieldSpecifications()— logic now lives in sectionsdrugSusceptibilityFieldandgenoTypingCBinstance varsswapDiseaseSection():removeFromAllowedLists(oldIds)before unbindrebuildSectionFieldAllowances(newIds)after bindrebuildSectionFieldAllowances(Collection<String> fieldIds)private helperremoveFromAllowedLists(Collection<String> fieldIds)private helpersetVisibleClearcalls intestTypeFieldlistenerupdateDrugSusceptibilityFieldSpecifications()call withactiveSection.onTestTypeChanged(...)HTML_LAYOUTAdditional Information
Acceptance Criteria
PathogenTestFormhas noaddSectionField,removeSectionField,getCurrentDisease, orupdateDrugSusceptibilityFieldSpecificationsmethodsswapDiseaseSection()compiles with new helpersmvn compile -pl sormas-uipasses