Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of new feature for mutually exclusive elements #9

Open
costateixeira opened this issue Sep 3, 2020 · 0 comments
Open

Comments

@costateixeira
Copy link
Collaborator

if you write a constraint on an element that follows this pattern:

(name | name | name).count = 1

(or <= 1)
where all the names in the union are children of the element on which this invariant sits, then the IG publisher will understand that the named elements are a mutually exclusive group. That means that:

  • They will be rendered as a mutually exclusive group in the table presentation form
  • if you make one required in a profile, the others will automatically be set to max = 0 (that must be true, so it saves you from having to be explicit about it)
  • the rendering as a group will collapse out if one of the elements is required

I added this to reduce the comprehension impedence for CCDA guide readers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant