openchs-models 1.33.34 → 1.33.36
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/ReportCard.js +15 -1
- package/dist/Schema.js +1 -1
- package/package.json +1 -1
package/dist/ReportCard.js
CHANGED
|
@@ -128,7 +128,7 @@ class ReportCard extends _BaseEntity.default {
|
|
|
128
128
|
return _lodash.default.get(response, `reportCards[${index}].textColor`) || this.textColor;
|
|
129
129
|
}
|
|
130
130
|
static fromResource(resource, entityService) {
|
|
131
|
-
const reportCard = _General.default.assignFields(resource, ReportCard.newReportCard(), ["uuid", "name", "query", "description", "colour", "voided", "nested", "countOfCards"]);
|
|
131
|
+
const reportCard = _General.default.assignFields(resource, ReportCard.newReportCard(), ["uuid", "name", "query", "description", "colour", "voided", "nested", "countOfCards", "onActionCompletion"]);
|
|
132
132
|
reportCard.standardReportCardType = entityService.findByKey("uuid", _ResourceUtil.default.getUUIDFor(resource, "standardReportCardUUID"), _StandardReportCardType.default.schema.name);
|
|
133
133
|
resource.standardReportCardInputSubjectTypes.forEach(uuid => {
|
|
134
134
|
reportCard.standardReportCardInputSubjectTypes.push(entityService.findByUUID(uuid, _SubjectType.default.schema.name));
|
|
@@ -217,6 +217,12 @@ class ReportCard extends _BaseEntity.default {
|
|
|
217
217
|
set actionDetailVisitType(x) {
|
|
218
218
|
this.that.actionDetailVisitType = x;
|
|
219
219
|
}
|
|
220
|
+
get onActionCompletion() {
|
|
221
|
+
return this.that.onActionCompletion;
|
|
222
|
+
}
|
|
223
|
+
set onActionCompletion(x) {
|
|
224
|
+
this.that.onActionCompletion = x;
|
|
225
|
+
}
|
|
220
226
|
isActionDoVisit() {
|
|
221
227
|
return this.action === ReportCard.actionTypes.DoVisit;
|
|
222
228
|
}
|
|
@@ -252,6 +258,10 @@ _defineProperty(ReportCard, "visitTypes", {
|
|
|
252
258
|
Scheduled: "Scheduled",
|
|
253
259
|
Unplanned: "Unplanned"
|
|
254
260
|
});
|
|
261
|
+
_defineProperty(ReportCard, "onActionCompletionTypes", {
|
|
262
|
+
goToSubjectProfile: "goToSubjectProfile",
|
|
263
|
+
goToSourceScreen: "goToSourceScreen"
|
|
264
|
+
});
|
|
255
265
|
_defineProperty(ReportCard, "schema", {
|
|
256
266
|
name: "ReportCard",
|
|
257
267
|
primaryKey: "uuid",
|
|
@@ -326,6 +336,10 @@ _defineProperty(ReportCard, "schema", {
|
|
|
326
336
|
type: "string",
|
|
327
337
|
optional: true
|
|
328
338
|
},
|
|
339
|
+
onActionCompletion: {
|
|
340
|
+
type: "string",
|
|
341
|
+
optional: true
|
|
342
|
+
},
|
|
329
343
|
customCardConfig: {
|
|
330
344
|
type: "object",
|
|
331
345
|
objectType: "CustomCardConfig",
|
package/dist/Schema.js
CHANGED
|
@@ -172,7 +172,7 @@ function migrateEmbeddedObjects(oldDB, newDB) {
|
|
|
172
172
|
console.log(`deleting model: StringKeyNumericValue`);
|
|
173
173
|
newDB.deleteModel("StringKeyNumericValue");
|
|
174
174
|
}
|
|
175
|
-
const VersionWithEmbeddedMigrationProblem =
|
|
175
|
+
const VersionWithEmbeddedMigrationProblem = 186;
|
|
176
176
|
function createRealmConfig() {
|
|
177
177
|
return {
|
|
178
178
|
shouldCompact: function (totalBytes, usedBytes) {
|