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.
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.