Gravar-mail: Temporal query of attribute-value patient data: utilizing the constraints of clinical studies