added getById to service, fixed getPatientHistory