Schema change. Change the hash key to facilitate the query over health code and study key. The question is which consent document the user has consented.