source: FOIAVistA/trunk/r/DIETETICS-FH/FHORC5.m@ 1499

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

initial load of FOIAVistA 6/30/08 version

File size: 1.3 KB
Line 
1FHORC5 ; HISC/REL - Consult Management ;4/12/06 13:26
2 ;;5.5;DIETETICS;**4,12**;Jan 28, 2005;Build 3
3 ; 10/17/2007 BP/KAM FH*5.5*12 Rem Call 210883 Remove Old Clinician Field (#1)
4EN9 ; Enter/Edit Ward Assignments
5 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQM"
6 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))
7 ; 10/17/2007 BP/KAM *12 Rem Call 210883 Removed field #1 in next line
8 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
9 D:OLD'=NEW EN2^FHORC4 K OLD,NEW,X,Y G EN9
10EN10 ; List Ward Assignments
11 W ! S L=0,DIC="^FH(119.6,",FLDS="[FHORWRD]",BY=".01"
12 S (FR,TO)="",DHD="NUTRITION LOCATION ASSIGNMENTS" D EN1^DIP,RSET Q
13EN11 ; Enter/Edit Consult Types
14 S (DIC,DIE)="^FH(119.5,",DIC(0)="AEQLM",DIC("DR")=".01",DLAYGO=119.5
15 W ! D ^DIC K DIC,DLAYGO G KIL:U[X!$D(DTOUT),EN11:Y<1
16 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
17EN12 ; List Consult Types
18 W !!,"The list requires a 132 column printer.",!
19 W ! S L=0,DIC="^FH(119.5,",FLDS="[FHORCON]",BY=".01"
20 S (FR,TO)="",DHD="CONSULTATION TYPES" D EN1^DIP,RSET Q
21RSET K %ZIS S IOP="" D ^%ZIS
22KIL 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.