Skip to content
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

Engine: Implement operation meta-add properly for STU3 and R4 [R4-branch] #547

Merged
merged 12 commits into from
Apr 15, 2023

Conversation

kennethmyhra
Copy link
Collaborator

@kennethmyhra kennethmyhra commented Apr 15, 2023

This operation was not implemented properly for FHIR versions STU3 and R4.

Also it had regressed at one unknown point since now we require our resources to be internalized before they are stored to the database.

This adds the entry to the Export's class internal Entry List in the
case its Entry.State is equal to either EntryState.Undefined or
EntryState.Internal.
This adds the entry to the Import's class internal entry list in the
case its Entry.State is equal to either EntryState.Undefined or
EntryState.External.

This also removes the InteractionExtension Transferable() since we
already make the check if the Entry has the EntryState Undefined or
External before we add it the interal entry list.
This seems to only be there for some kind of documentation, but is it
not needed.
Removes an unused method and a ballot comment in InteractionExtensions.
Extracted ExtractMeta() into ParametersExtensions.cs, and renamed it to
ExtractMetaResources().
This adds two extension methods:
- AreEqual(this Coding, Coding other)
  - Checks if the two Coding instances have identical System and Code.
- HasEqualCoding(this IEnumerable<Coding>, Coding other)
  - Compares the Coding list of instances against other using the above
    method AreEqual() to see if they are equal.
This adds the method:
- Merge(this Meta target, Meta source)
  - It merges the source into target.
@kennethmyhra kennethmyhra changed the title Engine: Implement operation meta-add properly for STU3 and R4 Engine: Implement operation meta-add properly for STU3 and R4 [R4-branch] Apr 15, 2023
This operation was not implemented properly for FHIR versions STU3 and
R4.

Also it had regressed at one unknown point since now we require our
resources to be internalized before they are stored to the database.
@kennethmyhra kennethmyhra merged commit e6926ba into r4/master Apr 15, 2023
@kennethmyhra kennethmyhra deleted the operation_meta-add branch April 15, 2023 18:14
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.

None yet

1 participant