We're updating the issue view to help you get more done. 

Change patient history label format

Description

From http://www.openvpms.org/forum/1.7-5765-medical-record-label-format-suggestion

The release version of 1.7 has the medical record entry in the IMObjectTableModelFactory.xml which is held in openvpms-web-workspaces-1.7.jar which itself is in <TOMCAT_HOME>\webapps\openvpms\WEB-INF\lib set as follows:

1 2 3 4 5 6 7 <entry> <string>act.patientMedication</string> <string>concat(openvpms:get(.,'product.entity.name'), ' - ',/details/label,' Qty : ', /details/quantity,' Expiry : ', expr:if(boolean(/activityEndTime), date:formatDate(/activityEndTime), 'None')) </string> </entry>

This thus places the first line of the label after the product name and appends the quantity information to the last line of the label. A slightly better way is to place the label last preceded by a new line character.

1 2 3 4 5 6 7 <entry> <string>act.patientMedication</string> <string>concat(openvpms:get(.,'product.entity.name'), ' - Qty: ',/details/quantity, ' Expiry : ', expr:if(boolean(/activityEndTime), date:formatDate(/activityEndTime), 'None'), expr:if(boolean(/details/label),concat('&#10;',/details/label),'')) </string> </entry>

Since the price is appended to the output, it will be appended to the last line of the label - unless of course you append a second new line after the label. (My preference is not to, just let the price tack on the end - it saves a line in the output.)

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

1.7

Priority

Minor