Difference between revisions of "Template:CalculateBenzo"

From Psychiatrienet
Jump to: navigation, search
(Created page with '<includeonly> [[{{{benzo1}}}]] in dosage {{{dose1}}}mg/d corresponds to {{#ask: [[{{{benzo1|}}}]] | ?Equivalent= }} * {{{dose1|}}} = {{#expr: {{#ask: [[{{{benzo1|}}}]] | ?Equival...')
 
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<noinclude>
[[{{{benzo1}}}]] in dosage {{{dose1}}}mg/d corresponds to {{#ask: [[{{{benzo1|}}}]] | ?Equivalent= }} * {{{dose1|}}} = {{#expr: {{#ask: [[{{{benzo1|}}}]] | ?Equivalent= }} * {{{dose1|}}} }} mg [[Diazepam]] / day
+
* [[Form:CalcBenzo]]
 
+
* [[Template:CalculateBenzo]]
{{#if: {{{dose2|}}} |
+
* [[Template:ConvertBenzoDosage]]
[[{{{benzo2}}}]] in dosage {{{dose2}}}mg/d corresponds to {{#ask: [[{{{benzo2|}}}]] | ?Equivalent= }} * {{{dose2|}}} = {{#expr: {{#ask: [[{{{benzo2|}}}]] | ?Equivalent= }} * {{{dose2|}}} }} mg [[Diazepam]] / day
+
* [[Template:ShowBenzoDosage]]
 +
* [[Special:Runquery/CalcBenzo]]
 +
</noinclude><includeonly>
 +
== Benzodiazepine conversion to {{{replacement|}}} ==
 +
{{ShowBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }}
 +
{{#if: {{{dose2|}}} | {{ShowBenzoDosage|{{{benzo2}}}|{{{dose2}}}|{{{replacement}}} }}
 +
}}{{#if: {{{dose3|}}} | {{ShowBenzoDosage|{{{benzo3}}}|{{{dose3}}}|{{{replacement}}} }}
 +
}}{{#if: {{{dose4|}}} | {{ShowBenzoDosage|{{{benzo4}}}|{{{dose4}}}|{{{replacement}}} }}
 +
}}{{#if: {{{dose5|}}} | {{ShowBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }}
 
}}
 
}}
 
+
{{ShowTotalDosage | {{#expr:
{{#if: {{{dose3|}}} |
+
{{#if: {{{dose1|}}} | {{ConvertBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }} }}
[[{{{benzo3}}}]] in dosage {{{dose3}}}mg/d corresponds to {{#ask: [[{{{benzo3|}}}]] | ?Equivalent= }} * {{{dose3|}}} = {{#expr: {{#ask: [[{{{benzo3|}}}]] | ?Equivalent= }} * {{{dose3|}}} }} mg [[Diazepam]] / day
+
{{#if: {{{dose2|}}} | + {{ConvertBenzoDosage|{{{benzo2}}}|{{{dose2}}}|{{{replacement}}} }} }}
}}
+
{{#if: {{{dose3|}}} | + {{ConvertBenzoDosage|{{{benzo3}}}|{{{dose3}}}|{{{replacement}}} }} }}
 
+
{{#if: {{{dose4|}}} | + {{ConvertBenzoDosage|{{{benzo4}}}|{{{dose4}}}|{{{replacement}}} }} }}
total dosage:
+
{{#if: {{{dose5|}}} | + {{ConvertBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }} }}
{{#expr:
+
}} | {{{replacement|}}} }}
{{#if: {{{dose1|}}} | ( {{#ask: [[{{{benzo1|}}}]] | ?Equivalent= }} * {{{dose1|}}} ) }}
 
{{#if: {{{dose2|}}} | + ( {{#ask: [[{{{benzo2|}}}]] | ?Equivalent= }} * {{{dose2|}}} ) }}
 
{{#if: {{{dose3|}}} | + ( {{#ask: [[{{{benzo3|}}}]] | ?Equivalent= }} * {{{dose3|}}} ) }}
 
}} mg [[Diazepam]]/day
 
 
 
DDD<sub>diazepam</sub> = {{#ask: [[Diazepam]] | ?DDD= }} mg/d
 
 
 
Dose<sub>diazepam</sub> =  {{#ask: [[Diazepam]] | ?Dose= }} mg/d
 
 
 
 
</includeonly><noinclude>[[Category:Queries]]</noinclude>
 
</includeonly><noinclude>[[Category:Queries]]</noinclude>

Latest revision as of 12:16, 21 April 2020