dbo.CV3OrderFieldState 
Default Table Name  CV3OrderFieldState 
Definition  Store the ‘state’ of order entry field when an order or order set is placed. A row will be created for an order entry field if any of its following states are altered by MLM: IsVisible, IsMandatory, and/ or IsReadOnly 

dbo.CV3OrderFieldState 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. 
ParentGUID    HVCIDdt  NO  Link to CV3Order, CV3OrderSet or CV3OrderTaskOccurrence. 
DataItemCode    varchar(40)  NO  Data item code 
MultiFieldOccNum    int  YES  Data item occurrence number, only applicable to multi order form. 
IsVisible    int  NO  The visible state set by MLM:
-1 = default, not set
0 = hidden
1 = visible 
IsMandatory    int  NO  The mandatory state set by MLM:
-1 = default, not set
0 = not mandatory
1 = mandatory 
IsReadOnly    int  NO  The read only state set by MLM:
-1 = default, not set
0 = Modifiable
1 = Read only 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
ColumnDataItemCode    varchar(40)  YES  Store the data item code used for the column of the grid for DosageLow, CalculatedDose and Frequency 
VariableComponentGUID    HVCIDdt  YES  Link to CV3OrderVariableComponent.GUID 
AllowRowAddRemoveType    int  YES  Allow Add/Remove rows attributes set by MLM: -1 - Default not set. 0 – Disallow add/remove rows; 1 – Allow add/remove rows 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.CV3OrderFieldState Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3OrderFieldStatePK  PrimaryKey  GUID