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 triplicate ID function for nrs records #113

Open
ekm87 opened this issue Sep 26, 2023 · 0 comments
Open

add triplicate ID function for nrs records #113

ekm87 opened this issue Sep 26, 2023 · 0 comments

Comments

@ekm87
Copy link

ekm87 commented Sep 26, 2023

Is your feature request related to a problem? Please describe.
NRS live births, NRS stillbirths and GRO infant deaths on smra all have three fields that uniquely identify records, when combined. At the moment analysts have to manually combine the fields to create the triplicate ID, and add a prefix to indicate whether it relates to a live or stillbirth. Whilst it is not onerous to do manually, there is potential for error in the padding of fields, or for the prefix not to be added, which becomes a problem if working with both live and stillbirths records so it would be safer to have a standard field.

Describe the solution you'd like
A function to concatenate the three fields together. The user will have to specify in the function which database they are using to apply the correct prefix. Field names need to be specifiable (although function could also contain default names from the databases).

I can write the function but will need help with documentation, testing etc.

Describe alternatives you've considered

Additional context

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

No branches or pull requests

1 participant