@ -834,11 +834,11 @@ namespace Shentun.Peis.TransToWebPeis
await WebDb . Ado . ExecuteCommandAsync ( "INSERT INTO public.patient_register(patient_register_id, patient_register_no, patient_id, medical_times, customer_org_id, customer_org_group_id, medical_package_id," +
await WebDb . Ado . ExecuteCommandAsync ( "INSERT INTO public.patient_register(patient_register_id, patient_register_no, patient_id, medical_times, customer_org_id, customer_org_group_id, medical_package_id," +
"patient_name,sex_id, birth_date, age, job_card_no, medical_card_no, marital_status_id, medical_type_id, personnel_type_id, job_post, job_title, photo," +
"patient_name,sex_id, birth_date, age, job_card_no, medical_card_no, marital_status_id, medical_type_id, personnel_type_id, job_post, job_title, photo," +
" sex_hormone_term_id, interpose_measure, medical_conclusion_id, complete_flag, is_medical_start, medical_start_date, summary_date, is_audit, audit_date, is_vip, third_info,remark,medical_center_id," +
" sex_hormone_term_id, interpose_measure, medical_conclusion_id, complete_flag, is_medical_start, medical_start_date, summary_date, is_audit, audit_date, is_vip, third_info,remark,medical_center_id," +
"customer_org_register_id, concurrency_stamp, creation_time, creator_id, last_modification_time, last_modifier_id, audit_doctor_id,summary_doctor_id, his_patient_id,third_register_id) VALUES " +
"customer_org_register_id, concurrency_stamp, creation_time, creator_id, last_modification_time, last_modifier_id, audit_doctor_id,summary_doctor_id, his_patient_id,third_register_id,appoint_patient_register_id ) VALUES " +
"(@patient_register_id,@patient_register_no,@patient_id,@medical_times,@customer_org_id,@customer_org_group_id::uuid,@medical_package_id::uuid," +
"(@patient_register_id,@patient_register_no,@patient_id,@medical_times,@customer_org_id,@customer_org_group_id::uuid,@medical_package_id::uuid," +
"@patient_name,@sex_id,CAST(@birth_date as timestamp),@age,@job_card_no,@medical_card_no,@marital_status_id,@medical_type_id::uuid,@personnel_type_id::uuid,@job_post,@job_title,@photo," +
"@patient_name,@sex_id,CAST(@birth_date as timestamp),@age,@job_card_no,@medical_card_no,@marital_status_id,@medical_type_id::uuid,@personnel_type_id::uuid,@job_post,@job_title,@photo," +
"@sex_hormone_term_id::uuid,@interpose_measure,@medical_conclusion_id::uuid,@complete_flag,@is_medical_start,@medical_start_date,CAST(@summary_date as timestamp),@is_audit,CAST(@audit_date as timestamp),@is_vip,@third_info,@remark,@medical_center_id," +
"@sex_hormone_term_id::uuid,@interpose_measure,@medical_conclusion_id::uuid,@complete_flag,@is_medical_start,@medical_start_date,CAST(@summary_date as timestamp),@is_audit,CAST(@audit_date as timestamp),@is_vip,@third_info,@remark,@medical_center_id," +
"@customer_org_register_id,@concurrency_stamp,@creation_time,@creator_id,@last_modification_time,@last_modifier_id,@audit_doctor_id::uuid,@summary_doctor_id::uuid,@his_patient_id,@third_register_id);" ,
"@customer_org_register_id,@concurrency_stamp,@creation_time,@creator_id,@last_modification_time,@last_modifier_id,@audit_doctor_id::uuid,@summary_doctor_id::uuid,@his_patient_id,@third_register_id,@appoint_patient_register_id );" ,
new List < SugarParameter > ( ) {
new List < SugarParameter > ( ) {
new SugarParameter ( "patient_register_id" , patientRegisterEnt . Id ) ,
new SugarParameter ( "patient_register_id" , patientRegisterEnt . Id ) ,
new SugarParameter ( "patient_register_no" , patientRegisterEnt . PatientRegisterNo ) ,
new SugarParameter ( "patient_register_no" , patientRegisterEnt . PatientRegisterNo ) ,
@ -882,7 +882,8 @@ namespace Shentun.Peis.TransToWebPeis
new SugarParameter ( "audit_doctor_id" , patientRegisterEnt . AuditDoctorId ) ,
new SugarParameter ( "audit_doctor_id" , patientRegisterEnt . AuditDoctorId ) ,
new SugarParameter ( "summary_doctor_id" , patientRegisterEnt . SummaryDoctorId ) ,
new SugarParameter ( "summary_doctor_id" , patientRegisterEnt . SummaryDoctorId ) ,
new SugarParameter ( "his_patient_id" , patientRegisterEnt . HisPatientId ) ,
new SugarParameter ( "his_patient_id" , patientRegisterEnt . HisPatientId ) ,
new SugarParameter ( "third_register_id" , third_register_id )
new SugarParameter ( "third_register_id" , third_register_id ) ,
new SugarParameter ( "appoint_patient_register_id" , patientRegisterEnt . AppointPatientRegisterId )
} ) ;
} ) ;
#endregion
#endregion
@ -903,10 +904,10 @@ namespace Shentun.Peis.TransToWebPeis
#region register_check
#region register_check
await WebDb . Ado . ExecuteCommandAsync ( "INSERT INTO public.register_check(register_check_id, patient_register_id, check_request_no, third_info, complete_flag, critical_value, critical_value_flag, critical_value_process_content," +
await WebDb . Ado . ExecuteCommandAsync ( "INSERT INTO public.register_check(register_check_id, patient_register_id, check_request_no, third_info, complete_flag, critical_value, critical_value_flag, critical_value_process_content," +
"critical_value_process_flag, critical_value_process_doctor, critical_value_process_date, critical_value_create_date, check_doctor_id, check_date, is_audit," +
"critical_value_process_flag, critical_value_process_doctor, critical_value_process_date, critical_value_create_date, check_doctor_id, check_date, is_audit," +
" auditor_user_id, audit_time, concurrency_stamp, creation_time, creator_id, last_modification_time, last_modifier_id, exec_organization_unit_id) VALUES " +
" auditor_user_id, audit_time, concurrency_stamp, creation_time, creator_id, last_modification_time, last_modifier_id, exec_organization_unit_id,is_sign_in,sign_in_person,sign_in_time ) VALUES " +
"(@register_check_id,@patient_register_id,@check_request_no,@third_info,@complete_flag,@critical_value,@critical_value_flag,@critical_value_process_content," +
"(@register_check_id,@patient_register_id,@check_request_no,@third_info,@complete_flag,@critical_value,@critical_value_flag,@critical_value_process_content," +
"@critical_value_process_flag,@critical_value_process_doctor,CAST(@critical_value_process_date as timestamp),CAST(@critical_value_create_date as timestamp),@check_doctor_id,CAST(@check_date as timestamp),@is_audit," +
"@critical_value_process_flag,@critical_value_process_doctor,CAST(@critical_value_process_date as timestamp),CAST(@critical_value_create_date as timestamp),@check_doctor_id,CAST(@check_date as timestamp),@is_audit," +
"@auditor_user_id::uuid,CAST(@audit_time as timestamp),@concurrency_stamp,@creation_time,@creator_id,@last_modification_time,@last_modifier_id,@exec_organization_unit_id::uuid);" ,
"@auditor_user_id::uuid,CAST(@audit_time as timestamp),@concurrency_stamp,@creation_time,@creator_id,@last_modification_time,@last_modifier_id,@exec_organization_unit_id::uuid,@is_sign_in,@sign_in_person,@sign_in_time );" ,
new List < SugarParameter > ( ) {
new List < SugarParameter > ( ) {
new SugarParameter ( "register_check_id" , registerCheckWithDetail . Id ) ,
new SugarParameter ( "register_check_id" , registerCheckWithDetail . Id ) ,
new SugarParameter ( "patient_register_id" , registerCheckWithDetail . PatientRegisterId ) ,
new SugarParameter ( "patient_register_id" , registerCheckWithDetail . PatientRegisterId ) ,
@ -931,6 +932,9 @@ namespace Shentun.Peis.TransToWebPeis
new SugarParameter ( "last_modification_time" , registerCheckWithDetail . LastModificationTime ) ,
new SugarParameter ( "last_modification_time" , registerCheckWithDetail . LastModificationTime ) ,
new SugarParameter ( "last_modifier_id" , registerCheckWithDetail . LastModifierId ) ,
new SugarParameter ( "last_modifier_id" , registerCheckWithDetail . LastModifierId ) ,
new SugarParameter ( "exec_organization_unit_id" , registerCheckWithDetail . ExecOrganizationUnitId ) ,
new SugarParameter ( "exec_organization_unit_id" , registerCheckWithDetail . ExecOrganizationUnitId ) ,
new SugarParameter ( "is_sign_in" , registerCheckWithDetail . IsSignIn ) ,
new SugarParameter ( "sign_in_person" , registerCheckWithDetail . SignInPerson ) ,
new SugarParameter ( "sign_in_time" , registerCheckWithDetail . SignInTime )
} ) ;
} ) ;
#endregion
#endregion