Ejemplo n.º 1
0
        private void LoadDrugControlsData(int drugId)
        {
            Drug selectedDrug = Drug.GetEntityByID(drugId, _pm);

            if (EntityUtility.IsEntityAvailable(selectedDrug))
            {
                if (!selectedDrug.ExternalDispensableDrugInd && selectedDrug.ExternalRoutedDrugInd)
                {
                    // Have link to a routed drug in FDB
                    drugSearchControl.IncludeStrength = false;
                }
                else
                {
                    // Defaut or have link to a dispensable drug in FDB
                    drugSearchControl.IncludeStrength = true;
                }
                drugSearchControl.Drug_ID = drugId;
            }
        }