Issue #675: improved script service API (return more data, make input of simpler types), store more data about pushed patients