Additionally, we have added a cross-check mechanism during note compilation to detect (1) MAR entries that are missing a Stop date, and (2) Rx orders that failed to create a new MAR entry. The cross-check runs whenever a note for a MAR patient becomes the new source note for medications. For MAR entries that are missing a Stop date, the cross-check loops through the current MAR's entries that have no Stop date and finds any that have no active Rx order in the current source note for medications. Any MAR entry that should have been stopped triggers a message to ICANotes, as well as a user-facing dialog to inform the nurse/provider. For Rx orders that failed to create a new MAR entry, the cross-check loops through the note's Rx orders and finds any that are missing the MAR entry the Rx order should have created. Any missing MAR triggers a message to ICANotes, as well as a user-facing dialog to inform the nurse/provider.
When the note's Rx orders are being processed we already have a system in place to detect a failure to set the Stop Date of a MAR record. This mechanism has been altered to make an exception when the originating Rx order verb is "Refill." The verbs "External Provider Rx," "Then Stop," and "Refill" are exceptions because they are not meant to create a MAR record, so there is no originating medication that can be Stopped when the Rx order is changed. From now on, this process will only alert the nurse/provider if the reason the MAR record could not be Stopped was because the MAR record was locked.