Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
791 additions
and
71 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
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
48 changes: 48 additions & 0 deletions
48
hapi-fhir-validation/src/main/java/org/hl7/fhir/instance/validation/EnableWhenResult.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,48 @@ | ||
package org.hl7.fhir.instance.validation; | ||
|
||
|
||
import org.hl7.fhir.r4.elementmodel.Element; | ||
import org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent; | ||
|
||
public class EnableWhenResult { | ||
private final boolean enabled; | ||
private final QuestionnaireItemEnableWhenComponent enableWhenCondition; | ||
private final Element answerItem; | ||
private final String linkId; | ||
|
||
/** | ||
* Evaluation result of enableWhen condition | ||
* | ||
* @param enabled | ||
* Evaluation result | ||
* @param linkId | ||
* LinkId of the questionnaire item | ||
* @param enableWhenCondition | ||
* Evaluated enableWhen condition | ||
* @param answerItem | ||
* item in QuestionnaireResponse | ||
*/ | ||
public EnableWhenResult(boolean enabled, String linkId, QuestionnaireItemEnableWhenComponent enableWhenCondition, | ||
Element answerItem) { | ||
this.enabled = enabled; | ||
this.linkId = linkId; | ||
this.answerItem = answerItem; | ||
this.enableWhenCondition = enableWhenCondition; | ||
} | ||
|
||
public boolean isEnabled() { | ||
return enabled; | ||
} | ||
|
||
public String getLinkId() { | ||
return linkId; | ||
} | ||
|
||
public Element getAnswerItem() { | ||
return answerItem; | ||
} | ||
|
||
public QuestionnaireItemEnableWhenComponent getEnableWhenCondition() { | ||
return enableWhenCondition; | ||
} | ||
} |
Oops, something went wrong.