public void SetCareMeasure(CareMeasure forCareMeasure)
        {
            careMeasureDomainId = forCareMeasure.CareMeasureDomainId;

            careMeasureDomainName = forCareMeasure.CareMeasureDomainName;

            careMeasureClassId = forCareMeasure.CareMeasureClassId;

            careMeasureClassName = forCareMeasure.CareMeasureClassName;

            careMeasureId = forCareMeasure.Id;

            Name = forCareMeasure.Name;

            Description = forCareMeasure.Description;


            // CREATE COMPONENTS HERE

            foreach (CareMeasureComponent currentComponent in forCareMeasure.Components)
            {
                MemberCaseCarePlanAssessmentCareMeasureComponent careMeasureComponent = new MemberCaseCarePlanAssessmentCareMeasureComponent(application);

                careMeasureComponent.MemberCaseCarePlanAssessmentCareMeasureId = Id;

                careMeasureComponent.MemberCaseCarePlanAssessmentCareMeasure = this;

                careMeasureComponent.SetCareMeasureComponent(currentComponent);

                components.Add(careMeasureComponent);
            }

            return;
        }
예제 #2
0
        public Boolean IsEqual(MemberCaseCarePlanAssessmentCareMeasureComponent compareObject)
        {
            Boolean isEqual = base.IsEqual((CoreObject)compareObject);

            // TODO:

            return(isEqual);
        }
예제 #3
0
        public MemberCaseCarePlanAssessmentCareMeasureComponent Copy()
        {
            Server.Application.MemberCaseCarePlanAssessmentCareMeasureComponent serverObject = (Server.Application.MemberCaseCarePlanAssessmentCareMeasureComponent)ToServerObject();

            MemberCaseCarePlanAssessmentCareMeasureComponent copiedObject = new MemberCaseCarePlanAssessmentCareMeasureComponent(application, serverObject);

            return(copiedObject);
        }
        public void MapFromServerObject(Server.Application.MemberCaseCarePlanAssessmentCareMeasure serverObject)
        {
            base.MapFromServerObject((Server.Application.CoreObject)serverObject);


            MemberCaseCarePlanAssessmentId = serverObject.MemberCaseCarePlanAssessmentId;

            CareMeasureDomainId = serverObject.CareMeasureDomainId;

            CareMeasureDomainName = serverObject.CareMeasureDomainName;

            CareMeasureClassId = serverObject.CareMeasureClassId;

            CareMeasureClassName = serverObject.CareMeasureClassName;

            CareMeasureId = serverObject.CareMeasureId;

            TargetValue = serverObject.TargetValue;


            Goals = new List <MemberCaseCarePlanAssessmentCareMeasureGoal> ();

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

                assessmentCareGoal.MemberCaseCarePlanAssessmentCareMeasure = this;

                Goals.Add(assessmentCareGoal);
            }

            Components = new List <MemberCaseCarePlanAssessmentCareMeasureComponent> ();

            foreach (Server.Application.MemberCaseCarePlanAssessmentCareMeasureComponent currentServerComponent in serverObject.Components)
            {
                MemberCaseCarePlanAssessmentCareMeasureComponent assessmentCareComponent = new MemberCaseCarePlanAssessmentCareMeasureComponent(application, currentServerComponent);

                assessmentCareComponent.MemberCaseCarePlanAssessmentCareMeasure = this;

                Components.Add(assessmentCareComponent);
            }

            return;
        }