Skip to content

RA-594: Added functionality t specify a strategy to register UnKnown Patients#22

Open
mozzy11 wants to merge 1 commit intoopenmrs:masterfrom
mozzy11:RA-594
Open

RA-594: Added functionality t specify a strategy to register UnKnown Patients#22
mozzy11 wants to merge 1 commit intoopenmrs:masterfrom
mozzy11:RA-594

Conversation

@mozzy11
Copy link
Member

@mozzy11 mozzy11 commented Sep 25, 2019

Ticket : https://issues.openmrs.org/browse/RA-594

  • Create a CreateUnknownPatientStrategy interface within registration-core with a single createUnknownPatient method.

  • Create a DefaultCreateUnknownPatientStrategy implementation of the interface that returns a new Patient with name "UNKNOWN UNKNOWN".

  • Add registerUnknownPatient and setCreateUnknownPatientStrategy methods to RegistrationCoreService

  • Add a CreateUnknownPatientStrategy property to RegistrationCoreServiceImpl that defaults to DefaultCreateUnknownPatientStrategy and add the setCreateUnknownPatientStrategy method so modules can insert a new strategy.

  • Implement the RegistrationCoreServiceImpl.registerUnknownPatient method to get a new unknown patient from its CreateUnknownPatientStrategy and assign an identifier using an identifier source pulled from a new RegistrationCoreConstants.GP_IDENTIFIER_SOURCE_ID_FOR_UNKNOWN_PATIENTS global property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant