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

ADEFIX01.m

Go to the documentation of this file.
ADEFIX01 ;IHS/HQW/MJL - SEND MISSING DATA TO PCC;  [ 11/03/1999  2:22 PM ]
 ;;6.0;ADE;**2**;NOVEMBER 1999
START ;
 W !!,"This option will update the PCC with the dental procedures skipped"
 W !,"starting from 12/1/98 through the current period."
 S DIR(0)="YA",DIR("B")="YES",DIR("A")="Continue? "
 D ^DIR Q:'Y
 I $D(DTOUT)!($D(DUOUT))!($D(DIROUT)) Q
 S ZTRTN="EP^ADEFIX01",ZTDESC="DENTAL UPDATE PCC WITH MISSING PROCEDURES",ZTIO=""
 D ^%ZTLOAD
 Q
 ;
EP ;
 S ADESTDT=2981200,ADENEWVS=1,ADESTDT=$O(^ADEPCD("AC",ADESTDT)) Q:'ADESTDT  S ADEDFN=$O(^ADEPCD("AC",ADESTDT,0))-1
 F  S ADEDFN=$O(^ADEPCD(ADEDFN)) Q:'ADEDFN  I '$D(^ADEPCD(ADEDFN,"PCC")) S ADEPAT=^ADEPCD(ADEDFN,0),ADEVDATE=$P(ADEPAT,U,2),ADECON=$P(ADEPAT,U,9),ADEPAT=$P(ADEPAT,U) S:ADECON="c" ADECON=1,ADEDIR=0 S:ADECON'="C" ADECON=0,ADEDIR=1 D ^ADEAPC
 Q