However, as with other compounds commonly called vitamins, vitamin D was discovered in an effort to find the dietary substance that was lacking in a disease, namely, rickets , the childhood form of osteomalacia .