1.7 5765 Medical Record label format suggestion
Submitted by Guest on Sat, 01/03/2014 - 09:14
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:
<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.
<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(' ',/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.)
Regards,Tim G
Re: 1.7 5765 Medical Record label format suggestion
Raised as https://openvpms.atlassian.net/browse/OVPMS-1445
-Tim A