Example #1
0
        /// <summary>
        /// Creates the immunization.
        /// </summary>
        /// <param name="clinicalCase">The clinical case.</param>
        /// <param name="provenance">The provenance.</param>
        /// <param name="activityDateTimeRange">The activity date time range.</param>
        /// <returns>An immunization.</returns>
        public Immunization CreateImmunization(ClinicalCase clinicalCase, Provenance provenance, DateTimeRange activityDateTimeRange)
        {
            var activityType = _lookupValueRepository.GetLookupByWellKnownName <ActivityType>(WellKnownNames.VisitModule.ActivityType.Immunization);
            var immunization = new Immunization(clinicalCase, activityType, provenance, activityDateTimeRange);

            _immunizationRepository.MakePersistent(immunization);

            return(immunization);
        }
Example #2
0
        /// <summary>
        /// Creates the immunization.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>An Immunization.</returns>
        public Immunization CreateImmunization(Visit visit)
        {
            var activityType = _lookupValueRepository.GetLookupByWellKnownName <ActivityType> (WellKnownNames.VisitModule.ActivityType.Immunization);
            var immunization = new Immunization(visit, activityType);

            _immunizationRepository.MakePersistent(immunization);

            return(immunization);
        }
Example #3
0
        /// <summary>
        /// Creates the immunization.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>An Immunization.</returns>
        public Immunization CreateImmunization( Visit visit )
        {
            var activityType = _lookupValueRepository.GetLookupByWellKnownName<ActivityType> ( WellKnownNames.VisitModule.ActivityType.Immunization );
            var immunization = new Immunization ( visit, activityType );

            _immunizationRepository.MakePersistent ( immunization );

            return immunization;
        }
Example #4
0
 /// <summary>
 /// Destroys the immunization.
 /// </summary>
 /// <param name="immunization">The immunization.</param>
 public void DestroyImmunization( Immunization immunization )
 {
     _immunizationRepository.MakeTransient ( immunization );
 }
Example #5
0
        /// <summary>
        /// Creates the immunization.
        /// </summary>
        /// <param name="clinicalCase">The clinical case.</param>
        /// <param name="provenance">The provenance.</param>
        /// <param name="activityDateTimeRange">The activity date time range.</param>
        /// <returns>An immunization.</returns>
        public Immunization CreateImmunization(ClinicalCase clinicalCase, Provenance provenance, DateTimeRange activityDateTimeRange)
        {
            var activityType = _lookupValueRepository.GetLookupByWellKnownName<ActivityType>(WellKnownNames.VisitModule.ActivityType.Immunization);
            var immunization = new Immunization(clinicalCase, activityType, provenance, activityDateTimeRange);

            _immunizationRepository.MakePersistent(immunization);

            return immunization;
        }
Example #6
0
 /// <summary>
 /// Destroys the immunization.
 /// </summary>
 /// <param name="immunization">The immunization.</param>
 public void DestroyImmunization(Immunization immunization)
 {
     _immunizationRepository.MakeTransient(immunization);
 }
 private Immunization BuildImmunization( Visit visit,
                                          ActivityType activityType, CodedConcept vaccineCodedConcept )
 {
     var immunization = new Immunization ( visit, activityType );
     immunization.ReviseImmunizationVaccineInfo(new ImmunizationVaccineInfo(vaccineCodedConcept, null, new ImmunizationVaccineManufacturer(null, null)));
     Session.SaveOrUpdate ( immunization );
     return immunization;
 }
 private Immunization BuildImmunization(Visit visit,
                                         ActivityType activityType)
 {
     var immunization = new Immunization(visit, activityType);
     Session.SaveOrUpdate(immunization);
     return immunization;
 }