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

DGYQPOST.m

Go to the documentation of this file.
  1. DGYQPOST ;AISC/TET - POST INIT TO PATCH DG*5.3*41
  1. ;;5.3;Registration;**41,1015**;Aug 13, 1993;Build 21
  1. EN ;entry point for entire post init
  1. D RCOMP,WARD,DOB
  1. Q
  1. RCOMP ;entry point to re-compile templates
  1. N DGDASH,DGMAX,DGROU,DGTEMP,I
  1. S:'$D(DTIME) DTIME=300 S U="^",$P(DGDASH,"=",81)="",DGMAX=$G(^DD("ROU")) S:'DGMAX DGMAX=5000
  1. W !!?17,"Recompilation of affected Registration Input Templates",!,DGDASH,!
  1. F I=1:1 S DGTEMP=$P($T(ITEMP+I),";;",2) Q:DGTEMP="END" W !?5,DGTEMP D
  1. .N DMAX,DGIEN,DGROU,X,Y
  1. .S DGIEN=$O(^DIE("B",DGTEMP,0)) Q:'DGIEN
  1. .S DGROU=$G(^DIE(DGIEN,"ROUOLD")) I DGROU']""!('$D(^DIE(DGIEN,0))) Q
  1. .S X=$P(DGROU,U),DMAX=DGMAX,Y=DGIEN D EN^DIEZ
  1. .W !?5,"===> ",DGTEMP," input template recompiled.",!
  1. ;Q
  1. ITEMP ;input templates to be recompiled
  1. ;;DGPM ADMIT
  1. ;;DGPM ASIH ADMIT
  1. ;;DGPM SPECIALTY TRANSFER
  1. ;;DVBA C ADD 2507 PAT
  1. ;;END
  1. Q
  1. WARD ;delete .001 field from ward location file (#42), if exists
  1. I $D(^DD(42,.001)) D
  1. .N DA,DIC,DIK
  1. .W !!,"Deleting the Number field (#.001) from the WARD LOCATION file (#42)."
  1. .S DIK="^DD(42,",DA=".001",DA(1)=42 D ^DIK K DIK,DA
  1. .W !?10," ... Deleted",!
  1. Q
  1. DOB ;entry point to remove value from latest dob field (#.07) in period of service file (#21)
  1. W !!,">>>> Modifying data in the Period of Service File (#21)..."
  1. W !," >>>> Deleting the Latest DOB Field (#.07) for select entries",!
  1. N DIC,DIE,DA,DR,X,Y,DGX,DGERR
  1. S DIC="^DIC(21,"
  1. S DIC(0)="XZ"
  1. F DGX="PERSIAN GULF WAR","OPERATION DESERT SHIELD" D Q:$G(DGERR)
  1. .S X=DGX
  1. .D ^DIC
  1. .I Y'>0 D
  1. ..W !!,"*****"
  1. ..W ?7,"There was a problem identifying the following PERIOD OF SERVICE"
  1. ..W !?7,"entry: ",DGX,!
  1. ..S DGERR=1
  1. .I Y>0 D
  1. ..W !!,"IEN= ",+Y,?10," Period of Service: ",$P(Y,U,2)
  1. ..S DA=+Y,DIE=DIC,DR=".07///@"
  1. ..D ^DIE
  1. ..W ", Field #.07 deleted.",!
  1. D:$G(DGERR) ERRMESS
  1. W:'$G(DGERR) !!,"Done."
  1. Q
  1. ERRMESS ;
  1. W !!!!
  1. F X=1:1 S DGX=$T(MESS+X) Q:$G(DGX)="" W !,$P(DGX,";;",2)
  1. Q
  1. MESS ;
  1. ;;It appears as if the PERIOD OF SERVICE File (#21) has been locally
  1. ;;modified at this site.
  1. ;;
  1. ;;The PERIOD OF SERVICE file contains entries as determined by VACO
  1. ;;MAS. Alteration of existing entries or addition of new ones will
  1. ;;undoubtedly have a negative impact on the efficient operation of the
  1. ;;MAS module and other modules.
  1. ;;
  1. ;;Please contact your Support ISC before continuing. This routine,
  1. ;;at tag DOB^DGYQPOST, may be re-run multiple times.