NFPA 99, the Health Care Facilities Code, classifies patient care areas into categories primarily based on: