Added steps, tests & refactored classes for retrieve patient and history