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

Rename date methods in SearchCriteriaBuilders #441

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

durac
Copy link
Contributor

@durac durac commented Aug 11, 2016

Description

  • rename withFromEffectiveStartDate to fromEffectiveStartDate,
    withToEffectiveStartDate to toEffectiveStartDate in
    RadiologyOrderSearchCriteria.java
  • rename withFromDate to fromDate, withToDate to toDate in
    RadiologyReportSearchCriteria.java
  • modify construction of RadiologyReportSearchCriteria

@mention-bot
Copy link

@Schwasrz94, thanks for your PR! By analyzing the annotation information on this pull request, we identified @bgeVam, @teleivo and @soniro to be potential reviewers

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 94.67% when pulling f7e830c on Schwasrz94:searchBuilder into b2a74b3 on openmrs:master.

.withPrincipalResultsInterpreter(principalResultsInterpreter)
.withStatus(status)
.build();
radiologyReportSearchCriteriaBuilder = radiologyReportSearchCriteriaBuilder.includeVoided();
Copy link
Member

Choose a reason for hiding this comment

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

@Schwarz94 no need to reassign is it?

Copy link
Member

Choose a reason for hiding this comment

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

Should be possible to do

builder.includeVoided()
builder.withThisAndThat()
Criteria crit = builder.build()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True that!

@teleivo
Copy link
Member

teleivo commented Aug 11, 2016

@Schwasrz94 please also add the class level javadoc :bowtie:

* rename withFromEffectiveStartDate to fromEffectiveStartDate,
  withToEffectiveStartDate to toEffectiveStartDate in
  RadiologyOrderSearchCriteria.java
* rename withFromDate to fromDate, withToDate to toDate in
  RadiologyReportSearchCriteria.java
* modify construction of RadiologyReportSearchCriteria
* extand javadocs of search criteria classes
* fix report date filter bug
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 94.67% when pulling 1796f53 on Schwasrz94:searchBuilder into b2a74b3 on openmrs:master.

@teleivo teleivo merged commit 5a363e6 into openmrs:master Aug 11, 2016
durac pushed a commit to durac/openmrs-module-radiology that referenced this pull request Aug 11, 2016
Rename date methods in SearchCriteriaBuilders
@durac durac deleted the searchBuilder branch August 23, 2016 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants