Tables [dbo].[Occupation_DE]
"Dictionary holding the codes / descriptions used to describe the Staff Occupations i.e (Admin Assistant,
Anesthesiologist, Nurse Practitioner etc.)"
KeyNameData TypeMax Length (Bytes)NullabilityIdentityDescription
Primary Key PK_Occupation_DE_ID: IDID[dbo].[dict_id]5NOT NULL1 - 1Key to the Occupation_DE table.
EnterpriseEntryID[dbo].[uniqueid]9NOT NULLMaster (enterprise) dictionary surrogate key.  Points to Dictionary_Entry.EnterpriseEntryID
Indexes TWstat_Occupation_DE_DefinitionSetID_EntryName_IsCurrentFLAGDefinitionSetID[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 XAK2OCCUPATION_DEEntryCode[dbo].[code]10NOT NULLUnique alphanumeric code.  Brief but cryptic.
Cluster Key XAK1OCCUPATION_DE: EntryName\IsCurrentFLAGIndexes TWstat_Occupation_DE_DefinitionSetID_EntryName_IsCurrentFLAG, TWstat_Occupation_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG(2)EntryName[dbo].[name]255NOT NULLUnique alphanumeric "friendly" display name
Indexes XAK3OCCUPATION_DEEntryMnemonic[dbo].[code]10NOT NULLTypically the same as the Code value, but can be blank.  If present, it must be unique
Indexes TWstat_Occupation_DE_IsInactiveFLAG_EntryName_IsCurrentFLAGCheck Constraints CK_Occupation_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_Occupation_DE_IsEnforcedFLAG_Yes_Or_No : ([IsEnforcedFLAG]='N' OR [IsEnforcedFLAG]='Y')IsEnforcedFLAG[dbo].[BOOL]1NOT NULLY=row is readonly;  N=row is modifiable
Cluster Key XAK1OCCUPATION_DE: EntryName\IsCurrentFLAGIndexes XAK2OCCUPATION_DE, XAK3OCCUPATION_DE, TWstat_Occupation_DE_DefinitionSetID_EntryName_IsCurrentFLAG, TWstat_Occupation_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG(4)Check Constraints CK_Occupation_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")
Foreign Keys Fk_CDSRoleDE: [dbo].[CDS_Role_De].CDSRoleDeCDSRoleDe[dbo].[dict_id]5NOT NULLHolds the CDS Role ID. Link to CDS_Role_DE.ID