SIOUX FALLS, S.D. (AP) – A troubled government-run hospital on the Rosebud Indian Reservation has been given an extension to reach a significant improvement agreement with federal officials to avoid losing its Medicare and Medicaid funds.

The Centers for Medicare and Medicaid Services on Friday notified the hospital’s administration of the two-month funding cutoff extension.

The hospital administered by the Indian Health Service must reach the agreement by April 29 to enter a last-chance remediation program. In the absence of an agreement, the hospital won’t be allowed to bill the government for services provided to Medicare- and Medicaid-eligible patients after May 16.

The funding cutoff warning comes after visits from inspectors who found serious deficiencies, including records of a heart attack patient who didn’t receive treatment until 90 minutes after she arrived at the ER.