Tables [dbo].[Medication_Allergy_DE]
Medication Allergy Dictionaries
KeyNameData TypeMax Length (Bytes)NullabilityIdentityDefaultDescription
Cluster Primary Key PK_Medication_Allergy_DE_ID: IDIndexes NIX_Medication_Allergy_DE_MedDictDEID[dbo].[dict_id]5NOT NULL1 - 1Key to the Medication_Allergy_DE table
EnterpriseEntryID[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_Medication_Allergy_DE_EntryCode_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryMnemonic_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_IsInactiveFlag_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE(6)EntryCode[dbo].[code]10NOT NULLUnique codes for Medicaton Allergy. Ex : M32121,M99355    etc
Indexes NIX_Medication_Allergy_DE_EntryCode_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryMnemonic_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_IsInactiveFlag_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE(6)EntryName[dbo].[name]255NOT NULLDescrption for Entry Codes. Ex Acidophilus CAPS ,  Acidophilus Oral Tablet Chewable Etc.
Indexes NIX_Medication_Allergy_DE_EntryCode_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryMnemonic_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_IsInactiveFlag_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE(6)EntryMnemonic[dbo].[code]10NOT NULLTypically the same as the Code value, but can be blank.  If present, it must be unique.
Indexes NIX_Medication_Allergy_DE_EntryCode_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryMnemonic_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_IsInactiveFlag_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE_WithIncludeColumns(5)Check Constraints CK_Medication_Allergy_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_Medication_Allergy_DE_IsEnforcedFLAG_Yes_Or_No : ([IsEnforcedFLAG]='N' OR [IsEnforcedFLAG]='Y')IsEnforcedFLAG[dbo].[BOOL]1NOT NULLY=row is readonly;  N=row is modifiable
Indexes NIX_Medication_Allergy_DE_EntryCode_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryMnemonic_WithIncludeColumns, NIX_Medication_Allergy_DE_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE_WithIncludeColumns(4)Check Constraints CK_Medication_Allergy_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")
Indexes AllergyCode, NIX_Medication_Allergy_DE_IsInactiveFlag_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE(4)AllergyCodevarchar(12)12NOT NULLAllergy Code
Indexes NIX_Medication_Allergy_DE_IsInactiveFlag_EntryName_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE_WithIncludeColumns, NIX_Medication_Allergy_DE_MedDictDE(3)MedDictDE[dbo].[dict_id]5NULL allowed(0)Medication if it is one. Refers to Medication_DE.ID
MedAllergy_SNOMEDvarchar(18)18NOT NULL('')Snomed Code for Med Allergy