Does sunbathing through glass work?

Sunlight through glass doesn’t work.
The purpose of sunbathing is to prevent rickets by promoting the production of vitamin D through the ultraviolet rays of the sun, which is converted into vitamin D3. But ultraviolet rays can not pass through the glass, sunbathing through the glass will block a lot of ultraviolet rays, affecting the synthesis of vitamin D3. Normally, you should go outdoors to contact the natural sunlight, rather than sunbathing through the glass.
Calcium deficiency, vitamin D deficiency and other substances in the population, such as senile osteoporosis patients, rickets patients, patients with hypocalcemia, etc., in addition to sun exposure, but also should eat more calcium and vitamin D-containing foods, such as eggs, milk and so on.
Sunbathing can only be used as an adjunctive treatment, and this group of people with severe nutrient deficiencies cannot be improved by sunbathing alone.
It is recommended to seek medical attention if any discomfort occurs after sunbathing to avoid delay in treatment.