예제 #1
0
        /// <summary>
        /// Creates the vital sign.
        /// </summary>
        /// <param name="clinicalCase">The clinical case.</param>
        /// <param name="provenance">The provenance.</param>
        /// <param name="activityDateTimeRange">The activity date time range.</param>
        /// <returns>Vital Sign</returns>
        public VitalSign CreateVitalSign(ClinicalCase clinicalCase, Provenance provenance, DateTimeRange activityDateTimeRange)
        {
            var type = _lookupValueRepository.GetLookupByWellKnownName <ActivityType> (WellKnownNames.VisitModule.ActivityType.VitalSign);

            var vitalSign = new VitalSign(clinicalCase, type, provenance, activityDateTimeRange);

            _vitalSignRepository.MakePersistent(vitalSign);

            return(vitalSign);
        }
예제 #2
0
        /// <summary>
        /// Creates the vital sign.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>
        /// A VitalSign.
        /// </returns>
        public VitalSign CreateVitalSign(Visit visit)
        {
            var type = _lookupValueRepository.GetLookupByWellKnownName <ActivityType> (WellKnownNames.VisitModule.ActivityType.VitalSign);

            var vitalSign = new VitalSign(visit, type);

            _vitalSignRepository.MakePersistent(vitalSign);

            return(vitalSign);
        }
예제 #3
0
        /// <summary>
        /// Creates the vital sign.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>
        /// A VitalSign.
        /// </returns>
        public VitalSign CreateVitalSign( Visit visit )
        {
            var type = _lookupValueRepository.GetLookupByWellKnownName<ActivityType> ( WellKnownNames.VisitModule.ActivityType.VitalSign );

            var vitalSign = new VitalSign ( visit, type );

            _vitalSignRepository.MakePersistent ( vitalSign );

            return vitalSign;
        }
예제 #4
0
 /// <summary>
 /// Destroys the vital sign.
 /// </summary>
 /// <param name="vitalSign">The vital sign.</param>
 public void DestroyVitalSign( VitalSign vitalSign )
 {
     _vitalSignRepository.MakeTransient ( vitalSign );
 }
예제 #5
0
        /// <summary>
        /// Creates the vital sign.
        /// </summary>
        /// <param name="clinicalCase">The clinical case.</param>
        /// <param name="provenance">The provenance.</param>
        /// <param name="activityDateTimeRange">The activity date time range.</param>
        /// <returns>Vital Sign</returns>
        public VitalSign CreateVitalSign( ClinicalCase clinicalCase, Provenance provenance, DateTimeRange activityDateTimeRange )
        {
            var type = _lookupValueRepository.GetLookupByWellKnownName<ActivityType> ( WellKnownNames.VisitModule.ActivityType.VitalSign );

            var vitalSign = new VitalSign ( clinicalCase, type, provenance, activityDateTimeRange );

            _vitalSignRepository.MakePersistent ( vitalSign );

            return vitalSign;
        }
예제 #6
0
 /// <summary>
 /// Destroys the vital sign.
 /// </summary>
 /// <param name="vitalSign">The vital sign.</param>
 public void DestroyVitalSign(VitalSign vitalSign)
 {
     _vitalSignRepository.MakeTransient(vitalSign);
 }
        private VitalSign BuildVitalSign( Visit visit, int? heightFeetMeasure, int? heightInchesMeasure, int? weightMeasure )
        {
            var vitalSign = new VitalSign ( visit, VitalSignActivityType );
            vitalSign.ReviseHeight ( new Height ( heightFeetMeasure, heightInchesMeasure ) );
            vitalSign.ReviseWeight ( weightMeasure );

            Session.SaveOrUpdate ( vitalSign );
            return vitalSign;
        }
예제 #8
0
        private static ResultDto GetVitalSignResultDto( Visit visit, VitalSign vitalSign )
        {
            var vitalSignResultDto = new ResultDto
                {
                    ResultId = new IIDataTransferObject { Root = vitalSign.Key.ToString () },
                    ResultDateTime = new OperatorDateTimeDto { Date = visit.AppointmentDateTimeRange.StartDateTime.ToString ( "yyyyMMdd" ) }
                };

            return vitalSignResultDto;
        }