From 05a9ef9410b6cfd7bbf10e72a0dc5bb8cbb4092f Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Mon, 22 May 2023 10:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9indication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TrialSiteUser/DTO/TrialViewModel.cs | 2 + .../SQLFile/4.21号发布后维护.sql | 49 +++++++++++++++++++ IRaCIS.Core.Domain/Trial/Trial.cs | 2 + 3 files changed, 53 insertions(+) diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs index 6a9785e1e..66397ab3e 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs @@ -15,6 +15,8 @@ namespace IRaCIS.Application.Contracts public string TrialCode { get; set; } = string.Empty; public string Indication { get; set; } = string.Empty; + public int IndicationEnum { get; set; } + //public Guid? ReviewTypeId { get; set; } = Guid.Empty; //public Guid? CriterionId { get; set; } = Guid.Empty; diff --git a/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql b/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql index 1d9b8f282..77b3e0341 100644 --- a/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql +++ b/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql @@ -73,6 +73,55 @@ update DataInspection SET Identification='ReadingTrialCriterionDictionary/Add/G +--国际化indication 维护 +UPDATE Trial SET IndicationEnum = CASE + WHEN Indication = '肺癌' THEN 0 + WHEN Indication = '实体瘤' THEN 1 + WHEN Indication = '淋巴瘤' THEN 2 + WHEN Indication = '乳腺癌' THEN 3 + WHEN Indication = '白血病' THEN 4 + WHEN Indication = '胃癌' THEN 5 + WHEN Indication = '肝癌' THEN 6 + WHEN Indication = '骨髓癌' THEN 7 + WHEN Indication = '肠癌' THEN 8 + WHEN Indication = '前列腺癌' THEN 9 + WHEN Indication = '肾癌' THEN 10 + WHEN Indication = '宫颈癌' THEN 11 + WHEN Indication = '头颈部癌' THEN 12 + WHEN Indication = '卵巢癌' THEN 13 + WHEN Indication = '胆癌' THEN 14 + WHEN Indication = '食管癌' THEN 15 + WHEN Indication = '腹膜癌' THEN 16 + WHEN Indication = '上皮癌' THEN 17 + WHEN Indication = '黑色素瘤' THEN 18 + WHEN Indication = '甲状腺癌' THEN 19 + WHEN Indication = '输卵管癌' THEN 20 + WHEN Indication = '胰腺癌' THEN 21 + WHEN Indication = '膀胱癌' THEN 22 + WHEN Indication = '鼻咽癌' THEN 23 + WHEN Indication = '胶质瘤' THEN 24 + WHEN Indication = '子宫癌' THEN 25 + WHEN Indication = '尿道癌' THEN 26 + WHEN Indication = '软组织肉瘤' THEN 27 + WHEN Indication = '神经内分泌瘤' THEN 28 + WHEN Indication = '睾丸癌' THEN 29 + WHEN Indication = '骨肉瘤' THEN 30 + WHEN Indication = '间皮瘤' THEN 31 + WHEN Indication = '绒毛膜病' THEN 32 + WHEN Indication = '胃肠道间质瘤' THEN 33 + WHEN Indication = '骨癌' THEN 34 + WHEN Indication = '脑瘤' THEN 35 + WHEN Indication = '胸腺瘤' THEN 36 + WHEN IndicationTypeId = '437a81b3-c5ad-49fd-82a1-8f441c4ba8da' THEN 37 + WHEN IndicationTypeId = '433d9801-5fa0-42bb-604b-08d9c1232c4f' THEN 38 + WHEN IndicationTypeId = 'a5fdd212-a716-4df4-604c-08d9c1232c4f' THEN 39 + ELSE IndicationEnum + END; + + select DISTINCT IndicationEnum ,Indication from Trial + + + diff --git a/IRaCIS.Core.Domain/Trial/Trial.cs b/IRaCIS.Core.Domain/Trial/Trial.cs index b886867f2..c5e627c91 100644 --- a/IRaCIS.Core.Domain/Trial/Trial.cs +++ b/IRaCIS.Core.Domain/Trial/Trial.cs @@ -325,6 +325,8 @@ namespace IRaCIS.Core.Domain.Models public string BlindFollowUpPrefix { get; set; } = "Follow-up"; + public int IndicationEnum { get; set; } = -1; + #region ʼ /// /// ˺