ProcedureLogs Date Range
Posted: Thu Feb 09, 2023 2:02 pm
The current API's ProcedureLogs endpoint doesn't allow for a date range.
It was suggested by OpenDental to use the Queries endpoint instead.
The queries endpoint is a little out of my scope.
Could someone please tell me if the following has the correct SQL syntax for the db?
sqlCommand = `SELECT PatNum, ProcDate,ProcFee,Surf,ToothNum,CodeNum FROM procedurelog WHERE ProcDate < '${end}' AND ProcDate > '${start}' AND ProcStatus = '2' AND ProvNum= '${provider}'`;
It was suggested by OpenDental to use the Queries endpoint instead.
The queries endpoint is a little out of my scope.
Could someone please tell me if the following has the correct SQL syntax for the db?
sqlCommand = `SELECT PatNum, ProcDate,ProcFee,Surf,ToothNum,CodeNum FROM procedurelog WHERE ProcDate < '${end}' AND ProcDate > '${start}' AND ProcStatus = '2' AND ProvNum= '${provider}'`;