From 313e5868f1e895e726b57fc1b6178bd12c74d1e7 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 14 Dec 2022 13:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8E=86=E5=8F=B2=E5=99=A8?= =?UTF-8?q?=E5=AE=98=E5=BA=9F=E5=BC=83=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRaCIS.Core.Application.xml | 45 +++++++++++++++++++ IRaCIS.Core.Domain/SQLFile/Test.sql | 31 +++++++------ 2 files changed, 63 insertions(+), 13 deletions(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index e9a14208..ed4e2527 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -5766,6 +5766,21 @@ 位置 英文 + + + 分类 + + + + + 分类 英文 + + + + + 序号 + + 病灶类型 @@ -5796,6 +5811,21 @@ 病灶类型 + + + 分类 + + + + + 分类 英文 + + + + + 序号 + + 是否可编辑位置 @@ -5847,6 +5877,21 @@ OrganInfoAddOrEdit 列表查询参数模型 + + + 分类 + + + + + 分类 英文 + + + + + 序号 + + 是否可编辑位置 diff --git a/IRaCIS.Core.Domain/SQLFile/Test.sql b/IRaCIS.Core.Domain/SQLFile/Test.sql index ba94a219..e7edf931 100644 --- a/IRaCIS.Core.Domain/SQLFile/Test.sql +++ b/IRaCIS.Core.Domain/SQLFile/Test.sql @@ -1,4 +1,4 @@ ------2022-05-27------------------------ +-----2022-05-27------------------------ update DataInspection set BatchId=Id where BatchId is null @@ -12,14 +12,14 @@ update QCChallenge set ChallengeCode='Q'+ RIGHT('00000'+CAST( Code AS nvarchar(5 -----2022-08-11------------------------ update [dbo].[Site] set Code= convert(int,RIGHT(SiteCode,4)) -update Site set SiteName= substring(SiteName,1,charindex('ҽԺ',SiteName)+1),AliasName=substring(SiteName,charindex('ҽԺ',SiteName)+2,30) where SiteName like '%ҽԺ%ҽԺ' +update Site set SiteName= substring(SiteName,1,charindex('医院',SiteName)+1),AliasName=substring(SiteName,charindex('医院',SiteName)+2,30) where SiteName like '%医院%医院' -update Doctor set Physician='Chief Physician',PhysicianCN='ҽʦ' where RankId='dcbf4d1a-8373-4539-a0ae-1ba76d57bb48' -update Doctor set Physician='Deputy Chief Physician',PhysicianCN='ҽʦ' where RankId='3a6e3335-cea4-4803-a136-d6301883a937' -update Doctor set RankOther='Professor',RankOtherCN='' where RankId='dcbf4d1a-8373-4539-a0ae-1ba76d57bb48' -update Doctor set RankOther='Associate Professor',RankOtherCN='' where RankId='3a6e3335-cea4-4803-a136-d6301883a937' -update Doctor set Physician='Staff',PhysicianCN='ҽʦ' where RankId='82411c2e-9832-4c6f-a859-e3b6e796760d' +update Doctor set Physician='Chief Physician',PhysicianCN='主任医师' where RankId='dcbf4d1a-8373-4539-a0ae-1ba76d57bb48' +update Doctor set Physician='Deputy Chief Physician',PhysicianCN='副主任医师' where RankId='3a6e3335-cea4-4803-a136-d6301883a937' +update Doctor set RankOther='Professor',RankOtherCN='教授' where RankId='dcbf4d1a-8373-4539-a0ae-1ba76d57bb48' +update Doctor set RankOther='Associate Professor',RankOtherCN='副教授' where RankId='3a6e3335-cea4-4803-a136-d6301883a937' +update Doctor set Physician='Staff',PhysicianCN='医师' where RankId='82411c2e-9832-4c6f-a859-e3b6e796760d' update DataInspection set JsonDetail= replace(cast(JsonDetail as varchar(max)),'Insepection','CommonData') @@ -54,11 +54,11 @@ 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) - -----------------------------------------֮ǰ------------------------------------------------------------- + -----------------------------------------之前的------------------------------------------------------------- ---άsql +--无序维护sql update VisitTask set TaskBlindName='Follow Up ' from VisitTask INNER join ReadingQuestionCriterionTrial on VisitTask.TrialReadingCriterionId=ReadingQuestionCriterionTrial.Id @@ -66,7 +66,7 @@ INNER join SubjectVisit on VisitTask.SourceSubjectVisitId=SubjectVisit.Id where SubjectVisit.IsBaseLine=0 and ReadingQuestionCriterionTrial.IsReadingTaskViewInOrder=0 --- άsql +-- 有序维护sql update VisitTask set TaskBlindName='Follow Up '+ cast(sv.rn as varchar) from VisitTask join ReadingQuestionCriterionTrial on VisitTask.TrialReadingCriterionId=ReadingQuestionCriterionTrial.Id @@ -80,7 +80,7 @@ join SubjectVisit on VisitTask.SourceSubjectVisitId=SubjectVisit.Id where Su -----------------------------------------------޸ ---------------------------------------- +----------------------------------------------修改 ---------------------------------------- update Dictionary set code =0 where Id='15bb5529-a6fe-439f-5196-08da179a7080' update Dictionary set code =1 where Id='0628d7be-afba-4471-5197-08da179a7080' update Dictionary set code =2 where Id='41bfec4b-dbfb-401d-5198-08da179a7080' @@ -96,7 +96,7 @@ update ReadingQuestionCriterionTrial set DigitPlaces=-1 where DigitPlaces=3 ---Ƭ׼ά +--阅片标准维护 update DataInspection set ObjectRelationParentId3 = (select top 1 TrialReadingCriterionId from SubjectUser where Id =DataInspection.GeneralId) where EntityName='SubjectUser' update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from ReadingPeriodSet where Id =DataInspection.GeneralId) where EntityName='ReadingPeriodSet' update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from ReadModule where Id =DataInspection.GeneralId) where EntityName='ReadModule' @@ -108,7 +108,7 @@ update ReadingTableQuestionTrial set DictionaryCode='' where DictionaryCode is ---άRowInfoOrderMark +--维护RowInfo的OrderMark select * from ReadingTableAnswerRowInfo update ReadingTableAnswerRowInfo set ReadingTableAnswerRowInfo.OrderMark=ReadingQuestionTrial.OrderMark from ReadingQuestionTrial @@ -127,3 +127,8 @@ go ------------------------------------2022-12-13---------------------------- update ReadingQuestionSystem set DefaultValue='' update ReadingQuestionTrial set DefaultValue='' + + +delete OrganInfo where SystemCriterionId='B0450000-9B8E-98FA-6658-08DA4DAB1FAC' +delete OrganTrialInfo +    where (select count(1) as num from OrganInfo where OrganInfo.Id = OrganTrialInfo.OrganInfoId) = 0 \ No newline at end of file