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

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.