Skip to content

[Part 2 / Phase 11] PathogenClassification: UI wiring #13864

@roldy

Description

@roldy

Problem Description

Part of Epic: [Epic] PathogenClassification: Replace GenoTypeResult & SeroGroupSpecification enums
Blocked by: Phase 10

Wire the pathogenClassification ComboBox into the affected DiseaseSectionLayout classes,
update PathogenTestListEntry, and update CaseDataForm to show the classification caption
in the disease subtype slot.

Proposed Solution

Tasks

  • MeaslesDiseaseSectionLayout — replace genoTypeResult ComboBox with PathogenClassification ComboBox sourced from PathogenClassificationFacade.getByDiseaseAndType(MEASLES, GENOTYPE); replace genoTypeResultText with pathogenClassificationDetails; keep same visibility conditions
  • CryptosporidiosisDiseaseSectionLayout — same, using CRYPTOSPORIDIOSIS, GENOTYPE
  • ImiDiseaseSectionLayout — replace seroGroupSpecification ComboBox with PathogenClassification ComboBox sourced from getByDiseaseAndType(IMI, SEROGROUP); replace seroGroupSpecificationText with pathogenClassificationDetails
  • IpiDiseaseSectionLayoutno changeserotype stays free text
  • PathogenTestListEntry — replace getSeroGroupSpecification() / getGenoTypeResult() display with getPathogenClassification().getCaption() (+ details if set); IPI fallback to serotype free text
  • CaseDataForm — show pathogenClassification.getCaption() in disease subtype slot when diseaseVariant is null and pathogenClassification is set; existing RSV/Influenza path untouched

Additional Information

Acceptance Criteria

  • Measles: GENOTYPING + POSITIVE → pathogenClassification ComboBox shows Measles genotypes only
  • Cryptosporidiosis: same, shows crypto species only
  • IMI: SEROGROUPING + POSITIVE → shows IMI serogroups
  • IPI: SEROGROUPING + POSITIVE → serotype (free text) still present; no pathogenClassification ComboBox
  • Select OTHER in pathogenClassificationpathogenClassificationDetails text field visible
  • PathogenTestListEntry displays caption for MEASLES/CRYPTO/IMI; serotype free text for IPI
  • Open Measles case with saved GENOTYPING+POSITIVE test → disease subtype slot shows genotype caption
  • Open RSV/Influenza case → testedDiseaseVariant still shows correctly (unchanged path)

Metadata

Metadata

Assignees

Labels

refactoringTechnical refactoring of an existing featuretaskSomething to be done that does not directly affect the software

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions