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

Expose check for if ehrSupplyAuthorise is an acute prescription #879

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

MartinWheelerMT
Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT commented Oct 16, 2024

What

  • Added public method isAcutePrescription to check if the provided ehrSupplyPrescribe has a repeatNumber with a value of 0.
  • Added unit tests for the above.

Why

So that this check can be consumed in the MedicationRequestMapper without needing to duplicate code.

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

* Add public method `isAcutePrescription` to check if the provided `ehrSupplyPrescribe` has a `repeatNumber` with a value of `0`
* Add Tests for the above
@MartinWheelerMT MartinWheelerMT marked this pull request as draft October 17, 2024 08:46
@MartinWheelerMT MartinWheelerMT marked this pull request as ready for review October 18, 2024 08:41
Replace single character variable with a clearly defined name
@MartinWheelerMT MartinWheelerMT enabled auto-merge (squash) October 18, 2024 09:22
@MartinWheelerMT MartinWheelerMT merged commit 2c3f1d1 into main Oct 18, 2024
1 check passed
@MartinWheelerMT MartinWheelerMT deleted the niad-3170-expose-is-acute-prescription-check branch October 18, 2024 09: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.

2 participants