![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||
|
Infobox drug: Changes log
|
---|
|
Emitting citation template errors
Identifiers | |
---|---|
CAS Number |
I have noticed that {{infobox drug}} has started to emit citation template errors. For example, when editing the lead section of Ridaforolimus, the error message "Script warning: One or more citation templates have errors" is displayed. If one removes the |CAS_number=
parameter, the error message goes away. Looking at the {{infobox drug}} script code, it is not obvious to me why this error message is being generated. Any ideas? Boghog (talk) 14:00, 5 February 2022 (UTC)
- I have added an extremely abbreviated
{{infobox drug}}
that I lifted from Alendronic acid. If this section is previewed, there is no citation template error message in the preview message box. If you copy the abbreviated{{infobox drug}}
and replace the entire content of the Ridaforolimus, or replace the entire content of Alendronic acid with the abbreviated infobox and then preview (don't save), you should see the error message. Pick a random non-chemistry article (I used USS Will Rogers (SSBN-659)) and replace its entire content with the abbreviated infobox and preview: no preview error message. Also, in none of these examples does the infobox actually render a visible citation. Because this issue seems tied to chemistry articles only, I wonder if this has something to do with wikidata. - Poking around in Module:Citation/CS1, I think that I can see the offending
{{citation}}
rendering:- Food and Drug Administration (ed.), ridaforolimus, UNII 48Z35KB15K, Wikidata Q6593799
{{citation}}
:|access-date=
requires|url=
(help) - category commented out; error message not styled because at the place that I extracted this citation, template styles has not yet been included in the rendering.
- Food and Drug Administration (ed.), ridaforolimus, UNII 48Z35KB15K, Wikidata Q6593799
{{cite q}}
is transcluded by the infobox, so perhaps this citation is that case but whatever is calling{{cite q}}
is not returning the rendered citation. I suspect{{cite q}}
because that template always includes the wikidata qid and{{cite q}}
is a wrapper template around{{citation}}
.- —Trappist the monk (talk) 16:39, 11 February 2022 (UTC)
- @Trappist the monk and Boghog:
- Suspected edit re
|CAS_number=
(May 2021): [1] in {{Infobox drug/formatCASnumber}}. To revert (but do keep 'www' removed). - I do not understand (nor was it discussed/announced) what improvement was intended. I am not sure that "wd-source" route is the way to go anyway.
- Same and worse: In sister IB {{Chembox}}, same day same editor Leyo same edit [2] had to be revered. Even worse, after that similar edit, Leyo inserted a sandbox [3] (?!), also reverted.
- so: Revert partially, and don't spend time on searching intention. Thanks for the reports. -DePiep (talk) 17:40, 11 February 2022 (UTC)
Template-protected edit request on 14 February 2022
Please revert this edit partially, do keep removed. In {{Infobox drug/formatCASnumber}}, the latest edit, 5 May 2021.
www.
- Change: bugfix. See report at § Emitting citation template errors: engaging wikidata this way introduced citation errors.
- Background: See bug research above. Change was not discussed or tested. Similar issue happened at {{Chembox}} (talk, [4] &tc.). I note that no such change or edit can be made without propor discussion, sandboxing and testing beforehand.
- @Boghog and Trappist the monk: thanks for the reports. DePiep (talk) 09:02, 14 February 2022 (UTC)
Background
The edit you would like to revert was made 9 months ago and hasn't caused any citation errors until very recently. Therefore, it is likely that the error occurred due to a change of another template or module. --Leyo 22:03, 14 February 2022 (UTC)
- Leyo, about the bug: you have not disproven the bug; just an assumption. It's just that the report by boghog appeared recently. @Trappist the monk: convincingly showed, above, that this invoking Wikidata was the cause. No related edits were made since. As noted, on that same day May 2021, you introduced the similar error in {{Chembox CASNo/format}} (overwritten by you with your sandbox page [5]?!). In this debugging process, you were pinged, already weeks ago [6]. Conclusion: it is a bug, to be fixed, and you have not convinced otherwise.
- Leyo, about your edits and posts: I have re-opened this Edit Request. By now, I conclude that you have introduced a bug and are unwilling to acknowledge, and unwilling engage in discussion, and obstructing the bugfix. With this, cancelling this Edit Request as you did is disruptive. To make the edits, you had to use your WP:TPE rights. You did not sandbox, not test, not discuss your edits befoe or after. That is an abuse of TPE right twice (no consesus seeked, not debug known bug=keep disruption). If you persist in this disruption in any way, be it on talkpage or in editing, that could be a reason to have your TPE bit be revoked. -DePiep (talk) 07:49, 15 February 2022 (UTC)
- I take note of your view. I couldn't react earlier as I was almost entirely offline for the last few weeks. --Leyo 08:30, 15 February 2022 (UTC)
- I now actually reactivated the edit request (as I intended) [7]. Why on earth was the Edit Request template commented out at all, Leyo? DePiep -12:29, 15 February 2022 (UTC)
- Well, there is no need to rush since readers are not affected. The reason why this error only occurs now, i.e. after several months, should be investigated first. Moreover, how many articles are affected? --Leyo 15:15, 15 February 2022 (UTC)
- This search suggests that approximately 7700 articles are affected. This error became noticeable following the most recent update to the cs1|2 module suite which was completed 2022-01-26. Before then, cs1|2 was not capable of separately reporting errors via the preview message box.
- —Trappist the monk (talk) 16:04, 15 February 2022 (UTC)
- No Leyo, not "investigated first". It is a bug, so revert first. After that, there is space & time for investigation and whatever (but not in live templates). I'd expect a template TPE editor to understand & agree. -DePiep (talk) 16:11, 15 February 2022 (UTC)
- Well, there is no need to rush since readers are not affected. The reason why this error only occurs now, i.e. after several months, should be investigated first. Moreover, how many articles are affected? --Leyo 15:15, 15 February 2022 (UTC)
- I now actually reactivated the edit request (as I intended) [7]. Why on earth was the Edit Request template commented out at all, Leyo? DePiep -12:29, 15 February 2022 (UTC)
- I take note of your view. I couldn't react earlier as I was almost entirely offline for the last few weeks. --Leyo 08:30, 15 February 2022 (UTC)
Done Per Wikipedia:Template editor,
This right should never be used to gain an upper hand in editing disputes
. This request not being implemented would produce a situation in which Leyo has used his template editor right (included in adminiship) to gain the upper hand in an editing dispute. * Pppery * it has begun... 20:48, 17 February 2022 (UTC)
- I am not sure what you are talking about. My last edit to this template was in May 2021. --Leyo 10:44, 18 February 2022 (UTC)
- That's effectively a long-winded (and, on reflection, more direct than necessary) way of saying that I reverted your edit (despite your objections) on the principle that BRD should still apply even if the reverter doesn't have the technical rights to revert the edit. I'm not saying you did anything wrong in May 2021. * Pppery * it has begun... 17:56, 20 February 2022 (UTC)
Question on Solubility Section
Hello, I'm wondering what the 'intended' use of the solubility section is for. Is it meant only for solubilities of the type "10mg/L at STP" or can it also be used for solvation free energies ΔGsolvH2O of the form "-5 kcal/mol"? RFZYNSPY talk 05:33, 21 March 2022 (UTC)
INN link for EMA does not work
@DePiep: It appears that the INN links that follow the EMA field in License Data section does not work. Any ideas? --kupirijo (talk) 10:28, 12 June 2022 (UTC)
For example in Aspirin the automated search link is: http://www.ema.europa.eu/ema/index.jsp?curl=%2Fpages%2Fmedicines%2Flanding%2Fepar_search.jsp&mid=&searchTab=searchByKey&alreadyLoaded=true&isNewQuery=true&status=Authorised&status=Withdrawn&status=Suspended&status=Refused&keywordSearch=Submit&searchType=inn&taxonomyPath=&treeNumber=&searchGenericType=generics&keyword=Aspirin --kupirijo (talk) 10:43, 12 June 2022 (UTC)
- EPA has changed their website search access, few years. INN is not the (automated) serach term any more. eg to find epar for Chloramphenicol, [8] lists 34 (apparently by registered name). Separation human/vet. Translation table possibly via Download table of referrals for human and veterinary medicines (Referrals download). -DePiep (talk) 11:50, 12 June 2022 (UTC)
@DePiep: Thank you for your reply. So you are saying that it is not an easy fix, right? What about if in the Template one is able to copy/paste the url directly, instead of invoking a search script? --kupirijo (talk) 14:31, 12 June 2022 (UTC)
I also found this thread in the archive: Template_talk:Infobox_drug/Archive_19#EMA_licence_search_template_appears_to_be_broken. --kupirijo (talk) 14:37, 12 June 2022 (UTC)
- First option could be to enter the search word by parameter, then have the tempalte create the link. Also to look for: which page is expected & useful? EPAR by commercial name is not helpful. The data analysis is a puzzle. -DePiep (talk) 19:11, 12 June 2022 (UTC)
@DePiep: Thank you. There is an option to search EPARs and by INN here: https://www.ema.europa.eu/en/medicines/field_ema_web_categories%253Aname_field/Human/ema_group_types/ema_medicine Additionally, if one wants to search for "acetylsalicylic acid" for example it generates the following URL: https://www.ema.europa.eu/en/medicines/field_ema_web_categories%253Aname_field/Human/ema_group_types/ema_medicine/search_api_aggregation_ema_active_substance_and_inn_common_name/acetylsalicylic%20acid --kupirijo (talk) 16:47, 13 June 2022 (UTC)
- I'd ask you to download and look into the Referral spreadsheet Download table of referrals for human and veterinary medicines (already linked to above). The table lists all links between INN, "referral" id, true full webpage links, and other names or IDs. Questions I think that need an answer: from the spreadsheet, is the Referral link the target we want for a medicine? If so, which ID can we use (INN, EMA-defined Referral word, ...)? Please check this out (glancing or diving into it). Maybe you find an other useful route to the EMA-page in there. -DePiep (talk) 21:06, 13 June 2022 (UTC)
route of administration in bioavailability
Shouldn't route of administration be mentioned in bioavailability field? M-G (talk) 15:44, 5 October 2022 (UTC)
Proposal: add SDBS spectral information (external link)
- SDBS. See Wikipedia talk:WikiProject Chemistry § Proposal to add SDBS spectral information (external link)
DePiep (talk) 10:04, 20 January 2023 (UTC)
Template-protected edit request on 7 March 2023
Greetings and felicitations. I'm afraid I only know what I want done, not how to do it. There is a space between the legal status fields' contents and the legal status note fields' contents—this violates MOS:CITEPUNCT. Two examples are found in Daridorexant. Is there are way to eliminate that space? —DocWatson42 (talk) 07:32, 7 March 2023 (UTC)
- See my similar request at Template talk:Infobox drug/Archive 18#Template-protected edit requests on 2 August 2020 for information. I hope something has changed since then. —DocWatson42 (talk) 07:37, 7 March 2023 (UTC)
Prepared, but not fit for mainspace yet.
- I have added a check, that only adds the space when
|legal_AU_comment=
does not start with a<ref>...</ref>
. - No articles to be edited.
- See Template:Infobox drug/testcases3 § no-space before ref and § no-spaced ref (all XX countries).
- Also, Preview article Daridorexant with
{{Infobox drug/sandbox}}
will show: fixed. Note to template editor:not fit for mainspace yet.In 24h I will take another look & give a go. -DePiep (talk) 10:59, 7 March 2023 (UTC)
Completed Please execute.
- To edit: update from sandbox, please replace all code in {{Infobox drug/legal status}} with {{Infobox drug/legal status/sandbox}} (diff).
- Note: Only this one template to update. No other edits.
- Change: new helper {{Infobox drug/non-ref-space}} checks whether the input starts with a ref or with text. Accordingly, a space is prefixed or not.
- Talk: bugfix, see OP. Tests: Template:Infobox drug/testcases3 § no-space before ref and § no-spaced ref (all XX countries).
- -DePiep (talk) 07:15, 8 March 2023 (UTC)
- To editors DePiep, DocWatson42, Primefac, DMacks and Whywhenwhohow:
edited. P.I. Ellsworth , ed. put'er there 07:32, 8 March 2023 (UTC)
- <checks> Yup—that worked. Thank you. ^_^ — DocWatson42 (talk) 07:56, 8 March 2023 (UTC)
- my pleasure! Paine 07:58, 8 March 2023 (UTC)
- <checks> Yup—that worked. Thank you. ^_^ — DocWatson42 (talk) 07:56, 8 March 2023 (UTC)
- To editors DePiep, DocWatson42, Primefac, DMacks and Whywhenwhohow:
secondary bug
A few articles are in Category:Pages with script errors due to recent changes here, for example, Pecazine. The following is enough to trigger the problem:
{{Infobox drug
| legal_US_comment = (withdrawn, {{CodeFedReg|21|216|subpart=B|24|}})
}}
Removing strip markers is presumably removing the final parenthesis and that gives "Lua error: Unmatched open-paren at pattern character 2." Presumably the arbitrary text in the legal_US_comment parameter is being interpreted as a pattern and that is very hard to control. Johnuniq (talk) 09:21, 9 March 2023 (UTC)
- Working on this. Also in Piracetam with bracketed {{cite web}}. testcases. -DePiep (talk) 09:49, 9 March 2023 (UTC)
- As Johnuniq writes: pattern mixup when opening (-bracket. However, strip essence requires Lua pattern. Search contiunues. No visible error in article (not broken). When urgent, we can add
|ignore_errors=true
in module calls. -DePiep (talk) 12:02, 9 March 2023 (UTC)
Fixed. Indeed, new {{Infobox drug/non-ref-space}} ("check for initial text-or-ref whether to prefix space") failed when opening text character requires (REGEX) pattern escaping, like
%(
, and a ref was present elsewhere. This caused visible wrong spacing, and Category:Pages with script errors (Pecazine, Piracetam).
- Fix: Added [module:String|escapePattern] on search pattern [9]. Errors gone.
- @Johnuniq: thanks for the helpful report. -DePiep (talk) 08:44, 10 March 2023 (UTC)
FDA search fails, but does not return an error
The URL generated for the license_US
parameter does not appear to work anymore. Repeating the approach under § INN link for EMA does not work, I'll use the URL generated for Aspirin as an example: https://www.accessdata.fda.gov/scripts/cder/drugsatfda/index.cfm?fuseaction=Search.SearchAction&SearchTerm=Aspirin&SearchType=BasicSearch.
This redirects to the search interface, https://www.accessdata.fda.gov/scripts/cder/daf/. I figured maybe query string parameters had just changed, so I checked how requests are encoded.
When I searched for "Aspirin" today, the request URL was https://www.accessdata.fda.gov/scripts/cder/daf/index.cfm?event=BasicSearch.process
.
The request payload:
Key | Value |
---|---|
event |
BasicSearch.process
|
searchterm |
Aspirin
|
search |
I naively tried https://www.accessdata.fda.gov/scripts/cder/daf/index.cfm?fuseaction=BasicSearch.process&searchterm=aspirin
, to no avail. Perhaps if I were at all familiar with CFML I'd have a better strategy, but I figured it was worth a shot.
-- Spida-tarbell (talk) 03:27, 23 March 2023 (UTC)
- Prior discussions here, here, and here --Whywhenwhohow (talk) 06:20, 23 March 2023 (UTC)
Infobox drug FDA link
- So, we need the url for drugs ({{Infobox drug}}).
overview
- enwiki: FDA WD: Food and Drug Administration (Q204711)
- IB: {{Infobox drug}} TPU;
|legal_US=
: 2250/7900 instances
FDA databases & sitelinks (discussion)
|
---|
1. [10] Acronyms and Abbreviations Search 2. REMS [11] Approved Risk Evaluation and Mitigation Strategies 3. BMIS [12] Bioresearch Monitoring Information System (BMIS) 4. CLIL [13] Clinical Investigator Inspection List (CLIIL) 5. Dissolution Methods Database Search 6. Drug Establishments Current Registration Site Search 7. SrLC [14] Drug Safety-related Labeling Changes (SrLC) 8. Drug Shortages 9. [15] Drugs@FDA Search * Drugs@FDA includes information about drugs, including biological products, approved for human use in the United States (see FAQ), but does not include information about FDA-approved products regulated by the Center for Biologics Evaluation and Research (for example, vaccines, allergenic products, blood and blood products, plasma derivatives, cellular and gene therapy products). For prescription brand-name drugs, Drugs@FDA typically includes the most recent labeling approved by the FDA (for example, Prescribing Information and FDA-approved patient labeling when available), regulatory information, and FDA staff reviews that evaluate the safety and effectiveness of the drug.
10. FAERSFDA Adverse Event Reporting System (FAERS) Quarterly Data Files
11. FAERS [16] FDA Adverse Event Reporting System (FAERS) Public Dashboard 12. Inactive Ingredient Search for Approved Drug Products Search 14. National Drug Code Directory Search 15. Orange Book [17] (Approved Drug Products with Therapeutic Equivalence Evaluations) Search 16. OMUF [18] OTC Monographs@FDA 17. Outsourcing Facility Product Report 18. Postmarket Requirements and Commitments Search 19. PEPFAR President's Emergency Plan for AIDS Relief (PEPFAR) Database 20. Product-Specific Guidances for Generic Drug Development Database 21. Purple Book [19] (database of FDA-licensed (approved) biological products, including biosimilar and interchangeable products) 22. Wholesale Distributor and Third-Party Logistics Providers Reporting |
pilots & demos (aspirin, ..)
| ||||
---|---|---|---|---|
|
- database .. (pls expand useful database info)
- Key (some drug id? expected): .. WD: ..
- Drugs@FDA: FDA-Approved Drugs
- OpenFDA d:WDQS Query Helper (Q22907487) https://open.fda.gov/
- wikidata: d:Template:Medical_properties
proposals & discuss
In general, Wikidata has good url formatter for such a database. -DePiep (talk) 07:07, 23 March 2023 (UTC)
- Which FDA data should we linkto in the infobox? Which is preferable in the article?