Vikram | #27 refactoring and modification to patient previous status