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-2843: Blood pressure NarrativeStatements are also mapped as Observation comments, leading to duplication #367

Merged
merged 9 commits into from
Nov 14, 2023

Conversation

MartinWheelerMT
Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT commented Nov 8, 2023

What

Updated functionality CompoundStatementResourceExtractors to exclude NarrativeStatements which are within blood pressures.
Added unit tests to ensure that the NarrativeStatement is not mapped by the ObservationCommentMapper when the statement is within a blood pressure.

Why

When mapping blood pressures, any NarrativeStatements are mapped to the comments element.
When the observationComment mapper then creates Observations for the NarrativeStatement, it includes those which have already been mapped by the blood pressure mapper. This leads to a duplication in the exported bundle.

Type of change

Please delete options that are not relevant.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

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

… not being mapped by the ObservationCommentMapper.

Add new functionality to CompoundStatementResourceExtractors to  exclude blood pressures when NarrativeStatements are being extracted
… not being mapped by the ObservationCommentMapper.

Add source file for new test.
Add new functionality to CompoundStatementResourceExtractors to  exclude blood pressures when NarrativeStatements are being extracted.
@MartinWheelerMT MartinWheelerMT changed the title Add test for changes to ensure blood pressure NarrativeStatements are… NIAD-2843: Blood pressure NarrativeStatements are also mapped as Observation comments, leading to duplication Nov 8, 2023
@ole4ryb ole4ryb marked this pull request as ready for review November 10, 2023 12:27
Refactor method in DocumentReferenceMapper to remove warning
Add CHANGELOG.md
@MartinWheelerMT MartinWheelerMT enabled auto-merge (squash) November 13, 2023 09:58
@MartinWheelerMT MartinWheelerMT merged commit dbfcda2 into main Nov 14, 2023
@MartinWheelerMT MartinWheelerMT deleted the NIAD-2843-blood-pressure-note-being-duplicated branch November 14, 2023 13:30
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.

3 participants