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

NIAD-3220: Add Resource filter to identify "ReferralRequest to ExternalDocument LinkSets" #936

Conversation

MartinWheelerMT
Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT commented Nov 19, 2024

What

  • Add Test to check verify that the provided LinkSet is a "Referral Request to External Document LinkSet."
  • Add test XML file containing a "Referral Request to External Document LinkSet."
  • Add method isReferralRequestToExternalDocumentLinkSet to ResourceFilterUtil with parameters for the EhrExtract and the LinkSet itself to identify LinkSets matching the criteria for a "Referral Request to External Document LinkSet."

Why

As part of the implementation for NIAD-3220, it is necessary to identify LinkSets which are a "Referral Request to External Document LinkSet" in order to be able to then use this for filtering in the ConditionMapper to exclude the Condition from being mapped, and in ReferralRequest mapper to identify any of these LinkSets when populating the supportingInfo field.

A "ReferralRequest to ExternalDocument LinkSet" is defined as a LinkSet which matches the following criteria:

  • It has a code with a value of 394776006 and a system of 2.16.840.1.113883.2.1.3.2.4.15 and no qualifier and no originalText
  • The conditionNamed / namedStatementRef / id[root] is a RequestStatement
  • It has at least 1 component
  • All the component / statementRef / id[root] are references to GP2GP document/attachments.

Type of change

Please delete options that are not relevant.

  • Internal change (non-breaking change with no effect on the functionality affecting end users)

Checklist:

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the Changelog with details of my change in the UNRELEASED section if this change will affect end users
  • A corresponding change has been made to the Mapping Documentation repository

…l document LinkSets

* Add Test to check verify that the provided `LinkSet` is a "Referral Request to External Document LinkSet."
* Add test XML file containing a "Referral Request to External Document LinkSet."
* Add method `isReferralRequestToExternalDocumentLinkSet` to `ResourceFilterUtil` with parameters for the `ehrExtract` and te `LinkSet` itself to identify `LinkSets` matching the criteria for a "Referral Request to External Document LinkSet."
@MartinWheelerMT MartinWheelerMT enabled auto-merge (squash) November 20, 2024 09:16
… of their purpose.

Add additional tests to test all cases when identifying ExternalDocumentToReferralRequestLinkSet.
@MartinWheelerMT MartinWheelerMT merged commit ea4b0e4 into main Nov 21, 2024
1 check passed
@MartinWheelerMT MartinWheelerMT deleted the niad-3220-add-resource-filter-util-for-referral_to_document_linkset branch November 21, 2024 17:03
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