inpatient and ambulatory care