<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: RX PILL TAB</title>
    <description>The latest articles on DEV Community by RX PILL TAB (@rx_pilltab_3c2ada10623bb).</description>
    <link>https://dev.to/rx_pilltab_3c2ada10623bb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4204320%2F86ffeef4-c019-41c1-a0bc-819842950e26.png</url>
      <title>DEV Community: RX PILL TAB</title>
      <link>https://dev.to/rx_pilltab_3c2ada10623bb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rx_pilltab_3c2ada10623bb"/>
    <language>en</language>
    <item>
      <title>How We Built a Brand-to-Generic Name Lookup Table for a Medicine Store</title>
      <dc:creator>RX PILL TAB</dc:creator>
      <pubDate>Mon, 26 Oct 2026 09:52:48 +0000</pubDate>
      <link>https://dev.to/rx_pilltab_3c2ada10623bb/how-we-built-a-brand-to-generic-name-lookup-table-for-a-medicine-store-1nlf</link>
      <guid>https://dev.to/rx_pilltab_3c2ada10623bb/how-we-built-a-brand-to-generic-name-lookup-table-for-a-medicine-store-1nlf</guid>
      <description>&lt;p&gt;On a store that sells generic prescription medicines, one question comes up again and again: "My doctor said Cialis. Which of these is that?" Product names like Tadacip 20 or Ciasel 20 mean nothing to someone that has only ever heard the brand. So we built a brand-to-generic lookup table. Here is how it works, and what we learned about making a simple data table accessible and useful for search.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Each medicine has three names that people use interchangeably:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the &lt;strong&gt;original brand&lt;/strong&gt; (Viagra, Cialis, Propecia, Arimidex)&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;active ingredient&lt;/strong&gt; (sildenafil, tadalafil, finasteride, anastrozole)&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;generic product name&lt;/strong&gt; chosen by each maker (Fildena 100, Tadacip 20, Finpecia 1 mg, Armotraz 1)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Customers search by any of the three. The table has to connect all of them in one row, plus the strength, because a name match with the wrong strength is worse than no match at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the data, not the markup
&lt;/h2&gt;

&lt;p&gt;We kept the source of truth as a small JSON file and generated the HTML from it. That way the same data feeds the table, the on-site search and any structured data we add later.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"brand"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Cialis"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ingredient"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tadalafil"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"strength"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"20 mg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"generics"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Tadacip 20"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Ciasel 20"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Tadaboom 20"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"licensed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mens-health"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"brand"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Propecia"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ingredient"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"finasteride"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"strength"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1 mg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"generics"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Finpecia 1 mg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Finax 1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Finalo 1"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"licensed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"hair-loss"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"brand"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Viagra"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ingredient"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"sildenafil"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"strength"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"200 mg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"generics"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Cenforce 200"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"licensed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mens-health"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That &lt;code&gt;licensed&lt;/code&gt; flag turned out to be the most important field. Some generics are sold at strengths above the licensed dose (tadalafil 40 mg and 80 mg, sildenafil 200 mg). The table has to say so plainly instead of listing them as if they were equal options.&lt;/p&gt;

&lt;h2&gt;
  
  
  Semantic HTML first
&lt;/h2&gt;

&lt;p&gt;The rendered table is plain HTML, not a grid of divs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;table&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;caption&amp;gt;&lt;/span&gt;Brand and generic names, by active ingredient and strength&lt;span class="nt"&gt;&amp;lt;/caption&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;thead&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;th&lt;/span&gt; &lt;span class="na"&gt;scope=&lt;/span&gt;&lt;span class="s"&gt;"col"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Brand&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;th&lt;/span&gt; &lt;span class="na"&gt;scope=&lt;/span&gt;&lt;span class="s"&gt;"col"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Active ingredient&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;th&lt;/span&gt; &lt;span class="na"&gt;scope=&lt;/span&gt;&lt;span class="s"&gt;"col"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Strength&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;th&lt;/span&gt; &lt;span class="na"&gt;scope=&lt;/span&gt;&lt;span class="s"&gt;"col"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Generic products&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;th&lt;/span&gt; &lt;span class="na"&gt;scope=&lt;/span&gt;&lt;span class="s"&gt;"col"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Licensed dose?&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/thead&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;tbody&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;tr&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;th&lt;/span&gt; &lt;span class="na"&gt;scope=&lt;/span&gt;&lt;span class="s"&gt;"row"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Propecia&lt;span class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;finasteride&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;1 mg&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;Finpecia 1 mg, Finax 1, Finalo 1&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;Yes&lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/tbody&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few choices that paid off:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;&amp;lt;caption&amp;gt;&lt;/code&gt;&lt;/strong&gt; tells screen reader users what the table is for before they reach any cells.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;scope&lt;/code&gt; on header cells&lt;/strong&gt; lets assistive tech announce "Brand: Propecia, Strength: 1 mg" as people move across a row.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The brand is the row header&lt;/strong&gt;, because it is the name most visitors arrive with.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Licensed dose?" is written in words&lt;/strong&gt;, not just a red or green icon, so the warning never relies on colour alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On small screens&lt;/strong&gt; the table sits in a scrollable wrapper with &lt;code&gt;tabindex="0"&lt;/code&gt; and an accessible label, rather than being collapsed into cards that lose the header relationships.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Filtering without breaking anything
&lt;/h2&gt;

&lt;p&gt;We added a text box that filters rows as you type. It is progressive enhancement: with JavaScript off, the full table is still there. The filter matches against all three name columns, so typing "cialis", "tadalafil" or "tadacip" finds the same row. A polite live region announces "3 matching rows", so the result count is not visual-only.&lt;/p&gt;

&lt;h2&gt;
  
  
  SEO notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One strong page beats twenty thin "X vs Y" pages. The table lives inside a full guide rather than on its own.&lt;/li&gt;
&lt;li&gt;Every generic name links to its product page, and every ingredient links to its explainer, which helps both people and crawlers.&lt;/li&gt;
&lt;li&gt;Plain text in cells means the brand and generic pairs are indexable. No names hidden inside images.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Content rules baked into the template
&lt;/h2&gt;

&lt;p&gt;Medicine content needs guard rails that a normal product table does not. The template always shows a line saying a valid prescription is required for every order, and any row with &lt;code&gt;licensed: false&lt;/code&gt; gets a note to use only what a prescriber sets. If people buy medicine online based on a table you built, it has to be accurate, and it must never nudge anyone towards a higher dose.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;p&gt;Visitors can now type the brand they know and land on the right generic in one step, which makes it easier to buy generic tablets online knowing the ingredient and strength match their prescription. You can see the table in context in this guide to buying &lt;a href="https://www.rxpilltab.com/2026/10/generic-drugs-online/" rel="noopener noreferrer"&gt;generic drugs online&lt;/a&gt;, and the products it points to are listed in the &lt;a href="https://www.rxpilltab.com/shop/" rel="noopener noreferrer"&gt;generic medicines shop&lt;/a&gt;. A typical row maps "Propecia" to &lt;a href="https://www.rxpilltab.com/hair-loss/finax-1-finasteride-1-mg-tablets-generic-propecia/" rel="noopener noreferrer"&gt;Finax 1 (finasteride 1 mg)&lt;/a&gt;, and you can &lt;a href="https://www.rxpilltab.com/" rel="noopener noreferrer"&gt;buy generic drugs online&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This is general information, not medical advice. Speak to your doctor or pharmacist before starting any medicine.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>a11y</category>
      <category>seo</category>
    </item>
    <item>
      <title>How We Structured a Medicine Comparison Table for Patients (and What We Learned About Generic Naming)</title>
      <dc:creator>RX PILL TAB</dc:creator>
      <pubDate>Sat, 24 Oct 2026 15:17:36 +0000</pubDate>
      <link>https://dev.to/rx_pilltab_3c2ada10623bb/how-we-structured-a-medicine-comparison-table-for-patients-and-what-we-learned-about-generic-2gb0</link>
      <guid>https://dev.to/rx_pilltab_3c2ada10623bb/how-we-structured-a-medicine-comparison-table-for-patients-and-what-we-learned-about-generic-2gb0</guid>
      <description>&lt;p&gt;Comparison tables look like the easiest component on any product site. Rows, columns, done. Then you try to build one for medicines and discover that the data model is the hard part, not the CSS.&lt;/p&gt;

&lt;p&gt;We work on the catalogue for a supplier of generic medicines that ships to the US, UK, Europe and Canada against a valid prescription. Many of the products are the same active ingredient sold under several generic brand names. Patients arrive knowing one name, usually the original Western brand, and need to understand what they are actually looking at. Here is what we changed along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Lead with the generic name, not the brand
&lt;/h2&gt;

&lt;p&gt;Our first draft put the brand in column one, because that is how the products were stored. Usability-wise this was backwards. A patient comparing options cares first about &lt;strong&gt;what the medicine is&lt;/strong&gt;, then about who makes it.&lt;/p&gt;

&lt;p&gt;So the first column became the active ingredient using its international non-proprietary name (INN), for example &lt;code&gt;tadalafil&lt;/code&gt; or &lt;code&gt;sildenafil&lt;/code&gt;. The brand moved to the second column. That small swap made the table scannable: identical ingredients group together visually even when brand names look completely unrelated.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Model strength as a number plus a unit
&lt;/h2&gt;

&lt;p&gt;Strings like "20mg", "20 mg" and "20 MG" were all in the source data. We split strength into two fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ingredient"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tadalafil"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"brand"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Tadacip 20"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"strength_value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"strength_unit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"mg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"form"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tablet"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"units_per_strip"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"strips_per_pack"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Numeric strength allows sorting and filtering, and it stops the table from implying that "20mg" and "20 mg" are different products. It also forced a useful question: what does the number refer to?&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Be explicit about the salt
&lt;/h2&gt;

&lt;p&gt;Many tablets contain a salt of the active ingredient, such as sildenafil citrate. On most generic packs the labelled strength normally refers to the amount of the base ingredient, not the salt. We added a short "labelled as" note in the detail view rather than cluttering the table. Showing the raw salt weight in a table would have confused people far more than it helped.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Pack size is two numbers, not one
&lt;/h2&gt;

&lt;p&gt;Generic tablets are usually sold in blister strips. "Pack of 10" can mean one strip of ten or ten strips of one, depending on who typed it. We now store &lt;code&gt;units_per_strip&lt;/code&gt; and &lt;code&gt;strips_per_pack&lt;/code&gt; separately and render them as &lt;strong&gt;"1 strip × 4 tablets"&lt;/strong&gt;. A computed total sits next to it. It answers "how many tablets am I getting" before anyone has to ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Never let the table imply a dose
&lt;/h2&gt;

&lt;p&gt;A table of strengths can accidentally read like a menu of doses. We added a single line above every comparison: the strength shown is what each unit contains, and the dose is whatever the prescriber has written. For context, tadalafil for erectile dysfunction is licensed up to 20 mg in a day and sildenafil up to 100 mg in 24 hours, so we do not list strengths above those. The table is for identifying products, not choosing treatment.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Avoid "equivalent to" language
&lt;/h2&gt;

&lt;p&gt;It is tempting to add a column saying "same as Brand X". We dropped it. Stating the shared active ingredient and strength is factual. Claims of equivalence are a judgement for prescribers and pharmacists, and the table should not make that call for them.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Tables break on mobile, so plan for cards
&lt;/h2&gt;

&lt;p&gt;Many readers are on phones. Below 640px, each row turns into a card. The ingredient is the card heading, the brand is a subtitle, and strength, form and pack size become a short definition list. The DOM order matches the visual order, so screen readers announce the same hierarchy sighted users see.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;640px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.med-table&lt;/span&gt; &lt;span class="nt"&gt;thead&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nc"&gt;.med-table&lt;/span&gt; &lt;span class="nt"&gt;tr&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;block&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;margin-bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nc"&gt;.med-table&lt;/span&gt; &lt;span class="nt"&gt;td&lt;/span&gt;&lt;span class="nd"&gt;::before&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;attr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data-label&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;600&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What we would tell another team
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Decide the canonical name first. Everything else hangs off it.&lt;/li&gt;
&lt;li&gt;Store numbers as numbers and units as units.&lt;/li&gt;
&lt;li&gt;Treat pack size as structured data, not free text.&lt;/li&gt;
&lt;li&gt;Keep the table descriptive; leave clinical choices to prescribers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to see how the naming problem plays out in practice, our write-up on &lt;a href="https://www.rxpilltab.com/2026/10/generic-viagra-brands/" rel="noopener noreferrer"&gt;generic Viagra brands&lt;/a&gt; walks through one active ingredient sold under several labels. The wider catalogue lives at &lt;a href="https://www.rxpilltab.com/" rel="noopener noreferrer"&gt;rxpilltab.com&lt;/a&gt;. One example of a product page built from this model is &lt;a href="https://www.rxpilltab.com/mens-health/lovegra-100-sildenafil-citrate-100-mg-tablets/" rel="noopener noreferrer"&gt;Lovegra 100 (sildenafil citrate 100 mg)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Modelled product data where one thing has five names? Tell me how in the comments.&lt;/p&gt;

</description>
      <category>ux</category>
      <category>webdev</category>
      <category>datamodeling</category>
      <category>healthtech</category>
    </item>
  </channel>
</rss>
