Пример #1
0
        public string addAdherenceHIVStatus(int patientId, int patientMasterVisitId, int createdBy, int AcceptedStatus, int DisclosureComplete)
        {
            IPatientEncounter       patientEncounter        = (IPatientEncounter)ObjectFactory.CreateInstance("BusinessProcess.CCC.BPatientEncounter, BusinessProcess.CCC");
            PatientEncounterManager patientEncounterManager = new PatientEncounterManager();

            encounterTypeId = patientEncounterManager.GetPatientEncounterId("EncounterType", "Adherence-Barriers");
            var foundEncounter = patientEncounterManager.GetEncounterIfExists(Convert.ToInt32(patientId), Convert.ToInt32(patientMasterVisitId), Convert.ToInt32(encounterTypeId));

            if (foundEncounter != null)
            {
                EncounterResult = foundEncounter.Id;
            }
            else
            {
                EncounterResult = patientEncounterManager.AddpatientEncounter(Convert.ToInt32(patientId), Convert.ToInt32(patientMasterVisitId),
                                                                              patientEncounterManager.GetPatientEncounterId("EncounterType", "Adherence-Barriers"), 203, createdBy);
            }
            if (EncounterResult > 0)
            {
                try
                {
                    var AL = new AdherenceLogic();
                    Result = AL.addAdherenceHIVStatus(patientId, patientMasterVisitId, createdBy, AcceptedStatus, DisclosureComplete);
                    if (Result > 0)
                    {
                        Msg = " HIV Status Added Successfully";
                    }
                }
                catch (Exception e)
                {
                    Msg = e.Message;
                }
            }
            return(Msg);
        }
Пример #2
0
        public List <HIVStatus> getHIVStatus(int patientId, int patientMasterVisitId)
        {
            var AL = new AdherenceLogic();
            List <HIVStatus> HIVStatusList = new List <HIVStatus>();

            HIVStatusList = AL.getHIVStatus(patientId, patientMasterVisitId);
            return(HIVStatusList);
        }
Пример #3
0
 public string addAdherenceDailyRoutine(int patientId, int patientMasterVisitId, int createdBy, string typicalDay, string medicineAdministration, string travelCase, string primaryCaregiver)
 {
     try
     {
         var AL = new AdherenceLogic();
         Result = AL.addDailyRoutine(patientId, patientMasterVisitId, createdBy, typicalDay, medicineAdministration, travelCase, primaryCaregiver);
         if (Result > 0)
         {
             Msg = "Daily routine added successfully";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #4
0
 public string updateAdherenceScreening(int patientId, int patientMasterVisitId, int createdBy, float total, string depressionSeverity, string recommendedManagement, int ScreeningId)
 {
     try
     {
         var AScreening = new AdherenceLogic();
         Result = AScreening.updateAdherenceScreening(patientId, patientMasterVisitId, createdBy, total, depressionSeverity, recommendedManagement, ScreeningId);
         if (Result > 0)
         {
             Msg = "Depression health screening updated";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #5
0
 public string updateReferrals(int patientId, int patientMasterVisitId, int createdBy, int patientReferred, int appointmentsAttended, string experience, int RefId)
 {
     try
     {
         var REFS = new AdherenceLogic();
         Result = REFS.updateReferrals(patientId, patientMasterVisitId, createdBy, patientReferred, appointmentsAttended, experience, RefId);
         if (Result > 0)
         {
             Msg = "Referrals and networks updated";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #6
0
 public string updateDailyRoutine(int patientId, int patientMasterVisitId, int createdBy, string typicalDay, string medicineAdministration, string travelCase, string primaryCaregiver, int DRId)
 {
     try
     {
         var DR = new AdherenceLogic();
         Result = DR.updateDailyRoutine(patientId, patientMasterVisitId, createdBy, typicalDay, medicineAdministration, travelCase, primaryCaregiver, DRId);
         if (Result > 0)
         {
             Msg = "Daily routine updated";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #7
0
 public string updateHIVStatus(int patientId, int patientMasterVisitId, int createdBy, int AcceptedStatus, int DisclosureComplete, int statusId)
 {
     try
     {
         var HS = new AdherenceLogic();
         Result = HS.updateHIVStatus(patientId, patientMasterVisitId, createdBy, AcceptedStatus, DisclosureComplete, statusId);
         if (Result > 0)
         {
             Msg = "Awareness of HIV status updated";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #8
0
 public string addAdherenceScreen(int patientId, int patientMasterVisitId, int createdBy, float total, string depressionSeverity, string recommendedManagement)
 {
     try
     {
         var AL = new AdherenceLogic();
         Result = AL.addAdherenceScreening(patientId, patientMasterVisitId, createdBy, total, depressionSeverity, recommendedManagement);
         if (Result > 0)
         {
             Msg = "Screening added successfully";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #9
0
 public string addAdherenceReferrals(int patientId, int patientMasterVisitId, int createdBy, int patientReferred, int appointmentsAttended, string experience)
 {
     try
     {
         var AL = new AdherenceLogic();
         Result = AL.addReferrals(patientId, patientMasterVisitId, createdBy, patientReferred, appointmentsAttended, experience);
         if (Result > 0)
         {
             Msg = "Referrals and Networks added successfully";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #10
0
 public string addUnderstandHIV(int patientId, int patientMasterVisitId, int createdBy, int understandHIVEffects, int understandART, int understandSideEffects,
                                int understandAdherenceBenefits, int understandConsequences)
 {
     try
     {
         var AL = new AdherenceLogic();
         Result = AL.addUnderstandingHIV(patientId, patientMasterVisitId, createdBy, understandHIVEffects, understandART, understandSideEffects, understandAdherenceBenefits, understandConsequences);
         if (Result > 0)
         {
             Msg = "Understanding HIV infection and ART saved successfully";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #11
0
 public string updateUnderstandingHIV(int patientId, int patientMasterVisitId, int createdBy, int understandHIVEffects, int understandART, int understandSideEffects,
                                      int understandAdherenceBenefits, int understandConsequences, int uId)
 {
     try
     {
         var UH = new AdherenceLogic();
         Result = UH.updateUnderstandingHIV(patientId, patientMasterVisitId, createdBy, understandHIVEffects, understandART, understandSideEffects, understandAdherenceBenefits, understandConsequences, uId);
         if (Result > 0)
         {
             Msg = "Understanding of HIV infection and ART updated";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Пример #12
0
 public string updatePsychosocialCircumstances(int patientId, int patientMasterVisitId, int CreatedBy, string livingWith, string aware, int supportSystem, string supportSystemNotes, int relationshipChanges,
                                               string relationshipChangesNotes, int bothered, string botheredNotes, int treatedDifferently, string treatedDifferentlyNotes, int interferenceStigma, string interferenceStigmaNotes,
                                               int stoppedMedication, string stoppedMedicationNotes, int PCId)
 {
     try
     {
         var PC = new AdherenceLogic();
         Result = PC.updatePsychosocialCircumetances(patientId, patientMasterVisitId, CreatedBy, livingWith, aware, supportSystem, supportSystemNotes, relationshipChanges,
                                                     relationshipChangesNotes, bothered, botheredNotes, treatedDifferently, treatedDifferentlyNotes, interferenceStigma, interferenceStigmaNotes,
                                                     stoppedMedication, stoppedMedicationNotes, PCId);
         if (Result > 0)
         {
             Msg = "Psychosocial circumstances updated";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }