コード例 #1
0
        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));
        }
コード例 #2
0
 public InterpretationStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
     CustomInitialize();
 }
コード例 #3
0
 public VerificationStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
 }
コード例 #4
0
ファイル: TranscriptionStep.cs プロジェクト: hksonngan/Xian
 public TranscriptionStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
 }
コード例 #5
0
ファイル: PublicationStep.cs プロジェクト: nhannd/Xian
		public PublicationStep(ReportingProcedureStep previousStep)
			: base(previousStep)
		{
			_failureCount = 0;
			_lastFailureTime = null;
		}
コード例 #6
0
		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);
		}
コード例 #7
0
		private ReportingWorklistItemSummary GetWorklistItemSummary(ReportingProcedureStep reportingProcedureStep)
		{
			var worklistItem = new ReportingWorklistItem();
			worklistItem.InitializeFromProcedureStep(reportingProcedureStep, WorklistItemField.ProcedureStepCreationTime);
			return new ReportingWorkflowAssembler().CreateWorklistItemSummary(worklistItem, this.PersistenceContext);
		}
コード例 #8
0
ファイル: VerificationStep.cs プロジェクト: nhannd/Xian
        public VerificationStep(ReportingProcedureStep previousStep)
			: base(previousStep)
        {
        }
コード例 #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);
		}
コード例 #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);
		}
コード例 #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;
		}
コード例 #12
0
ファイル: PublicationStep.cs プロジェクト: hksonngan/Xian
 public PublicationStep(ReportingProcedureStep previousStep)
     : base(previousStep)
 {
     _failureCount    = 0;
     _lastFailureTime = null;
 }
コード例 #13
0
 public ReportingProcedureStep(ReportingProcedureStep previousStep)
     : this(previousStep.Procedure, previousStep.ReportPart)
 {
 }
コード例 #14
0
		public TranscriptionStep(ReportingProcedureStep previousStep)
			: base(previousStep)
		{
		}
コード例 #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);
			}
		}
コード例 #16
0
 public ReportingProcedureStep(ReportingProcedureStep previousStep)
     : this(previousStep.Procedure, previousStep.ReportPart)
 {
 }
コード例 #17
0
ファイル: InterpretationStep.cs プロジェクト: nhannd/Xian
        public InterpretationStep(ReportingProcedureStep previousStep)
            :base(previousStep)
        {
			CustomInitialize();
		}