changed prescription constructor to have required field in the beginning