Skip to content

NIAD-3304: Allow non-SNOMEDCT codes to be preserved when mapping CodeableConcepts#1133

Merged
MartinWheelerMT merged 4 commits intomainfrom
niad-3304-add-functionality-for-non-snomed-codes-2
Mar 3, 2025
Merged

NIAD-3304: Allow non-SNOMEDCT codes to be preserved when mapping CodeableConcepts#1133
MartinWheelerMT merged 4 commits intomainfrom
niad-3304-add-functionality-for-non-snomed-codes-2

Conversation

@MartinWheelerMT
Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT commented Mar 3, 2025

To be merged after: PR-1126

This is the first PR for the new feature, there will be an additional PR for each of the non-standard CodeableConceptCd methods.

What

  • Remove unnecessary non-snomed code systems from test files as the functionality has changed and are testing in a separate test
  • Update CodeableConceptCdTemplateParameters to include a property for translations.
  • Update codeable_concept_cd_template.mustache to handle translations.
  • Add test to ensure that non-snomed codes are populated as translations in the produced XML when a SNOMEDCT code is present.
  • Add functionality to CodeableConceptCdMapper to populate translations in the XML when non-SNOMEDCT codes have been provided alongside the SNOMEDCT Code.

Why

The GP2GP Sending Adaptor does not currently preserve non-SNOMEDCT codes when mapping CodeableConcepts.

The GP2GP Request Adaptor does preserve this codes when a SNOMEDCT code is also present in the coding block.

It is necessary as part of FRA that these are preserved when transferring a patient out of NME system.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have performed a self-review of my code
  • 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

This is the first part of the change and documentation / change log will be updated once work is complete.

@MartinWheelerMT MartinWheelerMT changed the base branch from main to niad-3304-add-functionality-for-non-snomed-codes March 3, 2025 11:44
@MartinWheelerMT MartinWheelerMT marked this pull request as draft March 3, 2025 11:47
@MartinWheelerMT MartinWheelerMT marked this pull request as ready for review March 3, 2025 12:14
Base automatically changed from niad-3304-add-functionality-for-non-snomed-codes to main March 3, 2025 14:28
…CodeableConcept`s

* Remove unnecessary non-snomed code systems from test files as the functionality has changed and are testing in a separate test
* Update `CodeableConceptCdTemplateParameters` to include a property for translations.
* Update `codeable_concept_cd_template.mustache` to handle translations.
* Add test to ensure that non-snomed codes are populated as translations in the produced XML when a SNOMEDCT code is present.
* Add functionality to `CodeableConceptCdMapper` to populate translations in the XML when non-SNOMEDCT codes have been provided alongside the SNOMEDCT Code.
@MartinWheelerMT MartinWheelerMT force-pushed the niad-3304-add-functionality-for-non-snomed-codes-2 branch from a0ccc0e to e1dac86 Compare March 3, 2025 14:35
@github-actions
Copy link

github-actions bot commented Mar 3, 2025

Looks good. All 24 mutations in this change were killed.

class surviving killed
💯uk.nhs.adaptors.gp2gp.ehr.mapper.CodeableConceptCdMapper 0 24

See https://pitest.org

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2025

@MartinWheelerMT MartinWheelerMT merged commit 496fa86 into main Mar 3, 2025
15 checks passed
@MartinWheelerMT MartinWheelerMT deleted the niad-3304-add-functionality-for-non-snomed-codes-2 branch March 3, 2025 15: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