SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

Enhance case data form for TB-specific data

Open obinna-h-n opened this issue 11 months ago • 2 comments

Feature Description

After the Disease enum has been modified in (#13318) as part of epic (#13317), the case data form needs to be updated with TB-specific variables.

Added Value/Benefit

Users will be able to add and edit TB-specific data on the case data form in the system.

Acceptance Criteria

Entities, DTOs and Enums

  • [x] The Case entity and CaseDataDto classes are updated with TB-specific variables
    • Boolean postMortem
    • String healthFacilityDepartment
  • [x] A ComplianceWithTreatment enum is added with the following values
    • NO_COMPLIANCE
    • TREATMENT_COMPLETED
    • TREATMENT_FAILED
    • TREATMENT_NOT_COMPLETED
    • UNKNOWN
    • NOT_APPLICABLE
  • [x] The HealthConditions entity and HealthConditionsDto classes are updated with TB-specific variables
    • Integer tuberculosisInfectionYear
    • YesNoUnknown previousTuberculosisTreatment
    • ComplianceWithTreatment complianceWithTuberculosisTreatment

Case data form

  • [x] A "Notified By" card is added to the side bar showing details of the medical officer which notified of the case (fetched from doctors declaration)
  • [x] A "Postmortem" checkbox is added (This would be checked in the notification form if diagnosis is made after the case is deceased whatever the cause of death). It should be specific to TB and LUX.
  • [x] A health facility "Facility Department" field (free text) is added following the place of stay facility details to capture facility department. It is a LUX specific for all diseases including new case as well.
  • [x] Pre existing conditions
    • [x] Only "Tuberculosis" and "HIV" are displayed. Others are hidden
    • [x] If Tuberculosis = YES, display additional free text field for "Year of infection" (TB Specific, Aggred to have a dropdown with years)
    • [x] If Tuberculosis = YES, display additional YesNoUnknown field for "Previous anti-TB treatment (at least one month)"(TB Specific)
    • [x] If Tuberculosis = YES and Previous TB treatment = YES, display additional field for "Compliance with treatment"(TB Specific)
  • [x] A new read-only "Diagnosis criteria" section is added at the bottom of the page showing some information about TB-specific tests conducted. for each test display:
    • The name of the test
    • A YesNoUnknown field showing if the test was done
    • The test result
    • any quantification of the test result
    • date of result

Implementation Details

No Response

Mockups

No Response

Additional Information

No Response

obinna-h-n avatar Mar 25 '25 13:03 obinna-h-n

Tested and looks good

SORMAS-EmelineJanigan avatar Apr 15 '25 13:04 SORMAS-EmelineJanigan

A read-only "Diagnosis criteria" section is dependent on going changes of Obinna.

KarnaiahPesula avatar Apr 15 '25 15:04 KarnaiahPesula