Difference between revisions of "Template:Infobox drug reference"

From WikiAnesthesia
Tag: 2017 source edit
(Fixed calculatormodule id for dosage calculator)
Tag: 2017 source edit
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Infobox drug reference/styles.css" />
<templatestyles src="Infobox drug reference/styles.css" /><div class="infobox">
 
<div class="infobox">
   <div class="infobox-title {{#if:{{{drug_class_color|}}}|drug-class-{{{drug_class_color}}}}}">{{PAGENAME}}</div>
   <div class="infobox-title {{#if:{{{drug_class_color|}}}|drug-class-{{{drug_class_color}}}}}">{{PAGENAME}}</div>
   <table class="table">{{#if:{{{trade_names|}}}|<tr>
   <table class="table">{{#if:{{{trade_names|}}}|<tr>
     <th>Trade names</th>
     <th>Trade names</th>
     <td>{{{trade_names}}}</td>
     <td>
{{{trade_names}}}
    </td>
</tr>}}{{#if:{{{image_file|}}}|<tr><td colspan="2" class="infobox-image">
</tr>}}{{#if:{{{image_file|}}}|<tr><td colspan="2" class="infobox-image">
   [[File:{{{image_file}}}|320px]]</td></tr>{{#if:{{{image_caption|}}}|
   <div>[[File:{{{image_file}}}|320px]]</div>{{#if:{{{image_caption|}}}|
   <td colspan="2" class="infobox-image-caption">{{{image_caption}}}</td></tr>}}}}<tr>
   <div>{{{image_caption}}}</div>}}</td></tr>}}<tr>
     <td class="infobox-table-section-heading" colspan="2">Clinical data</td>
     <td class="infobox-table-section-heading" colspan="2">Clinical data</td>
</tr>{{#if:{{{drug_class|}}}|<tr>
</tr>{{#if:{{{drug_class|}}}|<tr>
     <th>Drug class</th>
     <th>Drug class</th>
     <td>{{{drug_class}}}</td>
     <td>
{{{drug_class}}}
    </td>
</tr>}}{{#if:{{{uses|}}}|<tr>
</tr>}}{{#if:{{{uses|}}}|<tr>
     <th>Uses</th>
     <th>Uses</th>
     <td>{{{uses}}}</td>
     <td>
{{{uses}}}
    </td>
</tr>}}{{#if:{{{contraindications|}}}|<tr>
</tr>}}{{#if:{{{contraindications|}}}|<tr>
     <th>Contraindications</th>
     <th>Contraindications</th>
     <td>{{{contraindications}}}</td>
     <td>
{{{contraindications}}}
    </td>
</tr>}}{{#if:{{{routes|}}}|<tr>
</tr>}}{{#if:{{{routes|}}}|<tr>
     <th>Routes of administration</th>
     <th>Routes of administration</th>
     <td>{{{routes}}}</td>
     <td>
{{{routes}}}
    </td>
</tr>}}{{#if:{{{dosage|}}}|<tr>
</tr>}}{{#if:{{{dosage|}}}|<tr>
     <th>Dosage</th>
     <th>Dosage</th>
     <td>{{{dosage}}}</td>
     <td>
{{{dosage}}}
    </td>
</tr>}}{{#if:{{{dosage_calculation|}}}|<tr>
    <td class="infobox-table-section-heading" colspan="2">Dosage</td>
</tr><tr>
    <td colspan="2" class="calculation-infobox">
      <calculatormodule id="drugDosage" />
      <calculatoroptions patientInputInline="true" />
      <div class="calculator-calculation calculator-calculation-drugDosages-{{{dosage_calculation}}}"></div>
    </td>
</tr>}}<tr>
</tr>}}<tr>
     <td class="infobox-table-section-heading" colspan="2">Pharmacodynamics</td>
     <td class="infobox-table-section-heading" colspan="2">Pharmacodynamics</td>
</tr>{{#if:{{{mechanism|}}}|<tr>
</tr>{{#if:{{{mechanism|}}}|<tr>
     <th>Mechanism of action</th>
     <th>Mechanism of action</th>
     <td>{{{mechanism}}}</td>
     <td>
{{{mechanism}}}
    </td>
</tr>}}{{#if:{{{adverse_effects|}}}|<tr>
</tr>}}{{#if:{{{adverse_effects|}}}|<tr>
     <th>Adverse effects</th>
     <th>Adverse effects</th>
     <td>{{{adverse_effects}}}</td>
     <td>
{{{adverse_effects}}}
    </td>
</tr>}}<tr>
</tr>}}<tr>
     <td class="infobox-table-section-heading" colspan="2">Pharmacokinetics</td>
     <td class="infobox-table-section-heading" colspan="2">Pharmacokinetics</td>
</tr>{{#if:{{{time_onset|}}}|<tr>
</tr>{{#if:{{{time_onset|}}}|<tr>
     <th>Onset of action</th>
     <th>Onset of action</th>
     <td>{{{time_onset}}}</td>
     <td>
{{{time_onset}}}
    </td>
</tr>}}{{#if:{{{duration|}}}|<tr>
</tr>}}{{#if:{{{duration|}}}|<tr>
     <th>Duration of action</th>
     <th>Duration of action</th>
     <td>{{{duration}}}</td>
     <td>
{{{duration}}}
    </td>
</tr>}}{{#if:{{{metabolism|}}}|<tr>
</tr>}}{{#if:{{{metabolism|}}}|<tr>
     <th>Metabolism</th>
     <th>Metabolism</th>
     <td>{{{metabolism}}}</td>
     <td>
{{{metabolism}}}
    </td>
</tr>}}{{#if:{{{halflife_redistribution|}}}|<tr>
</tr>}}{{#if:{{{halflife_redistribution|}}}|<tr>
     <th>Redistribution half-life</th>
     <th>Redistribution half-life</th>
     <td>{{{halflife_redistribution}}}</td>
     <td>
{{{halflife_redistribution}}}
    </td>
</tr>}}{{#if:{{{halflife_elimination|}}}|<tr>
</tr>}}{{#if:{{{halflife_elimination|}}}|<tr>
     <th>Elimination half-life</th>
     <th>Elimination half-life</th>
     <td>{{{halflife_elimination}}}</td>
     <td>
{{{halflife_elimination}}}
    </td>
</tr>}}{{#if:{{{clearance|}}}|<tr>
</tr>}}{{#if:{{{clearance|}}}|<tr>
     <th>Clearance</th>
     <th>Clearance</th>
     <td>{{{clearance}}}</td>
     <td>
{{{clearance}}}
    </td>
</tr>}}{{#if:{{{bioavailability|}}}|<tr>
</tr>}}{{#if:{{{bioavailability|}}}|<tr>
     <th>Bioavailability</th>
     <th>Bioavailability</th>
     <td>{{{bioavailability}}}</td>
     <td>
{{{bioavailability}}}
    </td>
</tr>}}{{#if:{{{protein_binding|}}}|<tr>
</tr>}}{{#if:{{{protein_binding|}}}|<tr>
     <th>Protein binding</th>
     <th>Protein binding</th>
     <td>{{{protein_binding}}}</td>
     <td>
{{{protein_binding}}}
    </td>
</tr>}}{{#if:{{{pka|}}}|<tr>
</tr>}}{{#if:{{{pka|}}}|<tr>
     <th>pKa</th>
     <th>pKa</th>
     <td>{{{pka}}}</td>
     <td>
{{{pka}}}
    </td>
</tr>}}{{#if:{{{volume_distribution|}}}|<tr>
</tr>}}{{#if:{{{volume_distribution|}}}|<tr>
     <th>Volume of distribution</th>
     <th>Volume of distribution</th>
     <td>{{{volume_distribution}}}</td>
     <td>
{{{volume_distribution}}}
    </td>
</tr>}}<tr>
</tr>}}<tr>
     <td class="infobox-table-section-heading" colspan="2">Physical and chemical data</td>
     <td class="infobox-table-section-heading" colspan="2">Physical and chemical data</td>
</tr>{{#if:{{{formula|}}}|<tr>
</tr>{{#if:{{{formula|}}}|<tr>
     <th>Formula</th>
     <th>Formula</th>
     <td>{{{formula}}}</td>
     <td>
{{{formula}}}
    </td>
</tr>}}{{#if:{{{molar_mass|}}}|<tr>
</tr>}}{{#if:{{{molar_mass|}}}|<tr>
     <th>Molar mass</th>
     <th>Molar mass</th>
     <td>{{{molar_mass}}}</td>
     <td>
{{{molar_mass}}}
    </td>
</tr>}}{{#if:{{{boiling_point|}}}|<tr>
</tr>}}{{#if:{{{boiling_point|}}}|<tr>
     <th>Boiling point</th>
     <th>Boiling point</th>
     <td>{{{boiling_point}}}</td>
     <td>
{{{boiling_point}}}
    </td>
</tr>}}{{#if:{{{vapor_pressure|}}}|<tr>
</tr>}}{{#if:{{{vapor_pressure|}}}|<tr>
     <th>Vapor pressure</th>
     <th>Vapor pressure</th>
     <td>{{{vapor_pressure}}}</td>
     <td>
{{{vapor_pressure}}}
    </td>
</tr>}}{{#if:{{{blood_gas_partition|}}}|<tr>
</tr>}}{{#if:{{{blood_gas_partition|}}}|<tr>
     <th>Blood-gas partition coefficient</th>
     <th>Blood-gas partition coefficient</th>
     <td>{{{blood_gas_partition}}}</td>
     <td>
{{{blood_gas_partition}}}
    </td>
</tr>}}{{#if:{{{oil_gas_partition|}}}|<tr>
</tr>}}{{#if:{{{oil_gas_partition|}}}|<tr>
     <th>Oil-gas partition coefficient</th>
     <th>Oil-gas partition coefficient</th>
     <td>{{{oil_gas_partition}}}</td>
     <td>
</tr>}}</table>
{{{oil_gas_partition}}}
</div>
    </td>
<noinclude>
</tr>}}<tr>
      <td colspan="2" class="infobox-table-section-heading">Article quality</td>
    </tr>
    <tr>
      <th>Editor rating</th>
      <td><articlescores metric="EditorRating" /></td>
    </tr>
    <tr>
      <th>User likes</th>
      <td><articlescores metric="Likes" /></td>
    </tr>
</table>
</div><noinclude>
<templatedata>
<templatedata>
{
{
Line 118: Line 182:
"drug_class_color": {
"drug_class_color": {
"label": "Drug class color",
"label": "Drug class color",
"description": "If applicable, select from one of the predefined options to apply a highlight color for the drug in the title of the infobox. Valid options:\n\nanticholinergic, anxiolytic, cardiovascular_agonist, cardiovascular_antagonist, desflurane, enflurane, halothane, isoflurane, local_anesthetic, nitrous_oxide, neuromuscular_blocker, neuromuscular_blocker_reversal, opioid, opioid_reversal, sedative_hypnotic, sevoflurane",
"description": "If applicable, select from one of the predefined options to apply a highlight color for the drug in the title of the infobox. Valid options:\n\nanticholinergic, benzodiazepine, benzodiazepine_reversal, cardiovascular_agonist, cardiovascular_antagonist, desflurane, enflurane, halothane, isoflurane, local_anesthetic, nitrous_oxide, neuromuscular_blocker, neuromuscular_blocker_reversal, opioid, opioid_reversal, sedative_hypnotic, sevoflurane",
"example": "sedative_hypnotic",
"example": "sedative_hypnotic",
"type": "line",
"type": "line",
Line 128: Line 192:
"example": "Induction and maintenance of anesthesia,\nSedation,\n",
"example": "Induction and maintenance of anesthesia,\nSedation,\n",
"type": "content",
"type": "content",
"required": true
"suggested": true
},
},
"contraindications": {
"contraindications": {
Line 134: Line 198:
"description": "If applicable, list absolute and relative contraindications of the drug. Do not include allergy to the drug itself.",
"description": "If applicable, list absolute and relative contraindications of the drug. Do not include allergy to the drug itself.",
"example": "Egg/soy allergy (controversial)",
"example": "Egg/soy allergy (controversial)",
"type": "content",
"suggested": true
"suggested": true
},
},
"routes": {
"routes": {
"label": "Routes of administration",
"label": "Routes of administration",
"description": "List the routes of administration of the drug. Standardized options: Epidural, Inhalation, Intramuscular, Intranasal, Intrathecal, Intravenous, Transdermal, Transtracheal",
"description": "List the routes of administration of the drug. If one route, use the full term. If multiple routes, use only abbreviations. Standardized options: Epidural (EP), Inhalation (INH), Intramuscular (IM), Intranasal (IN), Intrathecal (IT), Intravenous (IV), Transdermal (TD), Endotracheal (ETT)",
"example": "Intravenous",
"type": "content",
"type": "content",
"required": true
"suggested": true
},
},
"dosage": {
"dosage": {
Line 148: Line 212:
"example": "Induction of anesthesia:\n* Adult: 1-2.5 mg/kg\n* Elderly: 1-1.5 mg/kg\n* Pediatric: 2.5-3.5 mg/kg\nMaintenance of anesthesia:\n* Adult: 100-200 mcg/kg/min\n* Elderly: 50-100 mcg/kg/min\n* Pediatric: 125-300 mcg/kg/min",
"example": "Induction of anesthesia:\n* Adult: 1-2.5 mg/kg\n* Elderly: 1-1.5 mg/kg\n* Pediatric: 2.5-3.5 mg/kg\nMaintenance of anesthesia:\n* Adult: 100-200 mcg/kg/min\n* Elderly: 50-100 mcg/kg/min\n* Pediatric: 125-300 mcg/kg/min",
"type": "content",
"type": "content",
"required": true
"suggested": true
},
"dosage_calculation": {
"label": "Dosage calculation id",
"description": "Embeds a drug dosage calculator into the infobox. The drug id must be defined in MediaWiki:Gadgets-calculator-drugs-data.js.",
"example": "propofol",
"type": "line",
"suggested": true
},
},
"mechanism": {
"mechanism": {
Line 280: Line 351:
"routes",
"routes",
"dosage",
"dosage",
"dosage_calculation",
"mechanism",
"mechanism",
"adverse_effects",
"adverse_effects",

Latest revision as of 03:33, 17 July 2022

Infobox drug reference
Clinical data
Pharmacodynamics
Pharmacokinetics
Physical and chemical data
Article quality
Editor rating
User likes

This Infobox will display the most pertinent information about a drug at the top of the article. When appropriate, please use the standardized options listed in the field description (click the (i) icon above each field to show a list which can be copy-pasted). You may also include brief clarification in parenthesis after each item. If using an abbreviation, please link to a page that defines it (e.g. use [[ETT]] not ETT). To display items on separate lines, add <br/> between them.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Trade namestrade_names

If applicable, list trade names of the drug

Example
Diprivan
Contentsuggested
Article imageimage_file

An image relevant to the drug

Example
Propofol.png
Fileoptional
Article image captionimage_caption

A caption for the article image

Contentoptional
Drug classdrug_class

List the classes of the drug.

Example
Sedative hypnotic
Contentsuggested
Drug class colordrug_class_color

If applicable, select from one of the predefined options to apply a highlight color for the drug in the title of the infobox. Valid options: anticholinergic, benzodiazepine, benzodiazepine_reversal, cardiovascular_agonist, cardiovascular_antagonist, desflurane, enflurane, halothane, isoflurane, local_anesthetic, nitrous_oxide, neuromuscular_blocker, neuromuscular_blocker_reversal, opioid, opioid_reversal, sedative_hypnotic, sevoflurane

Example
sedative_hypnotic
Linesuggested
Usesuses

List the uses of the drug

Example
Induction and maintenance of anesthesia,

Sedation,

Contentsuggested
Contraindicationscontraindications

If applicable, list absolute and relative contraindications of the drug. Do not include allergy to the drug itself.

Example
Egg/soy allergy (controversial)
Contentsuggested
Routes of administrationroutes

List the routes of administration of the drug. If one route, use the full term. If multiple routes, use only abbreviations. Standardized options: Epidural (EP), Inhalation (INH), Intramuscular (IM), Intranasal (IN), Intrathecal (IT), Intravenous (IV), Transdermal (TD), Endotracheal (ETT)

Contentsuggested
Dosagedosage

List dosages of the drug. Use multiple lines and/or bullet points if necessary.

Example
Induction of anesthesia:
  • Adult: 1-2.5 mg/kg
  • Elderly: 1-1.5 mg/kg
  • Pediatric: 2.5-3.5 mg/kg

Maintenance of anesthesia:

  • Adult: 100-200 mcg/kg/min
  • Elderly: 50-100 mcg/kg/min
  • Pediatric: 125-300 mcg/kg/min
Contentsuggested
Dosage calculation iddosage_calculation

Embeds a drug dosage calculator into the infobox. The drug id must be defined in MediaWiki:Gadgets-calculator-drugs-data.js.

Example
propofol
Linesuggested
Mechanism of actionmechanism

State the mechanism of action of the drug

Example
GABA agonism
Contentsuggested
Adverse effectsadverse_effects

List important adverse effects of the drug

Example
Hypotension, bradycardia, pain on injection
Contentsuggested
Onset of actiontime_onset

State the onset of action of the drug

Example
15-30 seconds
Contentsuggested
Duration of actionduration

State the duration of action of the drug

Example
5-10 minutes
Contentsuggested
Metabolismmetabolism

Describe the metabolism of the drug

Example
Liver glucuronidation
Contentsuggested
Redistribution half-lifehalflife_redistribution

State the redistribution half-life of the drug

Example
2-8 minutes (initial) 30-70 minutes (slow)
Contentsuggested
Elimination half-lifehalflife_elimination

State the elimination half-life of the drug

Example
1.5-31 hours
Contentsuggested
Clearanceclearance

State the clearance of the drug

Example
1.5-2.2 L/min
Contentsuggested
Bioavailabilitybioavailability

If applicable, state the bioavailability of the drug

Example
100%
Contentoptional
Protein bindingprotein_binding

State the protein binding of the drug

Example
95-99%
Contentsuggested
pKapka

State the pKa of the drug

Example
11
Contentoptional
Volume of distributionvolume_distribution

State the volume of distribution of the drug

Example
6-40 L (central) 150-700 L (steady state)
Contentoptional
Formulaformula

State the chemical formula of the drug

Example
C<sub>12</sub>H<sub>18</sub>O
Contentoptional
Molar massmolar_mass

State the molar mass of the drug

Example
178.275 g/mol
Contentoptional
Boiling pointboiling_point

State the boiling point of the drug at standard pressure

Example
58.6 °C
Contentoptional
Vapor pressurevapor_pressure

State the vapor pressure of the drug at standard pressure and temperature

Example
197 mmHg
Contentoptional
Blood-gas partition coefficientblood_gas_partition

State the blood-gas partition coefficient of the drug

Example
0.68
Contentoptional
Oil-gas partition coefficientoil_gas_partition

State the oil-gas partition coefficient of the drug

Example
47
Contentoptional