Template:SAIF Generic IM Constraints
Generic Content Constraints for SAIF Information models.
Only the content appearing below in black font will appear in the inclusion.
These elements are intended to appear under the following section:
Content Constraints
For Information Models that are derived from either the HL7 Reference Information Model (RIM) or from an information model that has the RIM of as one of its derivation ancestors, the Content Constraints are simply stated:
- The contents of this model must be either the same as the contents of the model from which it is derived from or a constrained sub-set of the contents of that model.
The key question is what constitutes a "constrained sub-set" of the contents of a model? The answer to these rules is found in HL7 Version 3 Standard: Refinement, Constraint and Localization to Version 3 Messages, Release 2 (ANSI/HL7 V3 RCL, R2-2007), approved in August 2007. (Do not be mis-led by the term "Messages" in the title of this standard. A "message" is simply a Serializable Information Model (SIM).)
The remainder of this section will summarize the constraint rules that are documented in that standard, and modify them to use SAIF terms. It does not replace those rules. The process of constraining, in general, reduces the "breadth" of the semantic content of the model, or limits the scope of the values for a particular element.
Constraints from Refinement, Constraint and Localization Standard
The key elements of the governing standard are in chapter 2 - Constraints and Annotations which begins as follows. Constraints are the central feature of the derivation process, as they reduce the generality of the model and focus it on a particular requirement. The constraints that may be asserted against a model element, e.g. class, attribute or association, fall into six broad categories:
Appearance constraints determine whether a particular element must appear in models or messages derived from the base model, and/or whether the element is precluded from appearing therein.
Cardinality constraints define the number of repetitions that may occur for a given element.
Type constraints limit the structure or "type" of the element in question. These are constraints placed upon the data types for attributes and upon the use of <ilxspecref spec="&v3guidefile;" ref="v3gcmet">Common Message Element Types (CMET)</ilxspecref> for associations.
Vocabulary constraints limit the set of concepts that can be taken as valid values in an instance of a coded attribute or data type.
Other value constraints provide for the declaration of constraints stated as text and, optionally, as testable expressions to establish "business rules", and for the assertion of default or fixed values.