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

Convert BDS 71 (parental birth country) from integer to string #9

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

stefvanbuuren
Copy link
Member

The definition of the BDS field 71 is "alphanumeric". In bdsreader this definition was interpreted that the data specification should be integer (pre-24.0) or numeric (24.0). Neither is correct. The usual interpretation is that BDS 71 is a string with four digits. For example, "0123" should be read into R as character, and not be converted to integer or number.

This PR corrects this error. Changes made:

  • schemas/bds_v3.0.json definition change (we don't care about pre v3.0 schemas)
  • alterations in the reading routines
  • alterations in the example data

As a result definition and blbf and blbm fields are now read as character.

@stefvanbuuren stefvanbuuren merged commit 1773455 into master Mar 21, 2024
6 checks passed
@stefvanbuuren stefvanbuuren deleted the bds71 branch March 21, 2024 11:45
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.

1 participant