dbo.SXARCMRoomAndTimeEventCharging 
Default Table Name  SXARCMRoomAndTimeEventCharging 
Definition  The table will stores the configurations for Room, Observation and Custom Charges 

dbo.SXARCMRoomAndTimeEventCharging Columns 
ColumnName  Domain  Datatype  NULL  Definition 
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. 
TouchedWhenUTC    datetimeoffset(3)  NO  The date and time that the row was last updated including the time zone offset from UTC, for example 2015-01-30 04:55:04.372 -05:00. The date and time is 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. 
CreatedWhenUTC    datetimeoffset(3)  NO  The date and time that the row was created including the time zone offset from UTC, for example 2015-01-30 04:55:04.372 -05:00. The date and time is based on the Enterprise Time Zone. 
MSRowVersion    timestamp  NO  Optimistic lock identifier using rowversion datatype. 
Active    bit  NO  Denotes whether the row is active or not, 0 means the row has been soft deleted or deactivated. 
RoomAndTimeEventChargingID(PK)    bigint  NO  Auto generated unique primary key value. 
ChargeTypeID(FK)    int  NO  A foreign key to the ChargeTypeID column in the SXARCMChargeType table. 
LocationID    HVCIDdt  YES  Foreign Key to the column GUID in the table CV3Location. 
AccomodationID    int  YES  Foreign Key to the column AccommodationID in the table SXAAMAccommodation 
TransactionCodeMasterID(FK)    int  YES  A foreign key to the TransactionCodeMasterID column in the SXARCMTransactionCodeMaster table. 
VisitTypeID    HVCIDdt  YES  Foreign Key to the column GUID in the CV3VisitType table 
ServiceID    HVCIDdt  YES  Foreign Key to the column GUID in the table CV3Service 
ObservationRoundingDictionaryID(FK)    int  YES  A foreign key to the ObservationRoundingDictionaryID column in the SXARCMObservationRoundingDictionary table. 
ChargeIntervalDictionaryID(FK)    int  YES  A foreign key to the ChargeIntervalDictionaryID column in the SXARCMChargeIntervalDictionary table. 
ChargeIntervalValue    int  YES  Specify the X value when the end user selects one of the following options at field, “Generate Charges.”
Every X Day
Every X Hours
Every X Mins 
Name    varchar(200)  YES  Specify the Name that user enters in Custom Configuration 
RuleUID    uniqueidentifier  YES  Rule UID from SXAVWFRule table 
RuleBinaryDefinition    varbinary(max)  YES  This column should save all rules that are not saved in the rules table 
DefaultServiceDateTypeID    int  YES  default service date ype id 
AccomodationCode    varchar(30)  YES  accomodation code 
CareLevelID    HVCIDdt  YES  Store Care Level ID for Observation configuration 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 
BusinessRuleID    bigint  YES  Used to store business rule id of SQL rule engine 

dbo.SXARCMRoomAndTimeEventCharging Primary and Unique Keys 
Key Name  Key Type  Keys 
SXARCMRoomAndTimeEventChargingPK  PrimaryKey  RoomAndTimeEventChargingID