|
|
|
@ -36,7 +36,10 @@ JOIN register_check_asbitem on register_check.id = register_check_asbitem.regist |
|
|
|
JOIN asbitem on register_check_asbitem.asbitem_id = asbitem.id |
|
|
|
JOIN item_type on asbitem.item_type_id = item_type.id |
|
|
|
where patient_register.id = @PatientRegisterId and |
|
|
|
item_type.is_check_request = 'Y' |
|
|
|
item_type.is_check_request = 'Y' and |
|
|
|
(patient_register.complete_flag = '0' or |
|
|
|
patient_register.complete_flag = '1' or |
|
|
|
patient_register.complete_flag = '2') |
|
|
|
";
|
|
|
|
var pacsRequestForResultImportPlugInss = (await conn.QueryAsync<PacsRequestForImportResultPlugIns>(sql, |
|
|
|
new { PatientRegisterId = patientRegisterId })).ToList(); |
|
|
|
@ -57,7 +60,11 @@ JOIN register_check on patient_register.id = register_check.patient_register_id |
|
|
|
JOIN register_check_asbitem on register_check.id = register_check_asbitem.register_check_id |
|
|
|
JOIN asbitem on register_check_asbitem.asbitem_id = asbitem.id |
|
|
|
JOIN item_type on asbitem.item_type_id = item_type.id |
|
|
|
where item_type.is_check_request = 'Y' and |
|
|
|
where |
|
|
|
item_type.is_check_request = 'Y' and |
|
|
|
(patient_register.complete_flag = '0' or |
|
|
|
patient_register.complete_flag = '1' or |
|
|
|
patient_register.complete_flag = '2') and |
|
|
|
patient_register.medical_start_date >@StartDate and |
|
|
|
register_check.creation_time >@StartDate |
|
|
|
ORDER BY register_check.patient_register_id |
|
|
|
|