Changeset 636 for FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (15 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 44 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSDDUT2.m
r628 r636 1 PSSDDUT2 ;BIR/LDT - Pharmacy Data Management DD Utility ; 8/21/07 8:43am2 ;;1.0; PHARMACY DATA MANAGEMENT; **3,21,61,81,95,127 ,126**;9/30/97;Build 111 PSSDDUT2 ;BIR/LDT - Pharmacy Data Management DD Utility ;10/30/97 9:41 2 ;;1.0; PHARMACY DATA MANAGEMENT; **3,21,61,81,95,127**;9/30/97;Build 41 3 3 ; 4 4 ;Reference to ^DIC(42 supported by DBIA #10039 … … 33 33 ;;R RESTRICTED ITEMS 34 34 ;;S SUPPLY ITEMS 35 ;;B ALLOW REFILL (SCH. 3, 4, 5 ONLY)35 ;;B ALLOW REFILL (SCH. 3, 4, 5 NARCOTICS ONLY) 36 36 ;;W NOT RENEWABLE 37 37 ;;F NON REFILLABLE 38 38 ;;E ELECTRONICALLY BILLABLE 39 39 ;; 40 DEATBL ; More Help regarding DEA Codes41 K PSSHLP42 F II=1:1 Q:$P($T(TBL+II),";",3)="" S PSSHLP(II)=$P($T(TBL+II),";",3,99)43 S PSSHLP(1,"F")="!!" D WRITE44 ;45 TBL K II Q46 ;; DEA CODE TABLE47 ;; CODE ALLOW RENEWS ALLOW REFILLS48 ;; 1 NO NO49 ;; 2 NO NO50 ;; 2A NO NO51 ;; 3 YES YES52 ;; 3A YES NO53 ;; 3AB YES YES54 ;; 4 YES YES55 ;; 4A YES NO56 ;; 4AB YES YES57 ;; 5 YES YES58 ;; 5A YES NO59 ;; 5AB YES YES60 ;; ADDING W TO A SCHED. 3,4,OR 5 CODE DISALLOWS RENEWS.61 ;; ADDING F TO A SCHED. 3,4,OR 5 CODE DISALLOWS REFILLS62 ;; IF A CODE IS NOT LISTED IN THE ABOVE TABLE63 ;; IT HAS NO EFFECT ON RENEW OR REFILL64 40 SIG ;checks SIG for RXs (Replaces SIG^PSOHELP) 65 41 I $E(X)=" " D EN^DDIOL("Leading spaces are not allowed in the SIG! ","","$C(7),!") K X Q … … 108 84 EDIT ;INPUT XFORM FOR DEA FIELD IN DRUG FILE (Replaces EDIT^PSODEA) 109 85 I X["F",X["B" D EN^DDIOL("Inappropriate F designation!","","$C(7),!") K X Q 110 ;;DEA CHANGE PSS*1*126 111 I X["B",(+X<3) D EN^DDIOL("The B designation is only valid for schedule 3, 4, 5 !","","$C(7),!") K X Q 86 I X["B",(+X<3!(X'["A")) D EN^DDIOL("The B designation is only valid for schedule 3, 4, 5 narcotics !","","$C(7),!") K X Q 112 87 I X["A"&(X["C"),+X=2!(+X=3) D EN^DDIOL("The A & C designation is not valid for schedule 2 or 3 narcotics !","","$C(7),!") K X Q 113 88 I $E(X)=1,X[2!(X[3)!(X[4)!(X[5) D EN^DDIOL("It contains other inappropriate schedule 2-5 narcotics!","","$C(7),!") K X Q -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSDOSRP.m
r628 r636 1 PSSDOSRP ;BIR/RTR-Dosage review report ; 03/24/001 PSSDOSRP ;BIR/RTR-Dosage review report ; 8/16/05 3:44pm 2 2 ;;1.0;PHARMACY DATA MANAGEMENT;**34,38,49**;9/30/97 3 3 ;Reference to ^PS(50.607 supported by DBIA 2221 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSHLU.m
r628 r636 1 1 PSSHLU ;BIR/RLW-UTILITIES USED IN BUILDING HL7 SEGMENTS ;11/14/96 2 ;;1.0;PHARMACY DATA MANAGEMENT;**38 ,124,132**;9/30/97;Build 12 ;;1.0;PHARMACY DATA MANAGEMENT;**38**;9/30/97 3 3 ; 4 4 INIT ; set up HL7 application variables -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR.m
r628 r636 1 PSSJXR ; DRIVER FOR COMPILED XREFS FOR FILE #55 ; 12/12/071 PSSJXR ; DRIVER FOR COMPILED XREFS FOR FILE #55 ; 01/17/08 2 2 ; 3 3 N DH,DU,DIKILL,DISET,DIKJ,DIKZ,DIKYR,DIKZA,DIK0Z,DIKZK,DIKDP,DIKM1,DIKUP,DIKUM,DV,DIIX,DIKF,DIAU,DIKNM,DIKDA,DIKLK,DIKLM,DIKY,DIXR,DIKCOND,DIKSVDA,DIKPUSH,X1,X2 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR1.m
r628 r636 1 PSSJXR1 ; COMPILED XREF FOR FILE #55 ; 12/12/071 PSSJXR1 ; COMPILED XREF FOR FILE #55 ; 01/17/08 2 2 ; 3 3 S DIKZK=2 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR10.m
r628 r636 1 PSSJXR10 ; COMPILED XREF FOR FILE #55.051 ; 12/12/071 PSSJXR10 ; COMPILED XREF FOR FILE #55.051 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR11.m
r628 r636 1 PSSJXR11 ; COMPILED XREF FOR FILE #55.0611 ; 12/12/071 PSSJXR11 ; COMPILED XREF FOR FILE #55.0611 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR12.m
r628 r636 1 PSSJXR12 ; COMPILED XREF FOR FILE #55.07 ; 12/12/071 PSSJXR12 ; COMPILED XREF FOR FILE #55.07 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR13.m
r628 r636 1 PSSJXR13 ; COMPILED XREF FOR FILE #55.09 ; 12/12/071 PSSJXR13 ; COMPILED XREF FOR FILE #55.09 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR14.m
r628 r636 1 PSSJXR14 ; COMPILED XREF FOR FILE #55.11 ; 12/12/071 PSSJXR14 ; COMPILED XREF FOR FILE #55.11 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR15.m
r628 r636 1 PSSJXR15 ; COMPILED XREF FOR FILE #55.1138 ; 12/12/071 PSSJXR15 ; COMPILED XREF FOR FILE #55.1138 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR16.m
r628 r636 1 PSSJXR16 ; COMPILED XREF FOR FILE #55.6114 ; 12/12/071 PSSJXR16 ; COMPILED XREF FOR FILE #55.6114 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR17.m
r628 r636 1 PSSJXR17 ; COMPILED XREF FOR FILE #55 ; 12/12/071 PSSJXR17 ; COMPILED XREF FOR FILE #55 ; 01/17/08 2 2 ; 3 3 S DIKZK=1 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR18.m
r628 r636 1 PSSJXR18 ; COMPILED XREF FOR FILE #55.01 ; 12/12/071 PSSJXR18 ; COMPILED XREF FOR FILE #55.01 ; 01/17/08 2 2 ; 3 3 S DA(1)=DA S DA=0 … … 63 63 S X=$P(DIKZ(4),U,10) 64 64 I X'="" K:X ^PS(55,"ANIV",DA(1),DA) S:'X ^PS(55,"ANIV",DA(1),DA)="" 65 CR1 S DIXR=415 65 CR1 S DIXR=481 66 K X 67 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0)) 68 S X(1)=$P(DIKZ(0),U,2) 69 S X(2)=$P(DIKZ(0),U,3) 70 S X=$G(X(1)) 71 I $G(X(1))]"",$G(X(2))]"" D 72 . K X1,X2 M X1=X,X2=X 73 . N DIKXARR M DIKXARR=X S DIKCOND=1 74 . S X=$$PATCH^XPDUTL("PXRM*1.5*12") 75 . S DIKCOND=$G(X) K X M X=DIKXARR 76 . Q:'DIKCOND 77 . D SPSPA^PSJXRFS(.X,.DA,"IV") 78 CR2 S DIXR=493 66 79 K X 67 80 S DIKZ(.2)=$G(^PS(55,DA(1),"IV",DA,.2)) … … 77 90 . Q:'DIKCOND 78 91 . S ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"V")="" 79 CR2 S DIXR=466 80 K X 81 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0)) 82 S X(1)=$P(DIKZ(0),U,2) 83 S X(2)=$P(DIKZ(0),U,3) 84 S X=$G(X(1)) 85 I $G(X(1))]"",$G(X(2))]"" D 86 . K X1,X2 M X1=X,X2=X 87 . N DIKXARR M DIKXARR=X S DIKCOND=1 88 . S X=$$PATCH^XPDUTL("PXRM*1.5*12") 89 . S DIKCOND=$G(X) K X M X=DIKXARR 90 . Q:'DIKCOND 91 . D SPSPA^PSJXRFS(.X,.DA,"IV") 92 CR3 S DIXR=498 92 CR3 S DIXR=494 93 93 K X 94 94 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0)) … … 100 100 . K X1,X2 M X1=X,X2=X 101 101 . S ^PS(55,"AIVC",$E(X(1),1,20),$E(X(2),1,20),DA(1),DA)="" 102 CR4 S DIXR= 500102 CR4 S DIXR=496 103 103 K X 104 104 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0)) -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR19.m
r628 r636 1 PSSJXR19 ; COMPILED XREF FOR FILE #55.0105 ; 12/12/071 PSSJXR19 ; COMPILED XREF FOR FILE #55.0105 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR2.m
r628 r636 1 PSSJXR2 ; COMPILED XREF FOR FILE #55.01 ; 12/12/071 PSSJXR2 ; COMPILED XREF FOR FILE #55.01 ; 01/17/08 2 2 ; 3 3 S DA(1)=DA S DA=0 … … 63 63 S X=$P(DIKZ(0),U,1) 64 64 I X'="" K ^PS(55,DA(1),"IV","B",$E(X,1,30),DA) 65 CR1 S DIXR=4 1565 CR1 S DIXR=481 66 66 K X 67 S DIKZ(.2)=$G(^PS(55,DA(1),"IV",DA,.2))68 S X(1)=$P(DIKZ(.2),U,8)69 S X(2)=$P(DIKZ(0),U,21)70 S X=$G(X(1))71 I $G(X(1))]"",$G(X(2))]"" D72 . K X1,X2 M X1=X,X2=X73 . S:$D(DIKIL) (X2,X2(1),X2(2))=""74 . N DIKXARR M DIKXARR=X S DIKCOND=175 . S X=176 . S DIKCOND=$G(X) K X M X=DIKXARR77 . Q:'DIKCOND78 . K ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"V")79 CR2 S DIXR=46680 K X81 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0))82 67 S X(1)=$P(DIKZ(0),U,2) 83 68 S X(2)=$P(DIKZ(0),U,3) … … 91 76 . Q:'DIKCOND 92 77 . D KPSPA^PSJXRFK(.X,.DA,"IV") 93 CR3 S DIXR=498 78 CR2 S DIXR=493 79 K X 80 S DIKZ(.2)=$G(^PS(55,DA(1),"IV",DA,.2)) 81 S X(1)=$P(DIKZ(.2),U,8) 82 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0)) 83 S X(2)=$P(DIKZ(0),U,21) 84 S X=$G(X(1)) 85 I $G(X(1))]"",$G(X(2))]"" D 86 . K X1,X2 M X1=X,X2=X 87 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 88 . N DIKXARR M DIKXARR=X S DIKCOND=1 89 . S X=1 90 . S DIKCOND=$G(X) K X M X=DIKXARR 91 . Q:'DIKCOND 92 . K ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"V") 93 CR3 S DIXR=494 94 94 K X 95 95 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0)) … … 102 102 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 103 103 . K ^PS(55,"AIVC",$E(X(1),1,20),$E(X(2),1,20),DA(1),DA) 104 CR4 S DIXR= 500104 CR4 S DIXR=496 105 105 K X 106 106 S DIKZ(0)=$G(^PS(55,DA(1),"IV",DA,0)) -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR20.m
r628 r636 1 PSSJXR20 ; COMPILED XREF FOR FILE #55.0108 ; 12/12/071 PSSJXR20 ; COMPILED XREF FOR FILE #55.0108 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR21.m
r628 r636 1 PSSJXR21 ; COMPILED XREF FOR FILE #55.03 ; 12/12/071 PSSJXR21 ; COMPILED XREF FOR FILE #55.03 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR22.m
r628 r636 1 PSSJXR22 ; COMPILED XREF FOR FILE #55.05 ; 12/12/071 PSSJXR22 ; COMPILED XREF FOR FILE #55.05 ; 01/17/08 2 2 ; 3 3 S DA=0 … … 14 14 S X=$P(DIKZ(0),U,10) 15 15 I X'="" S ^PS(55,"ADCDT",$E(X,1,30),DA(1),DA)="" 16 CR1 S DIXR=4 6416 CR1 S DIXR=479 17 17 K X 18 18 S X(1)=$P(DIKZ(0),U,1) -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR23.m
r628 r636 1 PSSJXR23 ; COMPILED XREF FOR FILE #55.06 ; 12/12/071 PSSJXR23 ; COMPILED XREF FOR FILE #55.06 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR24.m
r628 r636 1 PSSJXR24 ; COMPILED XREF FOR FILE #55.02 ; 12/12/071 PSSJXR24 ; COMPILED XREF FOR FILE #55.02 ; 01/17/08 2 2 ; 3 3 I X'="" D … … 48 48 S X=$P(DIKZ(0),U,27) 49 49 I X'="" I '$D(DIU(0)) D:$D(PSGAL(107)) KILL^PSGAL5:PSGAL(107)=X K PSGAL 50 CR1 S DIXR=414 51 K X 52 S DIKZ(.2)=$G(^PS(55,DA(1),5,DA,.2)) 53 S X(1)=$P(DIKZ(.2),U,8) 54 S X(2)=$P(DIKZ(0),U,21) 55 S X=$G(X(1)) 56 I $G(X(1))]"",$G(X(2))]"" D 57 . K X1,X2 M X1=X,X2=X 58 . N DIKXARR M DIKXARR=X S DIKCOND=1 59 . S X=1 60 . S DIKCOND=$G(X) K X M X=DIKXARR 61 . Q:'DIKCOND 62 . S ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"U")="" 63 CR2 S DIXR=465 50 CR1 S DIXR=480 64 51 K X 65 52 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2)) … … 74 61 . Q:'DIKCOND 75 62 . D SPSPA^PSJXRFS(.X,.DA,"UD") 76 CR3 S DIXR=499 63 CR2 S DIXR=492 64 K X 65 S DIKZ(.2)=$G(^PS(55,DA(1),5,DA,.2)) 66 S X(1)=$P(DIKZ(.2),U,8) 67 S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0)) 68 S X(2)=$P(DIKZ(0),U,21) 69 S X=$G(X(1)) 70 I $G(X(1))]"",$G(X(2))]"" D 71 . K X1,X2 M X1=X,X2=X 72 . N DIKXARR M DIKXARR=X S DIKCOND=1 73 . S X=1 74 . S DIKCOND=$G(X) K X M X=DIKXARR 75 . Q:'DIKCOND 76 . S ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"U")="" 77 CR3 S DIXR=495 77 78 K X 78 79 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2)) … … 84 85 . K X1,X2 M X1=X,X2=X 85 86 . S ^PS(55,"AUDC",$E(X(1),1,20),$E(X(2),1,20),DA(1),DA)="" 86 CR4 S DIXR= 50187 CR4 S DIXR=497 87 88 K X 88 89 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2)) -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR25.m
r628 r636 1 PSSJXR25 ; COMPILED XREF FOR FILE #55.02 ; 12/12/071 PSSJXR25 ; COMPILED XREF FOR FILE #55.02 ; 01/17/08 2 2 ; 3 3 S DA(2)=DA(1) S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR26.m
r628 r636 1 PSSJXR26 ; COMPILED XREF FOR FILE #55.051 ; 12/12/071 PSSJXR26 ; COMPILED XREF FOR FILE #55.051 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR27.m
r628 r636 1 PSSJXR27 ; COMPILED XREF FOR FILE #55.0611 ; 12/12/071 PSSJXR27 ; COMPILED XREF FOR FILE #55.0611 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR28.m
r628 r636 1 PSSJXR28 ; COMPILED XREF FOR FILE #55.07 ; 12/12/071 PSSJXR28 ; COMPILED XREF FOR FILE #55.07 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR29.m
r628 r636 1 PSSJXR29 ; COMPILED XREF FOR FILE #55.09 ; 12/12/071 PSSJXR29 ; COMPILED XREF FOR FILE #55.09 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR3.m
r628 r636 1 PSSJXR3 ; COMPILED XREF FOR FILE #55.0105 ; 12/12/071 PSSJXR3 ; COMPILED XREF FOR FILE #55.0105 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR30.m
r628 r636 1 PSSJXR30 ; COMPILED XREF FOR FILE #55.11 ; 12/12/071 PSSJXR30 ; COMPILED XREF FOR FILE #55.11 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR31.m
r628 r636 1 PSSJXR31 ; COMPILED XREF FOR FILE #55.1138 ; 12/12/071 PSSJXR31 ; COMPILED XREF FOR FILE #55.1138 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR32.m
r628 r636 1 PSSJXR32 ; COMPILED XREF FOR FILE #55.6114 ; 12/12/071 PSSJXR32 ; COMPILED XREF FOR FILE #55.6114 ; 01/17/08 2 2 ; 3 3 S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR4.m
r628 r636 1 PSSJXR4 ; COMPILED XREF FOR FILE #55.0108 ; 12/12/071 PSSJXR4 ; COMPILED XREF FOR FILE #55.0108 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR5.m
r628 r636 1 PSSJXR5 ; COMPILED XREF FOR FILE #55.03 ; 12/12/071 PSSJXR5 ; COMPILED XREF FOR FILE #55.03 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR6.m
r628 r636 1 PSSJXR6 ; COMPILED XREF FOR FILE #55.05 ; 12/12/071 PSSJXR6 ; COMPILED XREF FOR FILE #55.05 ; 01/17/08 2 2 ; 3 3 S DA=0 … … 14 14 S X=$P(DIKZ(0),U,1) 15 15 I X'="" K ^PS(55,DA(1),"NVA","B",$E(X,1,30),DA) 16 CR1 S DIXR=4 6416 CR1 S DIXR=479 17 17 K X 18 18 S X(1)=$P(DIKZ(0),U,1) -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR7.m
r628 r636 1 PSSJXR7 ; COMPILED XREF FOR FILE #55.06 ; 12/12/071 PSSJXR7 ; COMPILED XREF FOR FILE #55.06 ; 01/17/08 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR8.m
r628 r636 1 PSSJXR8 ; COMPILED XREF FOR FILE #55.06 ; 12/12/071 PSSJXR8 ; COMPILED XREF FOR FILE #55.06 ; 01/17/08 2 2 ; 3 3 S X=$P(DIKZ(6.5),U,1) … … 32 32 S X=$P(DIKZ(0),U,1) 33 33 I X'="" K ^PS(55,"ANV",DA(1),DA) 34 CR1 S DIXR=4 1434 CR1 S DIXR=480 35 35 K X 36 S DIKZ(.2)=$G(^PS(55,DA(1),5,DA,.2))37 S X(1)=$P(DIKZ(.2),U,8)38 S X(2)=$P(DIKZ(0),U,21)39 S X=$G(X(1))40 I $G(X(1))]"",$G(X(2))]"" D41 . K X1,X2 M X1=X,X2=X42 . S:$D(DIKIL) (X2,X2(1),X2(2))=""43 . N DIKXARR M DIKXARR=X S DIKCOND=144 . S X=145 . S DIKCOND=$G(X) K X M X=DIKXARR46 . Q:'DIKCOND47 . K ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"U")48 CR2 S DIXR=46549 K X50 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2))51 36 S X(1)=$P(DIKZ(2),U,2) 52 37 S X(2)=$P(DIKZ(2),U,4) … … 60 45 . Q:'DIKCOND 61 46 . D KPSPA^PSJXRFK(.X,.DA,"UD") 62 CR3 S DIXR=499 47 CR2 S DIXR=492 48 K X 49 S DIKZ(.2)=$G(^PS(55,DA(1),5,DA,.2)) 50 S X(1)=$P(DIKZ(.2),U,8) 51 S DIKZ(0)=$G(^PS(55,DA(1),5,DA,0)) 52 S X(2)=$P(DIKZ(0),U,21) 53 S X=$G(X(1)) 54 I $G(X(1))]"",$G(X(2))]"" D 55 . K X1,X2 M X1=X,X2=X 56 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 57 . N DIKXARR M DIKXARR=X S DIKCOND=1 58 . S X=1 59 . S DIKCOND=$G(X) K X M X=DIKXARR 60 . Q:'DIKCOND 61 . K ^PS(55,"ACX",$E(X(1),1,30),$E(X(2),1,30),DA_"U") 62 CR3 S DIXR=495 63 63 K X 64 64 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2)) … … 71 71 . S:$D(DIKIL) (X2,X2(1),X2(2))="" 72 72 . K ^PS(55,"AUDC",$E(X(1),1,20),$E(X(2),1,20),DA(1),DA) 73 CR4 S DIXR= 50173 CR4 S DIXR=497 74 74 K X 75 75 S DIKZ(2)=$G(^PS(55,DA(1),5,DA,2)) -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSJXR9.m
r628 r636 1 PSSJXR9 ; COMPILED XREF FOR FILE #55.02 ; 12/12/071 PSSJXR9 ; COMPILED XREF FOR FILE #55.02 ; 01/17/08 2 2 ; 3 3 S DA(2)=DA(1) S DA(1)=0 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSMARK.m
r628 r636 1 1 PSSMARK ;BIR/WRT-Review single NDF matches for CMOP ; 10/27/98 13:44 2 ;;1.0;PHARMACY DATA MANAGEMENT;**15,17,20,28,57,82 ,124**;9/30/97;Build 22 ;;1.0;PHARMACY DATA MANAGEMENT;**15,17,20,28,57,82**;9/30/97 3 3 ; 4 4 ;Reference to ^PS(59 supported by DBIA #1976 … … 35 35 Q 36 36 BLD ; 37 I $D(^PSDRUG(PSXUM,"I")) D ;; <*124 RJS 38 .N X,X1,X2 39 .S X1=$G(^PSDRUG(PSXUM,"I")),X2=DT D ^%DTC 40 .S:X<1 PSSEXP(1)="It has been inactivated." ;; *124 RJS > 37 I $D(^PSDRUG(PSXUM,"I")) S PSSEXP(1)="It has been inactivated." 41 38 I $D(^PSDRUG(PSXUM,2)),$P(^PSDRUG(PSXUM,2),"^",3)'["O" S PSSEXP(2)="It is not marked for outpatient pharmacy use." 42 39 BLD5 I $P(^PSDRUG(PSXUM,0),"^",3)[1!($P(^(0),"^",3)[2) S PSSEXP(3)="It is a schedule I or schedule II controlled substance." -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSVX6.m
r628 r636 1 PSSVX6 ; DRIVER FOR COMPILED XREFS FOR FILE #52.6 ; 0 3/08/061 PSSVX6 ; DRIVER FOR COMPILED XREFS FOR FILE #52.6 ; 04/10/06 2 2 ; 3 3 N DH,DU,DIKILL,DISET,DIKJ,DIKZ,DIKYR,DIKZA,DIK0Z,DIKZK,DIKDP,DIKM1,DIKUP,DIKUM,DV,DIIX,DIKF,DIAU,DIKNM,DIKDA,DIKLK,DIKLM,DIKY,DIXR,DIKCOND,DIKSVDA,DIKPUSH,X1,X2 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSVX61.m
r628 r636 1 PSSVX61 ; COMPILED XREF FOR FILE #52.6 ; 0 3/08/061 PSSVX61 ; COMPILED XREF FOR FILE #52.6 ; 04/10/06 2 2 ; 3 3 S DIKZK=2 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSVX62.m
r628 r636 1 PSSVX62 ; COMPILED XREF FOR FILE #52.61 ; 0 3/08/061 PSSVX62 ; COMPILED XREF FOR FILE #52.61 ; 04/10/06 2 2 ; 3 3 S DA(1)=DA S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSVX63.m
r628 r636 1 PSSVX63 ; COMPILED XREF FOR FILE #52.63 ; 0 3/08/061 PSSVX63 ; COMPILED XREF FOR FILE #52.63 ; 04/10/06 2 2 ; 3 3 S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSVX64.m
r628 r636 1 PSSVX64 ; COMPILED XREF FOR FILE #52.6 ; 0 3/08/061 PSSVX64 ; COMPILED XREF FOR FILE #52.6 ; 04/10/06 2 2 ; 3 3 S DIKZK=1 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSVX65.m
r628 r636 1 PSSVX65 ; COMPILED XREF FOR FILE #52.61 ; 0 3/08/061 PSSVX65 ; COMPILED XREF FOR FILE #52.61 ; 04/10/06 2 2 ; 3 3 S DA(1)=DA S DA=0 -
FOIAVistA/tag/r/PHARMACY_DATA_MANAGEMENT-PSS/PSSVX66.m
r628 r636 1 PSSVX66 ; COMPILED XREF FOR FILE #52.63 ; 0 3/08/061 PSSVX66 ; COMPILED XREF FOR FILE #52.63 ; 04/10/06 2 2 ; 3 3 S DA=0
Note:
See TracChangeset
for help on using the changeset viewer.