Example #1
0
        public MemberCaseCarePlan(Application applicationReference, Mercury.Server.Application.MemberCaseCarePlan serverObject)
        {
            BaseConstructor(applicationReference, serverObject);


            MemberCaseId = serverObject.MemberCaseId;

            carePlanId = serverObject.CarePlanId;

            status = serverObject.Status;


            addedDate = serverObject.AddedDate;

            EffectiveDate = serverObject.EffectiveDate;

            TerminationDate = serverObject.TerminationDate;

            careOutcomeId = serverObject.CareOutcomeId;


            goals = new List <MemberCaseCarePlanGoal> ();

            foreach (Server.Application.MemberCaseCarePlanGoal currentServerGoal in serverObject.Goals)
            {
                MemberCaseCarePlanGoal memberCaseCarePlanGoal = new MemberCaseCarePlanGoal(application, currentServerGoal);

                memberCaseCarePlanGoal.MemberCaseCarePlan = this;

                goals.Add(memberCaseCarePlanGoal);
            }


            return;
        }
Example #2
0
        public new MemberCaseCarePlanGoal Copy()
        {
            Server.Application.MemberCaseCarePlanGoal serverObject = (Server.Application.MemberCaseCarePlanGoal)ToServerObject();

            MemberCaseCarePlanGoal copiedObject = new MemberCaseCarePlanGoal(application, serverObject);

            return(copiedObject);
        }
Example #3
0
        public Boolean IsEqual(MemberCaseCarePlanGoal compareObject)
        {
            Boolean isEqual = base.IsEqual((CarePlanGoal)compareObject);


            isEqual &= (compareObject.CarePlanGoalId == CarePlanGoalId);

            isEqual &= (compareObject.MemberCaseCarePlanId == MemberCaseCarePlanId);

            isEqual &= (compareObject.Status == Status);


            return(isEqual);
        }
Example #4
0
        public MemberCaseCarePlanGoal Goal(Int64 forCarePlanGoalId)
        {
            MemberCaseCarePlanGoal goal = null;


            foreach (MemberCaseCarePlanGoal currentCarePlanGoal in Goals)
            {
                if (currentCarePlanGoal.Id == forCarePlanGoalId)
                {
                    goal = currentCarePlanGoal;

                    break;
                }
            }

            return(goal);
        }
Example #5
0
        public MemberCaseCarePlanGoal FindMemberCaseCarePlanGoal(Int64 memberCaseCarePlanGoalId)
        {
            MemberCaseCarePlanGoal memberCaseCarePlanGoal = null;


            foreach (MemberCaseCarePlan currentCarePlan in CarePlans)
            {
                if (currentCarePlan.ContainsGoal(memberCaseCarePlanGoalId))
                {
                    memberCaseCarePlanGoal = currentCarePlan.Goal(memberCaseCarePlanGoalId);

                    break;
                }
            }


            return(memberCaseCarePlanGoal);
        }
        public void AddMemberCaseCarePlanGoal(MemberCaseCarePlanGoal forMemberCaseCarePlanGoal)
        {
            foreach (MemberCaseCarePlanAssessmentCareMeasureGoal currentGoal in goals)
            {
                if (currentGoal.MemberCaseCarePlanGoalId == forMemberCaseCarePlanGoal.Id)
                {
                    return;
                }
            }

            MemberCaseCarePlanAssessmentCareMeasureGoal goal = new MemberCaseCarePlanAssessmentCareMeasureGoal(application);

            goal.MemberCaseCarePlanAssessmentCareMeasureId = Id;

            goal.MemberCaseCarePlanAssessmentCareMeasure = this;

            goal.SetMemberCaseCarePlanGoal(forMemberCaseCarePlanGoal);

            goals.Add(goal);

            return;
        }
        public void SetMemberCaseCarePlanGoal(MemberCaseCarePlanGoal forMemberCaseCarePlanGoal)
        {
            MemberCaseCarePlanGoalId = forMemberCaseCarePlanGoal.Id;

            return;
        }