patient index and create done and tested
files missing from previous commit