/// <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); }
/// <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); }
/// <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; }
/// <summary> /// Destroys the vital sign. /// </summary> /// <param name="vitalSign">The vital sign.</param> public void DestroyVitalSign( VitalSign vitalSign ) { _vitalSignRepository.MakeTransient ( vitalSign ); }
/// <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; }
/// <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; }
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; }