Beispiel #1
0
 public string GetJSONMedications(DataTable dtMedications, string EMRPatientID, string RequestID, string EMRID, string ModuleID, string UserID)
 {
     try
     {
         Medications objMedications = new Medications();
         string      JSONString     = objMedications.GenerateAPIJSONString(dtMedications, EMRPatientID, RequestID, EMRID, ModuleID, UserID);
         return(JSONString);
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #2
0
        //Data Source=WINDOWS-7J7SHKG\SQLEXPRESS;Initial Catalog=IntelliHStagingAthena;User ID=sa;Password=Sahil@123
        public DataTable GetMedications(string patientid, string departmentid, string stagingdbconnectionstring, string requestid)
        {
            try
            {
                parameters["patientid"]        = patientid;
                parameters["api_departmentid"] = departmentid;

                Medications objMedications = new Medications();
                DataTable   dtMedications  = new DataTable();
                dtMedications = objMedications.GetData(parameters);

                //Common objCommon = new Common();
                //objCommon.InsertRecords(dtMedications, "IntelliHAthenaMedications", stagingdbconnectionstring, requestid);

                return(dtMedications);
            }
            catch (Exception)
            {
                throw;
            }
        }