dbo.CV3AdvancedVisitListDataItem 
Default Table Name  CV3AdvancedVisitListDataItem 
Definition  Defines the data elements associated to an advanced visit list definition 

dbo.CV3AdvancedVisitListDataItem Columns 
ColumnName  Domain  Datatype  NULL  Definition 
SiteId    smallint  NO  Identifies the unique distributed database ID where the row was inserted. Distributed databases are no longer supported so this column is deprecated. 
RepFlags    tinyint  NO  Indicates the action in a distributed database environment. Distributed databases are no longer supported so this column is deprecated. 
Build    int  NO  Identifies the build number and patch level of the software that inserted/updated this row. The format is the Build number followed by 3 digits for the patch level which is typically 000. The build number is tied to specific versions of the software, e.g. Sunrise 15.3 is Build 5021, Sunrise 16.3 is Build 5503. 
TouchedBy    varchar(50)  NO  Information about the user that last updated the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
TouchedWhen    datetime  NO  The date and time that the row was last updated and will be based on the Enterprise time zone. 
CreatedBy    varchar(50)  NO  Information about the user that created the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
CreatedWhen    datetime  NO  The date and time that the row was created and will be based on the Enterprise time zone. 
Active    bit  NO  Denotes whether the row is active or not, 0 means the row has been soft deleted or deactivated. 
GUID(PK)    HVCIDdt  NO  Unique primary key value. 
AdvancedVisitListDefnGUID    HVCIDdt  NO  A Foreign key link to CV3AdvancedVisitListDefinition. It identifies the definition to which the data items belong 
DataItemCode    varchar(40)  NO  Identifies the data item; foreign key into CV3DataItem 
SequenceNum    int  NO  The order in which the data items are presented to the user when defining their visit list criteria 
Label    varchar(40)  YES  The label displayed when the user is setting up the visit list search criteria 
ColumnHeading    varchar(40)  YES  The heading used on the visit list 
InternalFieldName    varchar(15)  YES  The name of the column on CV3AdvancedVisitListData that this data item maps to 
InternalFieldDisplayName    varchar(15)  YES  If this data item is displayed on the patient list, this is the column that is the source of the data. 
IsAvailableForSearch    bit  NO  Indicates if this data item can be used as search criteria on the visit list 
IsMandatoryForSearch    bit  NO  Indicates if this data item is required as search criteria on the visit list 
AvailableOperatorMask    int  NO  Bit mask which identifies the available operators. 1 = Equals; 2 = IN, 4 = Greater Than, 8 = Greater than or equal, 16= Less than, 32 = Less than or equal, 64 = Contains, 128 = Starts With, 256 = Between 
IsAvailableForDisplay    bit  NO  Indicates if this data item can be displayed on the visit list 
IsMandatoryForDisplay    bit  NO  Indicates if this data item must be displayed on the visit list 
ColumnID    int  YES  The ID for column definition. 
HealthIssueCodingSchemeCodes    varchar(1000)  YES  A delimited string of coding schemes. This is only applicable when the data item is of type "Health Issue". The coding schemes limits the search on coded health issues when the user is configuring their list. The delimiter will be {|}. For example ICD9{|}SNOMED. 
Msrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.CV3AdvancedVisitListDataItem Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3AdvancedVisitListDataItemPK  PrimaryKey  GUID