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

Make attribute validation sensitive to FHIR version #2982

Open
ewoutkramer opened this issue Nov 27, 2024 · 0 comments
Open

Make attribute validation sensitive to FHIR version #2982

ewoutkramer opened this issue Nov 27, 2024 · 0 comments

Comments

@ewoutkramer
Copy link
Member

So far, .NET attribute validation is not aware of the Since attribute. This was never a problem, as all attributes that have Since do not take part in validation, they just provide metadata.

This needs to change (and was already not completely true):

  • NotMapped should validate whether an element still appears in a FHIR version and then report an error.
  • FhirElement can repeat and should validate whether an element is valid for a given FHIR version (not validated at this moment)
  • AllowedTypes has been promoted to a versioned attribute, since the set of allowed types can vary per version.

We should probably extend the ValidationContext with a property (as we've done before, the pattern exists) that represents the applicable FHIR version (or highest if let out).

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