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:

         <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('&#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.)

Regards,Tim G

Comment viewing options

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

Re: 1.7 5765 Medical Record label format suggestion

Syndicate content