dbo.SXAAMFacilityVisitTypeDefaultLocnXREF 
Default Table Name  SXAAMFacilityVisitTypeDefaultLocnXREF 
Definition  Pre-Registrations to have default loc assignment by visit type. The system shall allow only one default location to exist within a facility for each visit type; If the user chooses a visit type that is already in use, prevent the selection and present the following warning ..” This visit type is already assigned a default location.”; The system shall enable the Pre-Registrations section when the following conditions are met: the location is an assigned location, the location must be active; When “Is Default Location” is checked on a location, the user must check at least one visit type to associate the default location to; If default location is checked, the location assignment will occur automatically when creating a visit using the default location assignment. If no default is set for a facility and visit type, then manual location assignment will prevail when creating a visit; The system shall create a visual indicator in the location tree for any location defined as a default location. 

dbo.SXAAMFacilityVisitTypeDefaultLocnXREF 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. 
FacilityGUID(PK)(FK)    HVCIDdt  NO  A foreign key to the GUID column in the CV3Location table. 
VisitTypeGUID(PK)(FK)    HVCIDdt  NO  A foreign key to the GUID column in the CV3VisitType table. 
DefaultLocationGUID(PK)(FK)    HVCIDdt  NO  A foreign key to the GUID column in the CV3Location table. 
MSrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAAMFacilityVisitTypeDefaultLocnXREF Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAAMFacilityVisitTypeDefaultLocnXREFPK  PrimaryKey  FacilityGUID, VisitTypeGUID, DefaultLocationGUID