forked from medizininformatik-initiative/feasibility-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request medizininformatik-initiative#272 from medizininfor…
…matik-initiative/release/v5.0.0-alpha.1 Release v5.0.0 alpha.1
- Loading branch information
Showing
35 changed files
with
1,147 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/de/numcodex/feasibility_gui_backend/common/api/MutableCriterion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package de.numcodex.feasibility_gui_backend.common.api; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import de.numcodex.feasibility_gui_backend.query.api.AttributeFilter; | ||
import de.numcodex.feasibility_gui_backend.query.api.TimeRestriction; | ||
import de.numcodex.feasibility_gui_backend.query.api.ValueFilter; | ||
import de.numcodex.feasibility_gui_backend.query.api.status.ValidationIssue; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@JsonInclude(Include.NON_NULL) | ||
@Builder | ||
@Data | ||
public class MutableCriterion { | ||
@JsonProperty("context") TermCode context; | ||
@JsonProperty("termCodes") List<TermCode> termCodes; | ||
@JsonProperty("attributeFilters") List<AttributeFilter> attributeFilters; | ||
@JsonProperty("valueFilter") ValueFilter valueFilter; | ||
@JsonProperty("timeRestriction") TimeRestriction timeRestriction; | ||
@JsonProperty("issues") List<ValidationIssue> validationIssues; | ||
|
||
public static MutableCriterion createMutableCriterion (Criterion criterion) { | ||
return MutableCriterion.builder() | ||
.termCodes(criterion.termCodes()) | ||
.context(criterion.context()) | ||
.attributeFilters(criterion.attributeFilters()) | ||
.valueFilter(criterion.valueFilter()) | ||
.timeRestriction(criterion.timeRestriction()) | ||
.validationIssues(criterion.validationIssues()) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.