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

Clinical data REST requests and the 'AdminData' node missing in the result


I am using XML REST requests to retrieve (a) clinical data for groups of subjects, as well as (b) study metadata, and also (c) user data (in the /ODM/AdminData node). Because of the large size of some of our studies, and the resulting slowness of these requests, it is useful for me to be able to retrieve these three things in one go.

When retrieving data for an entire study (using the /Study_OID/*/*/* pattern), the 'AdminData' node is returned. However for some reason, when retrieving data for one site in the study (using the /Site_ID/*/*/* pattern) the 'AdminData' node is missing.

My question is: is there any way of forcing the 'AdminData' node to be returned for site-specific requests? Failing that, is there a (fast) request I can make that retrieves the 'AdminData' node for the entire study, without having to retrieve the entire clinical dataset as well?

PS: I am using the XML version of the REST requests because I use XSLT to transform the result for our purposes.

Richard Welsh


  • GerbenRienkGerbenRienk Posts: 809 ✭✭✭
    Hi Richard,
    Is http://youropenclinica.server/yourocinstance/DownloadStudyMetadata?studyOid=S_TDS01 of any use in your case?
    Kind regards,
    Gerben Rienk
  • toskriptoskrip Posts: 271 ✭✭✭

    I think that it is a bug (not returning AdminData for site request). You can create a ticket for it in Jira. You can also get this info by retrieving study metadata via SOAP. Or if you want to stick with the REST you can just make a request for first patient in your site, the AdminData element should be present than and you just combine results fro these two requests together.


  • Richard WelshRichard Welsh Posts: 13

    Yes, thanks! The DownloadStudyMetadata request will help. I can quickly call that just prior to a site request to make sure I have the latest contents of the AdminData node. I didn't know about that URL, can you let me know if & where it is documented and if there are other similar requests I can make?


    I will raise it as a bug in Jira, thanks. I did consider your idea of doing a subject request for the first subject in the study, but I may not be in a position to know the subject ID, so I think Gerben's suggestion is more useful to me.

    Anyway, thanks both for your responses!

  • GerbenRienkGerbenRienk Posts: 809 ✭✭✭
    Hi Richard,
    It appears I use the old-fashioned way. More up to date is described at
    https://dev.openclinica.com/apidoc/#api-Study-GetODM and that is basically
    Kind regards,
    Gerben Rienk
Sign In or Register to comment.