openchs-models 1.27.2 → 1.27.3
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.
|
@@ -177,10 +177,10 @@ class FormElementGroup {
|
|
|
177
177
|
return FormElementGroup._sortedFormElements(filteredFormElements);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
areAllFormElementsEmpty(filteredFormElements, observationHolder) {
|
|
181
|
+
return _lodash.default.reduce(filteredFormElements, (areAllEmpty, formElement) => {
|
|
182
|
+
return areAllEmpty && _lodash.default.isNil(observationHolder.findObservation(formElement.concept));
|
|
183
|
+
}, true);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
toJSON() {
|