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

Strange REST request results

giladhosgiladhos Posts: 11
edited March 2017 in Web Services & Integration
Hi all,
I'm making a REST request and parsing the json file returned.

Rest: http://*server-address*:8080/OpenClinica/
Full REST is: http://*server-address*:8080/OpenClinica/rest/clinicaldata/json/view/*study-name*/*/*/*
(*server-address* and *study-name* are appropriatley defined)

While manually checking data integrity I came accross this:

"ClinicalData" has the following fields:
StudyOID
MetaDataVersionOID
SubjectData: [subjectStudyEventData_1 , subjectStudyEventData_2 , ... , subjectStudyEventData_m] ;(this is an array)

(zoom in:)
subjectStudyEventData has the following fields:
@OpenClinica:Status
@OpenClinica:EnrollmentDate
@OpenClinica:StudySubjectID
@OpenClinica:DateOfBirth
@xmlns:OpenClinica
@OpenClinica:UniqueIdentifier
@OpenClinica:Sex
@SubjectKey
StudyEventData : [subjectSingleStudyEvent_1 , subjectSingleStudyEvent_2 , ... , subjectSingleStudyEvent_n]

everything OK so far,
subjectSingleStudyEvent fields are:
FormData
StudyEventOID
StudyEventRepeatKey
OpenClinica:Status
OpenClinica:SubjectAgeAtEvent
OpenClinica:StartDate

Each subjectSingleStudyEvent is an event in OpenClinica (visit, followup etc.)

now, while each subjectStudyEventData has it's unique SubjectKey and the info I receive is correct, they are all getting the same events data and not the actual data that is in the system (all of them get the data of one patient every time)

note:
If I use:
http://*server-address*:8080/OpenClinica/rest/clinicaldata/json/view/*study-name*/studySubjectOID/*/*

then I get correct event data for all patients.

Is there something wrong with making the first REST call?
Any known issue?

Thank you, Gilad

Tagged:

Comments

Sign In or Register to comment.