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!

Extend Subject Casebook JSON attributes

Hi,

Currently OC when generating the JSON url in the Subject Casebook, the output only produces data on the subject selected.

I am looking to extract multiple subjects using the same url.

This url will extract all the data about a subject, who's OID is SS_JOE in the study (S_BASICEXA).
http://mydomain/OpenClinica/rest/clinicaldata/json/view/S_BASICEXA/SS_JOE/*/*

I replaced the OID to * in the url.
http://mydomain/OpenClinica/rest/clinicaldata/json/view/S_BASICEXA/*/*/*

This genreated a JSON array across the 5 subjects in my study, but the values associated with the first subject were then applied to the remaing 4, when the results should have been different.

i.e 
Joe:
"ItemData":               [
                                {
                  "@ItemOID": "I_CRFLO_INPUTFIELD2",
                  "@Value": "secondinput"
                },
                                {
                  "@ItemOID": "I_CRFLO_INPUTFIELD1",
                  "@Value": "firstinput"
                }
              ]
Mark:

"ItemData":               [
                                {
                  "@ItemOID": "I_CRFLO_INPUTFIELD2",
                  "@Value": "input2input"
                },
                                {
                  "@ItemOID": "I_CRFLO_INPUTFIELD1",
                  "@Value": "input1input"
                }
              ]

Can you please advise?




Comments

This discussion has been closed.