added record method to check practice
added role based patient tests
completed patient api testing for practice based access