openchs-models 1.33.32 → 1.33.34
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 +12 -1
- package/package.json +1 -1
package/dist/ReportCard.js
CHANGED
|
@@ -230,9 +230,20 @@ class ReportCard extends _BaseEntity.default {
|
|
|
230
230
|
this.that.customCardConfig = this.fromObject(x);
|
|
231
231
|
}
|
|
232
232
|
isFullyCustom() {
|
|
233
|
-
return !_lodash.default.isNil(this.customCardConfig);
|
|
233
|
+
return !_lodash.default.isNil(this.customCardConfig) && !this.customCardConfig.voided;
|
|
234
|
+
}
|
|
235
|
+
static deriveCardType(card) {
|
|
236
|
+
if (card.customCardConfig) return ReportCard.cardTypes.fullyCustom;
|
|
237
|
+
if (card.standardReportCardType) return ReportCard.cardTypes.standard;
|
|
238
|
+
return card.nested ? ReportCard.cardTypes.nested : ReportCard.cardTypes.customData;
|
|
234
239
|
}
|
|
235
240
|
}
|
|
241
|
+
_defineProperty(ReportCard, "cardTypes", {
|
|
242
|
+
standard: "standard",
|
|
243
|
+
nested: "nested",
|
|
244
|
+
customData: "customData",
|
|
245
|
+
fullyCustom: "fullyCustom"
|
|
246
|
+
});
|
|
236
247
|
_defineProperty(ReportCard, "actionTypes", {
|
|
237
248
|
ViewSubjectProfile: "ViewSubjectProfile",
|
|
238
249
|
DoVisit: "DoVisit"
|