Example #1
0
 private bool CheckPatientSex()
 {
     if ((CheckString.IsMatch(this.PatientSex, "[FMO]", true, 1, 1)))
     {
         return(true);
     }
     else
     {
         _logger.Error($"患者性別:{this.PatientSex} 1文字の半角英字(FMO)になっていません。");
         return(false);
     }
 }
Example #2
0
 private bool CheckPatientNameKana()
 {
     if (CheckString.IsKataKana(this.PatientNameKana, false, 1, 64))
     {
         return(true);
     }
     else
     {
         _logger.Error($"患者カナ氏名:{this.PatientNameKana} 1文字以上,64文字以下の任意の文字列になっていません。");
         return(false);
     }
 }
Example #3
0
 private bool CheckPatientBirth()
 {
     if ((CheckString.IsDateTime(this.PatientBirth, "yyyyMMdd")))
     {
         return(true);
     }
     else
     {
         _logger.Error($"患者生年月日:{this.PatientBirth} 有効な日付を表すyyyymmdd形式の半角数字列になっていません。");
         return(false);
     }
 }
Example #4
0
 private bool CheckPatientId()
 {
     if ((CheckString.IsAlphaNumericOnly(this.PatientId, true, 1, 10)))
     {
         return(true);
     }
     else
     {
         _logger.Error($"患者ID:{this.PatientId} 10文字の半角英数字列(患者基本属性データの一意な識別子)になっていません。");
         return(false);
     }
 }
Example #5
0
 private bool CheckPatientNameKanji()
 {
     if (CheckString.IsMatch(this.PatientNameKanji, ".*", false, 1, 64))
     {
         return(true);
     }
     else
     {
         _logger.Error($"患者漢字氏名:{this.PatientNameKanji} 1文字以上,64文字以下の任意の文字列になっていません。");
         return(false);
     }
 }
Example #6
0
 private bool CheckInspectionTypeName()
 {
     if ((CheckString.IsMatch(this.InspectionTypeName, ".*", false, 1, 32)))
     {
         return(true);
     }
     else
     {
         _logger.Error($"検査種別名称:{this.InspectionTypeName } 1文字以上,32文字以下の任意の文字列になっていません。");
         return(false);
     }
 }
Example #7
0
 private bool CheckInspectionTypeCode()
 {
     if ((CheckString.IsAlphaNumericOnly(this.InspectionTypeCode, false, 1, 8)))
     {
         return(true);
     }
     else
     {
         _logger.Error($"検査種別コード:{this.InspectionTypeCode} 1文字以上、8文字以下の半角英数字列になっていません。");
         return(false);
     }
 }
Example #8
0
 private bool CheckProcessingType()
 {
     if ((CheckString.IsMatch(this.ProcessingType, "[1-3]", true, 1, 1)))
     {
         return(true);
     }
     else
     {
         _logger.Error($"処理区分:{this.ProcessingType} 文字の半角数字(1,2,3)のいずれかになっていません。");
         return(false);
     }
 }
Example #9
0
 private bool CheckStudyDate()
 {
     if ((CheckString.IsDateTime(this.StudyDate, "yyyyMMdd")))
     {
         return(true);
     }
     else
     {
         _logger.Error($"検査日付:{this.StudyDate} 有効な日付を表すyyyymmdd形式の半角数字列になっていません。");
         return(false);
     }
 }
Example #10
0
 private bool CheckOrderNo()
 {
     if ((CheckString.IsAlphaNumericOnly(this.OrderNo, true, 1, 8)))
     {
         return(true);
     }
     else
     {
         _logger.Error($"オーダ番号:{this.OrderNo} 8文字の半角英数字になっていません。");
         return(false);
     }
 }
Example #11
0
        private bool CheckMenuNames()
        {
            foreach (var menuName in this.MenuNames)
            {
                if ((CheckString.IsMatch(menuName, ".*", false, 1, 32)))
                {
                    return(true);
                }
                else
                {
                    _logger.Error($"撮影項目名称:{menuName } 1文字以上,32文字以下の任意の文字列になっていません。");
                    return(false);
                }
            }

            return(false);
        }
Example #12
0
        private bool CheckMenuCodes()
        {
            foreach (var menuCode in this.MenuCodes)
            {
                if ((CheckString.IsAlphaNumericOnly(menuCode, false, 1, 8)))
                {
                    return(true);
                }
                else
                {
                    _logger.Error($"撮影項目コード:{menuCode} 1文字以上、8文字以下の半角英数字列になっていません。");
                    return(false);
                }
            }

            return(false);
        }