31 Dec 2018: Thank you to our knowledgeable and friendly forums users for another great year. We are aware of the uptick in spam accounts and are doing our best to ban these at first sight. Thank you for your patience!

REST Call to get data for single CRF only

Hi,

i think this topic has already been raised here somewhere in the past, but without any replies so far.
In my case i've got a CRF X in which i would need to access data from another field in CRF Y.

My approach was to write JS that uses an ajax call to get the data via the REST interface / standard call for the subject casebook (OC 3.10):

https://[PROJECT]/OpenClinica/rest/clinicaldata/json/view/[STUDY]/[SUBJECT]/*/*

My problem is that, for performance reasons, i'd like to make the call more specific, that means to include the Event OID and CRF OID -> */*
However, the response is always all data for the given subject.

Any ideas why this is not working or what i'm doing wrong?
Cheers.

Comments

  • haenselhaensel Posts: 602 ✭✭✭
    Hi Bernhard

    With OC-3.12 using the oids for event and crf works. "StudyEventData" contains an entry for every event defined. But only for the event you requested you get a "FormData" entry (the others just contain a little bit metadata). So the resulting file size should be significant smaller.

    Regards,
    Christian
Sign In or Register to comment.