To get the census of the country, the government collected data from hospitals for the number of births and deaths of people.
What does this data known as?
Secondary
If a data is collected from already existing source/sources, it is known as the secondary data.
In this question, the data is collected from the hospitals. Since the data is gathered from a source with stored information, it is secondary data.