From bea208d5dbfe6e221f2384e9e02f31c02d0e34b3 Mon Sep 17 00:00:00 2001 From: Michael Seaton Date: Fri, 12 Jul 2024 06:43:39 -0400 Subject: [PATCH] Set the default representation to DEFAULT --- .../emrapi/web/controller/InpatientRequestController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientRequestController.java b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientRequestController.java index d3d89844..a753e998 100644 --- a/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientRequestController.java +++ b/omod/src/main/java/org/openmrs/module/emrapi/web/controller/InpatientRequestController.java @@ -37,7 +37,7 @@ public SimpleObject getInpatientRequests( @RequestParam(required = false, value = "dispositionLocation") List dispositionLocations, @RequestParam(required = false, value = "dispositionType") List dispositionTypes ) { - RequestContext context = RestUtil.getRequestContext(request, response, Representation.REF); + RequestContext context = RestUtil.getRequestContext(request, response, Representation.DEFAULT); InpatientRequestSearchCriteria criteria = new InpatientRequestSearchCriteria(); criteria.setVisitLocation(visitLocation); criteria.setDispositionLocations(dispositionLocations);