
            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 := '110101366463467',
                pmUser_id := '406391163805',
                params := '{"evnps_setdt":"2023-07-26 22:35:00","evnps_disdt":"2023-07-27 06:59:24","evnps_diddt":null,"evnps_issigned":null,"evnps_signdt":null,"pmuser_signid":null,"lpu_id":"3598","personevn_id":"110101015965494","server_id":"0","morbus_id":null,"evnstatus_id":null,"evnps_statusdate":null,"evnps_iscont":"1","evnps_numcard":"19877","paytype_id":"110101000000108","evnps_iswithoutdirection":"1","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":null,"diag_eid":"13087","diagsetphase_did":null,"evnps_phasedescr_did":null,"prehosparrive_id":"1","cmpcallcard_id":null,"evnps_codeconv":null,"evnps_numconv":null,"evnps_isplambulance":"1","evnps_isimperhosp":"1","evnps_isshortvolume":"1","evnps_iswrongcure":"1","evnps_isdiagmismatch":"1","evnps_htmbegdate":null,"evnps_htmhospdate":null,"evnps_htmticketnum":null,"prehosptype_id":"1","evnps_hospcount":"1","evnps_timedesease":null,"okei_id":"100","evnps_isneglectedcase":null,"prehosptrauma_id":"6","evnps_isunlaw":"1","evnps_isunport":null,"entrancemodetype_id":null,"lpusection_pid":"110101000001214","medpersonal_pid":"110101000017831","medstafffact_pid":"110101000275148","lpusectionward_id":null,"prehosptoxic_id":null,"lpusectiontranstype_id":"2","diag_pid":"9823","diagsetphase_pid":"1","diagsetphase_aid":"1","evnps_phasedescr_pid":null,"evnps_isactive":"2","deseasetype_id":"3","tumorstage_id":null,"evnps_iszno":"1","evnps_isznoremove":null,"evnps_biopsydate":null,"diag_spid":null,"evnps_outcomedt":"2023-07-27 06:59:24","lpusection_eid":null,"prehospwaifrefusecause_id":"3","medpersonal_sid":null,"medpersonal_tid":null,"medicalcareformtype_id":null,"resultclass_id":null,"resultdeseasetype_id":null,"evnps_istransfcall":"1","prehospstatus_id":5,"evnps_iswaif":"1","prehospwaifarrive_id":null,"prehospwaifreason_id":null,"evnps_prehospwaifrefusedt":"2023-07-27 06:59:24","evnps_isprehospacceptrefuse":null,"evnps_prehospacceptrefusedt":null,"lpu_eid":null,"evnps_doctrans":null,"evnps_indexrep":null,"evnps_indexrepinreg":null,"evnps_notificationdt":null,"medstafffact_id":null,"evnps_phone":null,"evnps_policeman":null,"evnps_rfid":null,"evnps_cmptltdt":null}'
            )
        
