select * from rpt.han_palliativecare_pmp_pg(
CAST($1 AS int8),
cast(TO_TIMESTAMP($2,'DD.MM.YYYY') as timestamp), 
cast(TO_TIMESTAMP($3,'DD.MM.YYYY') as timestamp))


