The document codes are not consistent between CHD and CHS !!
Is this a bug, or a conscious choice? Obviously it makes any testing or interaction between the two systems very tricky.
If it is intentional, could you please provide a mapping between all old and the new values?