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

INT-648: Add patient BSN to Tasks created through Frontend #458

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

reinkrul
Copy link
Contributor

@reinkrul reinkrul commented Mar 3, 2025

No description provided.

@reinkrul reinkrul requested review from JorisHeadease and dwelman and removed request for JorisHeadease March 3, 2025 08:38
const patientReference : Reference = {
type: "Patient",
reference: "urn:uuid:patient",
identifier: patient.identifier?.filter((identifier) => identifier.system === BSN_SYSTEM)[0]!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could result in an unhandled error, could we wrap this in a try catch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it probably shouldn't be hardcoded support BSN only. So maybe we just take the first identifier or something... Or configure a list of preferred patient identifier systems.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to be international and BSN is very Dutchy.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes good point!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made it configurable, now defaults to BSN.

Note tht the line you initially pointed out can't fail, because on initialization it checks whether it can resolve the patient identifier.

@reinkrul reinkrul merged commit 5a90193 into main Mar 3, 2025
1 check passed
@reinkrul reinkrul deleted the int648-task-patient-bsn branch March 3, 2025 12:08
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