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

PRC182P1.m

Go to the documentation of this file.
  1. PRC182P1 ;FW/RB-PRE INSTALL PRC*182 TO FLAF FILE ^PRC(441.2) DELTED CODES WITH '*' ;4-26-94/3:45 PM
  1. V ;;5.1;IFCAP;**182**;Oct 20, 2000;Build 40
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. Q
  1. START ;PRC*5.1*182 Order through file 441.2 looking for DELETED
  1. ; where piece 4 = 'D'. For each deleted code
  1. ; will kill the current code 'B" x-ref and add
  1. ; new 'B' x-ref with '*' concatenated with code
  1. ; to signify deleted code which can no longer be
  1. ; pulled in search. Also, did the same thing
  1. ; 'D' x-ref for brief description to insure user
  1. ; cannot pull old description during search.
  1. ;
  1. K ^XTMP("PRC182P1")
  1. D NOW^%DTC S PRCSTART=%
  1. S ^XTMP("PRC182P1","START DELETE FLAG")=PRCSTART
  1. S ^XTMP("PRC182P1","END DELETE FLAGP")="RUNNING"
  1. S ^XTMP("PRC182P1",0)=$$FMADD^XLFDT(PRCSTART,180)_"^"_PRCSTART
  1. S U="^",PRCT1=0,PRCIEN=0
  1. 1 F S PRCIEN=$O(^PRC(441.2,PRCIEN)) Q:'PRCIEN D
  1. . S PRCR0=^PRC(441.2,PRCIEN,0) Q:$P(PRCR0,U,4)'="D"
  1. . S PRCT1=PRCT1+1
  1. . K ^PRC(441.2,"B",$P(PRCR0,U),PRCIEN) S ^PRC(441.2,"B","*"_$P(PRCR0,U),PRCIEN)=""
  1. . S PRCBDCP=$E($P(PRCR0,U,2),1,30)
  1. . K ^PRC(441.2,"D",PRCBDCP,PRCIEN) S ^PRC(441.2,"D","*"_$E(PRCBDCP,1,29),PRCIEN)=""
  1. D NOW^%DTC S PRCEND=%
  1. S ^XTMP("PRC182P1","END DELETE FLAG")=PRCEND
  1. S ^XTMP("PRC182P1","TOTAL DELETE FLAGS")=PRCT1
  1. K %,PRCSTART,PRCEND,PRCT1,PRCIEN,PRCR0,PRCBDCP
  1. Q