Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added automated tests for patient search #498

Merged
merged 1 commit into from Jan 20, 2014

Conversation

WolfSchlegel
Copy link
Contributor

refactored patient search criteria
integrated patient search with search by person attribute
task 2472 not finished, this commit is for an intermediate review

@dkayiwa
Copy link
Member

dkayiwa commented Jan 2, 2014

When do you plan to finish this?
The main reason am asking is because it is a huge commit and hence merge conflicts would be a hassle to deal with. I already see github reporting merge conflicts.

@WolfSchlegel
Copy link
Contributor Author

Hi Daniel, I have implemented two new search methods and marked the old ones as deprecated.

I noticed that HibernatePersonDAOTest has been merged with PersonDAOTest. Shall I move the new tests from HibernatePersonDAOTest to PersonDAOTest?

Thanks,
Wolf

@dkayiwa
Copy link
Member

dkayiwa commented Jan 17, 2014

Oh yes please do. Thanks Wolf!!! :)

@WolfSchlegel
Copy link
Contributor Author

Wow, that was quick. Will do right now.

…ntDAO and org.openmrs.api.db.hibernate.PatientSearchCriteria

Refactored org.openmrs.api.db.hibernate.PatientSearchCriteria
Added and implemented org.openmrs.api.db.PatientDAO#getPatients(String,Integer,Integer)
Added and implemented org.openmrs.api.db.PatientDAO#getCountOfPatients(String)
Marked org.openmrs.api.db.PatientDAO#getPatients(String,String,List,boolean,Integer,Integer) as deprecated
Marked org.openmrs.api.db.PatientDAO#getCountOfPatients(String,String,List,boolean,boolean) as deprecated
Moved tests from org.openmrs.api.db.hibernate.HibernatePatientDAOTest to org.openmrs.api.db.PatientDAOTest
@WolfSchlegel
Copy link
Contributor Author

Done.

@WolfSchlegel
Copy link
Contributor Author

Regarding the old search methods, I have found no usage in the OpenMRS core codebase that actually uses the List identifierTypes parameter. It is either an empty list or null.

dkayiwa added a commit that referenced this pull request Jan 20, 2014
added automated tests for patient search
@dkayiwa dkayiwa merged commit 4eb52bb into openmrs:master Jan 20, 2014
RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants