hospitalrun-frontend icon indicating copy to clipboard operation
hospitalrun-frontend copied to clipboard

Imaging: Add the ability to edit an imaging request

Open blestab opened this issue 3 years ago • 8 comments

🚀 Feature Proposal

A user should be able to edit an existing imaging request.

Motivation

When an imaging request is created, we need the ability to edit it after saving. This includes updating the radiologist, results and notes about the imaging request.

Technical Details

Model Updates

  • Add the following fields to the Imaging model
radiologist: string
result: string

Imaging Request listing table

  • For each entry in the listing add an Edit button which takes us to the edit page

Image Request Edit form

  • Display the following fields as read-only (not editable): status, patient name, imaging request type, requested on, completed on (if it has been completed, do not display if not completed)
  • For Patient details also display current age and sex underneath the patient name
  • Use the display format from the Lab view to show the above mentioned details (see screenshot below)

image

  • Display the following fields as editable: radiologist, result, notes

image

  • Footer Buttons Add 4 footer buttons, in the order below from left to right
    • Add a "Return" button which returns the user to the imaging requests listing page without saving changes made by the user
    • Add a "Update" button which save changes made by the user
    • Add a "Complete" button which saves any changes made by the user and also updates the status to 'completed'
    • Add a "Cancel" button which ONLY updates the status to 'canceled'

blestab avatar Dec 05 '20 10:12 blestab

Hi @blestab. I'd like to give it a go!

UmairKamran avatar Dec 12 '20 14:12 UmairKamran

Hi @blestab. I'd like to give it a go!

Sure thing @UmairKamran thank you for your help

blestab avatar Dec 12 '20 14:12 blestab

Hi @UmairKamran , compliments of the season and best wishes for 2021! Just checking how this work is going.

blestab avatar Jan 05 '21 11:01 blestab

Hey @blestab, a happy new year to you as well! :) This is a WIP. Vacation time caused a bit of a delay, I hope that's not a concern.

UmairKamran avatar Jan 07 '21 13:01 UmairKamran

Hey @blestab, a happy new year to you as well! :) This is a WIP. Vacation time caused a bit of a delay, I hope that's not a concern.

Thank you for getting back to me; that's not a problem at all @UmairKamran, glad to know you are busy with this.

blestab avatar Jan 07 '21 14:01 blestab

@UmairKamran Hello. Any updates for this issue?

baoqchau avatar Apr 17 '21 18:04 baoqchau

Hi @baoqchau. I've been trying really hard to get this completed :(

Good news is I'm almost there! :) I should have a PR ready by this week

(Here's a lil sneak peek) Screenshot 2021-04-19 at 11 58 43 PM

UmairKamran avatar Apr 19 '21 18:04 UmairKamran

Thanks @UmairKamran

matteovivona avatar Apr 21 '21 17:04 matteovivona