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(); }
public VerificationStep(ReportingProcedureStep previousStep) : base(previousStep) { }
public TranscriptionStep(ReportingProcedureStep previousStep) : base(previousStep) { }
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); }
private ReportingWorklistItemSummary GetWorklistItemSummary(ReportingProcedureStep reportingProcedureStep) { var worklistItem = new ReportingWorklistItem(); worklistItem.InitializeFromProcedureStep(reportingProcedureStep, WorklistItemField.ProcedureStepCreationTime); return new ReportingWorkflowAssembler().CreateWorklistItemSummary(worklistItem, this.PersistenceContext); }
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); }
/// <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); }
/// <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; }
public ReportingProcedureStep(ReportingProcedureStep previousStep) : this(previousStep.Procedure, previousStep.ReportPart) { }
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 InterpretationStep(ReportingProcedureStep previousStep) :base(previousStep) { CustomInitialize(); }