Order entry UI Return button not working

Tags: #<Tag:0x00007fa3f4119a50>

@ruhanga It looks return button is not working and also no option for edit/delete drug order.

Thanks for reporting this @prapakaran. Could you create an OEUI card for this? If you can wire a PR to help resolve this, feel free to do so. That’d be helpful already. :slight_smile:

1 Like

@ruhanga I raised jira card and also checking the code. May i know where to pass returnURL. It was missing.

Line number 34

Thanks @prapakaran. I’ve created RA-1759 that will hopefully fix this. Could you also point me to the Jira card you created?

Thanks for fixing this. Please find the card details. https://issues.openmrs.org/browse/OEUI-308?filter=-2 One more thing, edit/delete button are not available for drug order entry. I will also look at this code.

1 Like

@ruhanga is anyone looking edit/delete button on drug orders.

@prapakaran, this may have been intended to prohibit editing an active drug order. Editing the prescription is possible only when the it is still in its draft state. This means editing an active drug order requires that it is deactivated/discontinued in favour of a new prescription.

@mogoodrich could this be consistent with the original intension?

cc: @darius, @mseaton, @mksd, @mksrom


Yes I believe this is intentional because drug orders are immutable… I would think we’d want a way to cancel an order though… i haven’t looked at the UI in a while, so this may not currently be possible?


@ruhanga @mogoodrich Sometimes the medicine allergy/dosage may not work for a patient then the doctor prescribes a new drug and discontinue the old one. I am guessing we may required button to discontinue the drug like lab orders. Even i have gone through the scenario in my experience.

Yes, I agree there should be functionality to discontinue/cancel an order…

1 Like

@ruhanga @mogoodrich Is anyone help on this to fix the issue.

@prapakaran, I’ve just had a quick look at the code base and it looks something is breaking on this peace of code. Could you investigate further on this?

@cioan, @bistenes you may want to offer some guidance on this. :wink:

Thanks @ruhanga I will try to take some time to refresh myself in greater detail on how it’s supposed to work, but I might not get to it immediately.

Take care, Mark

1 Like

Yes @ruhanga @prapakaran this looks like (as opposed to an unimplemented feature). My guess is that there’s a bug here, where’s trying to match on type = drugorder:

1 Like

Thanks @mogoodrich. Also it looks like custom representations are not decorated with the subclass’ type here. So that the above seems to fail for drug orders given that the orders are fetched with a custom representation.