Problem Description
Context
Part of Epic: [Epic] PathogenClassification: Replace GenoTypeResult & SeroGroupSpecification enums
Blocked by: Phases 8 & 9
Wire the new pathogenClassification field through PathogenTestDto, PathogenTest,
CaseDataDto, Case, and the facade EJBs. Add case write-back on positive genotyping/serogrouping save.
Proposed Solution
Tasks
Additional Information
Acceptance Criteria
mvn compile -pl sormas-api,sormas-backend passes
- Saving a MEASLES GENOTYPING + POSITIVE pathogen test writes
pathogenClassification to the case
- Existing
diseaseVariant / rsvSubtype / testedDiseaseVariant fields are untouched
Problem Description
Context
Part of Epic: [Epic] PathogenClassification: Replace GenoTypeResult & SeroGroupSpecification enums
Blocked by: Phases 8 & 9
Wire the new
pathogenClassificationfield throughPathogenTestDto,PathogenTest,CaseDataDto,Case, and the facade EJBs. Add case write-back on positive genotyping/serogrouping save.Proposed Solution
Tasks
PathogenTestDto.java— removegenoTypeResult,genoTypeResultText,seroGroupSpecification,seroGroupSpecificationText; addpathogenClassification+pathogenClassificationDetails; add constant stringsPATHOGEN_CLASSIFICATION,PATHOGEN_CLASSIFICATION_DETAILSPathogenTest.java— same field removals/additions; add@ManyToOneFK mapping forpathogenclassification_idPathogenTestFacadeEjb.java— update DTO↔entity mapping; add case write-back: when test type is GENOTYPING or SEROGROUPING and result is POSITIVE, writepathogenClassificationto the associated caseCaseDataDto.java— addpathogenClassificationreference field alongsidediseaseVariantCase.java— addpathogenClassificationFK fieldCaseDataFacadeEjb.java— mappathogenClassificationto/from case entityAdditional Information
Acceptance Criteria
mvn compile -pl sormas-api,sormas-backendpassespathogenClassificationto the casediseaseVariant/rsvSubtype/testedDiseaseVariantfields are untouched