reverted to slightly earlier patientapi to match query-gateway