Esempio n. 1
0
        public static void UpdateDrugLists( Lib.Data.Drug item )
        {
            item.DetermineEOC();

            var ul_pr = Lib.Systems.Lists.GetSystemList( "Drugs with Pharmacy Requirements", "drug" );

            if( item.HasEoc( "pharmacy-requirements" ) )
                ul_pr.AddItem( item.ID.Value );
            else
                ul_pr.RemoveItem( item.ID.Value );

            var ul_et = Lib.Systems.Lists.GetSystemList( "Drugs with Education/Training", "drug" );

            if( item.HasEoc( "education-training" ) )
                ul_et.AddItem( item.ID.Value );
            else
                ul_et.RemoveItem( item.ID.Value );
        }