Tables [dbo].[Specialty_DE]
Specialty dictionary. (Family Medicine, Dermatology, etc.)
KeyNameData TypeMax Length (Bytes)NullabilityIdentityDescription
Cluster Primary Key PK_Specialty_DE_ID: IDIndexes nix_Specialty_DE_ID, TWstat_Specialty_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_ID, TWstat_Specialty_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_ID(3)Foreign Keys FK_Specialty_DE_ID_Specialty_DE_ID: [dbo].[Specialty_DE].IDID[dbo].[dict_id]5NOT NULL1 - 1Key to the Specialty_DE table
Indexes TWstat_Specialty_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_IDEnterpriseEntryID[dbo].[uniqueid]9NOT NULLMaster (enterprise) dictionary surrogate key.  Points to Dictionary_Entry.EnterpriseEntryID
DefinitionSetID[dbo].[dict_id]5NOT NULLPoints to Dict_Definition_Set.DefinitionSetID but is typically zero.
Entry[dbo].[dict_id]5NOT NULLCalculated during insert as rowcount + 1 from Dict_Definition_Set for this dictionary and set
Indexes NIX_Specialty_DE_EntryCode_WithIncludeColumns, NIX_Specialty_DE_EntryMnemonic_WithIncludeColumns, NIX_Specialty_DE_EntryName_WithIncludeColumns(3)EntryCode[dbo].[code]10NOT NULLUnique alphanumeric code. Brief but cryptic.
Indexes NIX_Specialty_DE_EntryCode_WithIncludeColumns, NIX_Specialty_DE_EntryMnemonic_WithIncludeColumns, NIX_Specialty_DE_EntryName_WithIncludeColumns, TWstat_Specialty_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_ID, TWstat_Specialty_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_ID(5)EntryName[dbo].[name]255NOT NULLUnique alphanumeric "friendly" display name
Indexes NIX_Specialty_DE_EntryCode_WithIncludeColumns, NIX_Specialty_DE_EntryMnemonic_WithIncludeColumns, NIX_Specialty_DE_EntryName_WithIncludeColumns(3)EntryMnemonic[dbo].[code]10NOT NULLTypically the same as the Code value, but can be blank.  If present, it must be unique.
Indexes NIX_Specialty_DE_EntryCode_WithIncludeColumns, NIX_Specialty_DE_EntryMnemonic_WithIncludeColumns, NIX_Specialty_DE_EntryName_WithIncludeColumns, TWstat_Specialty_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_ID(4)Check Constraints CK_Specialty_DE_IsInactiveFLAG_Yes_Or_No : ([IsInactiveFLAG]='N' OR [IsInactiveFLAG]='Y')IsInactiveFLAG[dbo].[BOOL]1NOT NULLY=row is not active; N=row is active.  (Rows are inactivated rather than deleted for history)
Check Constraints CK_Specialty_DE_IsEnforcedFLAG_Yes_Or_No : ([IsEnforcedFLAG]='N' OR [IsEnforcedFLAG]='Y')IsEnforcedFLAG[dbo].[BOOL]1NOT NULLY=row is readonly;  N=row is modifiable
Indexes NIX_Specialty_DE_EntryCode_WithIncludeColumns, NIX_Specialty_DE_EntryMnemonic_WithIncludeColumns, NIX_Specialty_DE_EntryName_WithIncludeColumns, TWstat_Specialty_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_ID, TWstat_Specialty_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_ID(5)Check Constraints CK_Specialty_DE_IsCurrentFLAG_Yes_Or_No : ([IsCurrentFLAG]='N' OR [IsCurrentFLAG]='Y')IsCurrentFLAG[dbo].[BOOL]1NOT NULLUsually 'Y' but occasionally used to subordinate rows.  Not exposed to the end user.
EffectiveDTdatetime8NULL allowedTime of last modification  (not "when this row goes into effect")
CMEHoursRequiredsmallint2NOT NULLNumber of Hours required
Indexes nix_Specialty_DE_ID, TWstat_Specialty_DE_ParentSpecialtyDE(2)Foreign Keys FK_Specialty_DE_ParentSpecialtyDE_Specialty_DE_ID: [dbo].[Specialty_DE].ParentSpecialtyDEParentSpecialtyDE[dbo].[dict_id]5NOT NULLParent. Link to dbo.Specialty_DE.ID to preserve Parent-Child info
Foreign Keys Fk_CMSSpecialtyCodeDE: [dbo].[CMSSpecialtyCode_De].CMSSpecialtyCodeDECMSSpecialtyCodeDE[dbo].[dict_id]5NOT NULLCorresponding Specialty in the CMS list. Link to dbo.CMSSpecialtyCode_DE.ID