We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

Rule for checkbox

Hello everyone,
I can´t solve the problem with one rule on checkbox.
There is my checkbox:
Response Options/ Response Values:
primary prevention | 0
secondary prevention | 1
diabetes mellitus | 2
other | 3
I need the rule when primary prevention(0) and secondary prevention(1) are set, execute action.
My rule CHECKBOX_OID eq 0 and CHECKBOX_OID eq 1 doesn´t work and I have no idea why. Can someone help me please?
Best regards,
Tomas

Comments

  • Hello,
    Please don´t announce product releases, e-newsletter - approximately one email per month to me.
    Please change: I don´t want to Subscribe to Developers and don´t want to get E-Mails from other developers!
    Please change: I don´t want to Subscribe to Users and don´t want to get E-Mails from other Users!
    This is my third E-Mail regarding this subject. I get no good impression of your company and your support.
    Bye,
    Kathrin
    -----Ursprüngliche Nachricht-----
    Von: [email protected] [mailto:[email protected]] Im Auftrag von Tomáš Machulka
    Gesendet: Mittwoch, 19. Januar 2011 12:41
    An: [email protected]
    Betreff: [Users] Rule for checkbox
    Hello everyone,
    I can´t solve the problem with one rule on checkbox.
    There is my checkbox:
    Response Options/ Response Values:
    primary prevention | 0
    secondary prevention | 1
    diabetes mellitus | 2
    other | 3
    I need the rule when primary prevention(0) and secondary prevention(1) are set, execute action.
    My rule CHECKBOX_OID eq 0 and CHECKBOX_OID eq 1 doesn´t work and I have no idea why. Can someone help me please?
    Best regards,
    Tomas
  • GerbenRienkGerbenRienk Posts: 838 ✭✭✭
    Hello Tomas,
    Your data is stored as a string. All options that were checked will be
    concatenated, separated by comma's. So if someone checks 0 and 1 and 2, the
    output will be
    0,1,2
    As Paul said: you will have to use the ct-operator and your expression will
    be:
    CHECKBOX_OID ct "0" and CHECKBOX_OID ct "1"
    And yes, do it like this, including the quotation marks and without any
    parentheses.
    Try it, you'll like it,
    Gerben Rienk Visser
    http://www.trialdatasolutions.com
    -----Oorspronkelijk bericht-----
    Van: [email protected] [mailto:[email protected]]
    Namens Tomáš Machulka
    Verzonden: woensdag 19 januari 2011 12:41
    Aan: [email protected]
    Onderwerp: [Users] Rule for checkbox
    Hello everyone,
    I can´t solve the problem with one rule on checkbox.
    There is my checkbox:
    Response Options/ Response Values:
    primary prevention | 0
    secondary prevention | 1
    diabetes mellitus | 2
    other | 3
    I need the rule when primary prevention(0) and secondary prevention(1)
    are set, execute action.
    My rule CHECKBOX_OID eq 0 and CHECKBOX_OID eq 1 doesn´t work and I have
    no idea why. Can someone help me please?
    Best regards,
    Tomas
  • Hello,
    many thanks! Now it finally works. I like it :)
    > Hello Tomas,
    >
    > Your data is stored as a string. All options that were checked will be
    > concatenated, separated by comma's. So if someone checks 0 and 1 and 2, the
    > output will be
    > 0,1,2
    > As Paul said: you will have to use the ct-operator and your expression will
    > be:
    > CHECKBOX_OID ct "0" and CHECKBOX_OID ct "1"
    > And yes, do it like this, including the quotation marks and without any
    > parentheses.
    > Try it, you'll like it,
    >
    > Gerben Rienk Visser
    > http://www.trialdatasolutions.com
    >
    > -----Oorspronkelijk bericht-----
    > Van: [email protected] [mailto:[email protected]]
    > Namens Tomáš Machulka
    > Verzonden: woensdag 19 januari 2011 12:41
    > Aan: [email protected]
    > Onderwerp: [Users] Rule for checkbox
    >
    > Hello everyone,
    > I can´t solve the problem with one rule on checkbox.
    >
    > There is my checkbox:
    > Response Options/ Response Values:
    > primary prevention | 0
    > secondary prevention | 1
    > diabetes mellitus | 2
    > other | 3
    >
    > I need the rule when primary prevention(0) and secondary prevention(1)
    > are set, execute action.
    > My rule CHECKBOX_OID eq 0 and CHECKBOX_OID eq 1 doesn´t work and I have
    > no idea why. Can someone help me please?
    >
    > Best regards,
    > Tomas
    >
    >
This discussion has been closed.