Ejemplo n.º 1
0
 public ModalityProcedureStepSummary(
     EntityRef procedureStepRef,
     string procedureStepName,
     EnumValueInfo state,
     DateTime?startTime,
     DateTime?endTime,
     ModalitySummary modality,
     ProcedureSummary procedure,
     String description)
     : base(procedureStepRef, procedureStepName, state, startTime, endTime, modality, procedure)
 {
     this.Description = description;
 }
Ejemplo n.º 2
0
		public ModalityProcedureStepSummary(
			EntityRef procedureStepRef,
			string procedureStepName,
			EnumValueInfo state,
			DateTime? startTime,
			DateTime? endTime,
			ModalitySummary modality,
			ProcedureSummary procedure,
			String description)
			: base(procedureStepRef, procedureStepName, state, startTime, endTime, modality, procedure)
		{
			this.Description = description;
		}
 public ProcedureStepSummary(
     EntityRef procedureStepRef,
     string procedureStepName,
     EnumValueInfo state,
     DateTime?startTime,
     DateTime?endTime,
     ModalitySummary modality,
     ProcedureSummary procedure
     )
 {
     this.ProcedureStepRef  = procedureStepRef;
     this.ProcedureStepName = procedureStepName;
     this.State             = state;
     this.StartTime         = startTime;
     this.EndTime           = endTime;
     this.Modality          = modality;
     this.Procedure         = procedure;
 }
Ejemplo n.º 4
0
		public ProcedureStepSummary(
			EntityRef procedureStepRef,
			string procedureStepName,
			EnumValueInfo state,
			DateTime? startTime,
			DateTime? endTime,
			ModalitySummary modality,
			ProcedureSummary procedure
			)
		{
			this.ProcedureStepRef = procedureStepRef;
			this.ProcedureStepName = procedureStepName;
			this.State = state;
			this.StartTime = startTime;
			this.EndTime = endTime;
			this.Modality = modality;
			this.Procedure = procedure;
		}
Ejemplo n.º 5
0
		public ProcedureSummary CreateProcedureSummary(Procedure rp, IPersistenceContext context)
		{
			var rptAssembler = new ProcedureTypeAssembler();
			var summary = new ProcedureSummary
							{
								OrderRef = rp.Order.GetRef(),
								ProcedureRef = rp.GetRef(),
								ScheduledStartTime = rp.ScheduledStartTime,
								SchedulingCode = EnumUtils.GetEnumValueInfo(rp.SchedulingCode),
								PerformingFacility = new FacilityAssembler().CreateFacilitySummary(rp.PerformingFacility),
								Type = rptAssembler.CreateSummary(rp.Type),
								Laterality = EnumUtils.GetEnumValueInfo(rp.Laterality, context),
								Portable = rp.Portable
							};

			return summary;
		}
Ejemplo n.º 6
0
		/// <summary>
		/// Formats the procedure name, portable and laterality similar to "Name (Portable/Laterality)".  
		/// Name is formatted according to the default person name format as specified in <see cref="FormatSettings"/>
		/// </summary>
		/// <param name="p"></param>
		/// <returns></returns>
		public static string Format(ProcedureSummary p)
		{
			return Format(p.Type.Name, p.Portable, p.Laterality, FormatSettings.Default.ProcedurePortableLateralityDefaultFormat);
		}