Add support to customise visit display in patient, problem history

Description

Add support to display multi-line text generated from a custom expression for act.patientClinicalEvent, in the patient history and problem history,
The expression can be customised in IMObjectTableModelFactory.xml

Environment

None

Activity

Show:

Tim Anderson July 18, 2016 at 5:03 AM

Changes applied in revision 7160

Tim Anderson July 14, 2016 at 7:37 AM

Changes applied in revision 7160.

To customise the expression, create IMObjectTableModelFactory.xml in <TOMCAT_HOME>/webapps/openvpms/WEB-INF/classes, with the following content:

<handlers> <handler> <type>org.openvpms.web.workspace.patient.history.PatientHistoryTableModel</type> <properties> <entry> <string>expressions</string> <java.util.Map> <entry> <string>act.patientClinicalAddendum</string> <string>/details/note</string> </entry> <!-- uncomment and customise to display details beneath the visit summary --> <!--entry> <string>act.patientClinicalEvent</string> <string>/description</string> </entry--> <entry> <string>act.patientClinicalProblem</string> <string>/description</string> </entry> <entry> <string>act.patientClinicalNote</string> <string>/details/note</string> </entry> <entry> <string>act.patientInvestigation</string> <string>concat(openvpms:get(.,'investigationType.entity.name')," - Request No: ",/id," - ", /description, " [", openvpms:lookup(.,"status"), "]") </string> </entry> <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> </java.util.Map> </entry> </properties> </handler> <handler> <type>org.openvpms.web.workspace.patient.problem.ProblemTableModel</type> <properties> <entry> <string>expressions</string> <java.util.Map> <entry> <string>act.patientClinicalAddendum</string> <string>/details/note</string> </entry> <entry> <string>act.patientClinicalProblem</string> <string>/description</string> </entry> <!-- uncomment and customise to display details beneath the visit summary --> <!--entry> <string>act.patientClinicalEvent</string> <string>/description</string> </entry--> <entry> <string>act.patientClinicalNote</string> <string>/details/note</string> </entry> <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> </java.util.Map> </entry> </properties> </handler> </handlers>

Then uncomment and customise the lines:

<!-- uncomment and customise to display details beneath the visit summary --> <!--entry> <string>act.patientClinicalEvent</string> <string>/description</string> </entry-->
Fixed

Details

Assignee

Reporter

Time tracking

3.5h logged

Components

Fix versions

Priority

Who's Looking?

Open Who's Looking?

Created July 14, 2016 at 6:54 AM
Updated November 6, 2016 at 10:55 PM
Resolved July 18, 2016 at 5:03 AM
Who's Looking?