$TXT Created by Henderson,Mike at FORUM.OSEHRA.ORG (KIDS) on Thursday, 06/11/15 at 04:00 ============================================================================= Run Date: JUN 11, 2015 Designation: GMPL*2.0*10002 Package : GMPL - Problem List Priority: Mandatory Version : 2.0 SEQ #SEQ Status: Released Compliance Date: JUL 09, 2015 ============================================================================= Subject: Fix to infinite loop at REPLACE^GMPLRPTR Category: - Routine - Enhancement (Mandatory) Description: ============ REPLACE^GMPLRPTR would generate an infinite loop when removing a problem off of the patient's problem list if called. This is due to the fact that the for loop incrementer was not newed in the subroutine. The FOR loop incrementer was changed from I to GMPLIX and added to the NEW statement at the top of the subroutine. Problem was originally reported APR 25, 2014 by Wes Turner to Mike Henderson. Illustration of Problem and Resolution: ======================================= Before: Infinite loop occurs Replacing problem(s) on patient's list ... Essential hypertension (SCT 59621000) Essential hypertension (SCT 59621000) Essential hypertension (SCT 59621000) Essential hypertension (SCT 59621000) Essential hypertension (SCT 59621000) Essential hypertension (SCT 59621000) ... After: Infinite loop doesn't occur Replacing problem(s) on patient's list ... Essential hypertension (SCT 59621000) Test: ===== The tests that illustrate this problem are part of the OSEHRA testing framework and were failing before this patch was released. This issue can be reproduced manually using the following steps: 1. from the “Problem List Management Menu”, edit a patient’s problem list to have a new indication Select Problem List Mgt Menu Option: patient Problem List Select PATIENT NAME: carter,DAVID JR CARTER,DAVID JR 3-2-01 000000113 NO NON-VETERAN (OTHER) WARNING : You may have selected a test patient. Searching for the patient's problem list ... PROBLEM LIST Apr 22, 2014@16:34:47 Page: 1 of 0 CARTER,DAVID JR (C0113) 0 active problems ACTIVE PROBLEMS Problem Updated Clinic No data available meeting criteria. + Next Screen - Prev Screen ?? More actions AD Add New Problems IN (Inactivate Problems) VW Select View of List RM (Remove Problems) CM (Comment on a Problem) SP Select New Patient ED (Edit a Problem) DT (Detailed Display) PP Print Problem List $ (Verify Problems) Q Quit Select Action: Add New Problems// Add Add New Problems Clinic: PROBLEM: Sinus Headache Sinus headache (SNOMED CT 4969004) Ok? YES// Y COMMENT (<60 char): DATE OF ONSET: STATUS: ACTIVE// ACTIVE (A)cute or (C)hronic? Problem: Sinus headache (SCT 4969004) Onset: SC Condition: NO Status: ACTIVE Exposure: Provider: USER,ONE Clinic: Recorded: 4/22/14 by USER,ONE (S)ave this data, (E)dit it, or (Q)uit w/o saving? SAVE// SAVE Saving ... done. >>> Please enter another problem, or press to exit. PROBLEM: PROBLEM LIST Apr 22, 2014@16:35:06 Page: 1 of 1 CARTER,DAVID JR (C0113) 1 active problems ACTIVE PROBLEMS Problem Updated Clinic 1 Sinus headache (SCT 4969004) 4/22/14 + Next Screen - Prev Screen ?? More actions AD Add New Problems IN (Inactivate Problems) VW Select View of List RM (Remove Problems) CM (Comment on a Problem) SP Select New Patient ED (Edit a Problem) DT (Detailed Display) PP Print Problem List $ (Verify Problems) Q Quit Select Action: Quit// Quit >>> THIS PATIENT'S PROBLEM LIST HAS CHANGED! Print a new problem list? YES// NO 1 Patient Problem List 2 Edit PL Site Parameters 3 Create Problem Selection Lists ... 4 List Patients with Problem List data 5 Search for Patients having selected Problem 6 Replace Removed Problem(s) on Patient's List 7 Problem List NTRT Follow-up Report 8 Problem List Freetext Follow-up Report Select Problem List Mgt Menu Option: 2. Remove the newly added indication: Select Problem List Mgt Menu Option: patient Problem List Select PATIENT NAME: carter,DAVID JR CARTER,DAVID JR 3-2-01 000000113 NO NON-VETERAN (OTHER) WARNING : You may have selected a test patient. Searching for the patient's problem list ... PROBLEM LIST Apr 22, 2014@16:38:20 Page: 1 of 1 CARTER,DAVID JR (C0113) 1 active problems ACTIVE PROBLEMS Problem Updated Clinic 1 Sinus headache (SCT 4969004) 4/22/14 + Next Screen - Prev Screen ?? More actions AD Add New Problems IN (Inactivate Problems) VW Select View of List RM (Remove Problems) CM (Comment on a Problem) SP Select New Patient ED (Edit a Problem) DT (Detailed Display) PP Print Problem List $ (Verify Problems) Q Quit Select Action: Quit// RM Remove Problems Select Problem(s): 1// CAUTION: This problem will be completely removed from this patient's list!! Are you sure? NO// YES Sinus headache (SCT 4969004) REASON FOR REMOVAL: Entered in error ..... removed! PROBLEM LIST Apr 22, 2014@16:39:44 Page: 1 of 1 CARTER,DAVID JR (C0113) 1 active problems ACTIVE PROBLEMS Problem Updated Clinic 1 4/22/14 + Next Screen - Prev Screen ?? More actions AD Add New Problems IN (Inactivate Problems) VW Select View of List RM (Remove Problems) CM (Comment on a Problem) SP Select New Patient ED (Edit a Problem) DT (Detailed Display) PP Print Problem List $ (Verify Problems) Q Quit Select Action: Quit// Quit >>> THIS PATIENT'S PROBLEM LIST HAS CHANGED! Print a new problem list? YES// NO 1 Patient Problem List 2 Edit PL Site Parameters 3 Create Problem Selection Lists ... 4 List Patients with Problem List data 5 Search for Patients having selected Problem 6 Replace Removed Problem(s) on Patient's List 7 Problem List NTRT Follow-up Report 8 Problem List Freetext Follow-up Report Select Problem List Mgt Menu Option: 3. Use the “Replace Removed Problem(s) on Patient’s List” option to restore the indication onto the problem list: 1 Patient Problem List 2 Edit PL Site Parameters 3 Create Problem Selection Lists ... 4 List Patients with Problem List data 5 Search for Patients having selected Problem 6 Replace Removed Problem(s) on Patient's List 7 Problem List NTRT Follow-up Report 8 Problem List Freetext Follow-up Report Select Problem List Mgt Menu Option: 6 Replace Removed Problem(s) on Patient's List Select PATIENT NAME: carter,DAVID JR CARTER,DAVID JR 3-2-01 000000113 NO NON-VETERAN (OTHER) WARNING : You may have selected a test patient. ...SORRY, JUST A MOMENT PLEASE..... REMOVED PROBLEMS FOR CARTER,DAVID JR (C0113): Problem Removed By Whom ------------------------------------------------------------------------------- 1 Sinus headache (SCT 4969004) 4/22/14 USER,O Select the problem(s) you wish to replace on this patient's list: 1 Are you sure you want to do this? NO// YES Replacing problem(s) on patient's list ... Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) Sinus headache (SCT 4969004) … … . S:$D(X)#2 (DIKCX,DIKCX(DIKO))=X K X M X=DIKCX ^ SETXARR+16^DIKC VISTA 20d3> Note: We expect that the problem text should only be printed once, with control passing back to the roll-and-scroll interface on completion. The March 2014 FOIA will cause the problem text to print until the user interrupts the process with a CTRL+C. Future work: ============ None. Contents: ========= This patch includes file GMPL-2.0_PAT-10002_T2.KID, which can be installed using the KIDS Build installation options on menu XPD INSTALLATION MENU. Test Sites: =========== OSEHRA Testing framework JIRA: ===== CONV-81 - Remediate Problem List issues in current FOIA release http://issues.osehra.org/browse/CONV-81 INSTALLATION INSTRUCTIONS: ========================== This patch can be installed with users on the system with installation taking less than 10 minutes. Note: The following is a list of REQUIRED builds for GMPL*2.0*10002. KIDS will not allow the installation of this patch without the prior installation of them. GMPL*2.0*10002 1. Use the INSTALL/CHECK MESSAGE option on the PackMan menu. [Note: TEXT PRINT/DISPLAY option in the PackMan menu will display the patch text only.] 2. From the Kernel Installation and Distribution System Menu, select the Installation menu. 3. From this menu, you may elect to use the following options (when prompted for INSTALL NAME, enter GMPL*2.0*10002): a. Backup a Transport Global b. Compare Transport Global to Current System c. Verify Checksums in Transport Global d. Print Transport Global 4. Use the Install Package(s) option and select the package GMPL*2.0*10002. 5. When prompted 'Want KIDS to INHIBIT LOGONs during the install? YES//', respond NO. 6. When prompted 'Want to DISABLE Scheduled Options, Menu Options, and Protocols? YES//', respond NO. Routine Information: ==================== The second line of each of these routines now looks like: (2nd line) The checksums below are new checksums, and can be checked with CHECK1^XTSUMBLD. Routine Name: GMPLRPTR Before: ? After: ? **28,10002** Routine list of preceding patches: 28 ============================================================================= User Information: Entered By : SOME,ONE Date Entered : ? Completed By: SOME,ONE ELSE Date Completed: ? Released By : SOME,ONE DIFFERENT Date Released : ? =============================================================================