コード例 #1
0
        //public static ProcedureDto Convert2Dto(Procedure p)
        //{
        //    ProcedureDto dto = new ProcedureDto(p.Id, p.Code, p.ShortDescription, p.MediumDescription, p.LongDescription, p.GlobalId, p.IsGlobal, p.LinkedApptId, p.LinkedRoomId);

        //    dto.TimeOverheadMinutes = p.TimeOverheadMinutes; //-1;//stupid workaround to hide overhead for editing of created appointments
        //    dto.Category = p.Category;
        //    dto.AlertText = p.AlertText;
        //    dto.Amount = p.Amount;
        //    dto.ProcNote = p.ProcNote;
        //    dto.Volume = p.Volume;
        //    dto.PatientGuarantorId = p.PatientGuarantorId;
        //    dto.PatientInsuranceId = p.PatientInsuranceId;
        //    dto.IsSelfPay = p.IsSelfPay;
        //    dto.HCPCScodeName = p.HCPCScodeName;
        //    dto.OverrideCreationMode = p.OverrideCreationMode;
        //    dto.MammogramType = p.MammogramType;
        //    dto.IsOrderRequired = p.IsOrderRequired;
        //    dto.DisplayOrder = p.DisplayOrder;
        //    dto.LinkedRoomTypeId = p.LinkedRoomTypeId;
        //    dto.LinkedRoomId = p.LinkedRoomId;
        //    dto.CreateOrder = p.CreateOrder;
        //    if (dto.Modifiers == null) dto.Modifiers = new List<CPTModifierDto>();
        //    if (dto.Insurances == null) dto.Insurances = new List<PayerDto>();

        //    foreach (Payer payer in p.Insurances)
        //        dto.Insurances.Add(Payer.Convert2Dto(payer));

        //    foreach (CPTModifier m in p.Modifiers)
        //    {
        //        dto.Modifiers.Add(CPTModifier.ConvertToDto(m));
        //    }
        //    if (p.ResourceDurationOverride != null)
        //    {
        //        dto.ResourceDurationOverride = new ResourceDurationDto
        //        {
        //            Id = p.ResourceDurationOverride.Id,
        //            ActualDuration = p.ResourceDurationOverride.ActualDuration,
        //            AdditionalLeadTime = p.ResourceDurationOverride.AdditionalLeadTime,
        //            DecrementTime = p.ResourceDurationOverride.DecrementTime,
        //            IncrementTime = p.ResourceDurationOverride.IncrementTime,
        //            SedationTime = p.ResourceDurationOverride.SedationTime
        //        };
        //    }
        //    return dto;
        //}

        public void BindToRoom(AppointmentResourceModality room)
        {
            if (room != null)
            {
                LinkedRoomId = room.Id;
            }
            else
            {
                LinkedRoomId = null;
            }
        }
コード例 #2
0
 public void MapToRoom(long appointmentId, AppointmentResourceModality room)
 {
     this.AppointmentItemType = (long)AppointmentOrderItemType.Room;
     this.AppointmentItemId   = room.Id.ToString();
     this.AppointmentId       = appointmentId;
 }