openchs-models 1.31.68 → 1.31.70
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/CustomFilter.js +2 -1
- package/dist/ReportCard.js +4 -0
- package/dist/StandardReportCardType.js +13 -0
- package/package.json +1 -1
package/dist/CustomFilter.js
CHANGED
|
@@ -41,7 +41,8 @@ _defineProperty(CustomFilter, "type", {
|
|
|
41
41
|
EncounterDate: "EncounterDate",
|
|
42
42
|
Address: "Address",
|
|
43
43
|
Concept: "Concept",
|
|
44
|
-
GroupSubject: "GroupSubject"
|
|
44
|
+
GroupSubject: "GroupSubject",
|
|
45
|
+
SubjectType: "SubjectType"
|
|
45
46
|
});
|
|
46
47
|
|
|
47
48
|
_defineProperty(CustomFilter, "scope", {
|
package/dist/ReportCard.js
CHANGED
|
@@ -132,6 +132,10 @@ class ReportCard extends _BaseEntity.default {
|
|
|
132
132
|
return _lodash.default.isNil(this.standardReportCardType) ? false : this.standardReportCardType.isTaskType();
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
isStandardReportType() {
|
|
136
|
+
return !_lodash.default.isNil(this.standardReportCardType);
|
|
137
|
+
}
|
|
138
|
+
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
_defineProperty(ReportCard, "schema", {
|
|
@@ -153,6 +153,19 @@ _defineProperty(StandardReportCardType, "type", {
|
|
|
153
153
|
DueChecklist: "Due checklist"
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
+
_defineProperty(StandardReportCardType, "subjectTypeFilterSupported", {
|
|
157
|
+
[StandardReportCardType.type.ScheduledVisits]: true,
|
|
158
|
+
[StandardReportCardType.type.OverdueVisits]: true,
|
|
159
|
+
[StandardReportCardType.type.LatestRegistrations]: false,
|
|
160
|
+
[StandardReportCardType.type.LatestEnrolments]: false,
|
|
161
|
+
[StandardReportCardType.type.LatestVisits]: false,
|
|
162
|
+
[StandardReportCardType.type.Total]: false,
|
|
163
|
+
[StandardReportCardType.type.Comments]: false,
|
|
164
|
+
[StandardReportCardType.type.CallTasks]: false,
|
|
165
|
+
[StandardReportCardType.type.OpenSubjectTasks]: false,
|
|
166
|
+
[StandardReportCardType.type.DueChecklist]: false
|
|
167
|
+
});
|
|
168
|
+
|
|
156
169
|
const typeToStatusMap = {
|
|
157
170
|
[StandardReportCardType.type.PendingApproval]: _ApprovalStatus.default.statuses.Pending,
|
|
158
171
|
[StandardReportCardType.type.Approved]: _ApprovalStatus.default.statuses.Approved,
|