Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: GMRCYP41

GMRCYP41.m

Go to the documentation of this file.
  1. GMRCYP41 ;SLC/JFR - PRE/POST INSTALL FOR GMRC*3*41; 2/4/05 13:29
  1. ;;3.0;CONSULT/REQUEST TRACKING;**41**;DEC 27, 1997
  1. ;
  1. ; This routine invokes one-time IA #4605
  1. ;
  1. Q
  1. PRE ; pre-install
  1. ; This pre-install will delete the "AE", "AE1" and "AE2" MUMPS
  1. ; cross-references on the REQUEST/CONSULTATION (#123) file
  1. ; and replace them with a new-style index "AE" during the install
  1. ; that will have the same format as the prior "AE" cross-reference.
  1. ; This will insure greater reliability in the setting and
  1. ; killing of the "AE" cross-reference.
  1. ;
  1. N GMRCAE,GMRCAE1,GMRCAE2,IDX
  1. S (GMRCAE,GMRCAE1,GMRCAE2)=0
  1. K ^GMR(123,"AE") ; kill off all existing data
  1. S IDX=0
  1. F S IDX=$O(^DD(123,1,1,IDX)) Q:'IDX D
  1. . Q:$P($G(^DD(123,1,1,IDX,0)),U,2)'="AE"
  1. . S GMRCAE=IDX
  1. . D DELIX^DDMOD(123,1,GMRCAE)
  1. . S IDX=" " ;quit the loop
  1. . Q
  1. S IDX=0
  1. F S IDX=$O(^DD(123,3,1,IDX)) Q:'IDX D
  1. . Q:$P($G(^DD(123,3,1,IDX,0)),U,2)'="AE1"
  1. . S GMRCAE1=IDX
  1. . D DELIX^DDMOD(123,3,GMRCAE1)
  1. . S IDX=" " ; quit the loop
  1. . Q
  1. S IDX=0
  1. F S IDX=$O(^DD(123,8,1,IDX)) Q:'IDX D
  1. . Q:$P($G(^DD(123,8,1,IDX,0)),U,2)'="AE2"
  1. . S GMRCAE2=IDX
  1. . D DELIX^DDMOD(123,8,GMRCAE2)
  1. . S IDX=" " ; quit the loop
  1. . Q
  1. Q
  1. ;
  1. POST ; post-install to create and build new "AE" index
  1. N GMRCXR,GMRCRES,GMRCOUT
  1. S GMRCXR("FILE")=123
  1. S GMRCXR("NAME")="AE"
  1. S GMRCXR("TYPE")="R"
  1. S GMRCXR("USE")="S"
  1. S GMRCXR("EXECUTION")="R"
  1. S GMRCXR("ACTIVITY")="IR"
  1. S GMRCXR("SHORT DESCR")="Index by SERVICE, STATUS, DATE OF REQUEST"
  1. S GMRCXR("DESCR",1)="This cross reference is used for services to see all consults by service,"
  1. S GMRCXR("DESCR",2)="OE/RR status and Date of Request."
  1. S GMRCXR("VAL",1)=1
  1. S GMRCXR("VAL",1,"SUBSCRIPT")=1
  1. S GMRCXR("VAL",1,"LENGTH")=5
  1. S GMRCXR("VAL",1,"COLLATION")="F"
  1. S GMRCXR("VAL",2)=8
  1. S GMRCXR("VAL",2,"SUBSCRIPT")=2
  1. S GMRCXR("VAL",2,"LENGTH")=5
  1. S GMRCXR("VAL",2,"COLLATION")="F"
  1. S GMRCXR("VAL",3)=3
  1. S GMRCXR("VAL",3,"SUBSCRIPT")=3
  1. S GMRCXR("VAL",3,"LENGTH")=20
  1. S GMRCXR("VAL",3,"COLLATION")="F"
  1. S GMRCXR("VAL",3,"XFORM FOR STORAGE")="S X=9999999-X"
  1. D CREIXN^DDMOD(.GMRCXR,"S",.GMRCRES,"GMRCOUT")
  1. Q