Changeset 636 for FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU
- 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/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUCP.m
r628 r636 1 PSUCP ;BIR/TJH,PDW - PBM CONTROL POINT ; 06/08/072 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **12**;MARCH, 2005;Build 191 PSUCP ;BIR/TJH,PDW - PBM CONTROL POINT ;25 AUG 1998 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ; Reference to File #4 supported by DBIA 10090 4 4 ; Reference to File #4.3 supported by DBIA 10091 5 5 ; Reference to File #40.8 supported by DBIA 2438 6 6 ; Reference to File #59.7 supported by DBIA 2854 7 ; move CLEANUP^PSUHL from PSURT1, delete calls to PSUCP3 (PSU*4*12)8 7 MANUAL ; entry point for manual option 9 8 S PSUALERT=0 D MANUAL^PSUALERT … … 18 17 .S DIR("A")="Do you wish to continue" 19 18 .D ^DIR 20 D CLEANUP^PSUHL19 D ^PSUCP3 21 20 S PSUJOB=$J_"_"_$P($H,",",2) 22 21 S ^XTMP("PSUMANL")="" … … 37 36 S PSUALERT=0 D AUTO^PSUALERT 38 37 I PSUALERT K PSUALERT Q 39 I $ D(^XTMP("PSU","RUNNING")) D Q38 I $G(^XTMP("PSU","RUNNING")) D Q 40 39 .S XQA(DUZ)="",XQA("G.PSU PBM")="",XQMSG="An ERROR has occurred. Please contact IRM for assistance." 41 40 .S XQAID="PSU",XQAFLG="D" D SETUP^XQALERT 42 D CLEANUP^PSUHL41 D ^PSUCP3 ;Clear trash globals 43 42 S PSUJOB=$J_"_"_$P($H,",",2) 44 43 S ^XTMP("PSU_"_PSUJOB,"PSUFLAG1")="" ;flag for mail patient summary reports … … 67 66 D ^PSUDBQUE 68 67 K PSUALERT,XQA,XQAID,XQAFLG,XQA,ZTSK 69 AUTOQ Q ; exit from AUTO68 AUTOQ D EXIT Q ; exit from AUTO 70 69 ; 71 70 RUN ; run each selected module -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUDEM1.m
r628 r636 1 1 PSUDEM1 ;BIR/DAM - Patient Demographics Extract ; 20 DEC 2001 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **12**;MARCH, 2005;Build 192 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ; 4 4 ;DBIA's … … 38 38 ;information ONLY on new or updated patient. 39 39 ; 40 ; *** PSU*4.0*12 - BAJ -- added QUIT if NULL 41 F S PSUSDT=$O(^PSUDEM("B",PSUSDT)) Q:PSUSDT="" Q:PSUSDT>PSUEDT D 40 F S PSUSDT=$O(^PSUDEM("B",PSUSDT)) Q:PSUSDT>PSUEDT D 42 41 . S I="" 43 42 . S I=$O(^PSUDEM("B",PSUSDT,I)) Q:I="" -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUDEM4.m
r628 r636 1 PSUDEM4 ;BIR/DAM - Provider Extract ; 4/26/07 4:38pm2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;**8 ,12**;MARCH, 2005;Build 191 PSUDEM4 ;BIR/DAM - Provider Extract ; 7/21/06 2:27pm 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;**8**;MARCH, 2005 3 3 ; 4 4 ;DBIA'S … … 102 102 CLASS ;Find provider class 103 103 ; 104 I '$D(PSUCLP) S $P(^XTMP("PSU_"_PSUJOB,"PSUPROV",PSUIEN),U,5)="" Q104 I '$D(PSUCLP) S $P(^XTMP("PSU_"_PSUJOB,"PSUPROV",PSUIEN),U,5)="" 105 105 I PSUCLP="" S $P(^XTMP("PSU_"_PSUJOB,"PSUPROV",PSUIEN),U,5)="" 106 106 I PSUCLP'="" D 107 .N PSUA 108 .S PSUA=$P($G(^DIC(7,PSUCLP,0)),U,2) 109 .I PSUA']"" S PSUA=$P($G(^DIC(7,PSUCLP,0)),U,1) 110 .S $P(^XTMP("PSU_"_PSUJOB,"PSUPROV",PSUIEN),U,5)=PSUA ;Prov class 111 .K PSUA 107 .S $P(^XTMP("PSU_"_PSUJOB,"PSUPROV",PSUIEN),U,5)=$P($G(^DIC(7,PSUCLP,0)),U,2) ;Prov class 112 108 Q 113 109 ; -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSULRHL1.m
r628 r636 1 PSULRHL1 ;HCIOFO/BH/RDC - Process real time HL7 Lab messages ; 8/1/07 11:26am2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;**3 ,11**;MARCH, 2005;Build 81 PSULRHL1 ;HCIOFO/BH/RDC - Process real time HL7 Lab messages ; 5/15/04 3:10pm 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;**3**;MARCH, 2005 3 3 ; 4 4 ; DBIA 3565 to subscribe to the LR7O ALL EVSEND RESULTS protocol … … 156 156 S LABS=$P(REC,PSUHLFS,4) 157 157 S LR60=$P(LABS,"^",4) 158 I LR60']"" Q159 158 S LRDN=$G(^LAB(60,LR60,0)) 160 159 S LRDN=$P($P(LRDN,"^",5),";",2) ; DBIA 91 for data name … … 162 161 ; Make the call to LRRPU to get the LOINC code for this test 163 162 ; 164 I LRDN']"" Q165 163 S RES=$$TSTRES^LRRPU(LRDFN,LRSS,LRIDT,LRDN,LR60,1) 166 164 ; -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUMAP0.m
r628 r636 1 PSUMAP0 ;BHM/PDW-MAP OAU,NAOU,DA LOCATION TO DIVISION/OUTPATIENT SITES ; 4/12/07 2:12pm2 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **12**;MARCH, 2005;Build 191 PSUMAP0 ;BHM/PDW-MAP OAU,NAOU,DA LOCATION TO DIVISION/OUTPATIENT SITES ; 9SEP2003 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ; 4 4 ;DBIA's … … 51 51 ..K PJJ,XBEG,XEND 52 52 .S PSUMOD(X1)="" 53 ; modified to fix <UNDEFINED> PSU*3*12 BAJ 54 S X="",ERC=0 F S X=$O(PSUMOD(X)) Q:X="" I '$D(PSUA(X)) S ERC=1 Q 53 S (X,ERC)=0 F S X=$O(PSUMOD(X)) Q:X="" I '$D(PSUA(X)) S ERC=1 Q 55 54 I ERC W !!,"<INVALID CHOICE - ",X,", TRY AGAIN>",$C(7) G MODP 56 55 I '$D(PSUMOD) W !!,"No choices were made." K DIR S DIR(0)="E",DIR("A")="EXITING" D ^DIR G EXIT -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUOPAM.m
r628 r636 1 PSUOPAM ;BIR/DAM - PSU PBM Outpatient AMIS Pharmacy Data Collection; March 2004 ; 1/11/08 11:46am2 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **13**;MARCH, 2005;Build 31 PSUOPAM ;BIR/DAM - PSU PBM Outpatient AMIS Pharmacy Data Collection; March 2004 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ; 4 4 ;DBIA's … … 20 20 CO ;Copay status: found in file (#52), field (#105) 21 21 ; 22 ;PSU*4*13 Corrected to show the COPAY. 23 S PSUCO=$P($G(^TMP("PSOR",$J,PSURXIEN,"IB")),U,1) 22 S PSUCO=$P($G(^TMP("PSOR",$J,PSURXIEN,"IB",0)),U,1) 24 23 I $G(PSUCO) S PSUCOPAY="Y" 25 24 I '$G(PSUCO) S PSUCOPAY="N" -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUPR2.m
r628 r636 1 PSUPR2 ;BIR/PDW - Procurement extract from file 58.811 ; 4/1/08 4:09pm2 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **13**;MARCH, 2005;Build 31 PSUPR2 ;BIR/PDW - Procurement extract from file 58.811 ;20 AUG 1999 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ;DBIAs 4 4 ; Reference to file #58.811 supported by DBIA 2521 … … 127 127 I '$D(PSUADJ),'PSUIT(9999) S PSUIT(9999)="" ; per Lina 128 128 ; 129 ;PSU*4*13 Comment out To prevent XINDEX from complaining about130 ; ^PSUPR7 (CoreFLS remnance)131 129 ;Create "RECORDS" global for CoreFLS data 132 ;I $D(PSUFLSFG) S PSUA="" D133 ;.F S PSUA=$O(^XTMP(PSUPRSUB,"PSUFLS",PSUA)) Q:PSUA="" D SIMPL^PSUPR7130 I $D(PSUFLSFG) S PSUA="" D 131 .F S PSUA=$O(^XTMP(PSUPRSUB,"PSUFLS",PSUA)) Q:PSUA="" D SIMPL^PSUPR7 134 132 ; 135 133 ; Construct record and store into ^XTMP(PSUPRSUB,"RECORDS",PSUDIV,LC) … … 231 229 .S PSUDA=0 232 230 .F S PSUDA=$O(MAPLOC(PSUDA)) Q:PSUDA="" D 233 ..;PSU*4*13 Correct Problm DA Pharm Report 234 ..I $G(MAPLOC(PSUDA,.02))'="" K DAPH(PSUDA) 235 ..I $G(MAPLOC(PSUDA,.03))'="" K DAPH(PSUDA) 231 ..I $G(MAPLOC(PSUDA,.02))'="" K NAOU(PSUDA) 232 ..I $G(MAPLOC(PSUDA,.03))'="" K NAOU(PSUDA) 236 233 M ^XTMP(PSUARSUB,"DAPH")=DAPH ;only unmapped DA PHARM locations. 237 234 Q -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSURT1.m
r628 r636 1 PSURT1 ;BIR/RDC - PATIENT DEMOGRAPHIC RETRANSMITION; APR 2, 2007 ; 4/2/07 11:01am2 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **12**;MARCH, 2005;Build 191 PSURT1 ;BIR/RDC - PATIENT DEMOGRAPHIC RETRANSMITION; 31 MAR 2004 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ; 4 4 ; THIS PROGRAM WILL ALLOW THE RETRANSMITION OF THE PATIENT … … 9 9 NEW P,SDT,EDT,WHEN,NOGOOD,TMON,RMONTH,PMON,SMON,EMON,RTYPE,SRANGE,ERANGE 10 10 S P="" 11 ; move call to CLEANUP^PSUHL to routine PSUCP (PSU*4*12)11 D CLEANUP^PSUHL 12 12 S SDT=$O(^PSUDEM("B",P)) 13 13 I 'SDT W !,"NO DATA AVAILABLE - NOTIFY YOUR SUPERVISOR" Q -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUSUM1.m
r628 r636 1 PSUSUM1 ;BIR/DAM - Summary Report for Provider Extract ; 2 /23/07 2:18pm2 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **12**;MARCH, 2005;Build 191 PSUSUM1 ;BIR/DAM - Summary Report for Provider Extract ; 20 DEC 2001 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ; 4 4 ; No DBIA's required. … … 55 55 S PSUIP=0 56 56 F S PSUIP=$O(^XTMP("PSU_"_PSUJOB,"PSUPROV",PSUIP)) Q:PSUIP="" Q:PSUIP["U" D 57 .I $P($G(^VA(200,PSUIP,"PS")),"^",6)=4 Q ; Exclude if the provider type is "FEE BASIS" (PSU*4*12)58 57 .S PSUSSN3=$E($P($G(^XTMP("PSU_"_PSUJOB,"PSUPROV",PSUIP)),U,3),6,9) 59 58 .I PSUSSN3="" S PSUSSN3="????",PSUMIS="SSN" D NAM ;No SSN -
FOIAVistA/tag/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUVIT1.m
r628 r636 1 PSUVIT1 ;BIR/RDC - VITALS & IMMUNIZATION EXTRACT; 24 DEC 2003 ; 10/9/07 7:03am2 ;;4.0;PHARMACY BENEFITS MANAGEMENT; **11**;MARCH, 2005;Build 81 PSUVIT1 ;BIR/RDC - VITALS & IMMUNIZATION EXTRACT; 24 DEC 2003 2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 3 3 ; 4 4 ;DBIA's … … 72 72 N PSURTYPE,PSUSSN,PSUICN,PSUVTYPE,PSUVRATE,PSUVUNIT 73 73 N Z,QQ,PSUVQ1,PSUVQ2,PSUVQ3,PSUVQ4,PSUVLIST,PSUVMSG 74 N PSULN,PSUTXT75 74 ; 76 75 S PSUVLIST="""BLOOD PRESSURE"",""HEIGHT"",""WEIGHT"",""PAIN"",""PULSE"",""PULSE OXIMETRY""" … … 78 77 ; ** Loop through date index for valid dates ** 79 78 S PSUDATE=SDATE 80 ;PSU*4*11 Added null ptr notification.81 S PSUTXT(1)="The following IEN(s) have a null pointer in the PATIENT (#2) field of"82 S PSUTXT(2)="the GMRV VITAL MEASUREMENT file (#120.5). Please notify your IRM and"83 S PSUTXT(3)="submit a remedy ticket for help in evaluating the record."84 S PSULN=385 79 F S PSUDATE=$O(^GMR(120.5,"B",PSUDATE)) Q:PSUDATE>EDATE!('PSUDATE) D 86 80 . S PSUV="" ; ** loop thru vitals for each date ** … … 89 83 .. S PSUVREC=$G(^GMR(120.5,PSUV,0)) Q:'PSUVREC 90 84 .. S PSUPTPTR=$P(PSUVREC,U,2) ; ** point to PATIENT ** 91 .. I PSUPTPTR="" D Q ; ** quit if no patient pointer **92 ... S PSULN=PSULN+193 ... S PSUTXT(PSULN)=PSUV94 85 .. Q:$G(^DPT(PSUPTPTR,0))="" ; ** quit if no patient record ** 95 86 .. S PSUPTREC=^DPT(PSUPTPTR,0) ; ** get patient record ** … … 123 114 .. ; ** S PSUVTMP(PSUSSN,PSUVTYPE)=PSUVMSG 124 115 .. S ^XTMP("PSU_"_PSUJOB,"PSUVI","TMP",PSUSSN,PSUVTYPE)=PSUVMSG 125 ;PSU*4*11 Send null ptr notifications to PBM group.126 I PSULN>3 D127 . S XMTEXT="PSUTXT(",XMY("G.PSU PBM")=""128 . S XMSUB="** PBM vitals extract detected null patient pointer(s) **"129 . S XMDUZ="Pharmacy Benefits Management Package"130 . N DIFROM D ^XMD131 116 Q 132 117 ; ** end of vital extract **
Note:
See TracChangeset
for help on using the changeset viewer.