char or smallint for a column with numeric codes?
The standard clearly says &quot;four-digit code&quot;, which in my view means it should always contain 4 numeric characters, which in turn means the appropriate data type is char(4).
If you want to ensure the code value adheres to ISO 18245, store it as char(4) in the database along with a check constraint.