You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: