select * from rpt.pan_EvnDeathSvid_Spisok_PG(cast($1 as bigint),cast($2 as bigint),dbo.GetDiagCodeByID(cast($3 as bigint)),dbo.GetDiagCodeByID(cast($4 as bigint)),cast($5 as bigint),cast($6 as int),cast($7 as int),cast(to_date($8,'DD.MM.YYYY') as timestamp),cast(to_date($9,'DD.MM.YYYY') as timestamp),cast($10 as int))

