(c) Any person who willfully or repeatedly violates this chapter or Chapter 2.4 (commencing with Section 1417), excluding Sections 1425 and 1432, or any rule or regulation adopted under this chapter, relating to the operation or maintenance of a long-term health care facility as defined in Section 1418, is guilty of a misdemeanor and upon conviction thereof shall be punished by a fine not to exceed two thousand five hundred dollars ($2,500) or by imprisonment in the county jail for a period not to exceed 180 days, or by both. In determining the punishment to be imposed upon a conviction under this subdivision, the court shall consider all relevant facts, including, but not limited to, the following:
(1) Whether the violation exposed the patient to the risk of death or serious physical harm.(2) Whether the violation had a direct or immediate relationship to the health, safety, or security of the patient. (3) Evidence, if any, of willfulness.(4) The number of repeated violations.(5) The presence or absence of good faith efforts by the defendant to prevent the violation.