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

Prevent duplicate Patient (ID) records by DB Unique Constraint #4636

Open
gunterze opened this issue Jan 7, 2025 · 0 comments
Open

Prevent duplicate Patient (ID) records by DB Unique Constraint #4636

gunterze opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@gunterze
Copy link
Member

gunterze commented Jan 7, 2025

Prevent duplicate Patient (ID) records by DB Unique Constraint ("pat_id, entity_id, entity_uid, entity_uid_type") on table patient_id and supplementing missing

Attribute Tag Supplemented Value
Issuer of Patient ID (0010,0021) {>Universal Entity ID} if present, otherwise unknown¹
Issuer of Patient ID Qualifiers Sequence (0010,0024)
>Universal Entity ID (0040,0033) iss:{Issuer of Patient ID}
>Universal Entity ID Type (0040,0033) URI

¹ In the case, there is already such Patient ID with Issuer of Patient ID (0010,0021) = unknown, Issuer of Patient ID (0010,0021) will be set to unknown.{n}, with {n} the lowest number starting with 1, which does not match with an already existing Patient ID.

@gunterze gunterze added the enhancement New feature or request label Jan 7, 2025
@gunterze gunterze added this to the 5.34.0 milestone Jan 7, 2025
@gunterze gunterze self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant