- 
        Couldn't load subscription status. 
- Fork 354
Remove all non-inheritable extensions from the base profile before snapshotting #2886
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
Remove all non-inheritable extensions from the base profile before snapshotting #2886
Conversation
| // Also ignore any Changed extensions on base and diff | ||
| elemClone.RemoveAllConstrainedByDiffExtensions(); | ||
| baseClone.RemoveAllConstrainedByDiffExtensions(); | ||
| elemClone.RemoveAllNonInheritableExtensions(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this method replace the original ones? So RemoveallNonInheritableExtension replaces RemoveAllConstrainedByDiffExtensions? If so, should we not remove/obsolete the original method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I thought about that, but didn't dare to since Forge might be using the ConstraintByDiff extension one maybe?
And that is a bit faster (I don't know if it might be noticeable in a UI).
@Rob5045  any feedback here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forge does not use the RemoveAllConstrainedByDiffExtensions extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll Obsolete is then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName? I see that one all the time as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not on the list:
We only made this fix for category 5 of this list:
https://jira.hl7.org/browse/FHIR-28441?focusedCommentId=177188&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-177188
…xtensions-from-base
…xtensions-from-base
…ritable-extensions-from-base' into feature/1814-remove-all-non-inheritable-extensions-from-base
        
          
                src/Hl7.Fhir.Base/Specification/Snapshot/SnapshotGeneratorExtensions.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/Hl7.Fhir.Base/Specification/Snapshot/SnapshotGeneratorExtensions.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …nsions.cs Co-authored-by: Ewout Kramer <ewout@fire.ly>
…nsions.cs Co-authored-by: Ewout Kramer <ewout@fire.ly>
…xtensions-from-base
…xtensions-from-base

fixes #1814