Project
>
Touchworks
>
User databases
>
Works
>
Tables
> dbo.Medication_Allergy_DE
Touchworks 25.2
[dbo].[Medication_Allergy_DE]
MS_Description
Medication Allergy Dictionaries
Columns
Key
Name
Data Type
Max Length (Bytes)
Nullability
Identity
Default
Description
ID
[dbo].[dict_id]
5
NOT NULL
1 - 1
Key to the Medication_Allergy_DE table
EnterpriseEntryID
[dbo].[uniqueid]
9
NOT NULL
Master (enterprise) dictionary surrogate key. Points to Dictionary_Entry.EnterpriseEntryID
DefinitionSetID
[dbo].[dict_id]
5
NOT NULL
Points to Dict_Definition_Set.DefinitionSetID but is typically zero.
Entry
[dbo].[dict_id]
5
NOT NULL
Calculated during insert as rowcount + 1 from Dict_Definition_Set for this dictionary and set
(6)
EntryCode
[dbo].[code]
10
NOT NULL
Unique codes for Medicaton Allergy. Ex : M32121,M99355 etc
(6)
EntryName
[dbo].[name]
255
NOT NULL
Descrption for Entry Codes. Ex Acidophilus CAPS , Acidophilus Oral Tablet Chewable Etc.
(6)
EntryMnemonic
[dbo].[code]
10
NOT NULL
Typically the same as the Code value, but can be blank. If present, it must be unique.
(5)
IsInactiveFLAG
[dbo].[BOOL]
1
NOT NULL
Y=row is not active; N=row is active. (Rows are inactivated rather than deleted for history)
IsEnforcedFLAG
[dbo].[BOOL]
1
NOT NULL
Y=row is readonly; N=row is modifiable
(4)
IsCurrentFLAG
[dbo].[BOOL]
1
NOT NULL
Usually 'Y' but occasionally used to subordinate rows. Not exposed to the end user.
EffectiveDT
datetime
8
NULL allowed
Time of last modification (not "when this row goes into effect")
(4)
AllergyCode
varchar(12)
12
NOT NULL
Allergy Code
(3)
MedDictDE
[dbo].[dict_id]
5
NULL allowed
(0)
Medication if it is one. Refers to Medication_DE.ID
MedAllergy_SNOMED
varchar(18)
18
NOT NULL
('')
Snomed Code for Med Allergy