There are two types of fire ratings in the building code: fire-rated assemblies and fire-rated construction.
Fire-rated construction, as steveray pointed out, preserves the building structure and is based on construction type per Chapter 6. Fire-rated assemblies, also as steveray pointed out, prevents the spread of fire through the building, and are required to have protected openings and penetrations. Fire-rated assemblies consist of fire walls, fire barriers, fire partitions, smoke barriers, and horizontal assemblies.
When building elements that have multiple functions, then the most restrictive of each function is applicable. For example, a wall that is an interior loadbearing wall and is also a fire partition for dwelling unit separation (as in your case) is providing multiple functions. Since the construction type is IB, a 2-hour rating for interior loadbearing walls is required; however, since the wall is also a dwelling unit separation, then it must also be a 1-hour fire partition. Therefore, we have to consider the most restrictive requirements of both conditions:
- The wall will be required to have a 2-hour rating to protect the construction, but openings are not required to be protected; however,
- The fire partition is also a fire-rated assembly, therefore, openings are required to be protected.
The question now is, what is the required rating for the openings since the wall is of 2-hour-rated construction? Since fire-rated
construction is not required to have protected openings, then the opening requirements for fire partitions apply. Thus, a fire partition, which is only required to have a 1-hour rating, can include doors that need only a 1/3-hour rating and penetrations with a 1-hour rating.