dbo.CV3ClientDocHistoryARC 
Default Table Name  CV3ClientDocHistoryARC 
Definition  Contains older document records.This table has the history of changes to a client document. 

dbo.CV3ClientDocHistoryARC 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  NO  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  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. 
ClientGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3Client table. 
HistoryType    int  YES  Represents the type of change that took place that caused history for this document to be recorded. 0 = EnteredSigned; 1 = EnteredUnsigned; 2 = Signed; 3 = Canceled; 4 = RevisedSigned; 5 = RevisedUnsigned; 6 = Complete; 7 = Final; 8 = Appended; 9 = Signature Refused; 10= Signature Reassigned
 
ClientDocGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3ClientDocumentARC table. 
HistoryDtm    datetime  YES  The date and time that the history was recorded. 
UserGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3User table. 
HistoryReason    varchar(500)  YES  An optional reason that indicates why the history was performed. 
CreatedByDisplayName    varchar(80)  YES  PHI: The display name of the person who made this modification. 
AuthorGroupCounter    int  YES  Tracks which instance of history the author’s belong to. 
ArrivalDtm    datetime  YES  The date and time used for replication. 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
DocumentStatusType    tinyint  YES  DocumentStatus will continue to mirror the HistoryType and match the behaviour from the previous releases. 
RevisionStatusType    tinyint  YES  This is a new column. This will store all the actions that are performed on the document. The actions can be entered, revised, updated, not revised, appended or unfinalized. 
SignatureStatusType    tinyint  YES  This is a new column. This will store the 'signature state' of the document. 
ServiceDtmUTC    datetimeoffset(3)  YES  DateTime field for maintaining History of Date of Service 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 
ArcType(PK)(FK)    int  NO  A foreign key to the ArcType column in the CV3ClientDocumentARC table. 
DoNotSendToPortalReason    varchar(255)  YES  Marking the document and capturing reason from not sending to SPP or FMH 
SendDocToPatientPortalType    tinyint  NO  Stores the patient portal Type  
AvailableToPortalReason    varchar(255)  YES  Stores override reason for documents marked as Do Not show in patient portal  

dbo.CV3ClientDocHistoryARC Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3ClientDocHistoryARCPK  PrimaryKey  GUID, ArcType