SNOMED CT Expression Constraints can be automatically validated to ensure that they conform to a variety of rules, including:
- Expression constraints must conform to one of the syntaxes defined in Chapter 5. Syntactic validation can be performed using an expression parser, as described in Section 7.2;
- Expression constraints must conform to the concept model. This validation can be performed by comparing the parsed expression constraint against the rules defined in the SNOMED CT concept model;
- All concept references included in the expression constraint must be valid. In most cases this means that the concept references must refer to active concepts in the given version and edition of SNOMED CT;
All concept references used to refer to attribute names must be a descendant of 246061005 |Attribute|;
All concept references to which a memberOf function is applied must be a descendant of 900000000000455006 |Reference set|;
- All concept references to which a memberOf function is applied must contain only referencedComponentIds that refer to concepts.
Please note that some of these rules may not apply in all environments.