source: WorldVistAEHR/trunk/r/RADIOLOGY_NUCLEAR_MEDICINE-RA/RAJAC.m@ 1635

Last change on this file since 1635 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.9 KB
Line 
1RAJAC ;HISC/FPT AISC/MJK,RMO-Print Film Jacket Labels ;9/5/95 15:26
2 ;;5.0;Radiology/Nuclear Medicine;**1,8**;Mar 16, 1998
3START I '$D(RATEST) Q:'$D(^RADPT(RADFN,0)) S RAY1=^(0) Q:'$D(^DPT(RADFN,0)) S RAY0=^(0)
4 S RAY2=$G(RASAV2),RAY3=$G(RASAV3) ;from RAREG3
5 S (RADTI,RACNI)=0
6 I $D(RAMDIV) S $P(RAY2,"^",3)=RAMDIV
7 I $D(RATEST) F RAK=0:0 S RAK=$O(^RA(78.7,RAK)) Q:RAK'>0 I $D(^(RAK,0)) S @$P(^(0),"^",5)=$P(^(0),"^",4)
8 D PRT^RAFLH,CLOSE^RAUTL
9 K RAY0,RAY1,RAY2,RAY3,RADFN,RADTI,RACNI,RATYPE,RAFMT,RANUM,RASAV2,RASAV3 F RAK=0:0 S RAK=$O(^RA(78.7,RAK)) Q:RAK'>0 I $D(^(RAK,0)) K @$P(^(0),"^",5)
10 K RAK Q
11 ;
12JAC ; Called from LABEL^RAREG3
13 N RADTI
14 S ION=$P(RAMLC,"^",5),IOP=$S(ION]"":"Q;"_ION,1:"Q")
15 S:IOP="Q" RASELDEV="Select the JACKET LABEL Printer"
16 S RANUM=$S($P(RAMLC,"^",4):$P(RAMLC,"^",4),1:1),RAFMT=$S($P(RAMLC,"^",11):$P(RAMLC,"^",11),1:1)
17 ;
18 ; NOTE: When the location parameter HOW MANY JACKET LABELS PER VISIT
19 ; (File 79.1) equals zero AND the division parameter PRINT JACKET LABELS
20 ; WITH EACH VISIT (File 79) equals YES, the RAPSET routine will set
21 ; $P(RAMLC,U,4) equal to 2 (not zero).
22 ;
23Q S ZTDTH=$H,ZTRTN="DQ^RAJAC" F RASV=$S($D(RATEST):"RATEST",1:"RADFN"),"RANUM","RAFMT","RAMDIV","RASAV*" S ZTSAVE(RASV)=""
24 S:'$D(RAMES) RAMES="W !?5,""...all film jacket labels queued to print on "",ION,""."",!"
25 W ! D ZIS^RAUTL G KILL:RAPOP
26 ;
27DQ U IO S U="^" S X="T",%DT="" D ^%DT S DT=Y G START
28 ;
29DUP D SET^RAPSET1 I $D(XQUIT) K XQUIT D KILL Q
30 S DIC(0)="AEMQ" D ^RADPA G KILL:Y<0 S RADFN=+Y,ION=$P(RAMLC,"^",5),IOP=$S(ION]"":"Q;"_ION,1:"Q")
31 S RAMES="W !!,""Duplicates queued to print on "",ION,"".""",RAFMT=$S($P(RAMLC,"^",11):$P(RAMLC,"^",11),1:1)
32FLH R !,"How many jacket labels? 1// ",X:DTIME G DUP:'$T!(X["^") S:X="" X=1 S RANUM=X I '(RANUM?.N)!(RANUM>20) W !?3,*7,"Must be a whole number less than 21!" G FLH
33 K RAFL D Q,KILL W ! G DUP
34 ;
35KILL K %,%W,%X,%Y,A,C,DIC,DUOUT,I,POP,RAFMT,RAMES,RANUM,RADFN,RAPOP,RASV,X,Y,ZTDESC,ZTDTH,ZTRTN,ZTSAVE,POP,DISYS,DFN Q
Note: See TracBrowser for help on using the repository browser.