Template:Infobox drug: Difference between revisions

From Anesthesia Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
Sure, here's the templatedata code for the Infobox drug template:


    {“infobox drug": {
```
        "label": "Infobox drug",
{
        "description": "This template is used to display information about a medication.",
    "name": "Infobox drug",
        "fields": {
    "description": "A template used to display information about medications.",
            "drug_name": {
    "templateData": {
                 "label": "Drug name",
        "parameters": [
                 "description": "The name of the drug",
            {
                 "name": "drug_name",
                 "description": "The name of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": true
                 "required": true
             },
             },
             "image": {
             {
                 "label": "Image",
                 "name": "image",
                 "description": "An image of the drug or its packaging",
                 "description": "An image of the drug or its packaging.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "width": {
             {
                 "label": "Width",
                 "name": "width",
                 "description": "The width of the image in pixels",
                 "description": "The width of the image in pixels.",
                 "type": "number",
                 "type": "number",
                 "required": false
                 "required": false
             },
             },
             "alt": {
             {
                 "label": "Alt text",
                 "name": "alt",
                 "description": "Alternative text for the image",
                 "description": "Alternative text for the image.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "caption": {
             {
                 "label": "Caption",
                 "name": "caption",
                 "description": "A brief caption for the image",
                 "description": "A brief caption for the image.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "pronunciation": {
             {
                 "label": "Pronunciation",
                 "name": "pronunciation",
                 "description": "The pronunciation of the drug name",
                 "description": "The pronunciation of the drug name.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "tradename": {
             {
                 "label": "Trade names",
                 "name": "tradename",
                 "description": "The brand names of the drug",
                 "description": "The brand names of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "pregnancy_AU": {
             {
                 "label": "Pregnancy category (AU)",
                 "name": "pregnancy_AU",
                 "description": "The pregnancy category of the drug in Australia",
                 "description": "The pregnancy category of the drug in Australia.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "pregnancy_US": {
             {
                 "label": "Pregnancy category (US)",
                 "name": "pregnancy_US",
                 "description": "The pregnancy category of the drug in the United States",
                 "description": "The pregnancy category of the drug in the United States.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "pregnancy_category": {
             {
                 "label": "Pregnancy category",
                 "name": "pregnancy_category",
                 "description": "The pregnancy category of the drug",
                 "description": "The pregnancy category of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "legal_AU": {
             {
                 "label": "Legal status (AU)",
                 "name": "legal_AU",
                 "description": "The legal status of the drug in Australia",
                 "description": "The legal status of the drug in Australia.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "legal_CA": {
             {
                 "label": "Legal status (CA)",
                 "name": "legal_CA",
                 "description": "The legal status of the drug in Canada",
                 "description": "The legal status of the drug in Canada.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "legal_UK": {
             {
                 "label": "Legal status (UK)",
                 "name": "legal_UK",
                 "description": "The legal status of the drug in the United Kingdom",
                 "description": "The legal status of the drug in the United Kingdom.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "legal_US": {
             {
                 "label": "Legal status (US)",
                 "name": "legal_US",
                 "description": "The legal status of the drug in the United States",
                 "description": "The legal status of the drug in the United States.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "legal_status": {
             {
                 "label": "Legal status",
                 "name": "legal_status",
                 "description": "The legal status of the drug",
                 "description": "The legal status of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "routes_of_administration": {
             {
                 "label": "Routes of administration",
                 "name": "routes_of_administration",
                 "description": "The routes of administration for the drug",
                 "description": "The routes of administration for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "bioavailability": {
             {
                 "label": "Bioavailability",
                 "name": "bioavailability",
                 "description": "The bioavailability of the drug",
                 "description": "The bioavailability of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "protein_bound": {
             {
                 "label": "Protein binding",
                 "name": "protein_bound",
                 "description": "The protein binding of the drug",
                 "description": "The protein binding of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "metabolism": {
             {
                 "label": "Metabolism",
                 "name": "metabolism",
                 "description": "The metabolism of the drug",
                 "description": "The metabolism of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "elimination_half-life": {
             {
                 "label": "Elimination half-life",
                 "name": "elimination_half-life",
                 "description": "The elimination half-life of the drug",
                 "description": "The elimination half-life of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "excretion": {
             {
                 "label": "Excretion",
                 "name": "excretion",
                 "description": "The excretion of the drug",
                 "description": "The excretion of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "CAS_number": {
             {
                 "label": "CAS Number",
                 "name": "CAS_number",
                 "description": "The CAS registry number for the drug",
                 "description": "The CAS registry number for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "ATC_prefix": {
             {
                 "label": "ATC code prefix",
                 "name": "ATC_prefix",
                 "description": "The ATC code prefix for the drug",
                 "description": "The ATC code prefix for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "ATC_suffix": {
             {
                 "label": "ATC code suffix",
                 "name": "ATC_suffix",
                 "description": "The ATC code suffix for the drug",
                 "description": "The ATC code suffix for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "PubChem": {
             {
                 "label": "PubChem CID",
                 "name": "PubChem",
                 "description": "The PubChem Compound ID for the drug",
                 "description": "The PubChem Compound ID for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "DrugBank": {
             {
                 "label": "DrugBank",
                 "name": "DrugBank",
                 "description": "The DrugBank ID for the drug",
                 "description": "The DrugBank ID for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "ChemSpiderID": {
             {
                 "label": "ChemSpider ID",
                 "name": "ChemSpiderID",
                 "description": "The ChemSpider ID for the drug",
                 "description": "The ChemSpider ID for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "UNII": {
             {
                 "label": "UNII",
                 "name": "UNII",
                 "description": "The Unique Ingredient Identifier for the drug",
                 "description": "The Unique Ingredient Identifier for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "KEGG": {
             {
                 "label": "KEGG",
                 "name": "KEGG",
                 "description": "The KEGG ID for the drug",
                 "description": "The KEGG ID for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "ChEBI": {
             {
                 "label": "ChEBI",
                 "name": "ChEBI",
                 "description": "The ChEBI ID for the drug",
                 "description": "The ChEBI ID for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "ChEMBL": {
             {
                 "label": "ChEMBL",
                 "name": "ChEMBL",
                 "description": "The ChEMBL ID for the drug",
                 "description": "The ChEMBL ID for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "chemical_formula": {
             {
                 "label": "Chemical formula",
                 "name": "chemical_formula",
                 "description": "The chemical formula of the drug",
                 "description": "The chemical formula of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "molecular_weight": {
             {
                 "label": "Molecular weight",
                 "name": "molecular_weight",
                 "description": "The molecular weight of the drug",
                 "description": "The molecular weight of the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "smiles": {
             {
                 "label": "SMILES",
                 "name": "smiles",
                 "description": "The SMILES notation for the drug",
                 "description": "The SMILES notation for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "InChI": {
             {
                 "label": "InChI",
                 "name": "InChI",
                 "description": "The InChI identifier for the drug",
                 "description": "The InChI identifier for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             },
             },
             "InChIKey": {
             {
                 "label": "InChIKey",
                 "name": "InChIKey",
                 "description": "The InChIKey for the drug",
                 "description": "The InChIKey for the drug.",
                 "type": "string",
                 "type": "string",
                 "required": false
                 "required": false
             }
             }
         }
         ]
     }
     }
}
}
```
You can copy and paste this code into the Templatedata section of your Infobox drug template, which will enable users to easily add and edit the parameters of the template using a visual editor.

Revision as of 04:39, 13 May 2023

Sure, here's the templatedata code for the Infobox drug template:

``` {

   "name": "Infobox drug",
   "description": "A template used to display information about medications.",
   "templateData": {
       "parameters": [
           {
               "name": "drug_name",
               "description": "The name of the drug.",
               "type": "string",
               "required": true
           },
           {
               "name": "image",
               "description": "An image of the drug or its packaging.",
               "type": "string",
               "required": false
           },
           {
               "name": "width",
               "description": "The width of the image in pixels.",
               "type": "number",
               "required": false
           },
           {
               "name": "alt",
               "description": "Alternative text for the image.",
               "type": "string",
               "required": false
           },
           {
               "name": "caption",
               "description": "A brief caption for the image.",
               "type": "string",
               "required": false
           },
           {
               "name": "pronunciation",
               "description": "The pronunciation of the drug name.",
               "type": "string",
               "required": false
           },
           {
               "name": "tradename",
               "description": "The brand names of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "pregnancy_AU",
               "description": "The pregnancy category of the drug in Australia.",
               "type": "string",
               "required": false
           },
           {
               "name": "pregnancy_US",
               "description": "The pregnancy category of the drug in the United States.",
               "type": "string",
               "required": false
           },
           {
               "name": "pregnancy_category",
               "description": "The pregnancy category of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "legal_AU",
               "description": "The legal status of the drug in Australia.",
               "type": "string",
               "required": false
           },
           {
               "name": "legal_CA",
               "description": "The legal status of the drug in Canada.",
               "type": "string",
               "required": false
           },
           {
               "name": "legal_UK",
               "description": "The legal status of the drug in the United Kingdom.",
               "type": "string",
               "required": false
           },
           {
               "name": "legal_US",
               "description": "The legal status of the drug in the United States.",
               "type": "string",
               "required": false
           },
           {
               "name": "legal_status",
               "description": "The legal status of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "routes_of_administration",
               "description": "The routes of administration for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "bioavailability",
               "description": "The bioavailability of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "protein_bound",
               "description": "The protein binding of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "metabolism",
               "description": "The metabolism of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "elimination_half-life",
               "description": "The elimination half-life of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "excretion",
               "description": "The excretion of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "CAS_number",
               "description": "The CAS registry number for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "ATC_prefix",
               "description": "The ATC code prefix for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "ATC_suffix",
               "description": "The ATC code suffix for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "PubChem",
               "description": "The PubChem Compound ID for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "DrugBank",
               "description": "The DrugBank ID for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "ChemSpiderID",
               "description": "The ChemSpider ID for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "UNII",
               "description": "The Unique Ingredient Identifier for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "KEGG",
               "description": "The KEGG ID for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "ChEBI",
               "description": "The ChEBI ID for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "ChEMBL",
               "description": "The ChEMBL ID for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "chemical_formula",
               "description": "The chemical formula of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "molecular_weight",
               "description": "The molecular weight of the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "smiles",
               "description": "The SMILES notation for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "InChI",
               "description": "The InChI identifier for the drug.",
               "type": "string",
               "required": false
           },
           {
               "name": "InChIKey",
               "description": "The InChIKey for the drug.",
               "type": "string",
               "required": false
           }
       ]
   }

} ```

You can copy and paste this code into the Templatedata section of your Infobox drug template, which will enable users to easily add and edit the parameters of the template using a visual editor.