
            with myvars as (
                select localtimestamp as curtime
            )
            select
                error_code as "Error_Code",
                error_message as "Error_Msg",
                EvnPS_id as "EvnPS_id"
            from dbo.p_EvnPS_upd(
                EvnPS_id := '560101387811370',
                pmUser_id := '424525278766',
                params := '{"evnps_setdt":"2023-08-01 00:56:00","evnps_disdt":"2023-08-01 02:23:00","evnps_diddt":null,"evnps_issigned":null,"evnps_signdt":null,"pmuser_signid":null,"lpu_id":"4976630","personevn_id":"560101038617076","server_id":"4976603","morbus_id":null,"evnstatus_id":null,"evnps_statusdate":null,"evnps_iscont":"1","evnps_numcard":"42998","paytype_id":"560101000000008","evnps_iswithoutdirection":"2","evndirection_id":null,"evnqueue_id":null,"evndirection_setdt":null,"evndirection_num":null,"prehospdirect_id":null,"lpusection_did":null,"org_did":null,"medstafffact_did":null,"medpersonal_did":null,"medstafffact_tfomscode":null,"orgmilitary_did":null,"lpu_did":null,"diag_did":"5664","diag_eid":null,"diagsetphase_did":null,"evnps_phasedescr_did":null,"prehosparrive_id":"2","cmpcallcard_id":null,"evnps_codeconv":null,"evnps_numconv":null,"evnps_isplambulance":"1","evnps_isimperhosp":null,"evnps_isshortvolume":null,"evnps_iswrongcure":null,"evnps_isdiagmismatch":null,"evnps_htmbegdate":null,"evnps_htmhospdate":null,"evnps_htmticketnum":null,"prehosptype_id":"1","evnps_hospcount":null,"evnps_timedesease":"1","okei_id":"101","evnps_isneglectedcase":null,"prehosptrauma_id":null,"evnps_isunlaw":null,"evnps_isunport":null,"entrancemodetype_id":null,"lpusection_pid":"560101000008502","medpersonal_pid":"560101000012497","medstafffact_pid":"560101000067794","lpusectionward_id":null,"prehosptoxic_id":null,"lpusectiontranstype_id":null,"diag_pid":"5664","diagsetphase_pid":"2","diagsetphase_aid":"2","evnps_phasedescr_pid":null,"evnps_isactive":null,"deseasetype_id":null,"tumorstage_id":null,"evnps_iszno":null,"evnps_isznoremove":null,"evnps_biopsydate":null,"diag_spid":null,"evnps_outcomedt":"2023-08-01 02:23:00","lpusection_eid":null,"prehospwaifrefusecause_id":"560101000000003","medpersonal_sid":"560101000012497","medpersonal_tid":null,"medicalcareformtype_id":"2","resultclass_id":null,"resultdeseasetype_id":null,"evnps_istransfcall":"2","prehospstatus_id":5,"evnps_iswaif":null,"prehospwaifarrive_id":null,"prehospwaifreason_id":null,"evnps_prehospwaifrefusedt":"2023-08-01 02:23:00","evnps_isprehospacceptrefuse":null,"evnps_prehospacceptrefusedt":null,"lpu_eid":null,"evnps_doctrans":null,"evnps_indexrep":null,"evnps_indexrepinreg":null,"evnps_notificationdt":null,"medstafffact_id":"560101000067794","evnps_phone":null,"evnps_policeman":null,"evnps_rfid":null,"evnps_cmptltdt":null}'
            )
        
