VistA-WorldVistAEHR/r/MEDICINE-MC/MCENDIQ1.m

11 lines
314 B
Mathematica
Raw Normal View History

2009-11-29 13:37:14 -05:00
MCENDIQ1 ;WISC/MLH-GET EXTERNAL FIELD VALUE ;5/4/92 09:54
;;2.3;Medicine;;09/13/1996
VALUE(MCFL,MCRECNO,MCFLDNO) ; get field value
N DA,DIC,DIQ,DR,MCY
K ^UTILITY("DIQ1",$J)
S DIC=MCFL,DR=MCFLDNO,DA=MCRECNO,DIQ(0)="E"
D EN^DIQ1
S MCY=$G(^UTILITY("DIQ1",$J,DIC,DA,DR,"E"))
K ^UTILITY("DIQ1",$J)
QUIT MCY