修改状态
parent
887be552a5
commit
282f40a623
|
@ -1148,7 +1148,8 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
|
||||
await _readingClinicalDataRepository.BatchUpdateNoTrackingAsync(x => x.ClinicalDataTrialSet.UploadRole == UploadRole.CRC && x.ReadingId == dbSubjectVisit.Id, x => new ReadingClinicalData()
|
||||
{
|
||||
IsSign = true
|
||||
IsSign = true,
|
||||
ReadingClinicalDataState=ReadingClinicalDataStatus.HaveSigned
|
||||
});
|
||||
|
||||
//var signSuccess = await _repository.UpdateFromQueryAsync<TrialSign>(t => t.Id == cRCRequestToQCCommand.SignId, u => new TrialSign() { IsCompleted = true });
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
|
||||
-- 20221223同步表数据
|
||||
-- Dictionary FrontAuditConfig Menu UserType UserTypeMenu ReadingQuestionSystem ReadingTableQuestionSystem OrganInfo ReadingQuestionCriterionSystem TumorAssessment
|
||||
-- 需要特别注意的表 CriterionNidus ReadingCriterionDictionary
|
||||
|
|
|
@ -54,6 +54,10 @@ select * from VisitTask where TrialReadingCriterionId is null
|
|||
update Site set Site.Code = (select b.code2 from (select Id,row_number() over(order by Site.SiteName) code2 from Site) b where b.Id =Site.Id)
|
||||
update Site set SiteCode= 'S'+ RIGHT('0000'+CAST(Site.Code as varchar(10)),4)
|
||||
|
||||
--不用同步
|
||||
update FrontAuditConfig set ValueCN='任务名称' where Value='TaskName' and ValueCN='访视/阅片期名称' and Code='TaskName'
|
||||
update FrontAuditConfig set ValueCN='任务盲态标识' where Value='TaskBlindName' and ValueCN='访视盲态名称' and Code='TaskBlindName'
|
||||
|
||||
-----------------------------------------之前的-------------------------------------------------------------
|
||||
|
||||
|
||||
|
@ -151,12 +155,11 @@ update DataInspection set VisitTaskId= substring(JsonDetail,CHARINDEX('VisitTask
|
|||
update DataInspection set SubjectVisitId=null where EntityName='ReadModule'
|
||||
update DataInspection set TrialReadingCriterionId=(select TrialReadingCriterionId from VisitTask where Id =VisitTaskId) where VisitTaskId is not null and TrialReadingCriterionId is null
|
||||
|
||||
--不用同步
|
||||
update FrontAuditConfig set ValueCN='任务名称' where Value='TaskName' and ValueCN='访视/阅片期名称' and Code='TaskName'
|
||||
update FrontAuditConfig set ValueCN='任务盲态标识' where Value='TaskBlindName' and ValueCN='访视盲态名称' and Code='TaskBlindName'
|
||||
|
||||
|
||||
--稽查bug 数据维护
|
||||
update DataInspection set TrialReadingCriterionId= substring(JsonDetail,CHARINDEX('TrialCriterionId":"',JsonDetail)+19,36) where EntityName='ReadingTableQuestionTrial'
|
||||
|
||||
update DataInspection set TrialReadingCriterionId= substring(JsonDetail,CHARINDEX('TrialCriterionId":"',JsonDetail)+19 +(DATALENGTH(JsonDetail)-LEN(cast([JsonDetail] as VARCHAR(1000)))),36) where EntityName='ReadingTableQuestionTrial'
|
||||
update DataInspection set TrialReadingCriterionId= substring(JsonDetail,CHARINDEX('ReadingQuestionCriterionTrialId":"',JsonDetail)+34,36) where EntityName='ReadingQuestionTrial'
|
||||
update DataInspection set TrialReadingCriterionId= GeneralId where EntityName='ReadingQuestionCriterionTrial'
|
||||
|
||||
|
|
|
@ -8,11 +8,11 @@ INNER join SubjectVisit on VisitTask.SourceSubjectVisitId=SubjectVisit.Id
|
|||
|
||||
|
||||
-- 有序维护sql
|
||||
update VisitTask set TaskBlindName='Follow Up '+ cast(sv.rn as varchar)
|
||||
update VisitTask set TaskBlindName='Follow-up '+ cast(sv.rn as varchar)
|
||||
from VisitTask
|
||||
join ReadingQuestionCriterionTrial on VisitTask.TrialReadingCriterionId=ReadingQuestionCriterionTrial.Id
|
||||
--join SubjectVisit on VisitTask.SourceSubjectVisitId=SubjectVisit.Id
|
||||
join ( select Id SubjectVisitId, IsBaseLine, ROW_NUMBER() over( partition by SubjectId order by VisitNum asc )-1 rn,VisitNum from SubjectVisit) sv on VisitTask.SourceSubjectVisitId=sv.SubjectVisitId
|
||||
join ( select Id SubjectVisitId, IsBaseLine, ROW_NUMBER() over( partition by SubjectId order by VisitNum asc )-1 rn,VisitNum from SubjectVisit where IsLostVisit=0) sv on VisitTask.SourceSubjectVisitId=sv.SubjectVisitId
|
||||
where sv.IsBaseLine=0 and ReadingQuestionCriterionTrial.IsReadingTaskViewInOrder=1
|
||||
|
||||
update VisitTask set TaskBlindName='Baseline' from VisitTask xiuga
|
||||
|
|
Loading…
Reference in New Issue