dbo.SXAAMBCommonScript 
Default Table Name  SXAAMBCommonScript 
Definition  Reference table for the most commonly prescribed medications. 

dbo.SXAAMBCommonScript 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. 
ScriptID(PK)    int  NO  Auto generated unique primary key value. 
ScriptCategoryID(FK)    int  YES  A foreign key to the ScriptCategoryID column in the SXAAMBScriptCategory table. 
GenericNameID(FK)    int  NO  A foreign key to the GenericNameID column in the SXARxGenericName table. 
DrugName    varchar(255)  NO  The name of the drug being prescribed (can be brand name or generic name) 
DoseForm    varchar(255)  YES  The form of the dose (tablet, suspension, etc) 
ProductStrength    varchar(255)  YES  The strength of the product being prescribed. 
DoseAmount    float  YES  The amount of the dosage being prescribed. 
DoseUnit    varchar(255)  YES  The unit of the dosage. 
DoseToAmount    float  YES  The high end of the dosage when a range is necessary. 
DoseToUnit    varchar(255)  YES  The unit of the high end dosage. 
QuantityAmount    float  YES  The quantity of medication being prescribed. 
QuantityUnitID(FK)    int  YES  A foreign key to the RxUOMID column in the SXARxUnitOfMeasure table. 
QuantityToAmount    float  YES  The high end of the quantity when a range is necessary. 
QuantityToUnitID(FK)    int  YES  A foreign key to the RxUOMID column in the SXARxUnitOfMeasure table. 
Route    varchar(255)  YES  The route of the prescription 
ScriptFrequencyID(FK)    int  YES  A foreign key to the ScriptFrequencyID column in the SXAAMBScriptFrequency table. 
DurationAmount    float  YES  The length of the prescription. 
DurationUnit    varchar(255)  YES  The unit for the length of the prescription. 
RateAmount    float  YES  The rate for the prescription (solutions only). 
RateAmountUnit    varchar(255)  YES  The unit for the rate of the prescription. 
RateTime    float  YES  The time associated with the rate of the prescription (solutions only). 
RateTimeUnit    int  YES  The unit for the time associated with the rate of the prescription. 
CSASchedule    smallint  NO  The national standard schedule of the drug used for auditing and classification purposes. 
MSrepl_tran_version    uniqueidentifier  NO  Optimistic lock identifier. 
MainMultumDrugCode    int  YES  The unique drug identifier from Multum. This is needed as a key to the formulary file for insurance checking. 
DrugNameID    int  YES  The unique identifier for a brand/drug name. This is also needed as a key to the formulary file for insurance checking. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAAMBCommonScript Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAAMBCommonScriptPK  PrimaryKey  ScriptID