Patient History in a Investigation Form.

I am looking at a jasperreport template to use as an investigation request form.

I was hoping to access the patient history.  

Is this likely to work?

list:join(openvpms:get($OpenVPMS.visit,'ítems')[[archetypeId/shortName='act.patientClinicalNote'],'note')

Comment viewing options

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

Re: Patient History in a Investigation Form.

Probably not. The visit is only guaranteed to be set during the Check-In and Consult workflows. For a report, the expression is going to be something like:

list:join(list:values($OpenVPMS.visit, 'items.target')[archetypeId/shortName='act.patientClinicalNote'], 'note', $nl)

If you wanted to use it in an email template Expression or a macro:

list:join(list:values($visit, 'items.target')[archetypeId/shortName='act.patientClinicalNote'], 'note', $nl)

 

Note that the notes won't be in any particular order.

Re: Patient History in a Investigation Form.

Typically a Investigation would be billed or charged during the consult work flow so i would expect it would have a parent vist.  

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au
Syndicate content