Skip to content

Fix validation for primitives with no value and extensions#658

Merged
ewoutkramer merged 5 commits into
developfrom
fix/test-empty-value-validation
Jun 8, 2026
Merged

Fix validation for primitives with no value and extensions#658
ewoutkramer merged 5 commits into
developfrom
fix/test-empty-value-validation

Conversation

@andrzejskowronski

Copy link
Copy Markdown
Contributor

Description

This pull request updates the validation logic for FHIR primitives with extensions but no value, ensuring compliance with the FHIR specification.
Specifically, it changes the behavior so that such elements are now considered valid (instead of generating a warning), and updates both the PatternValidator and RegExValidator accordingly.

Validation logic updates:

  • Updated PatternValidator & RegExValidator to treat primitives with extensions but no value as valid per the FHIR spec, returning ResultReport.SUCCESS instead of a warning.

# Conflicts:
#	test/Firely.Fhir.Validation.Compilation.Tests.Shared/FhirTestCases
ewoutkramer
ewoutkramer previously approved these changes May 18, 2026
@ewoutkramer
ewoutkramer merged commit 606c7c3 into develop Jun 8, 2026
3 checks passed
@ewoutkramer
ewoutkramer deleted the fix/test-empty-value-validation branch June 8, 2026 12:58
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.

2 participants