openchs-models 1.31.92 → 1.31.93

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.
@@ -199,6 +199,22 @@ class ReportCard extends _BaseEntity.default {
199
199
  return this.isStandardReportType() && this.standardReportCardType.isRecentType();
200
200
  }
201
201
 
202
+ hasInputForSubject() {
203
+ return this.standardReportCardInputSubjectTypes.length > 0;
204
+ }
205
+
206
+ hasInputForEnrolment() {
207
+ return this.standardReportCardInputPrograms.length > 0;
208
+ }
209
+
210
+ hasInputForProgramEncounter() {
211
+ return this.hasInputForEnrolment() && this.standardReportCardInputEncounterTypes.length > 0;
212
+ }
213
+
214
+ hasInputForGeneralEncounter() {
215
+ return this.standardReportCardInputEncounterTypes.length > 0;
216
+ }
217
+
202
218
  }
203
219
 
204
220
  _defineProperty(ReportCard, "schema", {
@@ -121,7 +121,7 @@ class StandardReportCardType extends _BaseEntity.default {
121
121
  }
122
122
 
123
123
  isSubjectTypeFilterSupported() {
124
- return [StandardReportCardType.type.ScheduledVisits, StandardReportCardType.type.OverdueVisits, StandardReportCardType.type.RecentRegistrations, StandardReportCardType.type.RecentEnrolments, StandardReportCardType.type.RecentVisits].includes(this.name);
124
+ return [StandardReportCardType.type.ScheduledVisits, StandardReportCardType.type.OverdueVisits, StandardReportCardType.type.RecentRegistrations, StandardReportCardType.type.RecentEnrolments, StandardReportCardType.type.RecentVisits, StandardReportCardType.type.Total].includes(this.name);
125
125
  }
126
126
 
127
127
  isRecentType() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.31.92",
4
+ "version": "1.31.93",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",