protected override bool IsRelatedStep(ProcedureStep step)
        {
            // can't have relatives if no report
            if (this.Report == null)
            {
                return(false);
            }

            // relatives must be reporting steps
            if (!step.Is <ReportingProcedureStep>())
            {
                return(false);
            }

            // check if tied to same report
            ReportingProcedureStep that = step.As <ReportingProcedureStep>();

            return(that.Report != null && Equals(this.Report, that.Report));
        }
 public InterpretationStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
     CustomInitialize();
 }
Example #3
0
 public VerificationStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
 }
Example #4
0
 public TranscriptionStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
 }
Example #5
0
		public PublicationStep(ReportingProcedureStep previousStep)
			: base(previousStep)
		{
			_failureCount = 0;
			_lastFailureTime = null;
		}
		private static RisServiceOperationRecorderBase.OperationData Capture(string operation, ReportingProcedureStep rps)
		{
			var reportPart = rps.ReportPart;
			var procedures = reportPart.Report.Procedures;
			var order = procedures.First().Order;
			var patientProfile = procedures.First().PatientProfile;

			return new RisServiceOperationRecorderBase.OperationData(operation, patientProfile, order, procedures);
		}
Example #7
0
		private ReportingWorklistItemSummary GetWorklistItemSummary(ReportingProcedureStep reportingProcedureStep)
		{
			var worklistItem = new ReportingWorklistItem();
			worklistItem.InitializeFromProcedureStep(reportingProcedureStep, WorklistItemField.ProcedureStepCreationTime);
			return new ReportingWorkflowAssembler().CreateWorklistItemSummary(worklistItem, this.PersistenceContext);
		}
Example #8
0
        public VerificationStep(ReportingProcedureStep previousStep)
			: base(previousStep)
        {
        }
Example #9
0
		private void UpdatePriority(ReportingProcedureStep step, EnumValueInfo priority)
		{
			if (priority == null)
				return;

			// update the priority of the associated order
			step.Procedure.Order.Priority = EnumUtils.GetEnumValue<OrderPriority>(priority);
		}
Example #10
0
		/// <summary>
		/// Saves the report, and validates that a supervisor is present if the current user does not have 'unsupervised reporting' permissions.
		/// </summary>
		/// <param name="reportPartExtendedProperties"></param>
		/// <param name="step"></param>
		/// <param name="supervisor"></param>
		/// <param name="supervisorValidationRequired"></param>
		private void SaveReportHelper(Dictionary<string, string> reportPartExtendedProperties, ReportingProcedureStep step, Staff supervisor, bool supervisorValidationRequired)
		{
			if (supervisorValidationRequired
				&& Thread.CurrentPrincipal.IsInRole(AuthorityTokens.Workflow.Report.SubmitForReview)
				&& Thread.CurrentPrincipal.IsInRole(AuthorityTokens.Workflow.Report.OmitSupervisor) == false
				&& supervisor == null)
			{
				throw new SupervisorValidationException();
			}

			var saveReportOp = new Operations.SaveReport();
			saveReportOp.Execute(step, reportPartExtendedProperties, supervisor);
		}
Example #11
0
		/// <summary>
		/// Get the supervisor, using the new supervisor if supplied, otherwise using an existing supervisor if found.
		/// </summary>
		/// <param name="step"></param>
		/// <param name="newSupervisorRef"></param>
		/// <returns></returns>
		private Staff ResolveSupervisor(ReportingProcedureStep step, EntityRef newSupervisorRef)
		{
			var supervisor = newSupervisorRef == null ? null : this.PersistenceContext.Load<Staff>(newSupervisorRef, EntityLoadFlags.Proxy);

			if (supervisor == null && step.ReportPart != null)
				supervisor = step.ReportPart.Supervisor;

			return supervisor;
		}
Example #12
0
 public PublicationStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
     _failureCount    = 0;
     _lastFailureTime = null;
 }
 public ReportingProcedureStep(ReportingProcedureStep previousStep)
     : this(previousStep.Procedure, previousStep.ReportPart)
 {
 }
		public TranscriptionStep(ReportingProcedureStep previousStep)
			: base(previousStep)
		{
		}
Example #15
0
		private void ValidateReportTextExists(ReportingProcedureStep step)
		{
			string content;
			if (step.ReportPart == null || step.ReportPart.ExtendedProperties == null
				|| !step.ReportPart.ExtendedProperties.TryGetValue(ReportPartDetail.ReportContentKey, out content)
				|| string.IsNullOrEmpty(content))
			{
				throw new RequestValidationException(SR.ExceptionVerifyWithNoReport);
			}
		}
 public ReportingProcedureStep(ReportingProcedureStep previousStep)
     : this(previousStep.Procedure, previousStep.ReportPart)
 {
 }
Example #17
0
        public InterpretationStep(ReportingProcedureStep previousStep)
            :base(previousStep)
        {
			CustomInitialize();
		}