Record list of movements using import and if functions

I have a snippet where i measure range of motion
i have set it up so that if i dont wish to record one movement it does not list but otherwise can call in movements using the if and import command

is there an easier way of doing this rather than having it for each movement
ie can the command repeat using a different dropdown item for each movement
at moment have numerous snippets for each motion 6 each side for shoulder and was going to do the same for elbow wrist etc, very tedious

snippet is :-

The Range of Motion Right Side was:
{note}Abduction{formmenu: default=Not measured; measured; name=Right abduction measured}{endnote}{if: `right abduction measured`=="measured"} abduction is {import: /rabrom}{endif}
{note}Adduction{formmenu: default=Not measured; measured; name=Right adduction measured}{endnote}{if: `Right adduction measured`=="measured"} adduction is {import: /radrom}{endif}
{note}Flexion{formmenu: default=Not measured; measured; name=Right flexion measured}{endnote}{if: `right flexion measured`=="measured"} flexion is {import: /rflexrom}{endif}
{note}Extension{formmenu: default=Not measured; measured; name=Right extension measured}{endnote}{if: `right extension measured`=="measured"} extension is {import: /rexrom}{endif}
{note}Internal Rotation{formmenu: default=Not measured; measured; name=Right internal rotation measured}{endnote}{if: `right internal rotation measured`=="measured"} internal rotation is {import: /rirrom}{endif}
{note}External Rotation{formmenu: default=Not measured; measured; name=Right external rotation measured}{endnote}{if: `right external rotation measured`=="measured"} external rotation is {import: /rerrom}{endif}

Hi @Gavin_Nimon

Would something like this fit your needs?

The Range of Motion Right Side was:

{formmenu: name=motion; multiple=yes; Abduction; Adduction; Flexion; Extension; Internal Rotation; External Rotation}

{if: includes(motion, "Abduction")}abduction is {import: /rabrom}
{endif: trim=right}
{if: includes(motion, "Adduction")}adduction is {import: /radrom}
{endif: trim=right}
{if: includes(motion, "Flexion")}flexion is {import: /rflexrom}
{endif: trim=right}
{if: includes(motion, "Extension")}extension is {import: /rexrom}
{endif: trim=right}
{if: includes(motion, "Internal Rotation")}internal rotation is {import: /rirrom}
{endif: trim=right}
{if: includes(motion, "External Rotation")}external rotation is {import: /rerrom}
{endif: trim=right}

1 Like

that was perfect, thanks
regards Gavin

1 Like

Anytime :slight_smile: