[Hardhats] Need help printing orders automatically from CPRS

123 views
Skip to first unread message

kdt...@gmail.com

unread,
Apr 22, 2010, 7:44:51 PM4/22/10
to Hardhats
I need HELP printing orders from CPRS. Today was our go-live day. We
have moved to a new VistA, and are having to get everything working
again. So this is a somewhat urgent issue for us as we need this
system for live patient care.

In CPRS, we can create a text-only order and sign it. But I can't
print it out.

Prior threads where I was helped on this topic are here:
http://groups.google.com/group/hardhats/browse_thread/thread/1d65a348d642597/bf03b23cf8618a4d?lnk=gst&q=automatically+print+orders+kdtop#bf03b23cf8618a4d

(I again followed these instructions and specified the printer for lab
orders etc.)

And maybe, here (but I think it is less on topic)
http://groups.google.com/group/hardhats/browse_thread/thread/c42f0e3e1b205c7e/b6e624ddc8c75a78?lnk=gst&q=questions+regarding+CPRS+note+signing+kdtop#b6e624ddc8c75a78

So when we select the order in CPRS, and then chose File|Print, then a
"Print Orders" dialog box comes up. We check the box for "Chart
copies", and select a valid printer via the [Change] button. In our
case, our printer is "S121". We can print to this printer from
elsewhere in VistA/Fileman, so the printing part is OK. The problem
is that after we check [Print All Checked Items], nothing happens. No
printout.

So to try to debug this today, Eddie (at great length) tracked down
the RPC call,
and found that it is creating a Taskman task to do the printing. So we
put Taskman into a WAIT state, and then asked for a print in CPRS as
above. Sure enough, there is taskman entry created. We take Taskman
out of the WAIT state, and the task is processed. But still no
printout.

The code that the task calls is C1^ORPR03, which has this header:

ORPR03 ; slc/dcm - While you were printing ; 07 Dec 99 01:43PM
;;3.0;ORDER ENTRY/RESULTS REPORTING;**11,69**;Dec 17, 1997
C1 ; Chart Copy Print

The part that is confusing, is that when we trace up to the point
where the %ZTLOAD is called, we can't see that it is passing any
significant variables in via ZTSAVE. There are about 5 nodes defined,
but all the corresponding variables are empty. Aha! we thought, that
is the problems. But then we traced this through on our older working
system, and it seemed to be the same.

So does anyone know how C1^ORPR03 is supposed to know WHAT it is
supposed to print. If feel if I could get that information, then I
could figure out what is present in the old working system, and is
missing in the new system.

Any other thoughts about how to debug this would be helpful.
Actually, I just now remember that someone told me to bypass the task
scheduling, and call the code directly. I may try that.

Thanks!

Kevin

--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com

kdt...@gmail.com

unread,
Apr 22, 2010, 8:31:15 PM4/22/10
to Hardhats
OK. I got this working.

For future reference, the problem was not having a print template/
format defined.

Below is a screen log. Comments below marked with **

Select TMG Menu (Other) #1 Option: cprs CPRS Manager Menu


CL Clinician Menu ...
NM Nurse Menu ...
WC Ward Clerk Menu ...
PE CPRS Configuration (Clin Coord) ...
IR CPRS Configuration (IRM) ...


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select CPRS Manager Menu Option: pe CPRS Configuration (Clin Coord)


AL Allocate OE/RR Security Keys
KK Check for Multiple Keys
DC Edit DC Reasons
GP GUI Parameters ...
GA GUI Access - Tabs, RPL
MI Miscellaneous Parameters
NO Notification Mgmt Menu ...
OC Order Checking Mgmt Menu ...
MM Order Menu Management ...
LI Patient List Mgmt Menu ...
FP Print Formats
PR Print/Report Parameters ...
RE Release/Cancel Delayed Orders
US Unsigned orders search
EX Set Unsigned Orders View on Exit
NA Search orders by Nature or Status
DO Event Delayed Orders Menu ...
PM Performance Monitor Report


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select CPRS Configuration (Clin Coord) Option: fp Print Formats
Select OE/RR PRINT FORMATS NAME:


AL Allocate OE/RR Security Keys
KK Check for Multiple Keys
DC Edit DC Reasons
GP GUI Parameters ...
GA GUI Access - Tabs, RPL
MI Miscellaneous Parameters
NO Notification Mgmt Menu ...
OC Order Checking Mgmt Menu ...
MM Order Menu Management ...
LI Patient List Mgmt Menu ...
FP Print Formats
PR Print/Report Parameters ...
RE Release/Cancel Delayed Orders
US Unsigned orders search
EX Set Unsigned Orders View on Exit
NA Search orders by Nature or Status
DO Event Delayed Orders Menu ...
PM Performance Monitor Report


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select CPRS Configuration (Clin Coord) Option: pr Print/Report
Parameters


CC Chart Copy Parameters
WC Work Copy Parameters
SC Service Copy Parameters
RE Requisition/Label Parameters
UM Summary Report Parameters
HO Print Parameters for Hospital
LO Print Parameters for Wards/Clinics


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select Print/Report Parameters Option: cc Chart Copy Parameters

Chart Copy Definition for System: BETA.VISTA-OFFICE.ORG
------------------------------------------------------------------------------
Chart Copy Format FPG DOCTOR'S ORDERS
Chart Copy Header FPG DOCTOR'S ORDERS
HEADER
Chart Copy Footer FPG DOCTOR'S ORDERS
FOOTER
Expand Continuous Orders NO
Print Chart Copy When signing orders
Prompt for Chart Copy PROMPT AND ASK
DEVICE
------------------------------------------------------------------------------
CHART COPY FORMAT: FPG DOCTOR'S ORDERS//

** When it was not working, the entries for FPG DOCTOR'S ... were
missing.
These are records from the OE/RR PRINT FORMATS NAME file, and are set
up as follows:


AL Allocate OE/RR Security Keys
KK Check for Multiple Keys
DC Edit DC Reasons
GP GUI Parameters ...
GA GUI Access - Tabs, RPL
MI Miscellaneous Parameters
NO Notification Mgmt Menu ...
OC Order Checking Mgmt Menu ...
MM Order Menu Management ...
LI Patient List Mgmt Menu ...
FP Print Formats
PR Print/Report Parameters ...
RE Release/Cancel Delayed Orders
US Unsigned orders search
EX Set Unsigned Orders View on Exit
NA Search orders by Nature or Status
DO Event Delayed Orders Menu ...
PM Performance Monitor Report


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select CPRS Configuration (Clin Coord) Option: fp Print Formats
Select OE/RR PRINT FORMATS NAME: ??

Choose from:
1 FPG DOCTOR'S ORDERS
2 FPG DOCTOR'S ORDERS HEADER
3 FPG DOCTOR'S ORDERS FOOTER
1002 LAB ORDER LABEL
1003 LAB REQUISITION
1004 CHART COPY 1
...
1036 FH OUTPT MEAL TICKET
1037 FH OUTPT MEAL HEADER
1038 FH OUTPT MEAL FOOTER

You may enter a new OE/RR PRINT FORMATS, if you wish
to continue or '^' to exit: ^
Select OE/RR PRINT FORMATS NAME: 1 FPG DOCTOR'S ORDERS
NAME: FPG DOCTOR'S ORDERS//
Select FIELDS: STATUS OF ORDER//
FIELDS: STATUS OF ORDER//
ROW: 1//
COLUMN: 19//
CAPTION (Optional): NONE//
SUPPRESS CAPTION:
Select FIELDS:
ROWS: 4//
ORDER TEXT LENGTH: 33//
SINGLE:

OK to compile print format? Yes// (Yes)

... 'FPG DOCTOR'S ORDERS' format has been compiled.

|||||------------------------ Column Numbers
------------------------|||||
0---+----1----+----2----+----3----+----4----+----5----+----6----
+----7----+----8
1 0 0 0 0 0 0
0 0
03/02/1998 07:00 p LDH BLOOD SERUM LB #123 WC ROUTINE /es/ Marcus
Welby, MD
Start: 03/04/1998 09:00 Chief of
Dietetics

Urgency: STATURG: EMERGENCY


Kevin


On Apr 22, 7:44 pm, "kdt...@gmail.com" <kdt...@gmail.com> wrote:
> I need HELP printing orders from CPRS.  Today was our go-live day.  We
> have moved to a new VistA, and are having to get everything working
> again.  So this is a somewhat urgent issue for us as we need this
> system for live patient care.
>
> In CPRS, we can create a text-only order and sign it. But I can't
> print it out.
>

Matt King

unread,
Apr 26, 2010, 10:33:34 PM4/26/10
to Hardhats
This was timely for me, because down here in Puerto Rico, we want to
do the same thing, since the labs aren't ready for HL7 connectivity
yet (at least the ones our clients are using).

I was able to get it working, also. I must say the "template editor"
for the print job is pretty yucky. (A technical expression.)

m
> --http://groups.google.com/group/Hardhats

kdt...@gmail.com

unread,
Apr 27, 2010, 6:51:12 PM4/27/10
to Hardhats
"the "template editor for the print job is pretty yucky" ...

I think you are being too kind. It is downright horrible. I
understand that it was what the technology of the time allowed. But
still!

:-)

Kevin

Bogs woolmer

unread,
Apr 28, 2010, 3:02:42 AM4/28/10
to Hardhats
Hi All

I am trying to get labels printed ,chart copies, work copies by
following above instruction

though i see a prompt after signing order which ask for all the above
option but not yet able to print these labels

Can any one post the instruction needed to configure printer so that
the labels can be printed

or what further more is required to be done in order to print these
labels

Please help

Thanks and regards
Bogs

kdt...@gmail.com

unread,
Apr 28, 2010, 7:11:21 AM4/28/10
to Hardhats
I think you will have to give us more information. Can you show us
that you have the various parts defined?

Kevin

On Apr 28, 3:02 am, Bogs woolmer <woolmer.b...@gmail.com> wrote:
> Hi All
>
> I am trying to get labels printed ,chart copies, work copies by
> following above instruction
>
> though i see a prompt after signing order which ask for all the above
> option but not yet able to print these labels
>
> Can any one post the instruction needed to configure printer so that
> the labels can be printed
>
> or what further more is required to be done in order to print these
> labels
>
> Please help
>
> Thanks and regards
> Bogs
>
> --http://groups.google.com/group/Hardhats

kdt...@gmail.com

unread,
May 2, 2010, 9:45:56 PM5/2/10
to Hardhats
Bogs wrote me off list with details. I'll put the screen scrape he
sent me, and then comment below.

===========================

set up parameters in back end(through roll and scroll)

Select OPTION NAME: cprs con
1 CPRS CONFIGURATION (CLIN COORD OR PARAM COORDINATOR MENU
CPRS Conf
iguration (Clin Coord)
2 CPRS CONFIGURATION (IRM) OR PARAM IRM MENU CPRS
Configuration (IRM
)
CHOOSE 1-2: 1 OR PARAM COORDINATOR MENU CPRS Configuration (Clin
Coord)


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select CPRS Configuration (Clin Coord) Option: ?

AL Allocate OE/RR Security Keys
KK Check for Multiple Keys
DC Edit DC Reasons
GP GUI Parameters ...
GA GUI Access - Tabs, RPL
MI Miscellaneous Parameters
NO Notification Mgmt Menu ...
OC Order Checking Mgmt Menu ...
MM Order Menu Management ...
LI Patient List Mgmt Menu ...
FP Print Formats
PR Print/Report Parameters ...
RE Release/Cancel Delayed Orders
US Unsigned orders search
EX Set Unsigned Orders View on Exit
NA Search orders by Nature or Status
CM Care Management Menu ...
DO Event Delayed Orders Menu ...
PM Performance Monitor Report

Enter ?? for more options, ??? for brief descriptions, ?OPTION for
help text.


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select CPRS Configuration (Clin Coord) Option: fp Print Formats
Select OE/RR PRINT FORMATS NAME: doc
1 DOCTOR'S ORDERS
2 DOCTOR'S ORDERS HEADER
3 DOCTORS ORDERS FOOTER
CHOOSE 1-3: 1 DOCTOR'S ORDERS
NAME: DOCTOR'S ORDERS//
Select FIELDS: STATUS OF ORDER//
FIELDS: STATUS OF ORDER//
ROW: 1//
COLUMN: 19//
CAPTION (Optional): NONE//
SUPPRESS CAPTION:
Select FIELDS: ??

Choose from:
CONSULT URGENCY Row: 4 Col: 36 Caption:
ELECTRONIC SIGNATURE NAME Row: 1 Col: 60 Caption:
NONE
ELECTRONIC SIGNATURE TITLE Row: 2 Col: 60
Caption: NONE
LAB URGENCY Row: 4 Col: 35 Caption:
ORDER DATE Row: 1 Col: 1 Caption: NONE
ORDER TEXT Row: 1 Col: 22 Caption: NONE
START DATE Row: 2 Col: 21 Caption:
STATUS OF ORDER Row: 1 Col: 19 Caption: NONE

You may enter a new FIELDS, if you wish
The allowable choices come from the OE/RR PRINT FIELDS FILE
and
are grouped here to make up a format.


Answer with FIELDS
Choose from:
CONSULT URGENCY Row: 4 Col: 36 Caption:
ELECTRONIC SIGNATURE NAME Row: 1 Col: 60 Caption:
NONE
ELECTRONIC SIGNATURE TITLE Row: 2 Col: 60
Caption: NONE
LAB URGENCY Row: 4 Col: 35 Caption:
ORDER DATE Row: 1 Col: 1 Caption: NONE
ORDER TEXT Row: 1 Col: 22 Caption: NONE
START DATE Row: 2 Col: 21 Caption:
STATUS OF ORDER Row: 1 Col: 19 Caption: NONE

You may enter a new FIELDS, if you wish
Enter the field to be added to this format.

Answer with OE/RR PRINT FIELDS NUMBER, or NAME
Do you want the entire 78-Entry OE/RR PRINT FIELDS List?no

print parameters:
Select Print/Report Parameters Option: ?

CC Chart Copy Parameters
WC Work Copy Parameters
SC Service Copy Parameters
RE Requisition/Label Parameters
UM Summary Report Parameters
HO Print Parameters for Hospital
LO Print Parameters for Wards/Clinics
NA Print Parameters for Nature of Order

Enter ?? for more options, ??? for brief descriptions, ?OPTION for
help text.


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select Print/Report Parameters Option: cc Chart Copy Parameters

Chart Copy Definition for System: BETA.VISTA-OFFICE.ORG
------------------------------------------------------------------------------
Chart Copy Format DOCTOR'S ORDERS
Chart Copy Header DOCTOR'S ORDERS
HEADER
Chart Copy Footer DOCTORS ORDERS
FOOTER
Expand Continuous Orders NO
Print Chart Copy When signing orders
Prompt for Chart Copy PROMPT AND ASK
DEVICE
------------------------------------------------------------------------------
CHART COPY FORMAT: DOCTOR'S ORDERS// DOCTOR'S ORDERS
CHART COPY HEADER: DOCTOR'S ORDERS HEADER// DOCTOR'S ORDERS HEADER
CHART COPY FOOTER: DOCTORS ORDERS FOOTER// DOCTORS ORDERS FOOTER
EXPAND CONTINUOUS ORDERS: NO//
PRINT CHART COPY WHEN: signing orders//
PROMPT FOR CHART COPY: PROMPT AND ASK DEVICE//

===========================

Bogs,

Here is how we have the actual printers set up. Can you compare this
to your system?

Kevin


Select CPRS Manager Menu Option: pe CPRS Configuration (Clin Coord)


AL Allocate OE/RR Security Keys
KK Check for Multiple Keys
DC Edit DC Reasons
GP GUI Parameters ...
GA GUI Access - Tabs, RPL
MI Miscellaneous Parameters
NO Notification Mgmt Menu ...
OC Order Checking Mgmt Menu ...
MM Order Menu Management ...
LI Patient List Mgmt Menu ...
FP Print Formats
PR Print/Report Parameters ...
RE Release/Cancel Delayed Orders
US Unsigned orders search
EX Set Unsigned Orders View on Exit
NA Search orders by Nature or Status
DO Event Delayed Orders Menu ...
PM Performance Monitor Report


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select CPRS Configuration (Clin Coord) Option: pr Print/Report
Parameters


CC Chart Copy Parameters
WC Work Copy Parameters
SC Service Copy Parameters
RE Requisition/Label Parameters
UM Summary Report Parameters
HO Print Parameters for Hospital
LO Print Parameters for Wards/Clinics


You have PENDING ALERTS
Enter "VA to jump to VIEW ALERTS option

Select Print/Report Parameters Option: lo Print Parameters for Wards/
Clinics
Select HOSPITAL LOCATION NAME: lo Laughlin_Office

Print Definition (Loc) for Location: Laughlin_Office
------------------------------------------------------------------------------
Chart Copy Print Device S121-LAUGHLIN-LASER
Prompt for Chart Copy DON'T PROMPT
Work Copy Print Device S121-LAUGHLIN-LASER
Prompt for Work Copy DON'T PROMPT
Requisition Print Device S121-LAUGHLIN-LASER
Prompt for Requisitions PROMPT AND ASK
DEVICE
Label Print Device
Prompt for Labels DON'T PROMPT
Daily Order Summary Device
Service Copy Default Device
Print Chart Copy Summary
Print Daily Order Summary
------------------------------------------------------------------------------
CHART COPY PRINT DEVICE: S121-LAUGHLIN-LASER//


Kevin

Bogs woolmer

unread,
May 3, 2010, 5:12:02 AM5/3/10
to Hardhats
Hi Kevin

I think you are right i have not did my printer set up .
I dont know how to set it up can you help me doing that. can you
please
post how to configure printer and what is your S121-LAUGHLIN-LASER
printer configuration

Thanks Kevin for your reply

Regards
Bogs

kdt...@gmail.com

unread,
May 3, 2010, 8:31:15 PM5/3/10
to Hardhats
Yes, you have to have a printer defined first!

Here is my S121

Record# 65, in FILE: 3.5
.01-NAME : S121-LAUGHLIN-LASER
.02-LOCATION OF TERMINAL : Laughlin_Office
1-$I : <TO BE SET IN PRE-OPEN EX.>
2-TYPE : HOST FILE SERVER
3-SUBTYPE : P-HPLASER-P12-DELL1700
7-NEAREST PHONE : 787-7000
11-PAGE LENGTH : 75
11.2-SUPPRESS FORM FEED AT CLOSE : YES
17-FORM CURRENTLY MOUNTED : Plain paper
19.7-PRE-OPEN EXECUTE : SET IO=$$GETJOBNM^TMGPRNTR()
19.8-POST-CLOSE EXECUTE : DO FINISH^TMGPRNTR("laughlin_laser")
51-OPEN COUNT : 158
----- Press Key To Continue -----

If you want to see the contents of the function TMGPRNTR, look in the
TMG library, which is stored in the files section of the Google
Hardshats group.

Also, do a search of the archives to find out about setting up
printers.

Kevin
> > ---------------------------------------------------------------------------­---
> > Chart Copy Format                                 DOCTOR'S ORDERS
> > Chart Copy Header                                 DOCTOR'S ORDERS
> > HEADER
> > Chart Copy Footer                                 DOCTORS ORDERS
> > FOOTER
> > Expand Continuous Orders                          NO
> > Print Chart Copy When                             signing orders
> > Prompt for Chart Copy                             PROMPT AND ASK
> > DEVICE
> > ---------------------------------------------------------------------------­---
> > ---------------------------------------------------------------------------­---
> > Chart Copy Print Device                           S121-LAUGHLIN-LASER
> > Prompt for Chart Copy                             DON'T PROMPT
> > Work Copy Print Device                            S121-LAUGHLIN-LASER
> > Prompt for Work Copy                              DON'T PROMPT
> > Requisition Print Device                          S121-LAUGHLIN-LASER
> > Prompt for Requisitions                           PROMPT AND ASK
> > DEVICE
> > Label Print Device
> > Prompt for Labels                                 DON'T PROMPT
> > Daily Order Summary Device
> > Service Copy Default Device
> > Print Chart Copy Summary
> > Print Daily Order Summary
> > ---------------------------------------------------------------------------­---
> To ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages