protected PhysicianCustomerAssignmentEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _eventCustomers = (EventCustomersEntity)info.GetValue("_eventCustomers", typeof(EventCustomersEntity)); if (_eventCustomers != null) { _eventCustomers.AfterSave += new EventHandler(OnEntityAfterSave); } _physicianProfile_ = (PhysicianProfileEntity)info.GetValue("_physicianProfile_", typeof(PhysicianProfileEntity)); if (_physicianProfile_ != null) { _physicianProfile_.AfterSave += new EventHandler(OnEntityAfterSave); } _physicianProfile = (PhysicianProfileEntity)info.GetValue("_physicianProfile", typeof(PhysicianProfileEntity)); if (_physicianProfile != null) { _physicianProfile.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> setups the sync logic for member _physicianProfile</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPhysicianProfile(IEntity2 relatedEntity) { if (_physicianProfile != relatedEntity) { DesetupSyncPhysicianProfile(true, true); _physicianProfile = (PhysicianProfileEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_physicianProfile, new PropertyChangedEventHandler(OnPhysicianProfilePropertyChanged), "PhysicianProfile", PhysicianLabTestEntity.Relations.PhysicianProfileEntityUsingPhysicianId, true, new string[] { }); } }
/// <summary> setups the sync logic for member _physicianProfile</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPhysicianProfile(IEntity2 relatedEntity) { if (_physicianProfile != relatedEntity) { DesetupSyncPhysicianProfile(true, true); _physicianProfile = (PhysicianProfileEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_physicianProfile, new PropertyChangedEventHandler(OnPhysicianProfilePropertyChanged), "PhysicianProfile", ScreeningAuthorizationEntity.Relations.PhysicianProfileEntityUsingPhysicianOrgRoleUserId, true, new string[] { }); } }
/// <summary> setups the sync logic for member _physicianProfile_</summary> /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param> private void SetupSyncPhysicianProfile_(IEntity2 relatedEntity) { if (_physicianProfile_ != relatedEntity) { DesetupSyncPhysicianProfile_(true, true); _physicianProfile_ = (PhysicianProfileEntity)relatedEntity; base.PerformSetupSyncRelatedEntity(_physicianProfile_, new PropertyChangedEventHandler(OnPhysicianProfile_PropertyChanged), "PhysicianProfile_", PhysicianCustomerAssignmentEntity.Relations.PhysicianProfileEntityUsingPhysicianId, true, new string[] { }); } }
/// <summary> Initializes the class members</summary> protected virtual void InitClassMembers() { _physicianProfile = null; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
// TODO: This Factory needs rethinking .. public Physician CreatePhysician(Physician physician, PhysicianProfileEntity physicianProfile) { NullArgumentChecker.CheckIfNull(physician, "physician"); NullArgumentChecker.CheckIfNull(physicianProfile, "PhysicianProfileEntity"); physician.PhysicianId = physicianProfile.PhysicianId; physician.MedicalVendorId = physicianProfile.OrganizationRoleUser.OrganizationId; physician.SignatureFile = physicianProfile.DigitalSignatureFileId != null ? new File(physicianProfile.DigitalSignatureFileId.Value) : null; physician.ResumeFile = physicianProfile.ResumeFileId != null ? new File(physicianProfile.ResumeFileId.Value) : null; physician.SpecializationId = physicianProfile.SpecializationId.HasValue ? physicianProfile.SpecializationId.Value : 0; physician.CanSeeEarnings = physicianProfile.ShowEarningAmount; physician.CanDoAuthorizations = physicianProfile.IsAuthorizationAllowed; physician.SkipAudit = physicianProfile.SkipAudit; physician.CutOffDate = physicianProfile.CutOffDate; if (!physicianProfile.PhysicianPermittedTest.IsNullOrEmpty()) { physician.PermittedTests = physicianProfile.PhysicianPermittedTest.ToList().Select(test => test.TestId).ToList(); } if (!physicianProfile.PhysicianLicense.IsNullOrEmpty()) { physician.AuthorizedStateLicenses = _licenseMapper.MapMultiple(physicianProfile.PhysicianLicense).ToList(); } if (!physicianProfile.PhysicianPod.IsNullOrEmpty()) { physician.AssignedPodIds = physicianProfile.PhysicianPod.ToList().Select(tpr => tpr.PodId).ToList(); } if (physicianProfile.PhysicianCustomerPayRate != null) { physician.StandardRate = physicianProfile.PhysicianCustomerPayRate.StandardRate; physician.OverReadRate = physicianProfile.PhysicianCustomerPayRate.OverReadRate; } physician.IsDefault = physicianProfile.IsDefaultPhysician; physician.DisplayName = physicianProfile.DisplayName; physician.UpdateResultEntry = physicianProfile.UpdateResultEntry; physician.Npi = physicianProfile.Npi; return(physician); }
protected PhysicianPermittedTestEntity(SerializationInfo info, StreamingContext context) : base(info, context) { if (SerializationHelper.Optimization != SerializationOptimization.Fast) { _physicianProfile = (PhysicianProfileEntity)info.GetValue("_physicianProfile", typeof(PhysicianProfileEntity)); if (_physicianProfile != null) { _physicianProfile.AfterSave += new EventHandler(OnEntityAfterSave); } _test = (TestEntity)info.GetValue("_test", typeof(TestEntity)); if (_test != null) { _test.AfterSave += new EventHandler(OnEntityAfterSave); } base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance()); } // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Removes the sync logic for member _physicianProfile</summary> /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param> /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param> private void DesetupSyncPhysicianProfile(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_physicianProfile, new PropertyChangedEventHandler(OnPhysicianProfilePropertyChanged), "PhysicianProfile", PhysicianLabTestEntity.Relations.PhysicianProfileEntityUsingPhysicianId, true, signalRelatedEntity, "PhysicianLabTest", resetFKFields, new int[] { (int)PhysicianLabTestFieldIndex.PhysicianId }); _physicianProfile = null; }
/// <summary> Removes the sync logic for member _physicianProfile</summary> /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param> /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param> private void DesetupSyncPhysicianProfile(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_physicianProfile, new PropertyChangedEventHandler(OnPhysicianProfilePropertyChanged), "PhysicianProfile", ScreeningAuthorizationEntity.Relations.PhysicianProfileEntityUsingPhysicianOrgRoleUserId, true, signalRelatedEntity, "ScreeningAuthorization", resetFKFields, new int[] { (int)ScreeningAuthorizationFieldIndex.PhysicianOrgRoleUserId }); _physicianProfile = null; }
/// <summary> Removes the sync logic for member _physicianProfile_</summary> /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param> /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param> private void DesetupSyncPhysicianProfile_(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_physicianProfile_, new PropertyChangedEventHandler(OnPhysicianProfile_PropertyChanged), "PhysicianProfile_", PhysicianCustomerAssignmentEntity.Relations.PhysicianProfileEntityUsingPhysicianId, true, signalRelatedEntity, "PhysicianCustomerAssignment_", resetFKFields, new int[] { (int)PhysicianCustomerAssignmentFieldIndex.PhysicianId }); _physicianProfile_ = null; }
/// <summary> Removes the sync logic for member _physicianProfile</summary> /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param> /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param> private void DesetupSyncPhysicianProfile(bool signalRelatedEntity, bool resetFKFields) { base.PerformDesetupSyncRelatedEntity(_physicianProfile, new PropertyChangedEventHandler(OnPhysicianProfilePropertyChanged), "PhysicianProfile", CustomerSkipReviewEntity.Relations.PhysicianProfileEntityUsingDefaultPhysicianId, true, signalRelatedEntity, "CustomerSkipReview", resetFKFields, new int[] { (int)CustomerSkipReviewFieldIndex.DefaultPhysicianId }); _physicianProfile = null; }