* @param newEntity the entity containing the new data
* @return the updated entity
*/
protected BloodPressure updateEntity(BloodPressure entity, BloodPressure newEntity) {
EntityManager em = PersistenceService.getInstance().getEntityManager();
HealthRecord hr = entity.getHealthRecord();
HealthRecord hrNew = newEntity.getHealthRecord();
entity = em.merge(newEntity);
return entity;
}