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

IBDFESP.m

Go to the documentation of this file.
  1. IBDFESP ;ALB/AAS - AICS EDIT SITE PARAMS ; 19-DEC-95
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
  1. ;
  1. EDIT ; -- edit site parameters
  1. N DIC,DIE,DA,DR,X,Y,HOLD
  1. I $G(^IBD(357.09,1,0))="" D CREATE
  1. S DIE="^IBD(357.09,",DA=1
  1. S HOLD=$P($G(^IBD(357.09,DA,0)),"^",8,9)
  1. W !!,"Edit AICS Site Parameters"
  1. W !!,"Form Tracking Purge Parameters"
  1. S DR=".02;.03;1.01;W !!,""Data Entry Parameters"";.04;.06;.07;W !!,""Print Parameters"";.05//YES;.1//30;W !!,""Scanning Parameters"";I '$D(^XUSEC(""IBD MANAGER"",DUZ)) S Y=1.02;.08//20;.09//5;1.02"
  1. D ^DIE
  1. ;
  1. ; -- if scanning parameters have changed, force a regen. of all fs
  1. I HOLD'=$P($G(^IBD(357.09,DA,0)),"^",8,9) D
  1. .W !!,$C(7),"***SCANNING PERCENTAGES HAVE CHANGED***"
  1. .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!"
  1. .S ZTRTN="FSPEC^IBDFESP",ZTDESC="IBD - REGENERATE FORM SPECS",ZTDTH=$H,ZTIO="" D ^%ZTLOAD
  1. .W !!,$S($D(ZTSK):"Form Spec Regeneration task # "_ZTSK,1:"Form Spec Regeneration failed, edit scanning parameters again!") D HOME^%ZIS
  1. Q
  1. ;
  1. CREATE ; -- create entry in new parameters file 357.09
  1. I $G(^IBD(357.09,1,0))'="" Q
  1. N DLAYGO
  1. S DIC="^IBD(357.09,",DINUM=1,X=$P($$SITE^VASITE,"^",2),DIC(0)="L",DLAYGO=357.09 D FILE^DICN Q:+Y<1
  1. S $P(^IBD(357.09,1,0),"^",5)=1 ; set print inpatients to yes
  1. S ^IBD(357.09,1,"Q",0)="^357.091A^"
  1. Q
  1. FSPEC ;Form Specs deleted from file 359.2 FORM SPEC file.
  1. N IBDIFN
  1. S IBDIFN=0
  1. F S IBDIFN=$O(^IBD(359.2,IBDIFN)) Q:IBDIFN']"" I $D(^IBD(357.95,IBDIFN,0)) D SCAN^IBDFBKS(IBDIFN)
  1. Q