protected static bool IsModalityValidForFacility(ModalitySummary modality, FacilitySummary facility)
 {
     return(modality == null ||
            facility == null ||
            modality.Facility == null ||
            modality.Facility.Code == facility.Code);
 }
예제 #2
0
        public ProcedureStepDetail(
            EntityRef procedureStepRef,
            string procedureStepName,
            string stepClassName,
			string description,
            EnumValueInfo state,
			DateTime? creationTime,
            DateTime? scheduledStartTime,
            DateTime? startTime,
            DateTime? endTime,
            StaffSummary scheduledPerformer,
            StaffSummary performer,
			ModalitySummary modality
            )
        {
            this.ProcedureStepRef = procedureStepRef;
            this.ProcedureStepName = procedureStepName;
            this.StepClassName = stepClassName;
        	this.Description = description;
            this.State = state;
        	this.CreationTime = creationTime;
            this.ScheduledStartTime = scheduledStartTime;
            this.StartTime = startTime;
            this.EndTime = endTime;
			this.Modality = modality;
			this.ScheduledPerformer = scheduledPerformer;
            this.Performer = performer;
        }
 /// <summary>
 /// Constructor for use by service to return requisition back to client for editing.
 /// </summary>
 public ProcedureRequisition(
     EntityRef procedureRef,
     ProcedureTypeSummary procedureType,
     string procedureNumber,
     DateTime?scheduledTime,
     int scheduledDuration,
     ModalitySummary modality,
     EnumValueInfo schedulingCode,
     FacilitySummary performingFacility,
     DepartmentSummary performingDepartment,
     EnumValueInfo laterality,
     bool portableModality,
     bool checkedIn,
     EnumValueInfo status,
     bool canModify,
     bool cancelled)
 {
     this.ProcedureRef         = procedureRef;
     this.ProcedureType        = procedureType;
     this.ProcedureNumber      = procedureNumber;
     this.ScheduledTime        = scheduledTime;
     this.ScheduledDuration    = scheduledDuration;
     this.Modality             = modality;
     this.SchedulingCode       = schedulingCode;
     this.PerformingFacility   = performingFacility;
     this.PerformingDepartment = performingDepartment;
     this.Laterality           = laterality;
     this.PortableModality     = portableModality;
     this.CheckedIn            = checkedIn;
     this.Status    = status;
     this.CanModify = canModify;
     this.Cancelled = cancelled;
 }
예제 #4
0
		/// <summary>
		/// Constructor for use by service to return requisition back to client for editing.
		/// </summary>
		public ProcedureRequisition(
			EntityRef procedureRef,
			ProcedureTypeSummary procedureType,
			string procedureNumber,
			DateTime? scheduledTime,
			int scheduledDuration,
			ModalitySummary modality,
			EnumValueInfo schedulingCode,
			FacilitySummary performingFacility,
			DepartmentSummary performingDepartment,
			EnumValueInfo laterality,
			bool portableModality,
			bool checkedIn,
			EnumValueInfo status,
			bool canModify,
			bool cancelled)
		{
			this.ProcedureRef = procedureRef;
			this.ProcedureType = procedureType;
			this.ProcedureNumber = procedureNumber;
			this.ScheduledTime = scheduledTime;
			this.ScheduledDuration = scheduledDuration;
			this.Modality = modality;
			this.SchedulingCode = schedulingCode;
			this.PerformingFacility = performingFacility;
			this.PerformingDepartment = performingDepartment;
			this.Laterality = laterality;
			this.PortableModality = portableModality;
			this.CheckedIn = checkedIn;
			this.Status = status;
			this.CanModify = canModify;
			this.Cancelled = cancelled;
		}
예제 #5
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;
		}
예제 #6
0
		public ProcedureTypeDetail(
			EntityRef entityRef,
			string id,
			string name,
			ModalitySummary defaultModality,
			int defaultDuration,
			bool deactivated)
        {
            this.ProcedureTypeRef = entityRef;
            this.Id = id;
            this.Name = name;
			this.CustomProcedurePlan = false;
			this.DefaultModality = defaultModality;
			this.DefaultDuration = defaultDuration;
			this.Deactivated = deactivated;
        }
예제 #7
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;
		}
예제 #8
0
 private void SaveChanges()
 {
     Platform.GetService(
         delegate(IModalityAdminService service)
     {
         if (_isNew)
         {
             var response     = service.AddModality(new AddModalityRequest(_modalityDetail));
             _modalityRef     = response.Modality.ModalityRef;
             _modalitySummary = response.Modality;
         }
         else
         {
             var response     = service.UpdateModality(new UpdateModalityRequest(_modalityDetail));
             _modalityRef     = response.Modality.ModalityRef;
             _modalitySummary = response.Modality;
         }
     });
 }
예제 #9
0
 public AddModalityResponse(ModalitySummary modality)
 {
     this.Modality = modality;
 }
 public AddModalityResponse(ModalitySummary modality)
 {
     this.Modality = modality;
 }
		protected static bool IsModalityValidForFacility(ModalitySummary modality, FacilitySummary facility)
		{
			return modality == null
				   || facility == null
				   || modality.Facility == null
				   || modality.Facility.Code == facility.Code;
		}
예제 #12
0
 public UpdateModalityResponse(ModalitySummary summary)
 {
     this.Modality = summary;
 }
 public UpdateModalityResponse(ModalitySummary summary)
 {
     this.Modality = summary;
 }