Printing Investigations
I have a problem with printing certain documents. These are investigation results when printing from the documents tab.
- External investigations are automatically uploaded into OVPMS. When I go to the documents tab and select the investigation and press "Print" the correct default printer is automatically selected.
- Internal investigations are also automatically uploaded into OVPMS. However when I go to the documents tab and select these investigations and press "Print" the wrong printer is selected (a label printer).
Places I have checked:
- Templates in Practice Locations
- Investigation Types
Can someone suggest where else I can look to ensure when people print from the documents tab our default printer is automatically suggested for these documents.
Thanks,
Adrian
Re: Printing Investigations
Adrian - I had to play for a while to figure out what is happening here. It turns out that the documentation is incomplete - ie says in http://www.openvpms.org/documentation/csh/1.9/patient/record [and ditto for the 1.7 & 1.8 versions] - in the part discussing the Documents tab, that the Print Button does "print the selected document (or preview it or email it)".
This is true for all EXCEPT investigations - and in this this case it it looks at the Investigation Type setup (Administration|Types|Investigation)and finds the template specified for that investigation type and uses this template to print something. The normal setup is to have this set to a label which you can attached to the samples or whatever. So in my case (on my test system) if I select an investigation and press Print, I get
You can see it wants to print 'TSF Label' - and this is set as the template for this investigation type - and if I press Preview I get:
If you want print the actual Investigation result document - just click on it - this will give you a preview which you can then print.
I will get around to correcting the CSH text in the near future.
Regards, Tim G
Re: Printing Investigations
Hi tim,
Thanks for this... though I am not sure this is the full story...
In this case our issue is with IDEXX Internal Lab Investigations....
These have no template attached to them.
I do have a label that prints out with each investigation but this is attached to the product as a document.
So this behavior is inconsistent with other printing on that page... I think if there is no template it should default to the default printer...
Re: Printing Investigations
Hi tim,
Thanks for this... though I am not sure this is the full story...
In this case our issue is with IDEXX Internal Lab Investigations....
These have no template attached to them.
I do have a label that prints out with each investigation but this is attached to the product as a document.
So this behavior is inconsistent with other printing on that page... I think if there is no template it should default to the default printer...
Re: Printing Investigations
Also, the other thing I noticed is that our external investigations (that do have a form attached to the template) when results get delivered and we select the line and press print, the form prints instead of the results.
It would be cool if for investigations, once we had results (i.e. status was recieved) that when we pressed "Print" the results would print rather than the form (which is now sort of not important/required).
Just a thought...
Re: Printing Investigations
Adrian - as a result of talking to Tim A I have corrected the documentation of Print in http://www.openvpms.org/documentation/csh/1.9/patient/record#documents
Have a read. You should be able to make the results print by removing the template from the investigation in Administration|Types|Investigation.
Regards, Tim G
Re: Printing Investigations
Hi,
Ok, but as described above our in house Investigation Types don't have an associated document template...
And they are printing to a label printer.
Why is it trying to print to a label printer?
Re: Printing Investigations
Adrian - I can duplicate the problem. I have:
a) Practice Location set as:
b) No template set for the investigation type
c) when I press Print I get
Note that 'Send To OneNote 2013' is the first available printer. The full list is
Conclusion: In this case (no investigation template) the code is not (as it should) picking the printer from the default set for the current practice location.
Actually the problem is more than this. If I change the investigation result to a JPG - and from the revised description of what print does I expected to get an immediate Preview. However the above 'Print Investigation?' window comes up. Pressing Preview does indeed download the JPG, and pressing Mail attaches the JPG to an email, but pressing OK does nothing. So I need to change the CSH text to reflect this - ie pressing Print will bring up a Print confirmation window but unless the document is an odt or doc file, OK will not print it and only Preview and Mail (and Cancel) do anything.
Tim A - do you want me to create a JIRA?
Regards, Tim G
Re: Printing Investigations
thanks... thought I was going mad...
just as an aside... what do you think of the idea that once an investigation is changed from in progress to received pressing Print or Preview should print the results not the attached template?
Cheers,
Adrian
Re: Printing Investigations
Adrian - that's not a bad idea. The print facility evidently needs some work, and I think that the logic 'if investigation and has template and has status in-progress then offer print using template, else process document (and allow OK/print if .doc or .odt else allow only Preview and Mail).
I think that Tim A needs to comment.
Regards, Tim G
Re: Printing Investigations
I disagree you can upload odt files and docs as a result file only allow printing if the reporter can process them ie dont allow direct printing of JPEG and PDFS (which is incidently how the majority of idexx customers currently recieve the results. If you are going to allow the PRINT button to print the result directly there is no point unless you support pdf and jpeg. (ie print without preview)
And the status should be the determinate as to printing the form or the result.
Re: Printing Investigations
The first issue has been raised as OVPMS-1680
If your investigation has as an image or PDF for the Report and the investigation type has no template, then pressing OK won't send it to the printer. It will however download it (i.e. it works just the same as Preview).
As to the behaviour of what happens when you have both a template and a Report; there are conflicting requirements here. For investigations, the template associated with the investigation type is used to print the investigation order. For other document types, the template can be used to format the report (especially if its an image).
Once there are results back for the investigation, printing the order is of less use. It could instead:
Re: Printing Investigations
Hi - was this fixed? We are still finding when we print an investigation in the documents tab (where there are results returned) OVPMS wants to print the investigation form, not the results. Thanks, Adrian
Re: Printing Investigations
There is a fix in 1.9.1 that covers this: OVPMS-1832
Re: Printing Investigations
thanks