Tables [dbo].[Security_Code_DE]
List of Security Codes
KeyNameData TypeMax Length (Bytes)NullabilityIdentityDefaultDescription
Cluster Primary Key PK_Security_Code_DE_ID: IDIndexes TWstat_Security_Code_DE_DefinitionSetID_EntryName_IsCurrentFLAG_IDID[dbo].[dict_id]5NOT NULL1 - 1Key to the Security_Code_DE table.
Indexes TWstat_Security_Code_DE_DefinitionSetID_EntryName_IsCurrentFLAG_IDDefinitionSetID[dbo].[dict_id]5NOT NULLMaster (enterprise) dictionary surrogate key.  Points to Dictionary_Entry.EnterpriseEntryID
EnterpriseEntryID[dbo].[uniqueid]9NOT 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_Security_Code_DE_EntryCode_WithIncludeColumns, NIX_Security_Code_DE_EntryMnemonic_WithIncludeColumns, NIX_Security_Code_DE_EntryName_WithIncludeColumns(3)EntryCode[dbo].[code]10NOT NULLUnique alphanumeric code.  Brief but cryptic.
Indexes NIX_Security_Code_DE_EntryCode_WithIncludeColumns, NIX_Security_Code_DE_EntryMnemonic_WithIncludeColumns, NIX_Security_Code_DE_EntryName_WithIncludeColumns, TWstat_Security_Code_DE_DefinitionSetID_EntryName_IsCurrentFLAG_ID(4)EntryName[dbo].[name]255NOT NULLUnique alphanumeric "friendly" display name
Indexes NIX_Security_Code_DE_EntryCode_WithIncludeColumns, NIX_Security_Code_DE_EntryMnemonic_WithIncludeColumns, NIX_Security_Code_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_Security_Code_DE_EntryCode_WithIncludeColumns, NIX_Security_Code_DE_EntryMnemonic_WithIncludeColumns, NIX_Security_Code_DE_EntryName_WithIncludeColumns(3)Check Constraints CK_Security_Code_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_Security_Code_DE_IsEnforcedFLAG_Yes_Or_No : ([IsEnforcedFLAG]='N' OR [IsEnforcedFLAG]='Y')IsEnforcedFLAG[dbo].[BOOL]1NOT NULLY=row is readonly;  N=row is modifiable
Indexes NIX_Security_Code_DE_EntryCode_WithIncludeColumns, NIX_Security_Code_DE_EntryMnemonic_WithIncludeColumns, NIX_Security_Code_DE_EntryName_WithIncludeColumns, TWstat_Security_Code_DE_DefinitionSetID_EntryName_IsCurrentFLAG_ID(4)Check Constraints CK_Security_Code_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")
Check Constraints CK_Security_Code_DE_AllowOverrideFLAG_Yes_Or_No : ([AllowOverrideFLAG]='N' OR [AllowOverrideFLAG]='Y')AllowOverrideFLAG[dbo].[BOOL]1NOT NULLY/N (not settable in the app)
Message[dbo].[message]255NOT NULL(' ')not used
AccessTypesint4NULL allowedAccess Types
IsConfidentialFLAG[dbo].[BOOL]1NOT NULL('N')Confidential Flag for Security Code. When "Y" then Only Users with this Security Code can see the Document.
Foreign Keys FK_Security_Code_DE_FHIRSecurityLabelID: [dbo].[FHIR_Security_Label].FHIRSecurityLabelIDFHIRSecurityLabelID[dbo].[uniqueid]9NOT NULL((0))FHIR Security Label. Reference to FHIR_Security_Label.ID column
IncludeInExportFLAG[dbo].[BOOL]1NOT NULL('N')Documents need this Security code to be exported with EHI Export