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

One CRF rule for different visits

Hi everyone,
I have one CRF with different visits and try to write one rule for all these visits (in my case SE_VISIT1, SE_VISIT2 etc...). Is it possible? Example in documentation says SED_OID[ALL].CRF_OID.GROUP_OID[ALL].ITEM_OID and i want to write smth right this to my case. I tried SE_VISITS[ALL], SED_SE_VISITS[ALL].... but all these didn't work....
So in other words, is it possible?

Thank you,
Kirill Antonov


  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    via Email
    If a event or group repeat index is not specified, the rule will target all
    indexes, so there is no need to specify [ALL].

    In this case you're targeting different events, not indexes. Omit the event
    oid and the rule will apply to the CRF no matter which event it is in.

  • Thanks for the response. But problem isn't solve.
    If I attach 2 CRF in the same VISIT (like VISIT1) and write rule which takes value from one CRF and fill fields in the another CRF without SED_OID[ALL] it's work fine!!! BUT if i attach one CRF to VISIT1, from which I'd like to take value, and the second CRF to VISIT2, which fields need to fill, its not work (no warnings) just fields is empty....
  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    via Email
    That is a different problem. InsertAction rules do not work when the target
    and destination items are in different event definitions.

    Having 2 event definitions e.g. VISIT1 and VISIT2, is not the same as
    having 2 repeats of 1 event definition, e.g. VISIT[1] and VISIT[2].
  • Are there any ways to solve this problem?
  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    via Email
    If you want to copy data across event definitions, you can use the SOAP
    webservices app, with an automated client job.

    I have written bindings in Python and PHP, and there are others in Java.
    Check out the extensions page on the OpenClinica website.

    Probably quickest solution is Tomas' Python client since it includes
    bindings for the REST API, which is used to retrieve clinicaldata.
    Otherwise you need something else like scheduled exports, or sqldatamart,
    to retrieve data to copy.

    On the one hand, copying data across events might be a sign that the data
    model could be simplified, e.g. put the common data in its own event.

    On the other hand, if you're sure you need this to happen then setting up a
    webservices job will allow you to do very powerful and complex data
  • Thanks a lot for the help!!!
This discussion has been closed.