public static void RunListTest() { try { icdData = DataUtility.ReadFeedDataFileLines(@"F:\MyPKSolutions\TEST\IMEDEX\TestFiles\ICDData.txt"); System.Console.WriteLine("Contents of ICDData = "); foreach (string line in icdData) { // Use a tab to indent each line of the file. //Console.WriteLine("\t" + line); Console.WriteLine(line); } ndcData = DataUtility.ReadFeedDataFileLines(@"F:\MyPKSolutions\TEST\IMEDEX\TestFiles\NDCData.txt"); List <string> ndcColumnNames = new List <string>() { "PA", "NDC", "AMT" }; List <InputPatientNDC> ndcDataList = IMedXUtility.PrepareNDCEntries(ndcData, ndcColumnNames); foreach (string line in ndcData) { // Use a tab to indent each line of the file. //Console.WriteLine("\t" + line); Console.WriteLine(line); } } catch (Exception ex) { throw ex; } }
public static List <InputPatientNDC> GetPatientNDCDataList() { try { ndcData = DataUtility.ReadFeedDataFileLines(@"F:\MyPKSolutions\TEST\IMEDEX\TestFiles\NDCData.txt"); List <string> ndcColumnNames = new List <string>() { "PA", "NDC", "AMT" }; List <InputPatientNDC> patientNDCDataList = IMedXUtility.PrepareNDCEntries(ndcData, ndcColumnNames); return(patientNDCDataList); } catch (Exception ex) { throw ex; } }
public IActionResult GetPatientDataCurrent([FromBody] InputRequestData reqData) { List <IMedXPatientData> patientdata = new List <IMedXPatientData>(); try { List <InputPatientICD> inputPatientICD = IMedXUtility.PrepareICDEntries(reqData.icdFeedData, reqData.icdColumnNames); List <InputPatientNDC> inputPatientNDC = IMedXUtility.PrepareNDCEntries(reqData.ndcFeedData, reqData.ndcColumnNames); patientdata = IMedXUtility.MergePatientData(inputPatientICD, inputPatientNDC); return(Ok(patientdata)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }