Fixed
Details
Assignee
Tim AndersonTim AndersonReporter
Ben CharltonBen CharltonLabels
Time tracking
1.75h loggedComponents
Fix versions
Affects versions
Priority
MinorWho's Looking?
Open Who's Looking?
Details
Details
Assignee
Tim Anderson
Tim AndersonReporter
Ben Charlton
Ben CharltonLabels
Time tracking
1.75h logged
Components
Fix versions
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created October 21, 2014 at 1:16 PM
Updated July 7, 2015 at 12:18 AM
Resolved May 27, 2015 at 3:31 AM
This patch corrects the PatientRules to allow JxPath to retrieve patient location information for reports.
Additional it corrects the methods used to retrieve references to customers (it was originally designed on the basis there would only ever be 1 active customer - relationship per patient)
It adds the following public methods to patientRules:
getLocation(Party patient) returns a Party Customer
getCurrentLocation(Act act) returns a Party Customer
getLocation(Party patient, Date startTime, boolean active) returns a Party Customer for a specific date.
isLocation(Party customer) returns a boolean that tests if a party patient has a customer as a location.
getLocationReference(Party patient) returns a refernence to a Party customer.
This is effectively a replication of the available public methods of patientOwner.
Can we please review the change in method for returning a reference the previous one would fail if a patient had a the Location or Owner reference declared earlier than the expected reference.
The patch includes changes to the tests.