Replace $location with $state.
Add patient history.