Prescribing of non-combination colecalciferol preparations

Below are the database queries which are used to create this measure. These are run against a copy of the BSA prescribing data which we store in Google BigQuery. We're working on making our BigQuery tables publicly available at which point it will be possible to run and modify these queries yourself. But even where code and database queries are not directly useable by others we believe it is always preferable to make them public.

Description Prescribing of non-combination colecalciferol preparations per 1000 patients
Why it matters Colecalciferol (vitamin D3) is commonly prescribed both as a combination product with calcium for osteoporosis and as an individal preparation.

NHS England guidance on prescribing products which are available over the counter states:

NHS advice is that people at risk of vitamin D deficiency should consider taking daily supplements of vitamin D, which should be purchased from a pharmacy, supermarket or other retailer. No evidence supports taking vitamin D supplements to prevent or treat Covid-19. People with medically confirmed deficiency may be prescribed vitamin D in line with NICE guidance.

This measure only shows colecalciferol prescriptions which are not prescribed as a combination product with other medicines.

There is significant variation in the price per unit for colecalciferol products. Our Price Per Unit Tool can help identify the most cost-effective options for your practice, although consideration needs to be given to the unlicensed status of some of the products. The links below give some common examples, or you can find more detailed information on your organisation's Price Per Unit page.

Tags Standard, Nutrition
Implies cost savings Yes
Authored by richard.croker
Checked by christopher.wood
Last reviewed 2024-12-01
Next review due 2026-12-01
History View change history on GitHub →

Numerator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(actual_cost) AS numerator
 FROM hscic.normalised_prescribing
 WHERE bnf_code IN ("0906040G0AAACAC", "0906040G0AAANAN", "0906040G0AAAPAP", "0906040G0AAAQAQ", "0906040G0AAARAR", "0906040G0AAATAT", "0906040G0AAAUAU", "0906040G0AABABA", "0906040G0AABFBF", "0906040G0AABGBG", "0906040G0AABHBH", "0906040G0AABIBI", "0906040G0AABLBL", "0906040G0AABMBM", "0906040G0AABNBN", "0906040G0AABTBT", "0906040G0AACHCH", "0906040G0AACICI", "0906040G0AACJCJ", "0906040G0AACLCL", "0906040G0AACNCN", "0906040G0AACPCP", "0906040G0AACQCQ", "0906040G0AACRCR", "0906040G0AACSCS", "0906040G0AACUCU", "0906040G0AACVCV", "0906040G0AACYCY", "0906040G0AADADA", "0906040G0AADBDB", "0906040G0AADDDD", "0906040G0AADEDE", "0906040G0AADFDF", "0906040G0AADGDG", "0906040G0AADHDH", "0906040G0AADJDJ", "0906040G0AADKDK", "0906040G0AADNDN", "0906040G0AADPDP", "0906040G0AADQDQ", "0906040G0AADRDR", "0906040G0AADSDS", "0906040G0AADTDT", "0906040G0AADUDU", "0906040G0AADVDV", "0906040G0AADWDW", "0906040G0AADXDX", "0906040G0AADYDY", "0906040G0AADZDZ", "0906040G0AAEAEA", "0906040G0AAECEC", "0906040G0AAEDED", "0906040G0AAEEEE", "0906040G0AAEFEF", "0906040G0AAEGEG", "0906040G0AAEJEJ", "0906040G0AAEKEK", "0906040G0AAELEL", "0906040G0AAEMEM", "0906040G0AAENEN", "0906040G0AAEPEP", "0906040G0AAEQEQ", "0906040G0AAERER", "0906040G0AAESES", "0906040G0AAETET", "0906040G0AAEWEW", "0906040G0AAFAFA", "0906040G0AAFCFC", "0906040G0AAFDFD", "0906040G0AAFEFE", "0906040G0AAFGFG", "0906040G0AAFHFH", "0906040G0AAFKFK", "0906040G0AAFLFL", "0906040G0AAFMFM", "0906040G0BEAADW", "0906040G0BEABBF", "0906040G0BEACBG", "0906040G0BEADBH", "0906040G0BEAEBI", "0906040G0BEAFEC", "0906040G0BEAGED", "0906040G0BFAADR", "0906040G0BGAABM", "0906040G0BHAABN", "0906040G0BHACFF", "0906040G0BIAABI", "0906040G0BIABBH", "0906040G0BIACDX", "0906040G0BIADDV", "0906040G0BIAEDR", "0906040G0BIAFDZ", "0906040G0BIAGBT", "0906040G0BIAICU", "0906040G0BIAJAN", "0906040G0BIAKAN", "0906040G0BIALDF", "0906040G0BIAMDR", "0906040G0BIANBT", "0906040G0BIAPCU", "0906040G0BIAQEL", "0906040G0BIASBG", "0906040G0BJAABG", "0906040G0BJABEL", "0906040G0BJADBH", "0906040G0BJAEEC", "0906040G0BMAABG", "0906040G0BMABBH", "0906040G0BWAABG", "0906040G0BWABCQ", "0906040G0BWACCR", "0906040G0BWADCY", "0906040G0BWAEDB", "0906040G0BWAFCN", "0906040G0BWAGAC", "0906040G0BWAHEP", "0906040G0BWAIBT", "0906040G0BWAJEL", "0906040G0BWAKCS", "0906040G0BWALBI", "0906040G0BWAMDW", "0906040G0BWANDF", "0906040G0BWAPDV", "0906040G0BWAQEQ", "0906040G0BWAREN", "0906040G0BWASEN", "0906040G0BWATEP", "0906040G0BWAUAN", "0906040G0BWAVDX", "0906040G0BWAWDK", "0906040G0BWAXCV", "0906040G0BWAYEL", "0906040G0BWAZBG", "0906040G0BWBABH", "0906040G0BWBBDR", "0906040G0BWBCCS", "0906040G0BWBDEE", "0906040G0BWBEEK", "0906040G0BWBFBF", "0906040G0BWBGDT", "0906040G0BXAAAN", "0906040G0BXABDF", "0906040G0BXACDR", "0906040G0BXADDT", "0906040G0BXAEDT", "0906040G0BXAFBI", "0906040G0BYAACH", "0906040G0BZAACI", "0906040G0CBAACJ", "0906040G0CCAADS", "0906040G0CDAACL", "0906040G0CEAAAN", "0906040G0CEABBH", "0906040G0CEACEA", "0906040G0CEADDR", "0906040G0CFAADR", "0906040G0CGAADR", "0906040G0CGABDF", "0906040G0CHAAEL", "0906040G0CHABBG", "0906040G0CHACCP", "0906040G0CHADAC", "0906040G0CHAECN", "0906040G0CHAFCQ", "0906040G0CHAGCR", "0906040G0CHAHDZ", "0906040G0CHAIEQ", "0906040G0CHAJDS", "0906040G0CHAKCU", "0906040G0CIAABI", "0906040G0CIACBH", "0906040G0CIADBG", "0906040G0CIAEDY", "0906040G0CIAFEL", "0906040G0CIAHCQ", "0906040G0CIAIDW", "0906040G0CIAJDX", "0906040G0CIAKCR", "0906040G0CIAMEA", "0906040G0CIANEQ", "0906040G0CIAPBF", "0906040G0CIAQBM", "0906040G0CIASBT", "0906040G0CIATBN", "0906040G0CIAUDS", "0906040G0CJAACS", "0906040G0CJABEE", "0906040G0CKAABI", "0906040G0CKABBF", "0906040G0CKACBH", "0906040G0CKADDW", "0906040G0CKAEDY", "0906040G0CKAFEA", "0906040G0CKAGDV", "0906040G0CKAHDR", "0906040G0CKAJEQ", "0906040G0CKAKEL", "0906040G0CKALBG", "0906040G0CKANCR", "0906040G0CKAPCP", "0906040G0CKAQCQ", "0906040G0CKARAN", "0906040G0CNACDR", "0906040G0CNADCV", "0906040G0CQAAEL", "0906040G0CRAABG", "0906040G0CTAACN", "0906040G0CVAADR", "0906040G0CVABBH", "0906040G0CXACDR", "0906040G0CXADCR", "0906040G0CYAADA", "0906040G0CYABEA", "0906040G0CYACBG", "0906040G0CYAEDV", "0906040G0CYAFDR", "0906040G0CZAADB", "0906040G0DBAACN", "0906040G0DCABDD", "0906040G0DDAADS", "0906040G0DEAAEA", "0906040G0DEABDV", "0906040G0DEACDR", "0906040G0DEADBI", "0906040G0DEAEBH", "0906040G0DFAADH", "0906040G0DFABDQ", "0906040G0DFACDU", "0906040G0DFADAN", "0906040G0DFAEBI", "0906040G0DFAFEQ", "0906040G0DFAGEK", "0906040G0DFAHEJ", "0906040G0DHAABG", "0906040G0DHABDK", "0906040G0DIAADN", "0906040G0DIABDP", "0906040G0DIACEK", "0906040G0DJAADR", "0906040G0DJABBH", "0906040G0DJACAN", "0906040G0DKAADA", "0906040G0DKABEL", "0906040G0DKACBG", "0906040G0DKAEEG", "0906040G0DKAFET", "0906040G0DKAGFC", "0906040G0DNAAAN", "0906040G0DNABDF", "0906040G0DNACDR", "0906040G0DPAAAN", "0906040G0DPABCS", "0906040G0DPACDF", "0906040G0DPADBH", "0906040G0DPAEEE", "0906040G0DPAFBI", "0906040G0DPAGBG", "0906040G0DPAJEL", "0906040G0DPAKCV", "0906040G0DPAMDR", "0906040G0DTABDX", "0906040G0DTACEL", "0906040G0DUAAEM", "0906040G0DVABBG", "0906040G0DVACEW", "0906040G0DWAAER", "0906040G0DXAAES", "0906040G0DYACFH", "0906040G0ECAABG", "0906040G0ECABBH", "0906040G0ECACDF", "0906040G0ECADEL", "0906040G0ECAECS", "0906040G0ECAFEE", "0906040G0ECAGBI", "0906040G0ECAHAN", "0906040G0ECAIDB", "0906040G0ECAJCN", "0906040G0ECAKCR", "0906040G0ECALDK", "0906040G0ECAMDR", "0906040G0ECANEK", "0906040G0ECAPEQ", "0906040G0EDAACV", "0906040G0EFABBA", "0906040G0EFACBI", "0906040G0EFADCI", "0906040G0EFAEFD", "0906040G0EHAABG", "0906040G0EHADEL", "0906040G0EHAECS", "0906040G0EIADFH", "0906040G0EJAAAC", "0906040G0EJABCQ", "0906040G0EJACDX", "0906040G0EJADBF", "0906040G0EJAEEA", "0906040G0EJAFDV", "0906040G0EJAGEN", "0906040G0EJAHCP", "0906040G0EJAIDW", "0906040G0EJAKDA", "0906040G0EJAMBT", "0906040G0EKAAET", "0906040G0EKACFK", "0906040G0ENAADV", "0906040G0ENABBF", "0906040G0ENACDX", "0906040G0ENADEA", "0906040G0EPAADB", "0906040G0EPABAC", "0906040G0EPACCN", "0906040G0EPADCQ", "0906040G0EPAECR", "0906040G0EQAADR", "0906040G0EQABAN", "0906040G0ESABET", "0906040G0ETAAFD", "0906040G0ETACCI", "0906040G0ETADFL", "0906040G0EUABBI", "0906040G0EVAABA", "0906040G0EWAADR", "0906040G0EWABDK", "0906040G0EWACAN")
 GROUP BY month, practice_id

Denominator SQL

SELECT
     CAST(month AS DATE) AS month,
     practice AS practice_id,
     SUM(total_list_size / 1000.0) AS denominator
 FROM hscic.practice_statistics
 GROUP BY month, practice_id
Feedback