Hi all,
I have a VFE form that enters an order based on certain criteria when the user clicks a button. When the button is clicked again, it reevaluates all of the criteria and does not add another order if it's already entered. However, the order would still be there even if the criteria have changed. Is it possible to remove an unsigned order? If not, what could I do to work around this?
There is no MEL command to remove an order. Go into the Order window and manually delete the unsigned order.
unfortunately John is correct. No other way around it.
Within your logic, isolate the section that adds the order. Reverse the logic so that the code checks for the presence of the order and evaluates if the criteria is applicable. From there, you can fashion a pop-up reminding the user that the order was placed, the criteria has changed, and now should be removed.
This is an unfortunate side-effect of 'automating' data entry. Orders, medications, problems, even obsterm values must be coded as if they are a 'two way street', otherwise erroneous data will be captured and become a permanent part of the record. O_o