dbo.CV3EnterpriseColumnDef 
Default Table Name  CV3EnterpriseColumnDef 
Definition  Defines an enterprise configurable column for the Patient List. 

dbo.CV3EnterpriseColumnDef Columns 
ColumnName  Domain  Datatype  NULL  Definition 
SiteID    smallint  YES  Identifies the unique distributed database ID where the row was inserted. Distributed databases are no longer supported so this column is deprecated. 
RepFlags    tinyint  YES  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)  YES  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  YES  The date and time that the row was last updated and will be based on the Enterprise time zone. 
CreatedBy    varchar(50)  YES  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  YES  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. 
DataScope    int  NO  An enumerated type with the following list of possible values: 0 = [Visit],1 = [Chart],2 = [General], 
DataSource    int  NO  An enumerated type with the following list of possible values: 0 = [User],1 = [Interfaces],2 = [CareVISION], 
DataItemCode    varchar(40)  YES  Code field of CV3DataItem. 
DataColumnName    varchar(30)  YES  The name of the column in the Enterprise Data table where data for column is stored. 
ColumnType    int  NO  An enumerated type with the following list of possible values: 0 = [Text],1 = [Flag], 
ColumnLabel    varchar(30)  YES  The label that appears in column header on the Patient List. 
ColumnID    int  NO  The ID used to identify a column when retrieving information about a Patient List from the User Profile. 
ColumnDblClkAction    int  NO  An enumerated type with the following list of possible values: 0 = [Do Nothing],1 = [Maintain Data],2 = [Run Application],3 = [Clear Flag], 
ControlLabel    varchar(30)  YES  The label for the control of a column's data in the Data Maintenance dialog box. Applies to columns with Datasource set to User or Interface. 
ControlSequenceNumber    int  NO  The position of control in the Data Maintenance dialog box. Applies to columns with Datasource set to User or Interface. 
HVCObjectName    varchar(30)  YES  Not used. 
HVCFieldName    varchar(30)  YES  Not used. 
HVCTypeCode    varchar(30)  YES  Not used. 30 character maximum 
FlagStateEmpty    varchar(255)  YES  The description of Flag State Empty. 
FlagStateGreen    varchar(255)  YES  The description of Flag State Green. 
FlagStateRed    varchar(255)  YES  The description of Flag State Red. 
ExternalAppID    varchar(30)  YES  For column with ColumnDblClkAction set to RunApplication, indicates what external application to launch. 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.CV3EnterpriseColumnDef Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3EnterpriseColumnDefPK  PrimaryKey  GUID