Fails with error TypeError: Cannot read properties of undefined (reading 'flat'). I think it's failing when 0 patient or 0 encounter records are returned...
To replicate, use this cursor: { "lastRunDateTime": "2024-09-30T12:00:00.000Z" }
expression.js
3-get-encounters.js
I was testing on staging... not sure if you want to branch off of that, or if we should first merge your other changes pending code review (bc Joe will be out for >1 week). Let's discuss.
Describe the bug and expected behavior
Fails with error
TypeError: Cannot read properties of undefined (reading 'flat')
. I think it's failing when 0 patient or 0 encounter records are returned...To Reproduce
{ "lastRunDateTime": "2024-09-30T12:00:00.000Z" }
expression.js
3-get-encounters.js
I was testing onstaging
... not sure if you want to branch off of that, or if we should first merge your other changes pending code review (bc Joe will be out for >1 week). Let's discuss.Toggl
MSF 2024