dbo.CV3Client 
Default Table Name  CV3Client 
Definition  A member of the Care Enterprise; Patient. 

dbo.CV3Client 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. 
BirthDayNum    int  NO  PHI: The day of birth. 
BirthMonthNum    int  NO  PHI: The month of the birthday. 1 to 12; 0 = Unknown 
BirthYearNum    int  NO  PHI: The year of birth. 
DeceasedDtm    datetime  YES  PHI: The deceased date. 
DisplayName    varchar(50)  YES  PHI: The current LastName, FirstName, and MiddleName. 
FirstName    varchar(35)  YES  PHI: The client first name. 
LastName    varchar(35)  YES  PHI: The client last name. 
MiddleName    varchar(35)  YES  PHI: The client middle name. 
Title    varchar(20)  YES  PHI: The client title 
ReligionCode    varchar(20)  YES  PHI: The client's religion. 
LanguageCode    varchar(20)  YES  PHI: The client's language. 
GenderCode    varchar(15)  YES  PHI: The client's gender. 
RaceCode    varchar(50)  YES  PHI: The client's race. 
MaritalStatusCode    varchar(15)  YES  PHI: The client's marital status. 
OccupationCode(FK)    varchar(30)  YES  A foreign key to the Code column in the CV3Occupation table. 
IDCode    varchar(20)  YES  PHI: The client's Medical Record Number. Must be unique 
IsTemporary    bit  NO  Indicates if this is a temporary client ID. 1 = True; 0 = False 
CityOfBirth    varchar(35)  YES  PHI: The city where the client was born. 
CountryDvsnOfBirth    varchar(30)  YES  PHI: The state or province where the client was born. 
CountryOfBirth    varchar(30)  YES  PHI: The country where the client was born. 
HouseholdGUID    HVCIDdt  YES  A foreign key to the GUID column in the CV3Household table. 
ApplicSource    char(5)  YES  Identifies which Eclipsys application was used to enter the information. Either CV (Sunrise Clinical Manager), ADT (ADT interface), or LAB (LAB interface) 
IsMaterialized    bit  NO  Indicates if this client has been materialized (meaning that all of their data has been retrieved from the repository). 1 = True; 0 = False 
IsPermanent    bit  NO  Indicates if this client is permanent (meaning that their data will always be held in the active databases). 1 = True; 0 = False 
IsVIP    bit  NO  PHI: Indicates if this client is a VIP. 1 = True; 0 = False 
PrivacyStatusCode(FK)    varchar(30)  YES  A foreign key to the Code column in the CV3PrivacyStatus table. 
SecurityLevel    int  YES  The client's security level. Copied from CV3PrivacyStatus. 0 = Standard; 1 = Enhanced; 2 = Ultra-Secure 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
BirthTime    varchar(10)  YES  PHI: Time of birth stored as hh:mm:ss in 24 hour clock 
IsEstimatedDOB    bit  NO  Stores IsEstimatedDOB value for Patient 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 
BirthTimeZone    varchar(100)  YES  The IANA time zone for the value stored in BirthTime column. When it is blank, assume BirthTime in enterprise time zone. 
DeceasedTimeZone    varchar(100)  YES  The IANA time zone for the value stored in DeceasedDtm column. When blank, assume DeceasedDtm in enterprise time zone. 
BirthDateINT    AS (CONVERT([int],([BirthYearNum]*(10000)+[BirthMonthNum]*(100))+[BirthDayNum]))    PHI: The day of birth.  

dbo.CV3Client Primary and Unique Keys 
Key Name  Key Type  Keys 
CV3ClientPK  PrimaryKey  GUID