Inputs, outputs, and side effects of healthcare systems