You can use the phrase "the whole thing" to talk about an event or situation. For example, you could talk about a visit to a doctor's office:
The whole thing was over in about an hour.
Or you could talk about applying for a visa to move to another country:
The whole thing is so complicated!