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 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.ImageV2, Concept.dataType.Video, Concept.dataType.File], this.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
- formElementsIncludingRepeatableElements.push(fe);
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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.32.30",
4
+ "version": "1.32.32",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",