How do you make a codelist for high cost drugs? #1362
Replies: 7 comments 11 replies
-
High cost drugs file jas not seen much use due to the one off nature of the import. Consequently we made a whole pile of codelists at the start but never documented it. @rc16 has spotted that its not entirely clear how to make them. Opening this question to document how we make them as myself and @rc16 refresh our memory! Eventually this should make its way into docs This issue has some clear concise descriptions but you will also need to follow the links to
still a Work in Progress to see if we get a final codelist! |
Beta Was this translation helpful? Give feedback.
-
I think I need to use the unique_drug_names.csv file outside the OS environment to create a codelist. I'm not clear if this file ever gets updated? If so, how to recreate this file? I also don't have the option to create a high cost drug codelist on OpenCodelists - I presume that a csv with the drug names needs to be created and uploaded? I understand that the field for the drug name searches for exact matches. I am wondering whether being able to search for partial matches would make it much easier to query the high cost drugs - but I'm not sure if the tech team would want to do this or if it is the best thing to do but thought I'd put it on here to discuss? |
Beta Was this translation helpful? Give feedback.
-
If you could create a Psuedo-BNF or dm+d codelist with these drugs that included the name, then I can see a way that that would work in ehrql and cohort-extractor if you used the name column as the "code" column |
Beta Was this translation helpful? Give feedback.
-
Oh i wrote this doc shortly after i first joined about making code lists from the High Cost Drugs data... I haven't touched it in ages, and it isn't the slickest process but definitely worked back in the day |
Beta Was this translation helpful? Give feedback.
-
Thanks @rose-higgins that's really helpful and I think does answer some of my questions. I'll try following this and post here if I have questions. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been able to follow the document and have created the codelists locally. A couple of points:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I want to make a codelist for high cost drugs
There is no option on OpenCodelists and I can't find anything in the docs.
Beta Was this translation helpful? Give feedback.
All reactions