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

IBDF6C.m

Go to the documentation of this file.
  1. IBDF6C ;ALB/CJM - ENCOUNTER FORM - (deleting setup, editing form name) ;JAN 16,1993
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
  1. ;
  1. DSETUP ;allows user to select a form, then removes it from the clinic setup
  1. N SEL,IBFORM,SETUP
  1. D EN^VALM2($G(XQORNOD(0)),"S")
  1. S SEL=$O(VALMY("")),(IBFORM,VALMBCK)=""
  1. I SEL S SEL=$G(@VALMAR@("IDX",2*SEL,SEL)),IBFORM=+SEL
  1. I IBFORM D
  1. .S VALMBCK="R"
  1. .K DA S DA=$O(^SD(409.95,"B",+$G(IBCLINIC),"")) Q:'DA
  1. .S SETUP=$G(^SD(409.95,DA,0)) Q:SETUP=""
  1. .S DR=$P(SEL,"^",2)_"////@"
  1. .K DIE S DIE=409.95 D ^DIE K DIE,DR,DA
  1. .X IBAPI("INDEX")
  1. Q
  1. EDITFORM ;allows user to select a form, then edit its name, description, and size
  1. N IBFORM,IBDELETE,IBSCAN,IBOLD ;IBDELETE,IBSCAN,IBOLD appear in the input template
  1. I $G(IBAPI("SELECT"))'="" X IBAPI("SELECT")
  1. S VALMBCK="R"
  1. I IBFORM D
  1. .D UNCMPALL^IBDF19(IBFORM)
  1. .D FULL^VALM1
  1. .S VALMBCK="R"
  1. .K DA,DR,DIE S DA=IBFORM
  1. .S DR="[IBDF EDIT OLD OR COPIED FORM]"
  1. .S IBOLD=$S($P($G(^IBE(357,IBFORM,0)),"^",16):0,1:1)
  1. .S DIE=357 D ^DIE K DIE,DR,DA
  1. .X IBAPI("INDEX")
  1. Q