Closed kwa20 closed 2 years ago
We probably need to decide when to save what... From a functional perspective, it would probably be best to not save anything, until the processing is finalized. But that is probably hard to implement (and also is not done for lab messages).
There is not lifecycle management for physician's reports (yet). So there should not be any physician's reports relating to each other. Still, what to do when a user selects an existing case when processsing, and the case data differs from the physician's report's data? E.g. what to do when the first name is different? Do nothing?
After processing, should the physician's report be related to the case?
Validated on local env with the version: 1.73.0-SNAPSHOT (3d0fd59)
Situation Description
DEMIS introduced physician reports as a new option to notify health departments about notifiable infections. Thus, in addition to providing initial UI support, it is also necessary to let users properly process such messages to make the work in health departments more efficient.
Feature Description
Introduce the option to process physician reports
PHYSICIANS_REPORT
BACK
,DISCARD
andNEXT
buttons to the respective formsBACK
andNEXT
buttons should allow the user to navigate through the tabs in the displayed order (BACK
: one tab to the left,NEXT
: one tab to the right).DISCARD
, the processing should be canceled and the user should get redirected back to the messages directory.SAVE AND OPEN CASE
andSAVE
buttons instead of theNEXT
button. Those buttons behave the same as seen when processing lab messages. Instead of relating the lab message to a chosen sample, relate it to the chosen case (create acase_id
column in thelabmessage
table for it).Side by side view:
ADD VACCINATION
button which opens a new vaccination creation form. At the end of that form, there should be aDONE
button for finishing the edit and adding the vaccination. There should also be aCANCEL
button in order to simply close an edit form without adding a vaccination.vaccineName
and thevaccinationDate
.DONE
will collapse the edited vaccination entry again. Only save the edited entry when saving the overall form. ACANCEL
button should also collapse the expanded edit form again without keeping the edited fields.Some remarks regarding saving
SAVE
orNEXT
, the currently shown data should be saved. Before saving, a processed-in-meantime check should be performed, just like for lab messages. Similarly, when the physician's report was processed in meantime, and a new case was created by the (interrupted) user, add a button to delete that case.BACK
or navigates to another tab by clicking on the tab directly (instead of clickingNEXT
), show the usual UnsavedChanges popup if necessary.-> This means that the
DISCARD
button just discards changes from the current view/tab, not previous creations/changes.Possible Alternatives
Additional Information