VistA-WorldVistAEHR/r/INPATIENT_MEDICATIONS-PSJ-P.../PSJXR511.m

21 lines
722 B
Mathematica

PSJXR511 ; COMPILED XREF FOR FILE #55 ; 10/28/97
;
S DIKZK=1
S DIKZ(0)=$G(^PS(55,DA,0))
S X=$P(DIKZ(0),U,1)
I X'="" S ^PS(55,"B",$E(X,1,30),DA)=""
S X=$P(DIKZ(0),U,1)
I X'="" I '$D(PSGINITF) S ^PS(55,"ALCNVRT")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
S X=$P(DIKZ(0),U,1)
I X'="" I '$D(PSGINITF) S ^PS(55,"AUDDD")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
S X=$P(DIKZ(0),U,1)
I X'="" I '$D(PSGINITF) S ^PS(55,"AUDAPM")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
S X=$P(DIKZ(0),U,4)
I X'="" S ^PS(55,"ADIA",$E(X,1,30),DA)=""
S DIKZ("SAND")=$G(^PS(55,DA,"SAND"))
S X=$P(DIKZ("SAND"),U,1)
I X'="" S ^PS(55,"ASAND",DA)=""
S X=$P(DIKZ("SAND"),U,1)
I X'="" S ^PS(55,"ASAND1",$E(X,1,30),DA)=""
END G ^PSJXR512