Text this: Using flexible regression models for calculating hospital's production functions