diff --git a/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/FormResource1_8.java b/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/FormResource1_8.java index 5500f21db..8f1e9894f 100644 --- a/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/FormResource1_8.java +++ b/omod-1.8/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_8/FormResource1_8.java @@ -16,7 +16,10 @@ import io.swagger.models.properties.IntegerProperty; import io.swagger.models.properties.RefProperty; import io.swagger.models.properties.StringProperty; +import org.openmrs.EncounterType; +import org.openmrs.Field; import org.openmrs.Form; +import org.openmrs.FormField; import org.openmrs.api.context.Context; import org.openmrs.module.webservices.rest.web.RequestContext; import org.openmrs.module.webservices.rest.web.RestConstants; @@ -194,7 +197,11 @@ protected NeedsPaging
doGetAll(RequestContext context) throws ResponseExce */ @Override protected NeedsPaging doSearch(RequestContext context) { - return new NeedsPaging(Context.getFormService().getForms(context.getParameter("q"), false), context); + String fuzzyName = context.getParameter("q"); + boolean includeRetired = context.getIncludeAll(); + + return new NeedsPaging(Context.getFormService().getForms(fuzzyName, null, null, + includeRetired, null, null, null), context); } /**