Skip to content

[Part 2 / Phase 12] PathogenClassification: Cleanup and deprecation #13865

@roldy

Description

@roldy

Problem Description

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

Remove the now-unused GenoTypeResult and SeroGroupSpecification enums and any remaining
usages in exports, reports, or other mapping code.

Proposed Solution

Tasks

  • Delete sormas-api/.../sample/GenoTypeResult.java
  • Delete sormas-api/.../sample/SeroGroupSpecification.java
  • Search all export/report code for usages of genoTypeResult / seroGroupSpecification field names — update to pathogenClassification
  • Search ExternalMessageMapper and any import/export mappers for seroTypingMethod / serotypingmethod — verify still intact (should be unaffected)
  • Search for any remaining usages of the deleted enums across the codebase — compile will catch most
  • mvn compile full project — zero errors
  • Run affected tests

Additional Information

Verification

  • API responses: old genoTypeResult / seroGroupSpecification fields absent; pathogenClassification present
  • Exports/reports updated to use new field captions
  • Backward compatibility check for any API consumers documented

Acceptance Criteria

  • Full project compiles cleanly
  • No references to GenoTypeResult or SeroGroupSpecification remain in production code
  • All affected tests pass

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