You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: lib/util/ThirdNextReport.js
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -132,8 +132,10 @@ var ThirdNextReport = function (data, dayOfMonth, proc) {
132
132
vartmp=newDate(val.date*1000);
133
133
134
134
if(tmp.getDate()===proc.dayOfMonth){
135
+
logger.info("Keeping record with date: "+tmp);
135
136
returntrue;
136
137
}
138
+
logger.info("Filtering out record, had date: "+tmp+" not "+proc.dayOfMonth+" as wanted.");
137
139
returnfalse;
138
140
139
141
});
@@ -215,24 +217,26 @@ var ThirdNextReport = function (data, dayOfMonth, proc) {
215
217
216
218
vargetProviderLevelReport=function(data){
217
219
220
+
thrownewError("This report does not support provider level data! The reporting requirements are such that provider level data does not make sense. Please refer to the requirements in Polarian for details.");
221
+
218
222
};
219
223
220
224
/**
221
-
* @paramclinic {Boolean} - If this is true, will generate report based on clinic level data.
225
+
* @paramprovider {Boolean} - If this is true, will generate report based on provider level data.
222
226
* If this param is false, will generate report with anony. physicians.
0 commit comments