[623] | 1 | ECXFELOC ;BIR/DMA,CML-Print Feeder Locations; [ 05/07/96 8:41 AM ]
|
---|
| 2 | ;;3.0;DSS EXTRACTS;**1,8**;Dec 22, 1997
|
---|
| 3 | EN ;entry point from option
|
---|
| 4 | W !!,"Print list of feeder locations.",! S QFLG=1
|
---|
| 5 | K %ZIS S %ZIS="Q" D ^%ZIS Q:POP
|
---|
| 6 | I $D(IO("Q")) S ZTDESC="Feeder Location List (DSS)",ZTRTN="START^ECXFELOC" D ^%ZTLOAD D ^%ZISC G OUT
|
---|
| 7 | U IO
|
---|
| 8 | START ;queued entry point
|
---|
| 9 | I '$D(DT) S DT=$$HTFM^XLFDT(+$H)
|
---|
| 10 | K ^TMP($J) S (QFLG,PG)=0,$P(LN,"-",81)=""
|
---|
| 11 | LAB S EC=0 F S EC=$O(^LRO(68,EC)) Q:'EC I $D(^(EC,0)) S EC1=^(0),^TMP($J,"LAB",$P(EC1,U,11),EC)=$P(EC1,U)
|
---|
| 12 | ECS S EC=0 I $P($G(^EC(720.1,1,0)),U,2) D G IV
|
---|
| 13 | .F S EC=$O(^ECJ(EC)) Q:'EC I $D(^(EC,0)) S EC1=$P(^(0),"-",1,2),EC2=$P($G(^ECD(+$P(EC1,"-",2),0)),U),^TMP($J,"ECS",EC1,EC1)=EC2
|
---|
| 14 | F S EC=$O(^ECK(EC)) Q:'EC I $D(^(EC,0)) S EC1=$P(^(0),"-",1,2),EC2=$P($G(^ECD(+$P(EC1,"-",2),0)),U),^TMP($J,"ECS",EC1,EC1)=EC2
|
---|
| 15 | IV S EC=0 F S EC=$O(^DG(40.8,EC)) Q:'EC I $D(^DG(40.8,EC,0)) S EC1=$E($P(^(0),U),1,30),^TMP($J,"IVP","IVP"_EC,EC)="IV Pharmacy-"_EC1
|
---|
| 16 | CLI S EC=0 F S EC=$O(^SC(EC)) Q:'EC I $D(^(EC,0)) S EC1=^(0),ECS=$P(EC1,U,15),ECSC=$P($G(^DIC(40.7,+$P(EC1,U,7),0)),U,2),ECD=$P(EC1,U) S:'ECS ECS=1 D
|
---|
| 17 | .I $P(EC1,U,17)'="Y",$P(EC1,U,3)="C" S DAT=$G(^SC(EC,"I")),ID=+DAT,RD=$P(DAT,U,2) I 'ID!(ID>DT)!(RD&(RD<DT)) S ^TMP($J,"CLI",ECS_ECSC,EC)=ECD
|
---|
| 18 | PRE I $O(^PS(59,0)) G V6
|
---|
| 19 | S EC=0 F S EC=$O(^DIC(59,EC)) Q:'EC I $D(^(EC,0)) S EC1=$E($P(^(0),U),1,30),^TMP($J,"PRE","PRE"_EC,EC)="Prescriptions-"_EC1
|
---|
| 20 | G RAD
|
---|
| 21 | V6 S EC=0 F S EC=$O(^PS(59,EC)) Q:'EC I $D(^(EC,0)) S EC1=$E($P(^(0),U),1,30),^TMP($J,"PRE","PRE"_EC,EC)="Prescriptions-"_EC1
|
---|
| 22 | RAD S EC=0 F S EC=$O(^RA(79,EC)),EC1=0 Q:'EC I $D(^(EC,0)) S ECD=$P(^(0),U) F S EC1=$O(^RA(79.2,EC1)) Q:'EC1 I $D(^(EC1,0)) S ECD1=$P(^(0),U),^TMP($J,"RAD",EC_"-"_EC1,EC_"-"_EC1)=ECD_"-"_ECD1
|
---|
| 23 | NUR S EC=0 F S EC=$O(^NURSF(211.4,EC)) Q:'EC I $D(^(EC,0)) S EC1=$P(^(0),U),EC1=$P($G(^SC(+EC1,0)),U),^TMP($J,"NUR",EC,EC)=EC1
|
---|
| 24 | SUR F EC=1:1:14 S EC2=$P($T(@EC),";",3) F EC1="I","A","D","M","P","C","S" S EC3=$P($T(@EC1),";",3),^TMP($J,"SUR",$P(EC2,U)_EC1,EC)=$P(EC2,U,2)_"-"_EC3
|
---|
| 25 | 1 ;;ORGE^GENERAL PURPOSE OPERATING ROOM
|
---|
| 26 | 2 ;;OROR^ORTHOPEDIC OPERATING ROOM
|
---|
| 27 | 3 ;;ORCA^CARDIAC OPERATING ROOM
|
---|
| 28 | 4 ;;ORNE^NEUROSURGERY OPERATING ROOM
|
---|
| 29 | 5 ;;ORCN^CARDIAC/NEURO OPERATING ROOM
|
---|
| 30 | 6 ;;ORAM^AMBULATORY OPERATING ROOM
|
---|
| 31 | 7 ;;ORIN^INTENSIVE CARE UNIT
|
---|
| 32 | 8 ;;OREN^ENDOSCOPY ROOM
|
---|
| 33 | 9 ;;ORCY^CYSTOSCOPY ROOM
|
---|
| 34 | 10 ;;ORWA^WARD
|
---|
| 35 | 11 ;;ORCL^CLINIC
|
---|
| 36 | 12 ;;ORDE^DEDICATED ROOM
|
---|
| 37 | 13 ;;OROT^OTHER LOCATION
|
---|
| 38 | 14 ;;ORNO^UNKNOWN
|
---|
| 39 | I ;;IMPLANTS
|
---|
| 40 | A ;;ANESTHESIA TIME
|
---|
| 41 | D ;;SURGERY TIME (DENTAL)
|
---|
| 42 | M ;;SURGERY TIME (MEDICINE)
|
---|
| 43 | P ;;SURGERY TIME (PSYCH)
|
---|
| 44 | C ;;SURGERY TIME (SPINAL CORD)
|
---|
| 45 | S ;;SURGERY TIME (SURGERY)
|
---|
| 46 | UDP S EC=0 F S EC=$O(^DG(40.8,EC)) Q:'EC I $D(^DG(40.8,EC,0)) S EC1=$E($P(^(0),U),1,30),^TMP($J,"UDP","UDP"_EC,EC)="Unit Dose Medications-"_EC1
|
---|
| 47 | DEN S EC=0 F S EC=$O(^DENT(225,EC)) Q:'EC I $D(^(EC,0)) S EC1=$P(^(0),U),^TMP($J,"DEN",EC1,EC)="Dental "_EC1
|
---|
| 48 | ;
|
---|
| 49 | PRINT ;
|
---|
| 50 | S EC="" F S EC=$O(^TMP($J,EC)),EC1="" Q:EC="" Q:QFLG D HEAD Q:QFLG F S EC1=$O(^TMP($J,EC,EC1)),EC2="" Q:EC1="" Q:QFLG F S EC2=$O(^TMP($J,EC,EC1,EC2)) Q:EC2="" Q:QFLG D
|
---|
| 51 | .W !,?5,EC1,?23,^(EC2) I $Y+3>IOSL D HEAD Q:QFLG
|
---|
| 52 | OUT I $E(IOST)="C"&('QFLG) S DIR(0)="E" D D ^DIR K DIR
|
---|
| 53 | .S SS=22-$Y F JJ=1:1:SS W !
|
---|
| 54 | K ^TMP($J),DAT,EC,EC1,EC2,EC3,ECD,ECD1,ECS,ECSC,ID,JJ,LN,PG,POP,QFLG,RD,SS,X,Y
|
---|
| 55 | W:$E(IOST)'="C" @IOF D ^%ZISC S:$D(ZTQUEUED) ZTREQ="@" Q
|
---|
| 56 | HEAD ;
|
---|
| 57 | I $E(IOST)="C" S SS=22-$Y F JJ=1:1:SS W !
|
---|
| 58 | I $E(IOST)="C",PG>0 S DIR(0)="E" W ! D ^DIR K DIR I 'Y S QFLG=1 Q
|
---|
| 59 | S PG=PG+1 W:$Y!($E(IOST)="C") @IOF W !,?15,"Feeder Location List For Feeder System ",EC,?72,"Page: ",PG,!!,?5,"FEEDER LOCATION",?23,"DESCRIPTION",!,LN
|
---|
| 60 | Q
|
---|