dbo.SXAAMMSPQuestionnaire 
Default Table Name  SXAAMMSPQuestionnaire 
Definition  Stores “Medicare as a Secondary Payer” Questionnaire associated with patient visits. 

dbo.SXAAMMSPQuestionnaire 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. 
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. 
IsActive    bit  NO  Indicates whether or not the row (specifically in this case the MSPQuestionnaire) is active. 
MSPQuestionnaireID(PK)    bigint  NO  Auto generated unique primary key value. 
ClientGUID(FK)    HVCIDdt  NO  A foreign key to the GUID column in the CV3Client table. 
VisitGUID(FK)    HVCIDdt  NO  A foreign key to the ClientVisitGUID column in the SXAAMVisitRegistration table. 
VisitTypeGUID(FK)    HVCIDdt  NO  A foreign key to the GUID column in the CV3VisitType table. 
VisitServiceGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3Service table. 
IsWorkRelated    tinyint  NO  Flag indicating whether or not the Illness/Injury is work related. 
IsThirdPartyLiable    tinyint  NO  Flag indicating whether or not a third party (other than “employer”) may be liable. 
IllnessInjuryInceptionDtm    datetime  YES  Enterprise TimeZone - Date the illness/injury’s inception. 
FRPContractGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3FRPContract table. 
EmployerID(FK)    int  YES  A foreign key to the EmployerID column in the SXAAMEmployer table. 
IsReceivingBlackLungBenefits    tinyint  NO  Identifies whether or not the patient is receiving Federal “Black Lung” Benefits. 
BlackLungBenefitsInceptionDtm    datetime  YES  Enterprise TimeZone - Inception of “Black Lung” benefits. 
IsGovProgramPayer    tinyint  NO  Identifies whether or not a government program is sponsoring the treatment / services. 
IsDeptOfVeteranAffairsPayer    tinyint  NO  Identifies whether or not the Dept of Veteran Affairs is sponsoring the treatment / services. 
MedicareEntitlementType    int  YES  An enumerated type with the following list of possible values: 0 = [Age65Plus],1 = [AgeLessThan65WithDisability],2 = [ESRD], 
IsMedicareSecondaryPayer    bit  NO  Identifies whether or not Medicare (as a result of the questionnaire) has been determined to be a “secondary” payer. 
IsCurrentlyEmployed    tinyint  NO  Identifies whether or not the patient is “currently” employed. 
CurrentEmployerID(FK)    int  YES  A foreign key to the EmployerID column in the SXAAMEmployer table. 
RetirementDtm    datetime  YES  PHI: Enterprise TimeZone - Date the patient officially retired (if applicable) 
IsAlternateCurrentlyEmployed    tinyint  NO  Identifies whether or not the patient’s spouse or an alternate member of the family (in cases of disability) is currently employed. 
AlternateCurrentEmployerID(FK)    int  YES  A foreign key to the EmployerID column in the SXAAMEmployer table. 
AlternateRetirementDtm    datetime  YES  PHI: Enterprise TimeZone - Date the spouse or alternate family member officially retired (if applicable). 
IsGHPCoverageAvailable    tinyint  NO  Identifies whether or not the patient is covered by a “Group Health Plan” (i.e. own, spouse’s, family member’s, or employer’s) 
DoesGHPEmployerEmploy20    tinyint  NO  Identifies whether or not the employer who sponsors the GHP employs 20 or more employees. 
DoesGHPEmployerEmploy100    tinyint  NO  Identifies whether or not the employer who sponsors the GHP employs 100 or more employees. 
GHPContractGUID(FK)    HVCIDdt  YES  A foreign key to the GUID column in the CV3FRPContract table. 
IsKidneyTransplantRecipient    tinyint  NO  Identifies whether or not the patient has received a “kidney transplant.” 
KidneyTransplantDtm    datetime  YES  PHI: Enterprise TimeZone - Date of kidney transplant (if applicable). 
IsUndergoingDialysis    tinyint  NO  Identifies whether or not the patient has received “maintenance” dialysis treatments 
DialysisInceptionDtm    datetime  YES  Enterprise TimeZone - Date of dialysis inception (if applicable). 
SelfDialysisTrainingDtm    datetime  YES  Enterprise TimeZone - Date patient began a self-dialysis training program (if applicable) 
IsWithin30MonthCoordinationPeriod    tinyint  NO  Identifies whether or not the patient is within the “30-month coordination period” (applicable to ESRD). 
IsEntitlementComboESRDAndOne    tinyint  NO  Identifies whether or not Medicare entitlement is two-fold (i.e. due to both ESRD and Age, or, ESRD and Disability). 
WasInitialEntitlementESRD    tinyint  NO  Identifies whether or not the patient’s initial Medicare entitlement was due to ESRD. 
DoesMSPProvisionApply    tinyint  NO  Identifies whether or not certain MSP provisions apply with regard to the GHP. 
MSrepl_tran_version    uniqueidentifier  YES  Optimistic lock identifier. 
IsWCMSAProgram    tinyint  YES  To store the value of IsWCMSAProgram is selected or not. 
COBDtm    datetime  YES  Enterprise TimeZone - The date and time when the COB Date-time was entered 
CompletedWhen    datetime  YES  Enterprise TimeZone - The date and time when the CompletedWhen Date-time was entered 
CompletedBy    varchar(50)  YES  PHI: To store the value of CompletedBy. 
InfoXML    xml  YES  Stores extended information related to the MSPQuestionaire 
IsSpouseCurrentlyEmployed    tinyint  NO  Stores if the Spouse is Employed 
SpouseCurrentEmployerID    int  YES  PHI: Stores Spouse Employer ID 
SpouseRetirementDtm    datetime  YES  PHI: Enterprise TimeZone - Stores Spouse Retirement Date 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 
HasPatientDeclinedToAnswer    bit  NO  column will store if Patient Declined To Answer MSP Questionnaire or not 

dbo.SXAAMMSPQuestionnaire Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAAMMSPQuestionnairePK  PrimaryKey  MSPQuestionnaireID