Update hospitalization sample function added