Difference between revisions of "Template:CalculateBenzo"
From Psychiatrienet
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
* [[Special:Runquery/CalcBenzo]] | * [[Special:Runquery/CalcBenzo]] | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | == Benzodiazepine conversion | + | == Benzodiazepine conversion to {{{replacement|}}} == |
− | + | {{ShowBenzoDosage|{{{benzo1}}}|{{{dose1}}}|{{{replacement}}} }} | |
− | {{#if: {{{dose2|}}} | | + | {{#if: {{{dose2|}}} | {{ShowBenzoDosage|{{{benzo2}}}|{{{dose2}}}|{{{replacement}}} }} |
− | + | }}{{#if: {{{dose3|}}} | {{ShowBenzoDosage|{{{benzo3}}}|{{{dose3}}}|{{{replacement}}} }} | |
− | }}{{#if: {{{dose3|}}} | | + | }}{{#if: {{{dose4|}}} | {{ShowBenzoDosage|{{{benzo4}}}|{{{dose4}}}|{{{replacement}}} }} |
− | + | }}{{#if: {{{dose5|}}} | {{ShowBenzoDosage|{{{benzo5}}}|{{{dose5}}}|{{{replacement}}} }} | |
− | }}{{#if: {{{dose4|}}} | | ||
− | |||
− | }}{{#if: {{{dose5|}}} | | ||
− | |||
}} | }} | ||
− | + | {{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 23: | 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}}} }} }} | ||
− | }} | + | }} | {{{replacement|}}} }} |
− | |||
</includeonly><noinclude>[[Category:Queries]]</noinclude> | </includeonly><noinclude>[[Category:Queries]]</noinclude> |