source: WorldVistAEHR/trunk/r/DIETETICS-FH/FHORC5.m@ 1650

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

revised back to 6/30/08 version

File size: 1.1 KB
Line 
1FHORC5 ; HISC/REL - Consult Management ;4/12/06 13:26
2 ;;5.5;DIETETICS;**4**;Jan 28, 2005;Build 32
3EN9 ; Enter/Edit Ward Assignments
4 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQM"
5 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))
6 S DA=+Y,DR="1;112" D ^DIE S NEW=$P(^FH(119.6,DA,0),"^",2) I 'NEW!('OLD) K OLD,NEW,X,Y G EN9
7 D:OLD'=NEW EN2^FHORC4 K OLD,NEW,X,Y G EN9
8EN10 ; List Ward Assignments
9 W ! S L=0,DIC="^FH(119.6,",FLDS="[FHORWRD]",BY=".01"
10 S (FR,TO)="",DHD="NUTRITION LOCATION ASSIGNMENTS" D EN1^DIP,RSET Q
11EN11 ; Enter/Edit Consult Types
12 S (DIC,DIE)="^FH(119.5,",DIC(0)="AEQLM",DIC("DR")=".01",DLAYGO=119.5
13 W ! D ^DIC K DIC,DLAYGO G KIL:U[X!$D(DTOUT),EN11:Y<1
14 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
15EN12 ; List Consult Types
16 W !!,"The list requires a 132 column printer.",!
17 W ! S L=0,DIC="^FH(119.5,",FLDS="[FHORCON]",BY=".01"
18 S (FR,TO)="",DHD="CONSULTATION TYPES" D EN1^DIP,RSET Q
19RSET K %ZIS S IOP="" D ^%ZIS
20KIL K %,%ZIS,IOP,BY,DA,DHD,DIC,DIE,DR,FLDS,FR,L,NEW,OLD,TO,X,Y Q
Note: See TracBrowser for help on using the repository browser.