Skip to content

PathogenTestForm: Composition + Stable Form Refactor (Part 1) #13852

Description

@roldy

Situation Description & Motivation

Refactor PathogenTestForm from a bridge-method / PoC section-slot approach into a clean
composition architecture where disease-specific fields are fully encapsulated in
DiseaseSectionLayout implementations.

Use cases

PathogenTestForm

High-Level Explanation

  • One stable PathogenTestForm instance — never swapped by the controller
  • Disease-specific fields fully encapsulated in DiseaseSectionLayout implementations
  • Adding a new disease = one new class + one line in the factory — zero changes to PathogenTestForm or the controller
  • No bridge methods — sections receive exactly what they need via FieldGroup + CustomLayout
  • TubeFieldHandler eliminates the 4× duplicated tube listener pattern

Timeline

Sprint 1 (Phases 1–4) + Sprint 2 (Phases 5–7)

Tasks

Alternatives

Risks

Additional Information

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicA high level ticket with subtickets for development (ticket type)refactoringTechnical refactoring of an existing feature

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions