Except in the case of a medical emergency, an abortion performed when the gestational age of the unborn child is 22 weeks or more shall be performed in a hospital or ambulatory surgical center licensed pursuant to this act. All other abortions shall be performed in a facility licensed pursuant to this act, except that a hospital or ambulatory surgical center that does not meet the definition of a facility under this act and that is licensed pursuant to Kan. Stat. Ann. § 65-425 et seq., and amendments thereto, may perform abortions.