Jump to content

Template talk:Infobox drug

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by DePiep (talk | contribs) at 06:10, 26 April 2023 (Bispecific monoclonal antibody: Reply OK). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Infobox drug: Changes log
  • 2016-12-08: add ECHA InfoCard from Wikidata P2566 (// with Chembox)
  • 2017-02-14: add licence_CA, improve showing+link of DailyMedID. licence_US link broken at FDA site.
  • 2017-02-16: PubChem (CID) add option 'none'. Shows & categorised (also: CASnr, Chemspider, ATCcode), simplyfy ATC/vet, fix ATC issues, always show PubChem SID, added licenSe_EU, licenSe_CA, general code cleanup
  • 2017-02-16, indexes (2nd identifiers): use unbulleted list not <br />, use /formatX subtemplates, use standard formatting, rename some index params (hard removal)
  • 2017-02-16, tracking categories: track 2nd identifiers & indexes to help maintenance checking (incl. Wikidata), rename and deprecate some, redo the track subtemplate, add default tracking option (when no need for new category)
  • 2017-05-10: add physiological data set (endogenous drugs); parameter metabolites possible in two sections.
  • 2017-05-19: reorder to position of pronunciation in rare situation; metabolism maybe repeated in contexts; add option component #5.
  • 2017-07-20: add new parameter legal_BR, legal_BR_comment with options (Brazil)
  • 2017-08-18: add INN_EMA to allow EMA-licence showing for differently written INN.
  • 2017-08-25: add local INN variants AAN, BAN, JAN, USAN as synonyms; move synonyms into clinical data section.
  • 2017-10-15: add cat 'Drug has EMA link', rm cat 'Drug has EU (EMA) licence'. See EMA talks.
  • 2017-10-21: licence_EU and EMA: improve external link (see also subtemplate)
  • 2018-03-08: adjust TemplatePar error message
  • 2018-03-31: add tracking physiologica data
  • 2018-03-31: add section gene therapy; with 4 parameters; tracking
  • 2018-03-31: add parameter gt_target_gene
  • 2018-04-14: adjust labels in gene therapy (gt_*)
  • 2018-04-18: add links 'edit at WD' to E-number and ECHA chart ID
  • 2018-08-20: vaccine_type: allow free text
  • 2019-04-22: add DTXSID, DTXSID2 for CompTox database el (uses P3117)
  • 2020-07-05: Category:Infobox-drug molecular-weight unexpected-character: +main other

@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)[reply]

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)[reply]

EPA has changed their website search access, few years. INN is not the (automated) serach term any more. eg to find epar for Chloramphenicol, [1] 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)[reply]

@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)[reply]

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)[reply]

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)[reply]

@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)[reply]

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)[reply]

route of administration in bioavailability

Shouldn't route of administration be mentioned in bioavailability field? M-G (talk) 15:44, 5 October 2022 (UTC)[reply]

Proposal: add SDBS spectral information (external link)

DePiep (talk) 10:04, 20 January 2023 (UTC)[reply]

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)[reply]

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)[reply]
You're right. Working on this. DePiep (talk) 08:34, 7 March 2023 (UTC)[reply]
Pertains to all |legal_XX_comment= (9). DePiep (talk) 08:39, 7 March 2023 (UTC)[reply]
Thank you. ^_^ DocWatson42 (talk) 08:58, 7 March 2023 (UTC)[reply]
Sorry kept you waiting. Was interrupted by mailman at the door. -DePiep (talk) 10:59, 7 March 2023 (UTC)[reply]
checkY 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)[reply]
  •  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)[reply]
To editors DePiep, DocWatson42, Primefac, DMacks and Whywhenwhohow:  edited. P.I. Ellsworth , ed. put'er there 07:32, 8 March 2023 (UTC)[reply]
<checks> Yup—that worked. Thank you. ^_^ — DocWatson42 (talk) 07:56, 8 March 2023 (UTC)[reply]
my pleasure! Paine  07:58, 8 March 2023 (UTC)[reply]

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)[reply]

Working on this. Also in Piracetam with bracketed {{cite web}}. testcases. -DePiep (talk) 09:49, 9 March 2023 (UTC)[reply]
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)[reply]
Fix: Added [module:String|escapePattern] on search pattern [2]. Errors gone.
@Johnuniq: thanks for the helpful report. -DePiep (talk) 08:44, 10 March 2023 (UTC)[reply]

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)[reply]

Prior discussions here, here, and here --Whywhenwhohow (talk) 06:20, 23 March 2023 (UTC)[reply]
I see now, thanks. I apologize for not having searched through archives first! For an ongoing problem, would it still make sense to make a new topic, but additionally link to relevant archives for reference? I'm fairly new to editing, and I appreciate the time you spent here. Spida-tarbell (talk) 17:21, 23 March 2023 (UTC)[reply]
Whyw is not reproaching you for not searching ;-) they are correctly noting earlier, fruitless talks. Meanwhile, I hope we can make it work this time, see #Infobox drug FDA link below. Still, their site is hard to analyse. Which data do we expect? DePiep (talk) 17:53, 23 March 2023 (UTC)[reply]
Thank you! So, what's tricky is that the original encoding linked to a search for the drug on the FDA website. Now, it seems that the only URL we can rely on is one that encodes the New Drug Application (NDA) ID in the URL, but this only applies to a particular instance (e.g. GlaxoSmithKline's Excedrin Migraine, NDA 020802.
Maybe someone else would fare better figuring out a working search URL for the new implementation, or I could contact the agency to ask whether such a possibility exists. – Spida-tarbell (talk) 18:54, 1 April 2023 (UTC)[reply]
Below are the 22 pages FDA provides (blue bar, collapsed). None has this solution.
Point is: how to learn the NDA key (020802 in your example), automated? Is it published? (Usually, the site itself published how to retrieve such info). We cannot rely on the reader having top type the right drug name manually. DePiep (talk) 19:21, 1 April 2023 (UTC)[reply]
Given the ability to download e.g. a CSV of the data, it seems mappings exist in the database. But the NDA key is probably of limited utility, because it'll rarely be appropriate for an article unless that article is about a specific company's formulation. And because this is using a trade name, it doesn't conform to the ontology for Wikipedia pages, which redirects all tracked trade names to an article about the generic drug. – Spida-tarbell (talk) 20:17, 1 April 2023 (UTC)[reply]
1. In the result page for trade name, I see a link that says "similar active ingredients". (ie, manual action by reader required. ouch).
2. 137 CSVs found. No NDAs though.
3. So far: if we can't find a right "FDA licence sourcepage" (INN/activesubstance is best), we must remove the datarow altogether. DePiep (talk) 20:56, 1 April 2023 (UTC)[reply]
  • So, we need the url for the FDA drug licence source/page, as to be used in {{Infobox drug}}.

overview

This overview box:
FDA databases & sitelinks (discussion)

1. [3] Acronyms and Abbreviations Search

2. REMS [4] Approved Risk Evaluation and Mitigation Strategies

3. BMIS [5] Bioresearch Monitoring Information System (BMIS)

4. CLIL [6] Clinical Investigator Inspection List (CLIIL)

5. Dissolution Methods Database Search

6. Drug Establishments Current Registration Site Search

7. SrLC [7] Drug Safety-related Labeling Changes (SrLC)

8. Drug Shortages

9. [8] 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

Downloadable data files

11. FAERS [9] FDA Adverse Event Reporting System (FAERS) Public Dashboard

12. Inactive Ingredient Search for Approved Drug Products Search

13. Medication Guides Search

14. National Drug Code Directory Search

15. Orange Book [10] (Approved Drug Products with Therapeutic Equivalence Evaluations) Search

16. OMUF [11] 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 [12] (database of FDA-licensed (approved) biological products, including biosimilar and interchangeable products)

22. Wholesale Distributor and Third-Party Logistics Providers Reporting

pilots & demos (aspirin, ..)
{{Infobox drug}} 2022 link (broken)
aspirin (WD:aspirin (Q18216))
  • demo001 Aspirin, 2022 (hardcoded)
[https://www.accessdata.fda.gov/scripts/cder/drugsatfda/index.cfm?fuseaction=Search.SearchAction&SearchTerm=Aspirin&SearchType=BasicSearch
aspirin FDA (2022)
Clinical data
License data
key=020802 https://www.accessdata.fda.gov/scripts/cder/daf/index.cfm?event=overview.process&ApplNo=020802 [13]
("NDA" code); url not in main FDA list.
Abbreviated New Drug Application (ANDA): 076295
https://www.accessdata.fda.gov/scripts/cder/daf/index.cfm?event=overview.process&ApplNo=076295 [14]
  • database .. (pls expand useful database info)
Key (some drug id? expected): .. WD: ..
(end of overview box)

proposals & discuss

In general, Wikidata has good url formatter for such a database. -DePiep (talk) 07:07, 23 March 2023 (UTC)[reply]

  • One test we must make is which key(s) FDA uses.
INN
USAN United States Adopted Name (acetaminophen)
USP United States Pharmacopeia (acetaminophen)
private key (=FDA-maintained; published we hope)
marketet name
-DePiep (talk) 15:28, 23 March 2023 (UTC)[reply]
  • Approved drug FDA-page is needed (for 'FDA-licence').
Special licences lists:
Orange book (en:[Orange book]) = "Orange Book: Approved Drug Products with Therapeutic Equivalence Evaluations"
Purple book = "Database of Licensed Biological Products"

Bispecific monoclonal antibody

Please add BsAb as a mab type for a bispecific monoclonal antibody. --Whywhenwhohow (talk) 04:20, 25 April 2023 (UTC)[reply]

OK, working on this. Please see testcases4#BsAb (new). Some questions:
Per the article, I understand BsMAb is a synonym. Accept as option? (is already in /sandbox).
Does BsAb have new |source= options to add?
What would be a |target= example?, and drug demo article? DePiep (talk) 08:18, 25 April 2023 (UTC)[reply]
Also, when |type=mab, are these two parameters required? Or can one be empty?
|mab_type=, |source=
(see their options at mab type /doc tables). -DePiep (talk) 15:00, 25 April 2023 (UTC)[reply]
In my experience, BsAb appears to be more common than BsMAb. Examples of BsAbs include amivantamab, emicizumab, and glofitamab.
Some BsAbs use the BiTE plaform and are Bi-specific T-cell engagers (e.g. blinatumomab, mosunetuzumab, teclistamab). The BiTE mab_type is supported in the template.
There is also a trAb (trifunctional antibody) type (e.g. catumaxomab, ertumaxomab) that appears to be supported in the template as mab_type 3funct.
Thanks and hope this is helpful. --Whywhenwhohow (talk) 05:30, 26 April 2023 (UTC)[reply]
Thanks, towards implementation.
Btw, tracking in Category:Infobox drug articles with an unformatted antibody source (0) will be expanded to: "|type=mab OK but |mab_type or source= not recognised/blank". DePiep (talk) 06:10, 26 April 2023 (UTC)[reply]