Strange REST request results

giladhosgiladhos Posts: 6
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

Comments

Sign In or Register to comment.