FirelyTeam / firely-net-sdk

The official Firely .NET SDK for HL7 FHIR
Other
829 stars 345 forks source link

Fixed element definition element.id not being merged by the snapshot generator #2884

Closed Rob5045 closed 1 month ago

Rob5045 commented 1 month ago

Description

Added merging of element id to the snapshot generator

Related issues

Fixes issue #2839

Testing

Added unit test ElementDefinitionPropertyElementIdTest for STU3 and RX

Note that for STU3 one test case is not handled correctly by the snapshot generator.

This has been documented with a comment. This is because the logic in STU3 for merging types is different (simpler) than R4 and later. To correct this, the RX logic should be backported to STU3.

FirelyTeam Checklist