# cardinality in group constraint

## cardinality in group constraint

**This is a synonym for attribute in group cardinality constraint.**

## attribute in group cardinality constraint

A constraint on the number of times that a specific attribute may be included in the same attribute group.

#### Notes

* Constraints on *attribute in group cardinality* apply only to non-redundant attributes. A redundant attribute is an attribute with a value that is subsumed by another attribute in the same group.
* Cardinality constraints are represented by square brackets containing a minimum value value represented as an integer, optionally followed by two dots and a maximum value represented as an integer or as an asterisk \*\*\*\*\*.
  * If the maximum is omitted then the maximum cardinality is the same as the minimum cardinality.
  * If the maximum is an asterisk \*\*\*\*\* the maximum cardinality is unlimited.
* *Attribute in group cardinality* is NOT the same as attribute group cardinality constraint.

Attribute group cardinality constraint is defined as:

```
* A constraint on the number of times that an attribute group may be included in the same concept definition or expression.
```

\_\_

#### Examples

* The following expression constraint restricts *cardinality in-group* and would require a clinical finding whose definition has no more than one finding site in each group. However, it permits multiple groups to exist as there are cardinality constraints on the group.

< [404684003 |Clinical finding|](http://snomed.info/id/404684003) :\
{\[0..1] [363698007 |Finding site|](http://snomed.info/id/363698007) = < [91723000 |Anatomical structure|](http://snomed.info/id/91723000) }

* In contrast, the following expression constraint is satisfied by any clinical finding whose definition has two or more non-redundant finding sites, irrespective of the attribute group in which they are contained.

< [404684003 |Clinical finding|](http://snomed.info/id/404684003) : \[2..\*] [363698007 |Finding site|](http://snomed.info/id/363698007) = < [91723000 |Anatomical structure|](http://snomed.info/id/91723000)

* A clinical finding could satisfy both the above constraints by have two or more groups each of which contains one finding site.

<a href="https://docs.google.com/forms/d/e/1FAIpQLScTmbZIf0UEQwYDkY27EEWBkaiYkHSbR0_9DmFrMLXoQLyL7Q/viewform?usp=pp_url&#x26;entry.1767247133=SNOMED+Glossary&#x26;entry.670899847=cardinality%20in%20group%20constraint" class="button primary">Provide Feedback</a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snomed.org/snomed-international-documents/snomed-ct-glossary/c/cardinality/cardinality-in-group-constraint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
