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

Pattern and fixed value are not to be combined (eld-8) #51

Open
niekvangalen opened this issue Dec 15, 2021 · 1 comment
Open

Pattern and fixed value are not to be combined (eld-8) #51

niekvangalen opened this issue Dec 15, 2021 · 1 comment

Comments

@niekvangalen
Copy link

niekvangalen commented Dec 15, 2021

As described in eld-8, a pattern and a fixed value should be mutually exclusive. Also see here: https://www.hl7.org/fhir/elementdefinition.html#ElementDefinition-inv

I would recommend using the fixed value on primitive data types like code.

@lmckenzi
Copy link
Contributor

fixed value prohibits unspecified extensions and id, so pattern can make sense even on simple types.

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

2 participants