Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (15 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/DIETETICS-FH/FHASP1.m

    r628 r636  
    11FHASP1 ; HISC/REL/JH - Nutrition Profile (cont) ;5/2/01  10:14
    2  ;;5.5;DIETETICS;**8,9**;Jan 28, 2005;Build 7
     2 ;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28
    33 ;
    44 I '$G(FHET) S X="T-365",%DT="XT" D ^%DT S FHET=Y K %DT
     
    6363 F KK=35:-1:1 Q:$E(X,KK-1,KK)=", "
    6464 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)
     65SP 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)
    6666 I KK="L" S Q=$P(X,"^",3),L1=$S(Q:Q,1:1)_" "_L1
    6767 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:40pm
    2  ;;5.5;DIETETICS;**7,11,10**;Jan 28, 2005;Build 5
     1FHDSSAPI ;Hines OIFO/RTK-DSS REQUESTED API's  ;3/08/06  10:15
     2 ;;5.5;DIETETICS;**7,11**;Jan 28, 2005;Build 4
    33 ;11/22/2006 KAM/BAY Remedy Call 168346 Add Variable Cleanup from *7
    44 ;
     
    99 I FHSDT>FHEDT W !!,"END DATE BEFORE START DATE!",! H 1 Q
    1010 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)
    5032 ..F FHTFPR=0:0 S FHTFPR=$O(^FHPT(FHDFN,"A",FHADM,"TF",FHTF,"P",FHTFPR)) Q:FHTFPR'>0  D
    5133 ...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)
    5435 ..Q
    5536 .Q
     
    5940 F FHOMDT=FHSDTX1:0 S FHOMDT=$O(^FHPT("RM",FHOMDT)) Q:FHOMDT=""!(FHOMDT'<FHEDT)  D
    6041 .F FHDFN=0:0 S FHDFN=$O(^FHPT("RM",FHOMDT,FHDFN)) Q:FHDFN=""  D
    61  ..I '$D(^FHPT(FHDFN,0)) Q
    6242 ..F FHRNUM=0:0 S FHRNUM=$O(^FHPT("RM",FHOMDT,FHDFN,FHRNUM)) Q:FHRNUM=""  D
    6343 ...S FHNODE=$G(^FHPT(FHDFN,"OP",FHRNUM,0)) I $P(FHNODE,U,15)="C" Q
     
    6545 ...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)
    6646 ...;
    67  ...; IF NON-VA LOC DIET(S) ARE IN FIELDS DIET1-DIET5
     47 ...; SHOULD LET DSS KNOW DIETS COULD BE IN FIELDS DIET1-5 IF NONVA LOC
    6848 ...;
    6949 ...I $D(^FHPT(FHDFN,"OP",FHRNUM,2)) D
     
    8161 F FHOMDT=FHSDTX1:0 S FHOMDT=$O(^FHPT("SM",FHOMDT)) Q:FHOMDT=""!(FHOMDT'<FHEDT)  D
    8262 .F FHDFN=0:0 S FHDFN=$O(^FHPT("SM",FHOMDT,FHDFN)) Q:FHDFN=""  D
    83  ..I '$D(^FHPT(FHDFN,0)) Q
    8463 ..S FHNODE=$G(^FHPT(FHDFN,"SM",FHOMDT,0)) I $P(FHNODE,U,2)'="A" Q
    8564 ..I $P($G(^FHPT(FHDFN,0)),U,3)="" Q
     
    8867 F FHOMDT=FHSDTX1:0 S FHOMDT=$O(^FHPT("GM",FHOMDT)) Q:FHOMDT=""!(FHOMDT'<FHEDT)  D
    8968 .F FHDFN=0:0 S FHDFN=$O(^FHPT("GM",FHOMDT,FHDFN)) Q:FHDFN=""  D
    90  ..I '$D(^FHPT(FHDFN,0)) Q
    9169 ..S FHNODE=$G(^FHPT(FHDFN,"GM",FHOMDT,0)) I $P(FHNODE,U,9)="C" Q
    9270 ..I $P($G(^FHPT(FHDFN,0)),U,3)="" Q
    9371 ..S ^TMP($J,"FH",FHOMDT,FHDFN,"GM")=FHNODE I '$D(^TMP($J,"FH","ZN",FHDFN)) S ^TMP($J,"FH","ZN",FHDFN)=^FHPT(FHDFN,0)
    9472 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
    9774 Q
  • FOIAVistA/tag/r/DIETETICS-FH/FHNO2.m

    r628 r636  
    11FHNO2 ; HISC/REL/NCA - Supplemental Feeding Labels ;8/26/94  12:01
    2  ;;5.5;DIETETICS;**5,13**;Jan 28, 2005;Build 1
     2 ;;5.5;DIETETICS;**5**;Jan 28, 2005;Build 53
    33 ;patch #5 - add outpatient SFs.
    44D0 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
     
    8989 .S FHODAT=$G(^FHPT(FHDFN,"OP",ADM,0)),FHNO=$P($G(^FHPT(FHDFN,"OP",ADM,"SF",0)),U,3) Q:'$G(FHNO)
    9090 .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)
    9292 .Q:'FHOWARD!'$D(^FH(119.6,FHOWARD,0))
    9393 .I XX="W",W1 Q:W1'=FHOWARD
    94  .S WRDN=$P(X1,U,1)
    9594 .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)
    9695 .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/2007
    2  ;;5.5;DIETETICS;**9**;Jan 28, 2005;Build 7
     1FHOMPP ; OIFO/RTK - Patient Profile for Outpatients ;6/23/03  1:04
     2 ;;5.5;DIETETICS;;Jan 28, 2005
    33 D DEV Q
    44DEV ;get device and set up queue
     
    4949 ; Data is returned in ^TMP($J,"FHPROF",DFN,FHX)
    5050 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^FHOMUTL
     51 K ^TMP($J,"FHPROF",DFN) S (FHX,N)=0 D PATNAME^FHOMUTL
    5252 S FHB="" F I=1:1:80 S FHB=FHB_" "
    5353 S ^TMP($J,"FHPROF",DFN,FHX)="OUTPATIENT NAME: "_FHPTNM_"   "_FHSSN
     
    6767 I $D(^TMP($J,"L")) S N=1 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)="Likes"
    6868 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
    7070 I $D(^TMP($J,"D")) S N=1 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)="Dislikes"
    7171 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
    7373 ;
    7474 S N=1 D NEWL S ^TMP($J,"FHPROF",DFN,FHX)="Recurring Meals on File: "
  • FOIAVistA/tag/r/DIETETICS-FH/FHORC5.m

    r628 r636  
    11FHORC5 ; 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
    43EN9 ; Enter/Edit Ward Assignments
    54 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQM"
    65 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
    97 D:OLD'=NEW EN2^FHORC4 K OLD,NEW,X,Y G EN9
    108EN10 ; List Ward Assignments
  • FOIAVistA/tag/r/DIETETICS-FH/FHPRO.m

    r628 r636  
    11FHPRO ; 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
    63EN2 ; Enter/Edit Nutrition Locations (Inpatient Wards/Outpatient Clinics)
    74 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 KIL
     5 S DIR(0)="SAO^W:Ward Location;O:Outpatient Location" D ^DIR Q:$D(DIRUT)
    96 I Y'=-1 S FHANS=Y
    107 I FHANS="W" D EN2WRD Q
     
    1411 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQLM",DLAYGO=119.6
    1512 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
    1914EN2OL ;Outpatient locations
    2015 K DIC S (DIC,DIE)="^FH(119.6,",DIC(0)="AEQLM",DLAYGO=119.6
  • FOIAVistA/tag/r/DIETETICS-FH/FHPRW.m

    r628 r636  
    11FHPRW ;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
    43F1 R !!,"Select LOCATION (or ALL): ",X:DTIME G:'$T!("^"[X) KIL D:X="all" TR^FH I X="ALL" S WRD=0
    54 E  K DIC S DIC="^FH(119.6,",DIC(0)="EQM" D ^DIC K DIC G:Y<1 F1 S WRD=+Y
     
    1615 W !!,"Print Order:",?22,$P(X,"^",4)
    1716 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)
    2418 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,"%)"
    2519 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  
    11FHREP1 ; HISC/NCA - Inventory Worksheet and Report ;3/9/95  08:28
    2  ;;5.5;DIETETICS;**13**;Jan 28, 2005;Build 1
     2 ;;5.5;DIETETICS;;Jan 28, 2005
    33EN2 ; Print the Inventory Worksheet & Report
    44 S FHXX="F"
     
    1010 K %DT W !!,"Enter Mth/Yr: "_+$E(NOW,4,5)_"/"_$E(NOW,2,3)_"// " R X:DTIME G:'$T!(X["^") KIL^FHREP
    1111 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 E0
     12 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
    1313 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
    1414 I FHR="W" D F1^FHREP G:FHXX["^"!("^"[X) KIL^FHREP
  • FOIAVistA/tag/r/DIETETICS-FH/FHSELA1.m

    r628 r636  
    11FHSELA1 ;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
    73 ;
    84CREATE ; Check for any missing Allergy-type FP's or one's not renamed in 115.2
     
    4238 S X=FHAFPNM K DIC,DO
    4339 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"
    4641 D ^DIE K DA,DIE,DR
    4742 D TRAN^FHSEL1
  • FOIAVistA/tag/r/DIETETICS-FH/FHSELA2.m

    r628 r636  
    11FHSELA2 ;Hines OIFO/RTK - Map GMR Allergy file to Food Prefs ;3/07/2007
    2  ;;5.5;DIETETICS;**8,13**;Jan 28, 2005;Build 1
     2 ;;5.5;DIETETICS;**8**;Jan 28, 2005;Build 28
    33 ;
    44TMPGL ; Create ^TMP Global
     
    146146 ;;GREENS, MUSTARD;MUSTARD GREENS
    147147 ;;GREENS, TURNIP;TURNIP GREENS
    148  ;;GREEN LEAFY VEG;GREEN LEAFY VEGETABLES
     148 ;;GREEN LEAFY VEGETABLES;GREEN LEAFY VEGETABLES
    149149 ;;GUAVA;GUAVA
    150150 ;;HOMINY;HOMINY
Note: See TracChangeset for help on using the changeset viewer.