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

FHORC5.m

Go to the documentation of this file.
  1. FHORC5 ; HISC/REL - Consult Management ;4/12/06 13:26
  1. ;;5.5;DIETETICS;**4,12**;Jan 28, 2005;Build 3
  1. ; 10/17/2007 BP/KAM FH*5.5*12 Rem Call 210883 Remove Old Clinician Field (#1)
  1. EN9 ; Enter/Edit Ward Assignments
  1. K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQM"
  1. W ! D ^DIC G KIL:U[X!$D(DTOUT),EN9:Y<1 S OLD=$S($P(Y,"^",3):"",1:$P(^FH(119.6,+Y,0),"^",2))
  1. ; 10/17/2007 BP/KAM *12 Rem Call 210883 Removed field #1 in next line
  1. S DA=+Y,DR="112" D ^DIE S NEW=$P(^FH(119.6,DA,0),"^",2) I 'NEW!('OLD) K OLD,NEW,X,Y G EN9
  1. D:OLD'=NEW EN2^FHORC4 K OLD,NEW,X,Y G EN9
  1. EN10 ; List Ward Assignments
  1. W ! S L=0,DIC="^FH(119.6,",FLDS="[FHORWRD]",BY=".01"
  1. S (FR,TO)="",DHD="NUTRITION LOCATION ASSIGNMENTS" D EN1^DIP,RSET Q
  1. EN11 ; Enter/Edit Consult Types
  1. S (DIC,DIE)="^FH(119.5,",DIC(0)="AEQLM",DIC("DR")=".01",DLAYGO=119.5
  1. W ! D ^DIC K DIC,DLAYGO G KIL:U[X!$D(DTOUT),EN11:Y<1
  1. S DA=+Y,DR=".01:2;S FHA1=X;3;S Y=$S(FHA1=""Y"":4,1:5);4;5:99" S:$D(^XUSEC("FHMGR",DUZ)) DIDEL=119.5 D ^DIE K DA,DIE,DIDEL,DR,FHA1 G EN11
  1. EN12 ; List Consult Types
  1. W !!,"The list requires a 132 column printer.",!
  1. W ! S L=0,DIC="^FH(119.5,",FLDS="[FHORCON]",BY=".01"
  1. S (FR,TO)="",DHD="CONSULTATION TYPES" D EN1^DIP,RSET Q
  1. RSET K %ZIS S IOP="" D ^%ZIS
  1. KIL K %,%ZIS,IOP,BY,DA,DHD,DIC,DIE,DR,FLDS,FR,L,NEW,OLD,TO,X,Y Q