I was recently doing some refactoring of the OrderEntry UI OWA. I definitely introduced this in my changes.
There are no meaningful tests for the library, so I was just debugging manually. I didn’t know about the drug order view. I saw components relating to drug ordering, but I couldn’t find any relationship between the actual lab order UI and whether a component is named “Lab…” or “Drug…”. It could use some additional refactoring. I’d like to get the Cypress tests working again so that changes can be made safely.
@mogoodrich or someone else, could you point me to where in the RefApp or PIH EMR UI one can find the drug order functionality? The fixes should be pretty quick once I know what I’m fixing.
@bistenes not sure where it is in the reference application (@ruhanga do you know) , but we aren’t using Drug Orders in the PIH EMR.
That being said, if you go to the “Patient Orders” and manually remove the “page=laborders” request parameter you should get the mixed page (you’ll see that “Add Orders” now presents two options). Alternatively, you can set it to “page=drugorders” to see the order orders.
Sorry all for missing this in Brandon’s original PRs…
Once we get this fixed let me know and I can do a 1.3.0 release…
Thanks all. @bistenes a few steps to make the order entry owa successfully installed are discussed here. Unfortunately I’ve been abit unavailable for a call. @bistenes could we schedule some session together so we can discuss and test the owa? This could take anywhere from 15-30mins I guess.
Currently: In the orders list, drug orders have no available Actions.
Desired behavior: In the orders list, drug orders had a little “x” under Actions that would allow the user to cancel the order. A confirmation box would pop up, and if the user confirmed, the order would be cancelled and the row would disappear in the UI.
Does that sound right? Is there supposed to be a pencil “edit” as well? Does my description of the “cancel drug order” UI flow sound correct? Are there any other broken things I’m missing?
@bistenes, when the orders are fetched from they endpoint in their full representation and not custom, the Action buttons show up. You are correct about the ‘x’ button. The pencil button leads to the edition of an order which operates as expected.
@ruhanga@bistenes will you have some time tomorrow,for around 15-30 mins,so as we go through the order entry,i find a couple of things breaking at my side
@bistenes I am happy to review and test with some parallel programing this bug. May i know what timezone you work. I am working in CST.I am unable to build the pull request.
You could depend on the mast branch since the changes were merged already. To build the project, you probably want to use the following commands I found to be useful from the project’s readme.