Skip to content

Conversation

@luisfabib
Copy link
Owner

@luisfabib luisfabib commented Jan 23, 2026

Replaces the problematic bootstrapped, version-independent StructureDefinition model with proper version-specific model loading and validation to eliminate silent data loss and validation inconsistencies across FHIR versions (R4, R4B, R5).

Changed

Fixed

Removed

  • Deleted boostraped version-independent models for ElementDefinition and StructureDefinition

luisfabib and others added 20 commits January 16, 2026 14:08
…dant extension fields across R4, R4B, and R5 data types
- Updated factory.py to introduce version-specific StructureDefinition classes for R4, R4B, and R5.
- Replaced ElementDefinitionNode with StructureNode to accommodate version-specific definitions.
- Enhanced ResourceFactory to handle different StructureDefinition versions during model construction.
- Modified repository.py to implement version detection and validation for StructureDefinitions.
- Introduced utility functions to retrieve the appropriate StructureDefinition class based on FHIR version.
- Updated repository methods to support version-specific StructureDefinition retrieval and validation.
- Updated import statements in `test_fhir_resources_integration.py` for better organization.
- Enhanced assertions in `_assert_construct_core_resource` to improve clarity.
- Cleaned up whitespace and formatting across multiple test files for consistency.
- Added validation error handling in `test_fhir_resources_polymorphism.py`.
- Improved error messages in `test_fhir_resources_repository.py` for better debugging.
- Refined XML serialization tests in `test_fhir_resources_xml_serialization.py` for clarity and consistency.
luisfabib and others added 8 commits January 23, 2026 09:45
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)
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)
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 luisfabib merged commit a39a036 into main Jan 23, 2026
3 checks passed
@luisfabib luisfabib deleted the fix-factory-versioned-sds branch January 23, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants