openchs-models 1.32.31 → 1.32.33
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.
|
@@ -142,8 +142,6 @@ class ObservationsHolder {
|
|
|
142
142
|
formElementsIncludingRepeatableElements.push(newFormElement);
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
|
-
|
|
146
|
-
formElementsIncludingRepeatableElements.push(fe);
|
|
147
145
|
} else if (_lodash.default.isNil(fe.groupUuid)) {
|
|
148
146
|
formElementsIncludingRepeatableElements.push(fe);
|
|
149
147
|
}
|
package/dist/Program.js
CHANGED
|
@@ -68,14 +68,6 @@ class Program extends _ReferenceEntity.default {
|
|
|
68
68
|
this.that.manualEligibilityCheckRequired = x;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
get showGrowthChart() {
|
|
72
|
-
return this.that.showGrowthChart;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
set showGrowthChart(x) {
|
|
76
|
-
this.that.showGrowthChart = x;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
71
|
get enrolmentSummaryRule() {
|
|
80
72
|
return this.that.enrolmentSummaryRule;
|
|
81
73
|
}
|
|
@@ -126,7 +118,6 @@ class Program extends _ReferenceEntity.default {
|
|
|
126
118
|
program.programSubjectLabel = operationalProgram.programSubjectLabel || operationalProgram.name || program.name;
|
|
127
119
|
program.enrolmentSummaryRule = operationalProgram.enrolmentSummaryRule;
|
|
128
120
|
program.manualEligibilityCheckRequired = operationalProgram.manualEligibilityCheckRequired;
|
|
129
|
-
program.showGrowthChart = operationalProgram.showGrowthChart;
|
|
130
121
|
program.manualEnrolmentEligibilityCheckRule = operationalProgram.manualEnrolmentEligibilityCheckRule;
|
|
131
122
|
program.enrolmentEligibilityCheckRule = operationalProgram.enrolmentEligibilityCheckRule;
|
|
132
123
|
program.allowMultipleEnrolments = operationalProgram.allowMultipleEnrolments;
|
|
@@ -171,7 +162,6 @@ _defineProperty(Program, "schema", {
|
|
|
171
162
|
optional: true
|
|
172
163
|
},
|
|
173
164
|
manualEligibilityCheckRequired: 'bool',
|
|
174
|
-
showGrowthChart: 'bool',
|
|
175
165
|
manualEnrolmentEligibilityCheckRule: {
|
|
176
166
|
type: 'string',
|
|
177
167
|
optional: true
|
package/dist/Schema.js
CHANGED
|
@@ -283,7 +283,7 @@ function createRealmConfig() {
|
|
|
283
283
|
return doCompact;
|
|
284
284
|
},
|
|
285
285
|
//order is important, should be arranged according to the dependency
|
|
286
|
-
schemaVersion:
|
|
286
|
+
schemaVersion: 198,
|
|
287
287
|
onMigration: function (oldDB, newDB) {
|
|
288
288
|
console.log("[AvniModels.Schema]", `Running migration with old schema version: ${oldDB.schemaVersion} and new schema version: ${newDB.schemaVersion}`);
|
|
289
289
|
if (oldDB.schemaVersion === VersionWithEmbeddedMigrationProblem) throw new Error(`Update from schema version ${VersionWithEmbeddedMigrationProblem} is not allowed. Please uninstall and install app.`);
|
|
@@ -965,12 +965,6 @@ function createRealmConfig() {
|
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
|
|
969
|
-
if (oldDB.schemaVersion < 199) {
|
|
970
|
-
_lodash.default.forEach(newDB.objects("Program"), program => {
|
|
971
|
-
program.showGrowthChart = _lodash.default.toLower(program.name) === "child";
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
968
|
}
|
|
975
969
|
};
|
|
976
970
|
}
|
package/dist/application/Form.js
CHANGED
|
@@ -305,12 +305,12 @@ class Form extends _BaseEntity.default {
|
|
|
305
305
|
|
|
306
306
|
const orderedFormElements = _lodash.default.sortBy(childFormElements, fe => fe.displayOrder);
|
|
307
307
|
|
|
308
|
-
_lodash.default.forEach(orderedFormElements, formElement => this.addSortedObservations(formElement, observations, orderedChildObs
|
|
308
|
+
_lodash.default.forEach(orderedFormElements, formElement => this.addSortedObservations(formElement, observations, orderedChildObs));
|
|
309
309
|
|
|
310
310
|
return orderedChildObs;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
addSortedObservations(formElement, observations, orderedObservations
|
|
313
|
+
addSortedObservations(formElement, observations, orderedObservations) {
|
|
314
314
|
const concept = formElement.concept;
|
|
315
315
|
const foundObs = observations.find(obs => obs.concept.uuid === concept.uuid);
|
|
316
316
|
|
|
@@ -326,7 +326,7 @@ class Form extends _BaseEntity.default {
|
|
|
326
326
|
orderedObservations.push(clonedObs);
|
|
327
327
|
}
|
|
328
328
|
} else {
|
|
329
|
-
if (!_lodash.default.isNil(foundObs)
|
|
329
|
+
if (!_lodash.default.isNil(foundObs)) {
|
|
330
330
|
foundObs.styles = formElement.styles;
|
|
331
331
|
orderedObservations.push(foundObs);
|
|
332
332
|
}
|
|
@@ -478,7 +478,8 @@ _defineProperty(FormElement, "keys", {
|
|
|
478
478
|
groupSubjectRoleUUID: "groupSubjectRoleUUID",
|
|
479
479
|
allowedTypes: "allowedTypes",
|
|
480
480
|
allowedMaxSize: "allowedMaxSize",
|
|
481
|
-
displayAllGroupMembers: "displayAllGroupMembers"
|
|
481
|
+
displayAllGroupMembers: "displayAllGroupMembers",
|
|
482
|
+
searchOptions: "searchOptions"
|
|
482
483
|
});
|
|
483
484
|
|
|
484
485
|
_defineProperty(FormElement, "values", {
|