estimation items report replaced with pdf document by document loader

Hi all,

This afternoon I went to print an estimate and was told it was unable to find my estimationitems template. When I checked the template the document loader has replaced the report template with a pdf with lab results for a patient.

The file which the document loader has put in is named with the client and pets name rather than the investigation number. The name also contains a lab reference number.

I have 2 questions:

  1. Is there any versioning in the database for templates so I can roll it back? I suspect not, but I will be able to get it from a backup.
  2. Why did the document loader load it here? 

I am happy to share the filename for the purposes of debugging privately but it contains client details so I can't share it here publicly. 

Thanks in advance,

Matt Young.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: estimation items report replaced with pdf document by docum

There's no versioning for templates unfortunately. What arguments are you running the document loader with? -Tim matt@mattyoung.com.au wrote: > Hi all, > > This afternoon I went to print an estimate and was told it was unable > to find > my estimationitems template. When I checked the template the document > loader > has replaced the report template with a pdf with lab results for a > patient. > > The file which the document loader has put in is named with the client > and > pets name rather than the investigation number. The name also contains > a lab > reference number. > > I have 2 questions: > > 1) Is there any versioning in the database for templates so I can > roll it > back? I suspect not, but I will be able to get it from a backup. > 2) Why did the document loader load it here? > > I am happy to share the filename for the purposes of debugging > privately but > it contains client details so I can't share it here publicly. > > Thanks in advance, > > Matt Young. > > > _______________________________________________ > OpenVPMS User Mailing List > users@lists.openvpms.org > To unsubscribe or change your subscription visit: > http://lists.openvpms.org/listinfo/users > Posts from this mailing list can be viewed online and replied to in > the OpenVPMS User's forum- http://tinyurl.com/openvfu _______________________________________________ OpenVPMS User Mailing List users@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/users Posts from this mailing list can be viewed online and replied to in the OpenVPMS User's forum- http://tinyurl.com/openvfu

  This is the command I'm

 

This is the command I'm using:

	 ./docload.sh --overwrite --byid --source /xxx/Imports/In --dest /xxx/Imports/Archive --verbose  

Matt.

Hi Matt, In the original

Hi Matt,

In the original docload version it looked for a numeric sequence anywhere in the file name and there was no option to change the expression used to find the unique request id.  Some file names for certain pathology download applications have lab numbers and other numeric sequences not related tot he request id.  On occassions these match a document template id and will overwrite it.

In 1.4 we added a regular expression command line argument to limit the files that are loaded and modified the notes here:

http://www.openvpms.org/documentation/automatic-document-importing-openvpms

to add a suggested expression. 

 

--regexp "^[a-zA-Z]{0,2}(\d+).*"

This will solve the problem you are experiencing as it will only load files with names consisting of a maximum of two first letters, a numeric sequence taken as the request id and then any sequence of other characters and numbers.

Cheers

Tony

That's great, thanks Tim and

That's great, thanks Tim and Tony.

Matt.

Syndicate content