Ejemplo n.º 1
0
 public static List <InputPatientICD> GetPatientICDDataList()
 {
     try
     {
         icdData = DataUtility.ReadFeedDataFileLines(@"F:\MyPKSolutions\TEST\IMEDEX\TestFiles\ICDData.txt");
         List <string> icdColumnNames = new List <string>()
         {
             "PA", "DOC", "ICD"
         };
         List <InputPatientICD> patientICDDataList = IMedXUtility.PrepareICDEntries(icdData, icdColumnNames);
         return(patientICDDataList);
     }
     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));
            }
        }