In general, pyeloplasty is typically performed as an inpatient surgery, which means that the patient will stay in the hospital for a period of time after the procedure.