Affects Version/s: None
Fix Version/s: 2.8
Patient Identifiers have a "location" property. A implementation may want to specify a identifier source to use based on not just the patient identifier type, but also the location.
As an example, say an implementation as two archives rooms, and a patient could have a dossier in one or both of the archives rooms. For each room we may want to have a (separate) sequential identifier source.
To implementation this we want to:
1) Add a "location" as a property of AutoGenerationOption
2) Create a new getAutoGenerationOption(PatientIdentifierType, Location) that fetches an autogeneration option by both patient identifier type and location
3) Create a new generateIdentifier(PatientIdentifierType,Location)
4) Update the UI to allow the selection of a location when configuring an auto-generation option
Note the location property of auto generation option should be optional. The existing functionality should continue to work--you shouldn't have to assign a location to an auto-generation option.