expanded api to generate random patient data, added api support to query patient data based on time ranges