dbo.SXAMMOrderDispensingHistory 
Default Table Name  SXAMMOrderDispensingHistory 
Definition  Contains all the valid combinations of values of Pharmacist Actions on order dispensing details 

dbo.SXAMMOrderDispensingHistory 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. 
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. 
OrderDispensingHistoryID(PK)    bigint  NO  Auto generated unique primary key value. 
FillOccurrenceID(FK)    bigint  YES  A foreign key to the FillOccurrenceID column in the SXAMMFillOccurrence table. 
OrderID(FK)    bigint  NO  A foreign key to the OrderID column in the SXAMMOrder table. 
DoseNumber    int  YES  Dispensing sequence for filling or initial process types. The number will depend on the LastDoseNum column value in table SXAMMFillingReport. It will be null for LabelPerOrder 
DispensingDtm    datetime  NO  Visit TimeZone - Date and time of an order dispensing. The value where is the same as SXAMMFillingLabelData.DiapensingDtm 
AdminTime    datetime  YES  Visit TimeZone - Admin time of an order dispensing. Null for LabelPerOrder 
ProcessType    varchar(100)  NO  Process type of an order dispensing. This value depends where the dispensing is processed. If it happens in MMOE then the process can be "Initial', "ADM", "Robot", "Dose Request", "Floorstock". If it happens in Carfill service then the process is PolicyName from SXAMMCartFillPolicy or FillPeriodName from SXAMMPharmacyFillPeriodConfig 
Quantity    int  NO  Dose quantity requested. LabelPerDose is always 1. Label per order varies is usually 1 or more depending on the frequency of the order (BID, TID etc). 
IsPRN    bit  NO  This value indicates whether a dispensing order is PRN type 
IsLabelPerDose    bit  NO  This value indicates whether dispensing labels are label per dose ( 
LabelPrinterName    varchar(30)  NO  The label printer name 
MSRowVersion    timestamp  NO  Optimistic lock identifier using rowversion datatype. 
ActionUserGUID    HVCIDdt  YES  GUID from CV3User for user performing the action 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAMMOrderDispensingHistory Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAMMOrderDispensingHistoryPK  PrimaryKey  OrderDispensingHistoryID