public void AddDefinition(AuthorizedServiceDefinition authorizedServiceDefinition)
        {
            authorizedServiceDefinition.AuthorizedServiceId = Id;

            definitions.Add(authorizedServiceDefinition);

            return;
        }
        public AuthorizedServiceDefinition Copy()
        {
            Server.Application.AuthorizedServiceDefinition serverAuthorizedServiceDefinition = (Server.Application.AuthorizedServiceDefinition)ToServerObject();

            AuthorizedServiceDefinition copiedAuthorizedServiceDefinition = new AuthorizedServiceDefinition(application, serverAuthorizedServiceDefinition);

            return(copiedAuthorizedServiceDefinition);
        }
        public AuthorizedServiceDefinition Definition(Int32 index)
        {
            AuthorizedServiceDefinition definition = null;

            try {
                definition = definitions[index];
            }

            catch {
                // DO NOTHING
            }

            return(definition);
        }
        public Boolean IsEqual(AuthorizedServiceDefinition compareDefinition)
        {
            Boolean isEqual = true;


            if (this.category != compareDefinition.Category)
            {
                isEqual = false;
            }

            if (this.subcategory != compareDefinition.Subcategory)
            {
                isEqual = false;
            }

            if (this.serviceType != compareDefinition.ServiceType)
            {
                isEqual = false;
            }

            if (this.principalDiagnosisCriteria != compareDefinition.PrincipalDiagnosisCriteria)
            {
                isEqual = false;
            }

            isEqual &= (PrincipalDiagnosisVersion == compareDefinition.PrincipalDiagnosisVersion);

            if (this.diagnosisCriteria != compareDefinition.DiagnosisCriteria)
            {
                isEqual = false;
            }

            isEqual &= (DiagnosisVersion == compareDefinition.DiagnosisVersion);

            if (this.drgCriteria != compareDefinition.DrgCriteria)
            {
                isEqual = false;
            }

            if (this.icd9ProcedureCodeCriteria != compareDefinition.Icd9ProcedureCodeCriteria)
            {
                isEqual = false;
            }

            if (this.billTypeCriteria != compareDefinition.BillTypeCriteria)
            {
                isEqual = false;
            }

            if (this.locationCodeCriteria != compareDefinition.LocationCodeCriteria)
            {
                isEqual = false;
            }

            if (this.revenueCodeCriteria != compareDefinition.RevenueCodeCriteria)
            {
                isEqual = false;
            }

            if (this.procedureCodeCriteria != compareDefinition.ProcedureCodeCriteria)
            {
                isEqual = false;
            }


            if (this.modifierCodeCriteria != compareDefinition.ModifierCodeCriteria)
            {
                isEqual = false;
            }

            if (this.providerSpecialtyCriteria != compareDefinition.ProviderSpecialtyCriteria)
            {
                isEqual = false;
            }

            if (this.ndcCodeCriteria != compareDefinition.NdcCodeCriteria)
            {
                isEqual = false;
            }

            if (this.drugNameCriteria != compareDefinition.DrugNameCriteria)
            {
                isEqual = false;
            }

            if (this.deaClassificationCriteria != compareDefinition.DeaClassificationCriteria)
            {
                isEqual = false;
            }

            if (this.therapeuticClassificationCriteria != compareDefinition.TherapeuticClassificationCriteria)
            {
                isEqual = false;
            }


            if (this.labLoincCodeCriteria != compareDefinition.LabLoincCodeCriteria)
            {
                isEqual = false;
            }


            if (this.enabled != compareDefinition.Enabled)
            {
                isEqual = false;
            }

            return(isEqual);
        }