openchs-models 1.32.30 → 1.32.32
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.
- package/dist/Concept.js +1 -1
- package/dist/ObservationsHolder.js +4 -2
- package/package.json +1 -1
package/dist/Concept.js
CHANGED
|
@@ -271,7 +271,7 @@ class Concept extends _BaseEntity.default {
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
isMediaSelectConcept() {
|
|
274
|
-
return _lodash.default.includes([Concept.dataType.Image, Concept.dataType.
|
|
274
|
+
return _lodash.default.includes([Concept.dataType.Image, Concept.dataType.Video, Concept.dataType.File], this.datatype);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
isSelectConcept() {
|
|
@@ -142,9 +142,11 @@ class ObservationsHolder {
|
|
|
142
142
|
formElementsIncludingRepeatableElements.push(newFormElement);
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
|
-
}
|
|
146
145
|
|
|
147
|
-
|
|
146
|
+
formElementsIncludingRepeatableElements.push(fe);
|
|
147
|
+
} else if (_lodash.default.isNil(fe.groupUuid)) {
|
|
148
|
+
formElementsIncludingRepeatableElements.push(fe);
|
|
149
|
+
}
|
|
148
150
|
});
|
|
149
151
|
|
|
150
152
|
const inApplicableFormElements = _lodash.default.differenceWith(formElementsIncludingRepeatableElements, applicableFormElements, (a, b) => a.uuid === b.uuid && a.questionGroupIndex === b.questionGroupIndex);
|