Fixed check-out API (save check-out date to Outpatient Encounter file)