/// <summary>
        /// Creates the Teds interview.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>A TedsAdmissionInterview.</returns>
        public TedsAdmissionInterview CreateTedsAdmissionInterview(Visit visit)
        {
            var activityType           = _lookupValueRepository.GetLookupByWellKnownName <ActivityType>(WellKnownNames.VisitModule.ActivityType.TedsAdmissionInterview);
            var TedsAdmissionInterview = new TedsAdmissionInterview(visit, activityType);

            _tedsAdmissionInterviewRepository.MakePersistent(TedsAdmissionInterview);

            return(TedsAdmissionInterview);
        }
        /// <summary>
        /// Destroys the Teds interview.
        /// </summary>
        /// <param name="tedsAdmissionInterview">The Teds interview.</param>
        public void DestroyTedsAdmissionInterview(TedsAdmissionInterview tedsAdmissionInterview)
        {
            Check.IsNotNull(tedsAdmissionInterview, "TedsAdmissionInterview is required.");

            _tedsAdmissionInterviewRepository.MakeTransient(tedsAdmissionInterview);
        }
Beispiel #3
0
 /// <summary>
 /// Revises the teds admission interview.
 /// </summary>
 /// <param name="tedsAdmissionInterview">The teds admission interview.</param>
 public virtual void ReviseTedsAdmissionInterview(TedsAdmissionInterview tedsAdmissionInterview)
 {
     Check.IsNotNull(tedsAdmissionInterview, () => TedsAdmissionInterview);
     TedsAdmissionInterview = tedsAdmissionInterview;
 }