Split patient address field into subfields
Author: JDarkeCreated Jun 18, 2020Updated Feb 13, 2022
Labels🚀enhancementin progresspatientsLOE - large
Split patient address field into subfields
Patients' addresses should be split into appropriate subfields, such as Street, Town/City, Region and Postal code.
Motivation
Currently, the address field of Patient contact information is stored as a single string of no specific format. This has several potential problems:
- Possibly leads to confusion and/or duplication if the same address is entered in various formats for different patients at the same address. Administrative errors have potentially serious ramifications in a clinical context.
- Database actions such as sorting and filtering by address will presumably need individual fields and some standard formatting in order to be practically useful.
- Specific address info can't easily be pulled into other areas, e.g. - displaying zipcode alongside patient name in search field results.

Example
The Patient address should be entered, stored and returned as separate subfields:
Street Address Street Address 2 (optional) Town/City Zip/Postcode Country (can be set to the hospital's location country by default, but useful to have the field if international patients are a possibility)
Some fields could potentially benefit from setting standard formats, but I think that can be raised as a separate issue as needed.
Source: HospitalRun/hospitalrun-frontend