Esempio n. 1
0
        public string GetCurrentPatientARVUseHistory(int patientId)
        {
            try
            {
                var patientArvHistory = new PatientArvHistoryManager();
                var arvHistory        = patientArvHistory.GetPatientArtUseHistory(patientId);
                //_jsonMessage = JsonConvert.SerializeObject(arvHistory);
                _jsonMessage = new JavaScriptSerializer().Serialize(arvHistory);
            }
            catch (Exception e)
            {
                _jsonMessage = e.Message;
            }

            return(_jsonMessage);
        }
Esempio n. 2
0
 public string GetPatientPriorArvHistory(int patientId)
 {
     try
     {
         var patientArvHistory = new PatientArvHistoryManager();
         var arvHistory        = patientArvHistory.GetPatientArtUseHistory(patientId);
         foreach (var item in arvHistory)
         {
             _jsonMessage += "<tr> <td align='left'>" + item.Purpose + "</td> <td align='left'>" + item.Regimen + "</td> <td align='left'>" + item.DateLastUsed.ToString("dd-MMM-yyyy") + "</td> </tr>";
         }
         // _jsonMessage=JsonConvert.SerializeObject(patientArvHistory.GetPatientArtUseHistory(patientId))
     }
     catch (Exception e)
     {
         _jsonMessage = e.Message;
     }
     return(_jsonMessage);
 }