$TXT Created by at CLN1G1.AAC.DOMAIN.EXT (KIDS) on Tuesday, 12/20/22 at 13:14 ============================================================================= Run Date: JAN 26, 2023 Designation: PSO*7*683 Package : PSO - OUTPATIENT PHARMACY Priority: Mandatory Version : 7 SEQ #581 Status: Released Compliance Date: FEB 26, 2023 ============================================================================= Associated patches: (v)PSO*7*441 <<= must be installed BEFORE `PSO*7*683' Subject: SPEED RENEW OF 'DISCONTINUED BY PROVIDER' RX Category: - Routine Description: ============ This patch addresses the following issue: 1. INC21813625 - OUTPATIENT PHARMACY SPEED RENEW OF RX STATUS DISCONTINUED BY PROVIDER Speed renew functionality is inappropriately allowing renewal of an outpatient prescription that has a discontinue reason of "DISCONTINUED BY PROVIDER". 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. INC21813625 - OUTPATIENT PHARMACY SPEED RENEW OF RX STATUS DISCONTINUED BY PROVIDER Problem: -------- Speed renew allows an outpatient prescription to be renewed for prescriptions with a status of DISCONTINUED BY PROVIDER. Renewing a prescription with this status is already blocked when renewing for a single RX selected from the Medication Profile or when doing Barcode Batch Prescription Entry. Resolution: ----------- Routine PSORENW4 is modified to check if any RXs selected for speed renew are discontinued. If any are they are removed from list of RXs to renew and the message 'Cannot renew Rx # #######, Rx is in DISCONTINUED BY PROVIDER status.' is displayed. Technical Resolution: --------------------- Line SEL+24^PSORENW4 I changed FROM S Y=0 I $G(LST)]"" F ORD=1:1:$L(LST,",") S:$P(LST,",",ORD)>0 Y=Y+1 ; count remaining orders in LST TO ;PSO 683 skip discontinued by provider RXs S (ORD,PSOLCNT)=0 I $G(LST)]"" D . ; count remaining orders in LST . F ORD=1:1:$L(LST,",")-1 D .. Q:$P(LST,",",ORD)'>0 .. S PSOLCNT=PSOLCNT+1,ORN=$P(LST,",",ORD) .. I (+PSOLST(ORN)=52&(^PSRX($P(PSOLST(ORN),U,2),"STA")=14)) D ... S PSOSKIP($P(PSOLST(ORN),U,2))="",$P(LST,",",ORD)=0,PSOLCNT=PSOLCNT-1 ; order removed from LST .I $O(PSOSKIP(0)) D .. W ! .. S ORD=0 F S ORD=$O(PSOSKIP(ORD)) Q:'ORD D ... S PSOSTA=$$GET1^DIQ(52,ORD,100) ... W $C(7),!," Cannot renew Rx # "_$$GET1^DIQ(52,ORD,.01)_", Rx is in "_PSOSTA_" status." .. D PAUSE^VALM1 ;END PSO 683 ;END PSO 683 Test Sites: ----------- Pittsburgh HCS (Pittsburgh, PA) Heartland West HCS (Wichita, KS) Patch Installation: ------------------- 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 the patch or build name (ex. PSO*7.0*683) NOTE: Using will not bring up a Multi-Package build even if it was loaded immediately before this step. It will only bring up the last patch in the build. 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 PSO*7.0*683 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 routines onto the VistA System. The back-out plan is to restore the build from the backup 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 routines contained in this patch using the option First Line Routine Print [XU FIRST LINE PRINT]. Once the build contained in the PSO*7.0*683 patch has been backed out, the first two lines of the routine 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: ;;7.0;OUTPATIENT PHARMACY;**[Patch List]**;DEC 1997;Build 4 The checksums below are new checksums, and can be checked with CHECK1^XTSUMBLD. Routine Name: PSORENW4 Before: B95504287 After:B106809939 **11,23,27,32,37,64,46,75,71, 100,130,117,152,148,264,225, 301,390,313,411,444,504,508, 550,457,639,441,683** Routine list of preceding patches: 441 ============================================================================= User Information: Entered By : Date Entered : APR 21, 2022 Completed By: Date Completed: JAN 26, 2023 Released By : Date Released : JAN 26, 2023 ============================================================================= Packman Mail Message: ===================== $END TXT