dbo.SXAMMStockItem 
Default Table Name  SXAMMStockItem 
Definition  This table contains the stock item information 

dbo.SXAMMStockItem 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. 
Active    bit  NO  Denotes whether the row is active or not, 0 means the row has been soft deleted or deactivated. 
StockItemID(PK)    int  NO  Auto generated unique primary key value. 
GenericItemID(FK)    int  NO  A foreign key to the GenericItemID column in the SXAMMGenericItem table. 
PreferredStockItemProductID(FK)    int  YES  A foreign key to the StockItemProductID column in the SXAMMStockItemProduct table. 
StockItemQty    numeric(14, 4)  NO  Identifies the quantity the product is stocked in. For example: 1 each 5 ml, 17 g etc... 
StockItemUOMCode    varchar(30)  NO  Identifies the Unit of Measure that corresponds with the Stock Quantity. Must be one of the units of measures specified in the GIDoseConversion table for the GI. 
DefaultParQty    numeric(14, 4)  YES  Identifies the minimum quantity that is to be dispensed when a PRN order is filled for generic items when initial doses or cart fill in this location. 
DefaultParUOMCode    varchar(30)  YES  Identifies the Unit of Measure that corresponds with the Default PRN Daily Par Qty. 
PrintLabelPerDose    bit  NO  Defines whether individual labels should be printed when dispensing initial and first doses.

True means to print individual labels, while false means to print only one label 
DispenseSubTypeID(FK)    int  YES  A foreign key to the DispenseSubTypeID column in the SXAMMDispenseSubType table. 
ChargeByType    int  YES  An enumerated type with the following list of possible values: 0 = [Unit],1 = [Package], 
IsDispensable    bit  NO  Identifies if the stock item is dispensable 
MinAdminQty    numeric(14, 4)  YES  Identifies the minimum administration quantity for the stock item

,Use the Stock Item Qty UOM Code as the UOM 
IsMultiDose    bit  NO  Identifies if the stock item is multi-dose. 
IsADMLoadable    bit  NO  Identifies if the stock item can be loaded into an ADM or not. 
ADMItemIdXref    varchar(30)  YES  This ID will be sent in HL7 messages to identify the item to the ADM.

,Can be used to store an existing ItemId from an ADM installation's formulary. 
DispensingDescriptionID(FK)    int  YES  A foreign key to the DispensingDescriptionID column in the SXAMMDispensingDescription table. 
MSrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
IsRobotLoadable    bit  NO  Identifies if the Stock Item can be loaded into the Robot or not.  
ExpressLoadKey    varchar(300)  YES  User value to uniquely identify a stock item. This is used only by Express unload / load when transferring data between master active databases. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 
IsWasteBilling    bit  NO  Indicates whether quick charges are auto generated for wasted dose 
WasteQuickChargeOCMIGUID    HVCIDdt  YES  Stores the GUID of the OCMI that needs to be used to auto generate quick charge for wasted dose. It is aforeign key reference to the CV3OrderCatalogMasterItem table 

dbo.SXAMMStockItem Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAMMStockItemPK  PrimaryKey  StockItemID