public async Task <DetectEntitiesV2Response> DetectEntities(string text, Rootpath rootpath) { _rootpath = rootpath; var response = await LoadEntityFromFile(); response.HttpStatusCode = System.Net.HttpStatusCode.OK; return(response); }
public DrugSuggestionAIService(IPatientService patientService, IProblemService problemService, IHostingEnvironment env, RootConfiguration rootConfiguration) { _patientService = patientService; _problemService = problemService; _rootConfiguration = rootConfiguration; _rootpath = _rootpath ?? new Rootpath(); _rootpath.ContentRootPath = env.ContentRootPath; _rootpath.WebRootPath = env.WebRootPath; }
public ClinicalNotesExtractionService( ComprehendMedicalService comprehendMedicalService, ComprehendMedicalServiceMock comprehendMedicalServiceMock, IHostingEnvironment env, RootConfiguration rootConfiguration) { _comprehendMedicalService = comprehendMedicalService; _comprehendMedicalServiceMock = comprehendMedicalServiceMock; _rootpath = _rootpath ?? new Rootpath(); _rootpath.ContentRootPath = env.ContentRootPath; _rootpath.WebRootPath = env.WebRootPath; _rootConfiguration = rootConfiguration; }