-
Notifications
You must be signed in to change notification settings - Fork 143
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
EA-198-2: Add support for configuring (and fetching) Mother Child rel… #238
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.openmrs.module.emrapi.maternal; | ||
|
||
import java.util.List; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class MothersAndChildrenSearchCriteria { | ||
private List<String> motherUuids; // restrict to children of these mothers | ||
private List<String> childUuids; // restrict to mothers of these children | ||
private boolean requireMotherHasActiveVisit = false; // restrict to mothers who have an active visit | ||
private boolean requireChildHasActiveVisit = false; // restrict to mothers of children who have an active visit | ||
private boolean requireChildBornDuringMothersActiveVisit = false; // restrict to mothers who had a child born during their active visit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you did want these to read better, you could go with something like:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like that. |
||
|
||
} |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should rename this local variable to
motherAndChild
, though you could also just have a constructor that takes in both and not need a local variable at all...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, yep... missed this one.