|
@@ -51,6 +51,7 @@ namespace WingAIDiagnosisService.Service
|
|
|
static HttpClient _httpClient = new HttpClient();
|
|
|
private IAuthenticationService _authenticationService;
|
|
|
private IStorageService _storageService;
|
|
|
+ private readonly string _carotidName = "CarotidPlaqueDetect";
|
|
|
|
|
|
/// <summary>
|
|
|
/// Init service
|
|
@@ -92,7 +93,19 @@ namespace WingAIDiagnosisService.Service
|
|
|
{
|
|
|
var moduleNames = AIDiagSystem.GetValidModuleNamesForVclound() ?? new List<EnumAIModuleNames>();
|
|
|
var resultData = moduleNames.Select(x => x.ToString()).ToList();
|
|
|
- return await Task.FromResult(resultData);
|
|
|
+ if (!resultData.Contains(_carotidName))
|
|
|
+ {
|
|
|
+ var carotid = resultData.FirstOrDefault(x => x == "CarotidArtery");
|
|
|
+ if (carotid == null)
|
|
|
+ {
|
|
|
+ resultData.Add(_carotidName);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ carotid = _carotidName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return await Task.FromResult(resultData.Distinct().ToList());
|
|
|
}
|
|
|
catch (Exception)
|
|
|
{
|