For B ,,,Without more details base ibc and ifc only require it in
903.2.2 Group B ambulatory health care facilities. An automatic sprinkler system shall be installed throughout all fire areas containing a Group B ambulatory health care facility occupancy when either of the following conditions exists at any time: [F]
1. Four or more care recipients are incapable of self-preservation.
2. One or more care recipients who are incapable of self-preservation are located at other than the level of exit discharge serving such an occupancy.
There could be other factors that might require one