Changeset 636 for FOIAVistA/tag/r/DIETETICS-FH
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (15 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 10 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/DIETETICS-FH/FHASP1.m
r628 r636 1 1 FHASP1 ; HISC/REL/JH - Nutrition Profile (cont) ;5/2/01 10:14 2 ;;5.5;DIETETICS;**8 ,9**;Jan 28, 2005;Build 72 ;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28 3 3 ; 4 4 I '$G(FHET) S X="T-365",%DT="XT" D ^%DT S FHET=Y K %DT … … 63 63 F KK=35:-1:1 Q:$E(X,KK-1,KK)=", " 64 64 W $E(X,1,KK-2) S X=$E(X,KK+1,999) Q 65 SP Q:'$P(X,U) S M1=$P(X,"^",2) S:M1="A" !(M1="")M1="BNE" S Z=$G(^FH(115.2,+X,0)) Q:$P(Z,U)=""!($P(Z,U,2)="") S L1=$P(Z,"^",1),KK=$P(Z,"^",2),M="",DAS=$P(X,"^",4)65 SP Q:'$P(X,U) S M1=$P(X,"^",2) S:M1="A" M1="BNE" S Z=$G(^FH(115.2,+X,0)) Q:$P(Z,U)=""!($P(Z,U,2)="") S L1=$P(Z,"^",1),KK=$P(Z,"^",2),M="",DAS=$P(X,"^",4) 66 66 I KK="L" S Q=$P(X,"^",3),L1=$S(Q:Q,1:1)_" "_L1 67 67 I M1="BNE" S M="1~All Meals" G SP1 -
FOIAVistA/tag/r/DIETETICS-FH/FHDSSAPI.m
r628 r636 1 FHDSSAPI ;Hines OIFO/RTK ,JRC-DSS REQUESTED API's ;11/23/07 12:40pm2 ;;5.5;DIETETICS;**7,11 ,10**;Jan 28, 2005;Build 51 FHDSSAPI ;Hines OIFO/RTK-DSS REQUESTED API's ;3/08/06 10:15 2 ;;5.5;DIETETICS;**7,11**;Jan 28, 2005;Build 4 3 3 ;11/22/2006 KAM/BAY Remedy Call 168346 Add Variable Cleanup from *7 4 4 ; … … 9 9 I FHSDT>FHEDT W !!,"END DATE BEFORE START DATE!",! H 1 Q 10 10 K ^TMP($J,"FH") S FHEDT=FHEDT_.99 11 F FHDFN=0:0 S FHDFN=$O(^FHPT(FHDFN)) Q:FHDFN'>0 F FHADM=0:0 S FHADM=$O(^FHPT(FHDFN,"A",FHADM)) Q:FHADM'>0 D 12 .I '$D(^FHPT(FHDFN,0)) Q 13 .; Quit if patient is deceased - DSS developer added lines DATA+9,10,13 14 .S FHDCEASE=$$GET1^DIQ(2,$P(^FHPT(FHDFN,0),U,3),".351","I") 15 .Q:FHDCEASE&(FHDCEASE<FHSDT) 16 .S FHZN=$G(^FHPT(FHDFN,"A",FHADM,0)),FHLAST="" 17 .S FHADTM=$P(FHZN,U,1) I FHADTM>FHEDT Q 18 .I '$P(FHZN,U,14),FHDCEASE S $P(FHZN,U,14)=FHDCEASE 19 .S FHDDTM=$P(FHZN,U,14) I FHDDTM'="",FHDDTM<FHSDT Q 20 .F FHDATE=0:0 S FHDATE=$O(^FHPT(FHDFN,"A",FHADM,"AC",FHDATE)) Q:FHDATE'>0!(FHDATE>FHEDT) D 21 ..S FHDSEQ=$P($G(^FHPT(FHDFN,"A",FHADM,"AC",FHDATE,0)),U,2) 22 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"DI",FHDSEQ,0)) 23 ..I FHDATE<FHSDT I FHLAST'="" K ^TMP($J,"FH",FHADM,FHDFN,FHLAST,"INP") 24 ..S FHLAST=FHDATE 25 ..S ^TMP($J,"FH",FHADM,FHDFN,FHDATE,"INP")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 26 .; Get additional feedings for inpatient 27 .F FHDATE=0:0 S FHDATE=$O(^FHPT(FHDFN,"A",FHADM,"EL",FHDATE)) Q:FHDATE'>0!(FHDATE>FHEDT) D 28 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"EL",FHDATE,0)) 29 ..I FHDATE<FHSDT Q I FHLAST'="" K ^TMP($J,"FH",FHADM,FHDFN,FHLAST,"EL") 30 ..S ^TMP($J,"FH",FHADM,FHDFN,FHDATE,"EL")=FHNODE 31 .S FHLAST="" F FHSF=0:0 S FHSF=$O(^FHPT(FHDFN,"A",FHADM,"SF",FHSF)) Q:FHSF'>0 D 32 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"SF",FHSF,0)) 33 ..S FHDATE=$P(FHNODE,U,2) I FHDATE>FHEDT Q 34 ..S FHCDATE=$P(FHNODE,U,32) I FHCDATE'="" I FHCDATE<FHSDT Q 35 ..I FHDATE<FHSDT I FHLAST'="" K ^TMP($J,"FH",FHADM,FHDFN,FHLAST,"SF") 36 ..S FHLAST=FHDATE 37 ..S ^TMP($J,"FH",FHADM,FHDFN,FHDATE,"SF")=FHNODE 38 .S FHNUM=0 F FHSO=0:0 S FHSO=$O(^FHPT(FHDFN,"A",FHADM,"SP",FHSO)) Q:FHSO'>0 D 39 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"SP",FHSO,0)) 40 ..S FHDATE=$P(FHNODE,U,4) I FHDATE>FHEDT Q 41 ..S FHCDATE=$P(FHNODE,U,6) I FHCDATE'="" I FHCDATE<FHSDT Q 42 ..S FHNUM=FHNUM+1,^TMP($J,"FH",FHADM,FHDFN,FHDATE,"SO",FHNUM)=FHNODE 43 .S FHLAST="" F FHTF=0:0 S FHTF=$O(^FHPT(FHDFN,"A",FHADM,"TF",FHTF)) Q:FHTF'>0 D 44 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"TF",FHTF,0)) 45 ..S FHDATE=$P(FHNODE,U,1) I FHDATE>FHEDT Q 46 ..S FHCDATE=$P(FHNODE,U,11) I FHCDATE'="" I FHCDATE<FHSDT Q 47 ..I FHDATE<FHSDT I FHLAST'="" K ^TMP($J,"FH",FHADM,FHDFN,FHLAST,"TF") 48 ..S FHLAST=FHDATE 49 ..S ^TMP($J,"FH",FHADM,FHDFN,FHDATE,"TF")=FHNODE 11 F FHDFN=0:0 S FHDFN=$O(^FHPT(FHDFN)) Q:FHDFN'>0 F FHADM=0:0 S FHADM=$O(^FHPT(FHDFN,"A",FHADM)) Q:FHADM'>0 F FHDATE=FHSDT:0 S FHDATE=$O(^FHPT(FHDFN,"A",FHADM,"AC",FHDATE)) Q:FHDATE'>0!(FHDATE>FHEDT) D 12 .S FHDSEQ=$P($G(^FHPT(FHDFN,"A",FHADM,"AC",FHDATE,0)),U,2) 13 .S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"DI",FHDSEQ,0)) 14 .S ^TMP($J,"FH",FHDATE,FHDFN,FHADM,"INP")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 15 ; Get additional feedings for inpatient 16 F FHDFN=0:0 S FHDFN=$O(^FHPT(FHDFN)) Q:FHDFN'>0 F FHADM=0:0 S FHADM=$O(^FHPT(FHDFN,"A",FHADM)) Q:'FHADM D 17 .F FHEL=FHSDT:0 S FHEL=$O(^FHPT(FHDFN,"A",FHADM,"EL",FHEL)) Q:FHEL'>0!(FHEL>FHEDT) D 18 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"EL",FHEL,0)) 19 ..S ^TMP($J,"FH",FHEL,FHDFN,FHADM,"EL")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 20 .F FHSF=0:0 S FHSF=$O(^FHPT(FHDFN,"A",FHADM,"SF",FHSF)) Q:FHSF'>0 D 21 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"SF",FHSF,0)),FHSFDT=$P(FHNODE,U,2) 22 ..I FHSFDT<FHSDT!(FHSFDT>FHEDT) Q 23 ..S ^TMP($J,"FH",FHSFDT,FHDFN,FHADM,"SF")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 24 .F FHSO=0:0 S FHSO=$O(^FHPT(FHDFN,"A",FHADM,"SP",FHSO)) Q:FHSO'>0 D 25 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"SP",FHSO,0)),FHSODT=$P(FHNODE,U,4) 26 ..I FHSODT<FHSDT!(FHSODT>FHEDT) Q 27 ..S ^TMP($J,"FH",FHSODT,FHDFN,FHADM,"SO")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 28 .F FHTF=0:0 S FHTF=$O(^FHPT(FHDFN,"A",FHADM,"TF",FHTF)) Q:FHTF'>0 D 29 ..S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"TF",FHTF,0)),FHTFDT=$P(FHNODE,U,1) 30 ..I FHTFDT<FHSDT!(FHTFDT>FHEDT) Q 31 ..S ^TMP($J,"FH",FHTFDT,FHDFN,FHADM,"TF")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 50 32 ..F FHTFPR=0:0 S FHTFPR=$O(^FHPT(FHDFN,"A",FHADM,"TF",FHTF,"P",FHTFPR)) Q:FHTFPR'>0 D 51 33 ...S FHNODE=$G(^FHPT(FHDFN,"A",FHADM,"TF",FHTF,"P",FHTFPR,0)) 52 ...S ^TMP($J,"FH",FHADM,FHDFN,FHDATE,"TF",FHTFPR,"P")=FHNODE 53 ...Q 34 ...S ^TMP($J,"FH",FHTFDT,FHDFN,FHADM,"TF",FHTFPR,"P")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 54 35 ..Q 55 36 .Q … … 59 40 F FHOMDT=FHSDTX1:0 S FHOMDT=$O(^FHPT("RM",FHOMDT)) Q:FHOMDT=""!(FHOMDT'<FHEDT) D 60 41 .F FHDFN=0:0 S FHDFN=$O(^FHPT("RM",FHOMDT,FHDFN)) Q:FHDFN="" D 61 ..I '$D(^FHPT(FHDFN,0)) Q62 42 ..F FHRNUM=0:0 S FHRNUM=$O(^FHPT("RM",FHOMDT,FHDFN,FHRNUM)) Q:FHRNUM="" D 63 43 ...S FHNODE=$G(^FHPT(FHDFN,"OP",FHRNUM,0)) I $P(FHNODE,U,15)="C" Q … … 65 45 ...S ^TMP($J,"FH",FHOMDT,FHDFN,FHRNUM,"RM")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 66 46 ...; 67 ...; IF NON-VA LOC DIET(S) ARE IN FIELDS DIET1-DIET547 ...; SHOULD LET DSS KNOW DIETS COULD BE IN FIELDS DIET1-5 IF NONVA LOC 68 48 ...; 69 49 ...I $D(^FHPT(FHDFN,"OP",FHRNUM,2)) D … … 81 61 F FHOMDT=FHSDTX1:0 S FHOMDT=$O(^FHPT("SM",FHOMDT)) Q:FHOMDT=""!(FHOMDT'<FHEDT) D 82 62 .F FHDFN=0:0 S FHDFN=$O(^FHPT("SM",FHOMDT,FHDFN)) Q:FHDFN="" D 83 ..I '$D(^FHPT(FHDFN,0)) Q84 63 ..S FHNODE=$G(^FHPT(FHDFN,"SM",FHOMDT,0)) I $P(FHNODE,U,2)'="A" Q 85 64 ..I $P($G(^FHPT(FHDFN,0)),U,3)="" Q … … 88 67 F FHOMDT=FHSDTX1:0 S FHOMDT=$O(^FHPT("GM",FHOMDT)) Q:FHOMDT=""!(FHOMDT'<FHEDT) D 89 68 .F FHDFN=0:0 S FHDFN=$O(^FHPT("GM",FHOMDT,FHDFN)) Q:FHDFN="" D 90 ..I '$D(^FHPT(FHDFN,0)) Q91 69 ..S FHNODE=$G(^FHPT(FHDFN,"GM",FHOMDT,0)) I $P(FHNODE,U,9)="C" Q 92 70 ..I $P($G(^FHPT(FHDFN,0)),U,3)="" Q 93 71 ..S ^TMP($J,"FH",FHOMDT,FHDFN,"GM")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0) 94 72 K FHADM,FHDATE,FHDFN,FHDSEQ,FHEL,FHNODE,FHNODE2,FHNODE3,FHOMDT,FHRNUM 95 K FHSDTX1,FHSF,FHSFDT,FHSO,FHSODT,FHTF,FHTFDT,FHTFPR,FHTUZN,FHZ,FHZN 96 K FHCDATE,FHNUM,FHEFF,FHADTM,FHDDTM,FHLAST,X,X1,X2,FHDCEASE 73 K FHSDTX1,FHSF,FHSFDT,FHSO,FHSODT,FHTF,FHTFDT,FHTFPR,FHTUZN,FHZ,X,X1,X2 97 74 Q -
FOIAVistA/tag/r/DIETETICS-FH/FHNO2.m
r628 r636 1 1 FHNO2 ; HISC/REL/NCA - Supplemental Feeding Labels ;8/26/94 12:01 2 ;;5.5;DIETETICS;**5 ,13**;Jan 28, 2005;Build 12 ;;5.5;DIETETICS;**5**;Jan 28, 2005;Build 53 3 3 ;patch #5 - add outpatient SFs. 4 4 D0 R !!,"Select by S=SUPPLEMENTAL FEEDING SITE or W=WARD: ",XX:DTIME G:'$T!("^"[XX) KIL I "sw"[XX S X=XX D TR^FH S XX=X … … 89 89 .S FHODAT=$G(^FHPT(FHDFN,"OP",ADM,0)),FHNO=$P($G(^FHPT(FHDFN,"OP",ADM,"SF",0)),U,3) Q:'$G(FHNO) 90 90 .S FHMEAL=$P(FHODAT,U,4),FHOWARD=$P(FHODAT,U,3) 91 .S X1=$G(^FH(119.6,FHOWARD,0)) 91 .S X1=$G(^FH(119.6,FHOWARD,0)),WRDN=$P(X1,U,1) 92 92 .Q:'FHOWARD!'$D(^FH(119.6,FHOWARD,0)) 93 93 .I XX="W",W1 Q:W1'=FHOWARD 94 .S WRDN=$P(X1,U,1)95 94 .I XX="S" S D2=$P(X1,"^",9) Q:D1'=D2 I D1=D2 S P0=$P(X1,"^",4),P0=$S(P0<1:99,P0<10:"0"_P0,1:P0) 96 95 .S P1=$S(FHMEAL="N":13,FHMEAL="E":21,1:5) -
FOIAVistA/tag/r/DIETETICS-FH/FHOMPP.m
r628 r636 1 FHOMPP ; OIFO/RTK - Patient Profile for Outpatients ; 7/2/20072 ;;5.5;DIETETICS; **9**;Jan 28, 2005;Build 71 FHOMPP ; OIFO/RTK - Patient Profile for Outpatients ;6/23/03 1:04 2 ;;5.5;DIETETICS;;Jan 28, 2005 3 3 D DEV Q 4 4 DEV ;get device and set up queue … … 49 49 ; Data is returned in ^TMP($J,"FHPROF",DFN,FHX) 50 50 S FHZ115="P"_DFN D CHECK^FHOMDPA I FHDFN="" Q "-1^Invalid outpatient" 51 K ^TMP($J,"FHPROF" ),^TMP($J,"L"),^TMP($J,"D") S (FHX,N)=0 D PATNAME^FHOMUTL51 K ^TMP($J,"FHPROF",DFN) S (FHX,N)=0 D PATNAME^FHOMUTL 52 52 S FHB="" F I=1:1:80 S FHB=FHB_" " 53 53 S ^TMP($J,"FHPROF",DFN,FHX)="OUTPATIENT NAME: "_FHPTNM_" "_FHSSN … … 67 67 I $D(^TMP($J,"L")) S N=1 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)="Likes" 68 68 S FHM="" F S FHM=$O(^TMP($J,"L",FHM)) Q:FHM="" D 69 .F FHP=0:0 S FHP=$O(^TMP($J,"L",FHM,FHP)) Q:FHP'>0 S N=0 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)=^TMP($J,"L",FHM,FHP) 69 .F FHP=0:0 S FHP=$O(^TMP($J,"L",FHM,FHP)) Q:FHP'>0 S N=0 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)=^TMP($J,"L",FHM,FHP) Q 70 70 I $D(^TMP($J,"D")) S N=1 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)="Dislikes" 71 71 S FHM="" F S FHM=$O(^TMP($J,"D",FHM)) Q:FHM="" D 72 .F FHP=0:0 S FHP=$O(^TMP($J,"D",FHM,FHP)) Q:FHP'>0 S N=0 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)=^TMP($J,"D",FHM,FHP) 72 .F FHP=0:0 S FHP=$O(^TMP($J,"D",FHM,FHP)) Q:FHP'>0 S N=0 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)=^TMP($J,"D",FHM,FHP) Q 73 73 ; 74 74 S N=1 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)="Recurring Meals on File: " -
FOIAVistA/tag/r/DIETETICS-FH/FHORC5.m
r628 r636 1 1 FHORC5 ; 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) 2 ;;5.5;DIETETICS;**4**;Jan 28, 2005;Build 32 4 3 EN9 ; Enter/Edit Ward Assignments 5 4 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQM" 6 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)) 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 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 9 7 D:OLD'=NEW EN2^FHORC4 K OLD,NEW,X,Y G EN9 10 8 EN10 ; List Ward Assignments -
FOIAVistA/tag/r/DIETETICS-FH/FHPRO.m
r628 r636 1 1 FHPRO ; HISC/REL/RTK - Food Production Manager ;4/12/06 15:53 2 ;;5.5;DIETETICS;**4,5,12**;Jan 28, 2005;Build 3 3 ; 4 ; 10/16/2007 BY/KAM FH*5.5*12 Rem Call 210883 Remove access to old 5 ; Clinician field 2 ;;5.5;DIETETICS;**4,5**;Jan 28, 2005;Build 53 6 3 EN2 ; Enter/Edit Nutrition Locations (Inpatient Wards/Outpatient Clinics) 7 4 W ! K DIR,DIC S DIR("A")="Select WARD or OUTPATIENT Location: " 8 S DIR(0)="SAO^W:Ward Location;O:Outpatient Location" D ^DIR I $D(DIRUT) G KIL5 S DIR(0)="SAO^W:Ward Location;O:Outpatient Location" D ^DIR Q:$D(DIRUT) 9 6 I Y'=-1 S FHANS=Y 10 7 I FHANS="W" D EN2WRD Q … … 14 11 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQLM",DLAYGO=119.6 15 12 S DIC("DR")=".01" W ! D ^DIC K DIC,DLAYGO G KIL:U[X!$D(DTOUT),EN2:Y<1 16 ; S DR=".01;2:2.5;... POTENTIAL CHG FOR 210883 WAS S DR=".01:2.5;3" 17 ; 10/16/2007 BP/KAM FH*5.5*12 changed next line to remove access to field # 1 Clinician (Old Clinician field) 18 S DA=+Y,DR=".01;2:2.5;3;S:X="""" Y=4;3.5;4;S:X="""" Y=5;4.5;5;S:'X Y=6;5.5;6:29;99;107;107.5;108;108.5;109;109.5;110;110.5;111;111.5;112" S:$D(^XUSEC("FHMGR",DUZ)) DIDEL=119.6 D ^DIE,KIL G EN2 13 S DA=+Y,DR=".01:2.5;3;S:X="""" Y=4;3.5;4;S:X="""" Y=5;4.5;5;S:'X Y=6;5.5;6:29;99;107;107.5;108;108.5;109;109.5;110;110.5;111;111.5;112" S:$D(^XUSEC("FHMGR",DUZ)) DIDEL=119.6 D ^DIE,KIL G EN2 19 14 EN2OL ;Outpatient locations 20 15 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQLM",DLAYGO=119.6 -
FOIAVistA/tag/r/DIETETICS-FH/FHPRW.m
r628 r636 1 1 FHPRW ;Hines OIFO/REL,RTK - List Dietetic Locations ;5/13/94 14:57 2 ;;5.5;DIETETICS;**12**;Jan 28, 2005;Build 3 3 ; 10/24/07 BAY/KAM FH*5.5*12 CALL 214407 Display new Clinician Field 2 ;;5.5;DIETETICS;;Jan 28, 2005 4 3 F1 R !!,"Select LOCATION (or ALL): ",X:DTIME G:'$T!("^"[X) KIL D:X="all" TR^FH I X="ALL" S WRD=0 5 4 E K DIC S DIC="^FH(119.6,",DIC(0)="EQM" D ^DIC K DIC G:Y<1 F1 S WRD=+Y … … 16 15 W !!,"Print Order:",?22,$P(X,"^",4) 17 16 W !,"Type of Location:",?22,$S($P(X,U,3)="O":"OUTPATIENT",1:"INPATIENT") 18 ; 19 ;10/24/07 BAY/KAM *12 214407 Print new Clinician Multiple field 20 N C1 S C1="" 21 F S C1=$O(^FH(119.6,K1,2,C1)) Q:C1="" D 22 . S Z=$G(^FH(119.6,K1,2,C1,0)) I Z W !,"Assigned Clinician(s):",?22,$P($G(^VA(200,Z,0)),"^",1) 23 ; 17 W !,"Assigned Clinician:",?22 S Z=$P(X,"^",2) I Z W $P($G(^VA(200,Z,0)),"^",1) 24 18 W !,"Tray Assembly:",?22 S Z=$P(X,"^",5) I Z W $P($G(^FH(119.72,Z,0)),"^",1) S Z=$P(X,"^",17) S:Z="" Z=100 W " (",Z,"%)" 25 19 W !,"Cafeteria:",?22 S Z=$P(X,"^",6) I Z W $P($G(^FH(119.72,Z,0)),"^",1) S Z=$P(X,"^",18) S:Z="" Z=100 W " (",Z,"%)" -
FOIAVistA/tag/r/DIETETICS-FH/FHREP1.m
r628 r636 1 1 FHREP1 ; HISC/NCA - Inventory Worksheet and Report ;3/9/95 08:28 2 ;;5.5;DIETETICS; **13**;Jan 28, 2005;Build 12 ;;5.5;DIETETICS;;Jan 28, 2005 3 3 EN2 ; Print the Inventory Worksheet & Report 4 4 S FHXX="F" … … 10 10 K %DT W !!,"Enter Mth/Yr: "_+$E(NOW,4,5)_"/"_$E(NOW,2,3)_"// " R X:DTIME G:'$T!(X["^") KIL^FHREP 11 11 I X="" S X=$E(NOW,1,5)_"00" 12 S %DT="M" D ^%DT K%DT I Y<1!($E(Y,1,5)>$E(NOW,1,5)) W *7," Answer Month and Yr as Mth/Yr or Mth Yr.",!?25," CANNOT be greater than now." G E012 D ^%DT I Y<1!($E(Y,1,5)>$E(NOW,1,5)) W *7," Answer Month and Yr as Mth/Yr or Mth Yr.",!?25," CANNOT be greater than now." G E0 13 13 S MTH=+$E(Y,4,5),MTH=$P("January February March April May June July August September October November December"," ",MTH),YR=$E(Y,2,3),MTH=MTH_" "_YR 14 14 I FHR="W" D F1^FHREP G:FHXX["^"!("^"[X) KIL^FHREP -
FOIAVistA/tag/r/DIETETICS-FH/FHSELA1.m
r628 r636 1 1 FHSELA1 ;Hines OIFO/RTK - Map GMR Allergy file to Food Prefs ;3/07/2007 2 ;;5.5;DIETETICS;**8,12**;Jan 28, 2005;Build 3 3 ; 4 ;10/16/2007 BAY/KAM FH*5.5*12 Remedy Call 210385 Do not allow 5 ; user to change Food Preference name or 6 ; LIKE/DISLIKE field 2 ;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28 7 3 ; 8 4 CREATE ; Check for any missing Allergy-type FP's or one's not renamed in 115.2 … … 42 38 S X=FHAFPNM K DIC,DO 43 39 S (DIC,DIE)="^FH(115.2,",DIC(0)="L" D FILE^DICN 44 ; 10/16/2007 BP/KAM FH*5.5*12 Default DISLIKE and prevent Food Preference name change in the next line 45 S (FHDA,DA)=+Y,DR="26;1////D" 40 S (FHDA,DA)=+Y,DR=".01;26;1//DISLIKE;S:X=""D"" Y=0;3;20;S:'X Y=99;21;99" 46 41 D ^DIE K DA,DIE,DR 47 42 D TRAN^FHSEL1 -
FOIAVistA/tag/r/DIETETICS-FH/FHSELA2.m
r628 r636 1 1 FHSELA2 ;Hines OIFO/RTK - Map GMR Allergy file to Food Prefs ;3/07/2007 2 ;;5.5;DIETETICS;**8 ,13**;Jan 28, 2005;Build 12 ;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28 3 3 ; 4 4 TMPGL ; Create ^TMP Global … … 146 146 ;;GREENS, MUSTARD;MUSTARD GREENS 147 147 ;;GREENS, TURNIP;TURNIP GREENS 148 ;;GREEN LEAFY VEG ;GREEN LEAFY VEGETABLES148 ;;GREEN LEAFY VEGETABLES;GREEN LEAFY VEGETABLES 149 149 ;;GUAVA;GUAVA 150 150 ;;HOMINY;HOMINY
Note:
See TracChangeset
for help on using the changeset viewer.