private bool CheckPatientSex() { if ((CheckString.IsMatch(this.PatientSex, "[FMO]", true, 1, 1))) { return(true); } else { _logger.Error($"患者性別:{this.PatientSex} 1文字の半角英字(FMO)になっていません。"); return(false); } }
private bool CheckInspectionTypeName() { if ((CheckString.IsMatch(this.InspectionTypeName, ".*", false, 1, 32))) { return(true); } else { _logger.Error($"検査種別名称:{this.InspectionTypeName } 1文字以上,32文字以下の任意の文字列になっていません。"); return(false); } }
private bool CheckPatientNameKanji() { if (CheckString.IsMatch(this.PatientNameKanji, ".*", false, 1, 64)) { return(true); } else { _logger.Error($"患者漢字氏名:{this.PatientNameKanji} 1文字以上,64文字以下の任意の文字列になっていません。"); return(false); } }
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); } }
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); }