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

IBDF11.m

Go to the documentation of this file.
  1. IBDF11 ;ALB/CJM - ENCOUNTER FORM - (print manager setup) ;April 20,1993
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
  1. ;
  1. CLNCSUP ;edit clinic setup for print manager
  1. N CLINIC
  1. K DIR S DIR(0)="409.95,.01",DIR("A")="EDIT REPORTS TO PRINT FOR WHICH CLINIC?"
  1. D ^DIR K DIR
  1. Q:$D(DIRUT)!(+Y<0)
  1. S CLINIC=+Y
  1. K DA S DA=$O(^SD(409.95,"B",CLINIC,"")) I 'DA D
  1. .K DIC,DO,DD,DINUM S DIC="^SD(409.95,",DIC(0)="",X=CLINIC
  1. .D FILE^DICN K DIC
  1. .S DA=$S(+Y<1:0,1:+Y)
  1. Q:'DA
  1. K DIE,DR S DIE=409.95
  1. S DR="[IBDF PRINT MANAGER]" D ^DIE K DIE,DR,DA
  1. Q
  1. DIVSUP ;edit division setup for print manager
  1. N DIVISION
  1. W !!,"You can now select reports that should be printed for the entire division",!
  1. K DIR S DIR(0)="409.96,.01",DIR("A")="EDIT REPORTS TO PRINT FOR WHICH DIVISION?"
  1. D ^DIR K DIR
  1. Q:$D(DIRUT)!(+Y<0)
  1. S DIVISION=+Y
  1. K DA S DA=$O(^SD(409.96,"B",DIVISION,"")) I 'DA D
  1. .K DIC,DO,DD,DINUM S DIC="^SD(409.96,",DIC(0)="",X=DIVISION
  1. .D FILE^DICN K DIC
  1. .S DA=$S(+Y<1:0,1:+Y)
  1. Q:'DA
  1. K DIE,DR S DIE=409.96
  1. S DR="[IBDF PRINT MANAGER]" D ^DIE K DIE,DR,DA
  1. Q
  1. EDITRPRT(HLTHSMRY) ;edit package interface,type=report
  1. ;HLTHSMRY=1 if report type is health summary, 0 otherwise
  1. N REPORT,IBDELETE,IBNEW,DLAYGO
  1. S HLTHSMRY=+$G(HLTHSMRY)
  1. W !!,"You can now edit the "_$S(HLTHSMRY:"Health Summaries",1:"reports")_" available through the print manager.",!
  1. D:'HLTHSMRY INFO^IBDF11A
  1. K DIC S DIC=357.6,DIC(0)="AELMQ",DIC("S")="I $P($G(^(0)),U,6)=4,"_$S(HLTHSMRY:"$P($G(^(0)),U,10)",1:"'$P($G(^(0)),U,10)"),DLAYGO=357.6
  1. S DIC("A")="Select a "_$S(HLTHSMRY:"Health Summary",1:"report")_" defined to the print manager: "
  1. S:HLTHSMRY DLAYGO=357.6
  1. D ^DIC K DIC
  1. Q:+Y<0
  1. S REPORT=+Y,IBNEW=$P(Y,"^",3)
  1. S IBDELETE=$S(IBNEW:1,1:0)
  1. S DA=REPORT
  1. K DIE,DR S DIE=357.6,DR=$S(HLTHSMRY:"[IBDF EDIT AVAILABLE HLTH SMRY]",1:"[IBDF EDIT AVAILABLE REPORT]"),DIE("NO^")="BACKOUTOK"
  1. D ^DIE K DIE,DR,DA
  1. I IBDELETE K DA S DIK="^IBE(357.6,",DA=REPORT D ^DIK K DIK,DA
  1. Q
  1. CLNCSUP2 ;entry point to be called by an action protocol
  1. D FULL^VALM1
  1. D CLNCSUP
  1. S VALMBCK="R"
  1. Q
  1. DIVSUP2 ;entry point to be called by an action protocol
  1. D FULL^VALM1
  1. D DIVSUP
  1. S VALMBCK="R"
  1. Q