openchs-models 1.27.21 → 1.27.23
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/ObservationsHolder.js +1 -1
- package/dist/Schema.js +6 -1
- package/package.json +1 -1
|
@@ -383,7 +383,7 @@ class ObservationsHolder {
|
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
if (childConcept.isCodedConcept() || childConcept.isMediaConcept()) {
|
|
386
|
+
if (childConcept.isCodedConcept() || childConcept.isMediaConcept() || childConcept.isSubjectConcept()) {
|
|
387
387
|
let observation = childObservations.getObservation(childConcept);
|
|
388
388
|
const isSingleSelect = childFormElement.isSingleSelect();
|
|
389
389
|
|
package/dist/Schema.js
CHANGED
|
@@ -194,7 +194,7 @@ const entities = [_LocaleMapping.default, _Settings.default, _ConceptAnswer.defa
|
|
|
194
194
|
function createRealmConfig() {
|
|
195
195
|
return {
|
|
196
196
|
//order is important, should be arranged according to the dependency
|
|
197
|
-
schemaVersion:
|
|
197
|
+
schemaVersion: 169,
|
|
198
198
|
migration: function (oldDB, newDB) {
|
|
199
199
|
if (oldDB.schemaVersion < 10) {
|
|
200
200
|
const oldObjects = oldDB.objects("DecisionConfig");
|
|
@@ -647,6 +647,11 @@ function createRealmConfig() {
|
|
|
647
647
|
sub.allowProfilePicture = false;
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
|
+
|
|
651
|
+
if (oldDB.schemaVersion < 169) {
|
|
652
|
+
const oldDraftSubjects = newDB.objects(_DraftSubject.default.schema.name);
|
|
653
|
+
newDB.delete(oldDraftSubjects);
|
|
654
|
+
}
|
|
650
655
|
}
|
|
651
656
|
};
|
|
652
657
|
}
|