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

Warn and ignore version when replacing reference #1316

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

mint-thompson
Copy link
Collaborator

Fixes #1298 and completes task CIMPL-1142.

When assigning a reference, versions should not be included. Ignore the version, warn the user to not do that, and try to fish up the referenced item.

A side effect of this is that it is no longer possible to fish up a locally defined entity by name if its name has a | character in it. However, it can still be fished up by id, and also, putting | in a name is not recommended by the FHIR spec. Please don't do it.

@cmoesel cmoesel self-assigned this Aug 1, 2023
Copy link
Member

@cmoesel cmoesel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and simple. Thank you!

Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me, and the test demonstrates the new intended behavior.

@mint-thompson mint-thompson merged commit 93ebd39 into master Aug 3, 2023
14 checks passed
@mint-thompson mint-thompson deleted the cimpl-1142-no-version-for-references branch August 3, 2023 14:17
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

Successfully merging this pull request may close these issues.

Warn when users assign references to resources w/ |version
3 participants