private string SaveData(string nodeJson, int ptn_pk, int visitPK)
        {
            string       result      = string.Empty;
            ResponseType ObjResponse = new ResponseType();

            try
            {
                HIVCE.Common.Entities.ARTReadinessAssessment treatmentpreparation = SerializerUtil.ConverToObject <HIVCE.Common.Entities.ARTReadinessAssessment>(nodeJson);
                IARTReadinessAssessment blObj = (IARTReadinessAssessment)ObjectFactory.CreateInstance("HIVCE.BusinessLayer.BLARTReadinessAssessment, HIVCE.BusinessLayer");
                treatmentpreparation.Ptn_pk   = ptn_pk;
                treatmentpreparation.Visit_Id = visitPK;

                bool flag = blObj.SaveUpdateARTReadinessAssessment(treatmentpreparation);
                if (flag)
                {
                    ObjResponse.Success = EnumUtil.GetEnumDescription(Success.True);
                }
                else
                {
                    ObjResponse.Success = EnumUtil.GetEnumDescription(Success.False);
                }
            }
            catch (Exception ex)
            {
                ObjResponse.ErrorMessage = ex.Message;
                ObjResponse.Success      = EnumUtil.GetEnumDescription(Success.False);
            }
            finally
            {
            }

            result = SerializerUtil.ConverToJson <ResponseType>(ObjResponse);
            return(result);
        }
        private string GetARTReadinessAssessment(int ptn_pk, int visitPK)
        {
            string result = string.Empty;

            try
            {
                IARTReadinessAssessment blObj = (IARTReadinessAssessment)ObjectFactory.CreateInstance("HIVCE.BusinessLayer.BLARTReadinessAssessment, HIVCE.BusinessLayer");
                HIVCE.Common.Entities.ARTReadinessAssessment objTP = blObj.GetARTReadinessAssessment(ptn_pk, visitPK);
                result = SerializerUtil.ConverToJson <HIVCE.Common.Entities.ARTReadinessAssessment>(objTP);
            }
            catch (Exception ex)
            {
                ///CLogger.WriteLog(ELogLevel.ERROR, "GetAnnouncements() exception: " + ex.ToString());
                ResponseType response = new ResponseType()
                {
                    Success = EnumUtil.GetEnumDescription(Success.False)
                };
                result = SerializerUtil.ConverToJson <ResponseType>(response);
            }
            finally
            {
            }
            return(result);
        }