source: FOIAVistA/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDFESP.m@ 1742

Last change on this file since 1742 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.8 KB
Line 
1IBDFESP ;ALB/AAS - AICS EDIT SITE PARAMS ; 19-DEC-95
2 ;;3.0;AUTOMATED INFO COLLECTION SYS;**15,25**;APR 24, 1997
3 ;
4EDIT ; -- edit site parameters
5 I '$D(DT) D DT^DICRW
6 N DIC,DIE,DA,DR,X,Y,HOLD,HOLD2
7 I $G(^IBD(357.09,1,0))="" D CREATE
8 S DIE="^IBD(357.09,",DA=1
9 S HOLD=$P($G(^IBD(357.09,DA,0)),"^",8,9)
10 S HOLD2=$P($G(^IBD(357.09,DA,0)),"^",12)
11 W !!,"Edit AICS Site Parameters"
12 W !!,"Form Tracking Purge Parameters"
13 S DR=".02;.03;1.01;W !!,""Data Entry Parameters"";.04;.06;.07;W !!,""Print Parameters"";.05//YES;.1//30;.13//12;.14//25;W !!,""Scanning Parameters"";I '$D(^XUSEC(""IBD MANAGER"",DUZ)) S Y=1.02;.08//20;.09//5;.12//2;1.02;.11"
14 D ^DIE
15 ;
16 ; -- if scanning parameters have changed, force a regen. of all fs
17 I (HOLD'=$P($G(^IBD(357.09,DA,0)),"^",8,9))!(HOLD2'=$P($G(^IBD(357.09,DA,0)),"^",12)) D
18 .W !!,$C(7),"***SCANNING PERCENTAGES HAVE CHANGED***"
19 .W !!,"In order for scanning % changes to take affect, you MUST DELETE ALL",!,"Form Specification files from EVERY workstation. Delete EF*.FS files using",!,"the FILE, DELETE FORMSPEC options on the AICS Workstation screen!"
20 .S ZTRTN="FSPEC^IBDFESP",ZTDESC="IBD - REGENERATE FORM SPECS",ZTDTH=$H,ZTIO="" D ^%ZTLOAD
21 .W !!,$S($D(ZTSK):"Form Spec Regeneration task # "_ZTSK,1:"Form Spec Regeneration failed, edit scanning parameters again!") D HOME^%ZIS
22 Q
23 ;
24CREATE ; -- create entry in new parameters file 357.09
25 I $G(^IBD(357.09,1,0))'="" Q
26 N DLAYGO
27 S DIC="^IBD(357.09,",DINUM=1,X=$P($$SITE^VASITE,"^",2),DIC(0)="L",DLAYGO=357.09 D FILE^DICN Q:+Y<1
28 S $P(^IBD(357.09,1,0),"^",5)=1 ; set print inpatients to yes
29 S ^IBD(357.09,1,"Q",0)="^357.091A^"
30 Q
31FSPEC ;Form Specs deleted from file 359.2 FORM SPEC file.
32 N IBDIFN
33 S IBDIFN=0
34 F S IBDIFN=$O(^IBD(359.2,IBDIFN)) Q:IBDIFN']"" I $D(^IBD(357.95,IBDIFN,0)) D SCAN^IBDFBKS(IBDIFN)
35 Q
Note: See TracBrowser for help on using the repository browser.