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

parse state values #202

Open
3 tasks
ericbuckley opened this issue Feb 7, 2025 · 0 comments
Open
3 tasks

parse state values #202

ericbuckley opened this issue Feb 7, 2025 · 0 comments
Labels
feature New feature or request

Comments

@ericbuckley
Copy link
Collaborator

Summary

Update the Address class to parse state values as data comes in. Data should be normalized into standard USPS two letter alphabetic codes, this includes states, possessions and military codes. If a state can not be accurately parsed, a validation error should be raised.

Acceptance Criteria

  • A new parse_state method on the Address class
  • Test cases to show that state is correctly parsed
  • Documentation added to site/references to indicate that state is normalized into the two-letter code

Details / Tasks

A valid list of all the two-letter codes can be found here https://www.hl7.org/fhir/us/core/STU4/ValueSet-us-core-usps-state.html.

Background / Context

State is current accepted as raw text, and saved that way for comparisons. In some cases the record might use an abbreviation and in others, the full state name. Ideally, comparisons like "AK" <-> "Alaska", should be a 100% match.

@ericbuckley ericbuckley added the feature New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant