Create a query that allows users to request prescription encounters corresponding to the parameters specified.