from pydantic import BaseModel, Field

from .base_health import ByGender


class DeathStatisticsKeys:
	DEATH_RATE_BY_IDC10 = "death_rate_idc10"


class DeathStatisticsLegends:
	DEATH_RATE_BY_IDC10 = (
		"Death rate by IDC10 categorization, see https://icd.who.int/browse10/2010/en"
		" (for detailed description of IDC10 categories (keys in this dataset))"
		" Death rate in deaths per 100.000 population."
	)


L = DeathStatisticsLegends


class DeathStatistics(BaseModel):
	death_rate_idc10: ByGender = Field(
		default_factory=ByGender, description=L.DEATH_RATE_BY_IDC10
	)
