Difference between revisions of "Template:CalculateBenzo"

From Psychiatrienet
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
 
 
<noinclude>
 
<noinclude>
 
* [[Form:CalcBenzo]]
 
* [[Form:CalcBenzo]]
Line 6: Line 5:
 
* [[Template:ShowBenzoDosage]]
 
* [[Template:ShowBenzoDosage]]
 
* [[Special:Runquery/CalcBenzo]]
 
* [[Special:Runquery/CalcBenzo]]
</noinclude></noinclude><includeonly>
+
</noinclude><includeonly>
 
== Benzodiazepine conversion to {{{replacement|}}} ==
 
== Benzodiazepine conversion to {{{replacement|}}} ==
 
{{ShowBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }}
 
{{ShowBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }}
Line 14: Line 13:
 
}}{{#if: {{{dose5|}}} | {{ShowBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }}
 
}}{{#if: {{{dose5|}}} | {{ShowBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }}
 
}}
 
}}
Corresponding total dosage: {{#expr:
+
{{ShowTotalDosage | {{#expr:
 
{{#if: {{{dose1|}}} | {{ConvertBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }}  }}
 
{{#if: {{{dose1|}}} | {{ConvertBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }}  }}
 
{{#if: {{{dose2|}}} | + {{ConvertBenzoDosage|{{{benzo2}}}|{{{dose2}}}|{{{replacement}}} }} }}
 
{{#if: {{{dose2|}}} | + {{ConvertBenzoDosage|{{{benzo2}}}|{{{dose2}}}|{{{replacement}}} }} }}
Line 20: Line 19:
 
{{#if: {{{dose4|}}} | + {{ConvertBenzoDosage|{{{benzo4}}}|{{{dose4}}}|{{{replacement}}} }} }}
 
{{#if: {{{dose4|}}} | + {{ConvertBenzoDosage|{{{benzo4}}}|{{{dose4}}}|{{{replacement}}} }} }}
 
{{#if: {{{dose5|}}} | + {{ConvertBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }} }}
 
{{#if: {{{dose5|}}} | + {{ConvertBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }} }}
}} mg [[{{{replacement|}}}]]/day
+
}} | {{{replacement|}}} }}
 
 
 
</includeonly><noinclude>[[Category:Queries]]</noinclude>
 
</includeonly><noinclude>[[Category:Queries]]</noinclude>

Latest revision as of 12:16, 21 April 2020