Skip to content

Commit

Permalink
ORUR01Handler should load an encounter's location from the database -
Browse files Browse the repository at this point in the history
TRUNK-3896(cherry picked from commit dfa7532)
  • Loading branch information
dkayiwa committed Mar 21, 2013
1 parent 4991eac commit a692ed5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/src/main/java/org/openmrs/hl7/handler/ORUR01Handler.java
Expand Up @@ -1074,9 +1074,8 @@ private Location getLocation(PV1 pv1) throws HL7Exception {
Integer locationId = Context.getHL7Service().resolveLocationId(hl7Location);
if (locationId == null)
throw new HL7Exception("Could not resolve location");
Location location = new Location();
location.setLocationId(locationId);
return location;

return Context.getLocationService().getLocation(locationId);
}

/**
Expand Down

0 comments on commit a692ed5

Please sign in to comment.