Article 397 [source]

Spanish Criminal Code
English translation

The doctor who issues a false certificate will be punished with a fine of three to twelve months.