예제 #1
0
        /// <summary>
        /// Removes the priority population.
        /// </summary>
        /// <param name="priorityPopulation">The priority population.</param>
        public virtual void RemovePriorityPopulation(ClinicalCasePriorityPopulation priorityPopulation)
        {
            Check.IsNotNull(priorityPopulation, "Clinical case priority population is required.");

            _priorityPopulations.Delete(priorityPopulation);
            NotifyItemRemoved(() => PriorityPopulations, priorityPopulation);
        }
예제 #2
0
        /// <summary>
        /// Adds the priority population.
        /// </summary>
        /// <param name="priorityPopulation">The priority population.</param>
        public virtual void AddPriorityPopulation(
            ClinicalCasePriorityPopulation priorityPopulation)
        {
            Check.IsNotNull(priorityPopulation, "Clinical case priority population is required.");

            priorityPopulation.ClinicalCase = this;
            _priorityPopulations.Add(priorityPopulation);
            NotifyItemAdded(() => PriorityPopulations, priorityPopulation);
        }