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

Add link to create patients from consent forms #2454

Merged
merged 3 commits into from
Nov 17, 2024
Merged

Add link to create patients from consent forms #2454

merged 3 commits into from
Nov 17, 2024

Conversation

tvararu
Copy link
Member

@tvararu tvararu commented Nov 15, 2024

When an unmatched consent form doesn't map to any existing patient, we want to allow users to create a new patient record. This record should use an NHS number that's looked up via PDS, have a consent attached to it that matches the consent from the parent form, and a parent that also uses the details from the form.

We don't display the option to create patient records for consent forms without an NHS number (e.g. where the PDS lookup didn't find any records).

TODO:

  • Add PDS lookup
  • create action (create: patient, parent, consent)
  • Don't highlight patient attributes
  • Feature spec

Prerequisites:

Screenshots

Screenshot 2024-11-17 at 22 31 30

Screenshot 2024-11-17 at 22 31 02

These simulate a consent form that passed the PDS lookup and has an NHS
number attached, but that doesn't have a corresponding patient record in
the database.
If this option is set to false, it disables the highlighting for fields
that have changed.
When an unmatched consent form doesn't map to any existing patient, we
want to allow users to create a new patient record. This record should
use an NHS number that's looked up via PDS, have a consent attached to
it that matches the consent from the parent form, and a parent that also
uses the details from the form.
@tvararu tvararu temporarily deployed to mavis-pr-2454 November 17, 2024 23:14 Inactive
Copy link

sonarcloud bot commented Nov 17, 2024

@tvararu tvararu enabled auto-merge (rebase) November 17, 2024 23:20
@tvararu tvararu merged commit 5ed7c37 into main Nov 17, 2024
12 checks passed
@tvararu tvararu deleted the create-child branch November 17, 2024 23:27
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