Problem Description:
Processed doctor declarations are not visible in the Case Investigation Form, making it difficult to track the origin of case data. Users cannot easily reference the original declaration after processing it into a case.
Proposed Solution:
-
UI Addition:
- Add a "Doctor Declarations" box to the right sidebar of the Case Investigation Form (or reuse the Reports box).
- Content:
- List all
DOCTOR_DECLARATION-type external messages linked to the case.
- Display same information as the
"Laboratory Message"
- Clicking an entry opens the original declaration details (XML preview or processed data).
-
Backend Changes:
- Link
ExternalMessage entities to Case entities via case.id during processing.
Additional Information:
- Permissions:
- Visible only to users with
View Doctor Declarations rights.
- Testing:
- Verify processed declarations remain visible even after case creation.
- Confirm clicking an entry shows the original XML/data.
- Edge Cases:
- Handle cases with multiple declarations (e.g., pagination).
- Show "No declarations linked" if none exist.
- Dependencies:
Problem Description:
Processed doctor declarations are not visible in the Case Investigation Form, making it difficult to track the origin of case data. Users cannot easily reference the original declaration after processing it into a case.
Proposed Solution:
UI Addition:
DOCTOR_DECLARATION-type external messages linked to the case."Laboratory Message"Backend Changes:
ExternalMessageentities toCaseentities viacase.idduring processing.Additional Information:
View Doctor Declarationsrights.ExternalMessagemust havetype=DOCTOR_DECLARATION(Adapt ExternalMessage and Message Directory UI to support Doctor Declaration #13293 ).