Example #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;
     }
 }
Example #2
0
        //Data Source=WINDOWS-7J7SHKG\SQLEXPRESS;Initial Catalog=IntelliHStagingdrchrono;User ID=sa;Password=Sahil@123
        public DataTable GetMedications(string patientid, string stagingdbconnectionstring, string requestid, string accesstoken)
        {
            try
            {
                parameters["access_token"] = accesstoken;
                parameters["patientid"]    = patientid;

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

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

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