$TXT Created by at CLN1G1.AAC.DOMAIN.EXT (KIDS) on Friday, 10/07/22 at 09:21 ============================================================================= Run Date: APR 11, 2023 Designation: PSJ*5*433 Package : PSJ - INPATIENT MEDICATIONS Priority: Mandatory Version : 5 SEQ #379 Status: Released Compliance Date: MAY 12, 2023 ============================================================================= Associated patches: (v)PSJ*5*399 <<= must be installed BEFORE `PSJ*5*433' Subject: COMPLEX ORDER RENEWAL STOP DATE NOT MATCHING BETWEEN OR AND PSJ Category: - Routine Description: ============ This patch addresses the following issue: When renewing a complex order with the AND conjunction in CPRS and processing it in Inpatient Pharmacy and editing certain fields before accepting an order in the complex set of orders, the edited field does not get updated in CPRS. Patch Components: ----------------- Files & Fields Associated: File Name (Number) Field Name (Number) New/Modified/Deleted ------------------ ------------------- -------------------- N/A Forms Associated: Form Name File Number New/Modified/Deleted --------- ----------- -------------------- N/A Mail Groups Associated: Mail Group Name New/Modified/Deleted --------------- -------------------- N/A Options Associated: Option Name Type New/Modified/Deleted ----------- ---- -------------------- N/A Protocols Associated: Protocol Name New/Modified/Deleted ------------- -------------------- N/A Security Keys Associated: Security Key Name ----------------- N/A Templates Associated: Template Name Type File Name (Number) New/Modified/Deleted ------------- ---- ------------------ -------------------- N/A Remote Procedures Associated: Remote Procedure Name New/Modified/Deleted --------------------- -------------------- N/A Parameter Definitions Associated: Parameter Name New/Modified/Deleted -------------- -------------------- N/A New Service Requests (NSRs): N/A Patient Safety Issues (PSIs): N/A Defect Tracking System Ticket(s) & Overview: =========================================== 1. INC21776729 - Complex order renewal Stop Date not matching between CPRS and Inpatient Pharmacy Problem: ------- When renewing a complex order with the AND conjunction in CPRS and processing it in Inpatient Pharmacy and editing the STOP DATE before accepting any order in the complex set of orders, the STOP DATE does not get updated in CPRS. The problem is that an HL7 message is not sent to CPRS after the STOP DATE is filed into PHARMACY PATIENT file (#55). Several lines after an HL7 message is sent to CPRS from routine PSJOEA1, there is a call to UPDREN^PSGOER made where the following fields can be updated in PHARMACY PATIENT file (#55); VERIFYING NURSE (#16), DATE VERIFIED BY NURSE (#17), STATUS (#28), STOP DATE/TIME (#34), ADMIN TIMES (#41), FOLLOWING ORDER (#105), REASON FOR FOLLOWING ORDER (#107), ORDERABLE ITEM (#108), and sub record LAST RENEW (#55.6114DA). After UPDREN^PSGOER completes, another call to send updates via HL7 message to CPRS does not occur. Any of these fields that are needed in CPRS may not be up to date in the ORDER file (#100); STATUS (#5) STOP DATE (#22). Resolution: ---------- A new call to send an HL7 message to CPRS is added after UPDREN^PSGOER completes. This allows all the data in PHARMACY PATIENT file (#55) to be updated when this HL7 message is sent for the current order. Technical Resolution: --------------------- In routine PSJOEA1, the call to routine UNL^PSSLOCK that unlocks the ORDER file (#100) is moved from after the HL7 message is sent at line CHK+38: ....D EN1^PSJHL2(DFN,"SC",PSGORDR) ;,UNL^PSSLOCK(DFN,PSGORDR) move below p433 This is necessary so that the call to EN1^PSJHL2 at line CHK+42^PSJOEA1 will have the ORDER file (#100) locked after UPDREN^PSGOER is called at line CHK+41^PSJOEA1: ...D UPDREN^PSGOER(DA,$P(ND14,U),$P(ND14,U,3),$P(ND14,U,4),$P($G (^PS(53.1,+PSJO ,.2)),U,3),$P(ND14,U,2)) ...D EN1^PSJHL2(DFN,"SC",PSGORDR) ;p433 The unlock of the ORDER file (#100) is now at line CHK+49^PSJOEA1: .. D UNL^PSSLOCK(DFN,PSGORDR) ;Move unlock to here p433 Test Sites: ========== South Texas Veterans HCS, (San Antonio, TX) Northern Arizona VA HCS (Prescott, AZ) Software and Documentation Retrieval Instructions: -------------------------------------------------- The software for this patch is being released in a PackMan message. Pre-Installation Instructions: ============================= This patch may be installed with users on the system although it is recommended that it be installed during non-peak hours to minimize potential disruption to users. This patch should take less than 5 minutes to install. Installation Instructions: ========================= 1. Choose the PackMan message containing this build. Then select the INSTALL/CHECK MESSAGE PackMan option to load the build. 2. From the Kernel Installation and Distribution System Menu, select the Installation Menu. From this menu, A. Select the Verify Checksums in Transport Global option to confirm the integrity of the routines that are in the transport global. When prompted for the INSTALL NAME enter PSJ*5.0*433 B. Select the Backup a Transport Global option to create a backup message. You must use this option and specify what to backup; the entire Build or just Routines. The backup message can be used to restore the routines and components of the build to the pre-patch condition. i. At the Installation option menu, select Backup a Transport Global ii. At the Select INSTALL NAME prompt, enter your build PSJ*5.0*433 iii. When prompted for the following, enter "R" for Routines or "B" for Build. Select one of the following: B Build R Routines Enter response: Build iv. When prompted "Do you wish to secure your build? NO//", press and take the default response of "NO". v. When prompted with, "Send mail to: Last name, First Name", press to take default recipient. Add any additional recipients. vi. When prompted with "Select basket to send to: IN//", press and take the default IN mailbox or select a different mailbox. C. You may also elect to use the following options: i. Print Transport Global - This option will allow you to view the components of the KIDS build. ii. Compare Transport Global to Current System - This option will allow you to view all changes that will be made when this patch is installed. It compares all of the components of this patch, such as routines, DDs, templates, etc. D. Select the Install Package(s) option and choose the patch to install. i. If prompted 'Want KIDS to Rebuild Menu Trees Upon Completion of Install? NO//', answer NO. ii. When prompted 'Want KIDS to INHIBIT LOGONs during the install? NO//', answer NO. iii. When prompted 'Want to DISABLE Scheduled Options, Menu Options, and Protocols? NO//', answer NO. Back-out/Rollback Strategy: --------------------------- Back-out will be done only with the concurrence and participation of development team and appropriate VA site/region personnel. The decision to back-out or rollback software will be a joint decision between development team, VA site/region personnel and other appropriate VA personnel. Prior to installing an updated KIDS package, the site/region should have saved a backup of the build in a mail message using the Backup a Transport Global [XPD BACKUP] menu option (this is done at time of install). The message containing the backed-up build can be loaded with the "Xtract PackMan" function at the Message Action prompt. The Packman function "INSTALL/CHECK MESSAGE" is then used to install the backed up build onto the VistA System. The back-out plan is to restore the routines from the backup build created. No data was modified by this patch installation and, therefore, no rollback strategy is required. Validation of Back-out Procedure: --------------------------------- The Back-out Procedure can be verified by printing the first 2 lines of the routine contained in this patch using the option First Line Routine Print [XU FIRST LINE PRINT]. Once the routines contained in the PSJ*5.0*433 patch have been backed out, the first two lines of the routines will no longer contain the designation of this patch in the patch list section on line 2. Routine Information: ==================== The second line of each of these routines now looks like: ;;5.0;INPATIENT MEDICATIONS;**[Patch List]**;16 DEC 97;Build 2 The checksums below are new checksums, and can be checked with CHECK1^XTSUMBLD. Routine Name: PSJOEA1 Before: B39285212 After: B40280195 **110,127,133,171,254,382,327, 401,399,433** Routine list of preceding patches: 399 ============================================================================= User Information: Entered By : Date Entered : MAR 24, 2022 Completed By: Date Completed: APR 10, 2023 Released By : Date Released : APR 11, 2023 ============================================================================= Packman Mail Message: ===================== $END TXT