N.Y. Comp. Codes R. & Regs. tit. 14, § 590.13
(b) The space provided shall be both adequate and appropriate for:
(d) Extended observation beds shall be located in or adjacent to the comprehensive psychiatric emergency program emergency room except that a waiver of this requirement may be made when:
(f) Facilities shall comply with all local zoning and building laws, regulations and ordinances.