-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor FHIR constraint validators from field-level to model-level validation #201
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ts and main instance and validate sequentially
…traints across all releases
luisfabib
added a commit
that referenced
this pull request
Jan 19, 2026
luisfabib
added a commit
that referenced
this pull request
Jan 23, 2026
commit 3f16bfe Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Tue Jan 20 16:08:16 2026 +0100 Fix Primitive Extension Placeholder Cardinality for FHIR List-Type Fields (#207) commit 71c2a75 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Tue Jan 20 12:50:04 2026 +0100 Add placeholder elements for `Extension.value` type choice values in R4, R4B, R5 (#206) commit 24e79a8 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Mon Jan 19 14:58:13 2026 +0100 Fix FHIRPath `$this` context in nested function call (#203) commit e837e1f Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Mon Jan 19 11:03:21 2026 +0100 Refactor FHIR constraint validators from field-level to model-level validation (#201) commit f5e28f6 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 17:36:29 2026 +0100 Fix FHIR `eld-11` constraint validation expression R5 `ElementDefinition` (#199) commit 05cbe2b Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 17:11:58 2026 +0100 Fix FHIRPath environment variable precedence in nested evaluations (#197) commit 99cdcd1 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 16:56:43 2026 +0100 Fix FHIRPath Ambiguity Issues Where Negative Numbers Conflicted With Subtraction Operators (#198) commit 79ec56e Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 14:59:56 2026 +0100 Fix FHIRPath `Union` Operation `TypeError` with Incomparable Types (#196)
luisfabib
added a commit
that referenced
this pull request
Jan 23, 2026
commit 3f16bfe Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Tue Jan 20 16:08:16 2026 +0100 Fix Primitive Extension Placeholder Cardinality for FHIR List-Type Fields (#207) commit 71c2a75 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Tue Jan 20 12:50:04 2026 +0100 Add placeholder elements for `Extension.value` type choice values in R4, R4B, R5 (#206) commit 24e79a8 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Mon Jan 19 14:58:13 2026 +0100 Fix FHIRPath `$this` context in nested function call (#203) commit e837e1f Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Mon Jan 19 11:03:21 2026 +0100 Refactor FHIR constraint validators from field-level to model-level validation (#201) commit f5e28f6 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 17:36:29 2026 +0100 Fix FHIR `eld-11` constraint validation expression R5 `ElementDefinition` (#199) commit 05cbe2b Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 17:11:58 2026 +0100 Fix FHIRPath environment variable precedence in nested evaluations (#197) commit 99cdcd1 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 16:56:43 2026 +0100 Fix FHIRPath Ambiguity Issues Where Negative Numbers Conflicted With Subtraction Operators (#198) commit 79ec56e Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 14:59:56 2026 +0100 Fix FHIRPath `Union` Operation `TypeError` with Incomparable Types (#196)
luisfabib
added a commit
that referenced
this pull request
Jan 23, 2026
commit 3f16bfe Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Tue Jan 20 16:08:16 2026 +0100 Fix Primitive Extension Placeholder Cardinality for FHIR List-Type Fields (#207) commit 71c2a75 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Tue Jan 20 12:50:04 2026 +0100 Add placeholder elements for `Extension.value` type choice values in R4, R4B, R5 (#206) commit 24e79a8 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Mon Jan 19 14:58:13 2026 +0100 Fix FHIRPath `$this` context in nested function call (#203) commit e837e1f Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Mon Jan 19 11:03:21 2026 +0100 Refactor FHIR constraint validators from field-level to model-level validation (#201) commit f5e28f6 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 17:36:29 2026 +0100 Fix FHIR `eld-11` constraint validation expression R5 `ElementDefinition` (#199) commit 05cbe2b Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 17:11:58 2026 +0100 Fix FHIRPath environment variable precedence in nested evaluations (#197) commit 99cdcd1 Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 16:56:43 2026 +0100 Fix FHIRPath Ambiguity Issues Where Negative Numbers Conflicted With Subtraction Operators (#198) commit 79ec56e Author: Luis Fábregas-Ibáñez <48292540+luisfabib@users.noreply.github.com> Date: Sat Jan 17 14:59:56 2026 +0100 Fix FHIRPath `Union` Operation `TypeError` with Incomparable Types (#196)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactors all FHIR element constraint validators from Pydantic's
@field_validatordecorator to@model_validator(mode="after"). This change aligns the validation approach with a newvalidate_element_constraintAPI that validates multiple fields simultaneously at the model instance level rather than individual field values.Changes
validate_element_constraintfunction signature invalidators.pyto accept model instance and tuple of element names to validate.factory.pyto generate@model_validatordecorators for constraint validationfield_validatorbreaks FHIRPath expressions with environment variables in backbone elements #190