dbo.SXAMMPharmacyBatch 
Default Table Name  SXAMMPharmacyBatch 
Definition  This entity contains the times with the LVP or IVPB batches are run. 

dbo.SXAMMPharmacyBatch 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. 
PharmacyBatchID(PK)    int  NO  Auto generated unique primary key value. 
PharmacyID(FK)    int  NO  A foreign key to the PharmacyID column in the SXAMMPharmacy table. 
BatchType    int  NO  An enumerated type with the following list of possible values: 0 = [IVPB],1 = [LVP], 
PrintLabels    bit  NO  Identifies if the label(s) should automatically print when the fill list is generated 
PrintFillList    bit  NO  Identifies if the fill list should automatically print when it is generated. 
IncludeSuspHoldOnFillList    bit  NO  Identifies if Suspended and Held Orders should be included on the fill list 
IncludeRemovalsOnUpdateList    bit  NO  Identifies if IVPB or LBP Removals should be included on the Update List 
PageBreakPerPatient    bit  NO  Identifies if the Report has a page break after each patient 
PrintRemovalsReport    bit  NO  Identifies if the Removals Report should be printed automatically when the LVP/IVPB filling processes occur. 
PrintDCLabels    bit  NO  Identifies if DCd labels should be printed automatically when the LVP/IVPB filling processes occur. 
FillHoldOrders    bit  NO  Identifies if Orders that are on hold should be filled when the LVP/IVPB filling processes occur. 
BillType    int  NO  An enumerated type with the following list of possible values: 0 = [On Admin],1 = [On Dispense], 
FillSuspendedOrders    bit  NO  Identifies if Orders that are Suspended should be filled when the LVP/IVPB filling processes occur. 
MSrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
InclRobotItems    bit  NO  Indicates whether users want to include robot handled orders in the list 
InclFloorstockItem    bit  NO  Identifies if floorstock item should be included on fill list.
 
IncludeNonFormularyOnFill    bit  NO  This field will be used to indicate whether or not Non-Formulary items should be included on the report 
IncludeZeroFillQuantity    bit  NO  Flag to indicate orders with a Zero Fill Quantity should be included on the report 
IncludePatientOwnedMed    bit  NO  Flag to indicate if Patient Owned orders should be displayed on the report 
CanPrintPrepLabel    bit  NO  This column indicates a generic item can generate a prep label 
CanPrintCompoundLabel    bit  NO  This column indicates a generic item can generate a compound label 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAMMPharmacyBatch Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAMMPharmacyBatchPK  PrimaryKey  PharmacyBatchID