use of org.openmrs.module.reporting.query.obs.definition.MappedParametersObsQuery in project openmrs-module-pihcore by PIH.
the class PihObsQueryLibrary method getObsDuringPeriod.
@DocumentedDefinition(value = "obsDuringPeriod")
public ObsQuery getObsDuringPeriod(List<Concept> questionConcepts) {
BasicObsQuery q = new BasicObsQuery();
q.setConceptList(questionConcepts);
q.addParameter(parameter(Date.class, "onOrAfter"));
q.addParameter(parameter(Date.class, "onOrBefore"));
return new MappedParametersObsQuery(q, ObjectUtil.toMap("onOrAfter=startDate,onOrBefore=endDate"));
}
Aggregations