dbo.SXAMMOrderReviewList 
Default Table Name  SXAMMOrderReviewList 
Definition  This table will be used to store retrieve and track Pharmacy Order Review actions in the Pharmacy system. Once reviewed the data will be moved to the History table based on the Lookback period configuration. Items that remain un-reviewed until a visit is discharged (configurable setting) will be deleted from here 

dbo.SXAMMOrderReviewList 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. 
OrderReviewListID(PK)    bigint  NO  Auto generated unique primary key value. 
OrderID(FK)    bigint  NO  A foreign key to the OrderID column in the SXAMMOrder table. 
OrderGUID    HVCIDdt  NO  This is the GUID of the order 
OrderStatusHistoryGUID    HVCIDdt  NO  This is the GUID from the CV3OrderStatusHistoryTable of the action that caused the record to be created. 
FormerFunctionCodeType    int  NO  This is the previous state before the action was taken. Calculation based on CV3OrderStatusHistory.FunctionCodeNum of immediately preceding record and cross-reference table SXAMMOrderFunctionCodeXREF. Text stored in CV3EnumReference 
CurrentFunctionCodeType    int  NO  This is the current state now that the action has taken place. Calculation based on CV3OrderStatusHistory.FunctionCodeNum of immediately preceding record and cross-reference table SXAMMOrderFunctionCodeXREF. Text stored in CV3EnumReference 
IsStatOrder    bit  NO  This is the STAT order indicator 
RequestedDtm    datetime  NO  Visit TimeZone - This is the timestamp indicating when the action was taken. It is derived from CV3OrderStatusHistory.CreatedWhen 
RequestedByGUID    HVCIDdt  NO  This is the CareProvider GUID of the person that requested the action. Based on CV3OrderStatusHistory.RequestedByGUID 
RequestedByDisplayName    varchar(50)  NO  This is the display name of the requestor. Calculation based on CV3OrderStatusHistory.RequestedByGUID and CV3CareProvider.DisplayName/CV3User.DisplayName 
EnteredByGUID    HVCIDdt  NO  This is the CareProvider/User GUID of the person that entered the action. Based on CV3OrderStatusHistory.UserGUID 
EnteredByDisplayName    varchar(50)  NO  PHI: This is the display name of the person who entered the change. Calculation based on CV3OrderStatusHistory.EnteredByGUID and CV3CareProvider.DisplayName/CV3User.DisplayName 
OrderDescription    varchar(1000)  NO  This is the summary line to be displayed in the application. It is based on data from CV3Order.Name and CV3Order.SummaryLine 
OrderDetails    varchar(1000)  YES  This will be used to display additional details. This is based on data returned from dbo.SXAMMOrderTextLineFn(OrderID, 1) . Thesis called DispensingDetails in the RxWorkListSelPr 
OrderNotes    varchar(2000)  YES  This will be used to display additional details. This is based on data returned from dbo.SXAMMOrderTextLineFn(OrderID, 2). This is called Notes in the RxWorkListSelPr. 
ReasonText    varchar(2000)  YES  This is the Reason text from the action based on CV3OrderStatusHistory.ReasonText 
IsReviewed    bit  NO  This is the Reviewed indicator 
ReviewedDtm    datetime  YES  Visit TimeZone - This is the timestamp indicating when the item has been reviewed 
ReviewedByDisplayName    varchar(50)  YES  This is the ID of the person that reviewed the item 
ReviewedByIDCode    varchar(30)  YES  IDCode of the user who reviewed the order 
MSrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
OrderStatusHistorySource    varchar(30)  YES  SourceCode value from CV3OrderStatusHistory 
OrderHasMessage    bit  YES  If a record exists in SXAMMMessageOrder for the order 
OrderHasRxNote    bit  YES  If a record exists in SXAMMOrderOptionNote for the order 
IsFutureSuspend    bit  YES  Is the latest action a future suspend action in the CV3OrderStatusHistory table 
AdditionalDetails    xml  YES  Intended for additional information 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAMMOrderReviewList Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAMMOrderReviewListPK  PrimaryKey  OrderReviewListID