Open main menu

Psychiatrienet β

Difference between revisions of "Template:CalculateBenzo"

 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
* [[Form:CalcBenzo]]
 
* [[Form:CalcBenzo]]
 
* [[Template:CalculateBenzo]]
 
* [[Template:CalculateBenzo]]
 +
* [[Template:ConvertBenzoDosage]]
 +
* [[Template:ShowBenzoDosage]]
 
* [[Special:Runquery/CalcBenzo]]
 
* [[Special:Runquery/CalcBenzo]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
== Benzodiazepine conversion to {{{replacement|}}} ==
 
== Benzodiazepine conversion to {{{replacement|}}} ==
* [[{{{benzo1}}}]] in dosage {{{dose1}}}mg/d corresponds to {{#ask: [[{{{benzo1|}}}]] | ?Equivalent= }} * {{{dose1|}}} = {{ConvertBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }} mg [[{{{replacement|}}}]] / day
+
{{ShowBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }}
{{#if: {{{dose2|}}} |
+
{{#if: {{{dose2|}}} | {{ShowBenzoDosage|{{{benzo2}}}|{{{dose2}}}|{{{replacement}}} }}
* [[{{{benzo2}}}]] in dosage {{{dose2}}}mg/d corresponds to {{#ask: [[{{{benzo2|}}}]] | ?Equivalent= }} * {{{dose2|}}} = {{#expr: {{#ask: [[{{{benzo2|}}}]] | ?Equivalent= }} * {{{dose2|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }}}} mg [[{{{replacement|}}}]] / day
+
}}{{#if: {{{dose3|}}} | {{ShowBenzoDosage|{{{benzo3}}}|{{{dose3}}}|{{{replacement}}} }}
}}{{#if: {{{dose3|}}} |
+
}}{{#if: {{{dose4|}}} | {{ShowBenzoDosage|{{{benzo4}}}|{{{dose4}}}|{{{replacement}}} }}
* [[{{{benzo3}}}]] in dosage {{{dose3}}}mg/d corresponds to {{#ask: [[{{{benzo3|}}}]] | ?Equivalent= }} * {{{dose3|}}} = {{#expr: {{#ask: [[{{{benzo3|}}}]] | ?Equivalent= }} * {{{dose3|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }} }} mg [[{{{replacement|}}}]] / day
+
}}{{#if: {{{dose5|}}} | {{ShowBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }}
}}{{#if: {{{dose4|}}} |
 
* [[{{{benzo4}}}]] in dosage {{{dose4}}}mg/d corresponds to {{#ask: [[{{{benzo4|}}}]] | ?Equivalent= }} * {{{dose4|}}} = {{#expr: {{#ask: [[{{{benzo4|}}}]] | ?Equivalent= }} * {{{dose4|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }} }} mg [[{{{replacement|}}}]] / day
 
}}{{#if: {{{dose5|}}} |
 
* [[{{{benzo5}}}]] in dosage {{{dose5}}}mg/d corresponds to {{#ask: [[{{{benzo5|}}}]] | ?Equivalent= }} * {{{dose5|}}} = {{#expr: {{#ask: [[{{{benzo5|}}}]] | ?Equivalent= }} * {{{dose5|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }}}} mg [[{{{replacement|}}}]] / day
 
 
}}
 
}}
Corresponding total dosage: {{#expr:
+
{{ShowTotalDosage | {{#expr:
{{#if: {{{dose1|}}} | ( {{#ask: [[{{{benzo1|}}}]] | ?Equivalent= }} * {{{dose1|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }}) }}
+
{{#if: {{{dose1|}}} | {{ConvertBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }} }}
{{#if: {{{dose2|}}} | + ( {{#ask: [[{{{benzo2|}}}]] | ?Equivalent= }} * {{{dose2|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }}) }}
+
{{#if: {{{dose2|}}} | + {{ConvertBenzoDosage|{{{benzo2}}}|{{{dose2}}}|{{{replacement}}} }} }}
{{#if: {{{dose3|}}} | + ( {{#ask: [[{{{benzo3|}}}]] | ?Equivalent= }} * {{{dose3|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }}) }}
+
{{#if: {{{dose3|}}} | + {{ConvertBenzoDosage|{{{benzo3}}}|{{{dose3}}}|{{{replacement}}} }} }}
{{#if: {{{dose4|}}} | + ( {{#ask: [[{{{benzo4|}}}]] | ?Equivalent= }} * {{{dose4|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }}) }}
+
{{#if: {{{dose4|}}} | + {{ConvertBenzoDosage|{{{benzo4}}}|{{{dose4}}}|{{{replacement}}} }} }}
{{#if: {{{dose5|}}} | + ( {{#ask: [[{{{benzo5|}}}]] | ?Equivalent= }} * {{{dose5|}}} / {{#ask: [[{{{replacement}}}]] | ?Equivalent= }}) }}
+
{{#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