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

Kavitha|Awaiting appointments code refactor #151

Merged
merged 5 commits into from
May 9, 2024

Conversation

kavitha-sundararajan
Copy link
Contributor

No description provided.

kavitha-sundararajan and others added 4 commits May 6, 2024 16:27
* Kavitha, Umair | A-1204370983916597| add database column and api changes for priority (#104)

* add database column and api changes for priority

Co-authored-by: Umair Fayaz <[email protected]>

* add priority to appointment audit

Co-authored-by: Umair Fayaz <[email protected]>

* fixed test failure for priority

* add tests for code coverage

---------

Co-authored-by: Umair Fayaz <[email protected]>

* Kavitha | A-1204361352115416 | removed invalid priority and related tests (#106)

* removed invalid priority and related tests

* added testcase for invalid priority

* Backend migration to create dateless appointments (#105)

* allow dateless appointments if status is waitlist (#108)

* Kavitha, Umair | A-1204370983916597| add database column and api changes for priority (#104)

* add database column and api changes for priority

* add priority to appointment audit

* fixed test failure for priority

* add tests for code coverage

---------

Co-authored-by: Umair Fayaz <[email protected]>

* Kavitha | A-1204361352115416 | removed invalid priority and related tests (#106)

* removed invalid priority and related tests

* added testcase for invalid priority

* Backend migration to create dateless appointments (#105)

* allow dateless appointments if status is waitlist (#108)

* Add logic to filter DateLess Appointments

* add. appointment creation date in response (#109)

* Add tests to filter DateLess Appointments

* Update POM files

* Fix failing Tests for Search appointments

* Kavitha | add date check and tests for waitlist appointments

* Kavitha | removed Invalid priority

* Kavitha | added missed tests from master branch

* Kavitha | rename datelessAppointments to appointmentsWithoutDates

* Kavitha | add default null value to date columns in appt

* Kavitha | removed status check in appointment json

* Kavitha | removed sorting based on status

* Kavitha | removed unused imports

---------

Co-authored-by: Umair Fayaz <[email protected]>
Co-authored-by: Phanindra-tw <[email protected]>
Co-authored-by: Arjun G <[email protected]>
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have specific imports rather than * import

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

import org.openmrs.Person;
import org.openmrs.Provider;
import org.openmrs.User;
import org.mockito.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@kavitha-sundararajan kavitha-sundararajan merged commit 813c4b3 into Bahmni-IPD-master May 9, 2024
2 checks passed
@kavitha-sundararajan kavitha-sundararajan deleted the awaiting-code-refactor branch May 9, 2024 09:13
Arjun-Go added a commit that referenced this pull request May 22, 2024
* BAH-3479 | Backend changes for dateless appointments (#145)

* Kavitha, Umair | A-1204370983916597| add database column and api changes for priority (#104)

* add database column and api changes for priority

Co-authored-by: Umair Fayaz <[email protected]>

* add priority to appointment audit

Co-authored-by: Umair Fayaz <[email protected]>

* fixed test failure for priority

* add tests for code coverage

---------

Co-authored-by: Umair Fayaz <[email protected]>

* Kavitha | A-1204361352115416 | removed invalid priority and related tests (#106)

* removed invalid priority and related tests

* added testcase for invalid priority

* Backend migration to create dateless appointments (#105)

* allow dateless appointments if status is waitlist (#108)

* Kavitha, Umair | A-1204370983916597| add database column and api changes for priority (#104)

* add database column and api changes for priority

* add priority to appointment audit

* fixed test failure for priority

* add tests for code coverage

---------

Co-authored-by: Umair Fayaz <[email protected]>

* Kavitha | A-1204361352115416 | removed invalid priority and related tests (#106)

* removed invalid priority and related tests

* added testcase for invalid priority

* Backend migration to create dateless appointments (#105)

* allow dateless appointments if status is waitlist (#108)

* Add logic to filter DateLess Appointments

* add. appointment creation date in response (#109)

* Add tests to filter DateLess Appointments

* Update POM files

* Fix failing Tests for Search appointments

* Kavitha | add date check and tests for waitlist appointments

* Kavitha | removed Invalid priority

* Kavitha | added missed tests from master branch

* Kavitha | rename datelessAppointments to appointmentsWithoutDates

* Kavitha | add default null value to date columns in appt

* Kavitha | removed status check in appointment json

* Kavitha | removed sorting based on status

* Kavitha | removed unused imports

---------

Co-authored-by: Umair Fayaz <[email protected]>
Co-authored-by: Phanindra-tw <[email protected]>
Co-authored-by: Arjun G <[email protected]>

* Kavitha | refactor search API for appointments without dates

* Kavitha|lowered test coverage ratio

* add specific imports

---------

Co-authored-by: Umair Fayaz <[email protected]>
Co-authored-by: Phanindra-tw <[email protected]>
Co-authored-by: Arjun G <[email protected]>
SanoferSameera pushed a commit that referenced this pull request Jun 4, 2024
* BAH-3350: Appointments: search endpoint stack traces when a patient has more than one identifier of the same time (#142)

* Ability to Filter on Appointments with multi-value support for search keys

Ability to Filter on Awaiting Appointments with multiple values for same keys

* Added test cases to increase branch coverage & set threshold to 0.60 (#152)

Added test cases to increase branch coverage & set threshold to 0.60 (#152)

* Kavitha|Awaiting appointments code refactor (#151)

* BAH-3479 | Backend changes for dateless appointments (#145)

* Kavitha, Umair | A-1204370983916597| add database column and api changes for priority (#104)

* add database column and api changes for priority

Co-authored-by: Umair Fayaz <[email protected]>

* add priority to appointment audit

Co-authored-by: Umair Fayaz <[email protected]>

* fixed test failure for priority

* add tests for code coverage

---------

Co-authored-by: Umair Fayaz <[email protected]>

* Kavitha | A-1204361352115416 | removed invalid priority and related tests (#106)

* removed invalid priority and related tests

* added testcase for invalid priority

* Backend migration to create dateless appointments (#105)

* allow dateless appointments if status is waitlist (#108)

* Kavitha, Umair | A-1204370983916597| add database column and api changes for priority (#104)

* add database column and api changes for priority

* add priority to appointment audit

* fixed test failure for priority

* add tests for code coverage

---------

Co-authored-by: Umair Fayaz <[email protected]>

* Kavitha | A-1204361352115416 | removed invalid priority and related tests (#106)

* removed invalid priority and related tests

* added testcase for invalid priority

* Backend migration to create dateless appointments (#105)

* allow dateless appointments if status is waitlist (#108)

* Add logic to filter DateLess Appointments

* add. appointment creation date in response (#109)

* Add tests to filter DateLess Appointments

* Update POM files

* Fix failing Tests for Search appointments

* Kavitha | add date check and tests for waitlist appointments

* Kavitha | removed Invalid priority

* Kavitha | added missed tests from master branch

* Kavitha | rename datelessAppointments to appointmentsWithoutDates

* Kavitha | add default null value to date columns in appt

* Kavitha | removed status check in appointment json

* Kavitha | removed sorting based on status

* Kavitha | removed unused imports

---------

Co-authored-by: Umair Fayaz <[email protected]>
Co-authored-by: Phanindra-tw <[email protected]>
Co-authored-by: Arjun G <[email protected]>

* Kavitha | refactor search API for appointments without dates

* Kavitha|lowered test coverage ratio

* add specific imports

---------

Co-authored-by: Umair Fayaz <[email protected]>
Co-authored-by: Phanindra-tw <[email protected]>
Co-authored-by: Arjun G <[email protected]>

* BAH-3860 | repeated imports in tests

* BAH-3860 | fix. tests in AppointmentMapper

---------

Co-authored-by: Mark Goodrich <[email protected]>
Co-authored-by: Umair Fayaz <[email protected]>
Co-authored-by: kalai-tw <[email protected]>
Co-authored-by: kavitha-sundararajan <[email protected]>
Co-authored-by: Umair Fayaz <[email protected]>
Co-authored-by: Phanindra-tw <[email protected]>
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.

2 participants