source: WorldVistAEHR/trunk/r/INPATIENT_MEDICATIONS-PSJ-PSIV-PSG--PSGW/PSJUNITD.m@ 724

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

initial load of WorldVistAEHR

File size: 3.7 KB
Line 
1PSJUNITD ;BIR/RLW-WRITE TO UNIT DOSE SUBFILE ;28 JUN 96 / 12:19 PM
2 ;;5.0; INPATIENT MEDICATIONS ;;16 DEC 97
3 ;
4EN(PSJ) ; return a value for the DR or DIC("DR") string
5 N I,X,LINETAG,FIELD S (X,FIELD)=""
6 F S FIELD=$O(PSJ(FIELD)) Q:FIELD="" S LINETAG="" D
7 .F I=1:1:$L(FIELD) S LINETAG=LINETAG+($A(FIELD,I)*I)
8 .S:FIELD="REASON ORDER CREATED" LINETAG=9999
9 .S X=X_+$P($T(@(LINETAG)),";;",2)_"////"_PSJ(FIELD)_";"
10 Q X
11 ;
12FIELDS ; fields from the NON-VERIFIED ORDERS file
135647 ;;.01 - 0;1 ORDER NUMBER
1416398 ;;.25 - 0;18 ORIGINAL ORDER NUMBER
155438 ;;.5 - 0;15 PATIENT NAME
162737 ;;1 - 0;2 PROVIDER
176542 ;;2 - 1;0 DISPENSE DRUG
183319 ;;3 - 0;3 MED ROUTE
19778 ;;4 - 0;4 TYPE
202378 ;;5 - 0;5 SELF MED
2123949 ;;6 - 0;6 HOSPITAL SUPPLIED SELF MED
226607 ;;7 - 0;7 SCHEDULE TYPE
2316029 ;;8 - 6;1 SPECIAL INSTRUCTIONS
246383 ;;9 - 2;10 ORIGINAL WARD
258415 ;;10 - 2;2 START DATE/TIME
263290 ;;11 - 0;10 DAY LIMIT
273991 ;;12 - 0;11 DOSE LIMIT
282829 ;;15 - 3;0 COMMENTS
298881 ;;16 - 4;1 VERIFYING NURSE
3017739 ;;17 - 4;2 DATE VERIFIED BY NURSE
3115382 ;;18 - 4;3 VERIFYING PHARMACIST
3226697 ;;19 - 4;4 DATE VERIFIED BY PHARMACIST
333323 ;;20 - 4;5 PHYSICIAN
3424702 ;;21 - 4;6 DATE VERIFIED BY PHYSICIAN
351129 ;;22 - 4;7 CLERK
3615754 ;;23 - 4;8 DATE ENTERED BY CLERK
3719488 ;;25 - 2;3 PREVIOUS STOP DATE/TIME
382643 ;;26 - 2;1 SCHEDULE
393767 ;;27 - 0;14 ORDER DATE
404412 ;;27.1 - 0;16 LOG-IN DATE
411705 ;;28 - 0;9 STATUS
425680 ;;29 - 9;0 ACTIVITY LOG
437361 ;;34 - 2;4 STOP DATE/TIME
444774 ;;41 - 2;5 ADMIN TIMES
4522217 ;;42 - 2;6 FREQUENCY (in minutes)
462087 ;;43 - 4;15 RENEWAL
475681 ;;44 - 4;16 RENEWAL USER
4813193 ;;45 - 4;17 DATE RENEWAL MARKED
499371 ;;46 - 4;12 MARKED CANCELLED
5016124 ;;47 - 4;13 MARKED CANCELLED USER
5115772 ;;48 - 4;14 DATE MARKED CANCELLED
5212745 ;;49 - 4;11 AUTO CANLAG
531895 ;;50 - 4;9 PV FLAG
541893 ;;51 - 4;10 NV FLAG
553694 ;;52 - 7;1 LABEL DATE
565598 ;;53 - 7;2 LABEL REASON
5731357 ;;54 - 5;7 *TOTALS EXTRA UNITS DISPENSED
5818316 ;;55 - 5;8 *EXTRA UNITS DISPENSED
593001 ;;56 - 4;18 HOLD FLAG
603271 ;;57 - 4;19 HOLD USER
613046 ;;58 - 4;20 HOLD DATE
625015 ;;59 - 4;21 HOLD STATUS
636997 ;;59.1 - 4;26 OERR HOLD FLAG
645994 ;;60 - 4;22 OFF HOLD FLAG
656412 ;;61 - 4;23 OFF HOLD USER
666055 ;;62 - 4;24 OFF HOLD DATE
6723207 ;;63 - 5;9 *TOTAL PRE-EXCHANGE UNITS
683710 ;;64 - 0;20 PURGE FLAG
69711 ;;65 - 6.5;1 *SIG
7011049 ;;66 - 0;21 ORDERS FILE ENTRY
717608 ;;67 - 4;25 MERGED PATIENT
723196 ;;68 - 0;23 LAST WARD
7316181 ;;69 - 0;22 'NOT TO BE GIVEN' FLAG
7420939 ;;70 - 2;7 ORIGINAL START DATE/TIME
755498 ;;71 - 11;0 DISPENSE LOG
7611380 ;;72 - 12;0 PROVIDER COMMENTS
775686 ;;101 - .1;1 PRIMARY DRUG
787370 ;;102 - .1;2 DOSAGE ORDERED
7914603 ;;103 - 0;24 REASON ORDER CREATED
807734 ;;104 - 0;25 PREVIOUS ORDER
818704 ;;105 - 0;26 FOLLOWING ORDER
828363 ;;106 - .1;3 NATURE OF ORDER
8325092 ;;107 - 0;27 REASON FOR FOLLOWING ORDER
Note: See TracBrowser for help on using the repository browser.