openchs-models 1.33.42 → 1.33.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -202,7 +202,7 @@ class FormElement extends _BaseEntity.default {
|
|
|
202
202
|
return yearDifference <= 2000;
|
|
203
203
|
}
|
|
204
204
|
getAnswers() {
|
|
205
|
-
const allAnswers = this.concept.getAnswers();
|
|
205
|
+
const allAnswers = this.concept.getAnswers().filter(ca => !ca.concept.voided);
|
|
206
206
|
if (!_lodash.default.isEmpty(this.answersToShow)) {
|
|
207
207
|
return _lodash.default.filter(allAnswers, allConceptAnswer => _lodash.default.includes(this.answersToShow, allConceptAnswer.concept.name));
|
|
208
208
|
} else {
|