Exemplo n.º 1
0
        /// <summary>
        /// Destroys the program enrollment.
        /// </summary>
        /// <param name="programEnrollment">The program enrollment.</param>
        public void DestroyProgramEnrollment(ProgramEnrollment programEnrollment)
        {
            Check.IsNotNull(programEnrollment, "ProgramEnrollment is requried.");

            // TODO: no rules for now, will add in the future once there are clear requriements.
            // A program cannot be deleted if a visit or activity is associated with that program and that patient.
            _programEnrollmentRepository.MakeTransient(programEnrollment);
        }