Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Automating and extending JMP Clinical: The preamble

JMP Clinical was released 11 years ago specifically for the analysis and review of ongoing clinical trials centered on standardized and structured data. The intent was that a reviewer would receive data for review in regular intervals (every week or every month) to look for safety and/or efficacy signals using pre-programmed reports, enabling the reviewer to self-serve and dig deeper into the data on-demand. The hope was to expedite the review process as well as uncover anomalies that might otherwise be missed when looking at static tables, listings, and figures.

In addition, a goal of the software was to alleviate the burden placed on programming teams who produce the requested data and standardized reports for the reviewers. This required a lot of time to run programs or edit programs/scripts/macro to accommodate the reviewers' needs and on a frequent basis. Programming and biostatistics groups typically want to focus on data and reports that are unique to the study instead of the usual table or graph that is pretty consistent from study to study, allowing them to give more robust and undistracted attention to the study-specific anomalies that require more statistical or algorithmic knowledge.

For the most part, JMP Clinical met those goals unless we're talking about organizations that have many studies that need to be monitored and/or have frequent data updates. This puts a new burden on data management and biostatistics teams to update the studies within JMP Clinical or puts the burden on the reviewers who were not as proficient in the process or have the time. Also of interest was the ability to modify some of the reports within JMP Clinical and/or run the same review template on a scheduled basis. The demand for automation and extension of JMP Clinical’s capabilities became a frequent request.

Enter the APIs of JMP Clinical. Around JMP Clinical 6, we introduced the framework and infrastructure to make API-based access to common functions/processes programmatically possible. In JMP Clinical 7, the APIs were released and made available using the JMP Scripting Language (JSL). In version 8 (the latest one), more capabilities were released. This post does not go into the details of the development of the APIs. Instead, it focuses on the practical use of them so you can take advantage of them.

I'll share a series of posts on how to invoke and use the APIs. We start simple by introducing the basic syntax and their use. Then we progress into more sophisticated uses while using JSL. And finally, we combine the two categories of APIs invoked within some JSL.

For those not familiar with the terms Study, Review, Report and Review Template within the context of JMP Clinical, please see this link to become acquainted. Also, those not familiar with JSL should read and learn more at this link. Knowledge of both is required to understand the use of the APIs.

For this post, let’s start with the two main categories and what is possible. The two main categories are: Study Management related functions (JMPClinicalStudyManagerAPI) and the Review related functions (JMPClinicalReviewAPI). The idea is to replicate what can be done within the user interface (mainly the button clicks) where user a decision is not needed (like refreshing the metadata for Studies with new data or opening a Review Template and running it for a specific Study). Below are a couple of images that highlight buttons that relate to the Study Management section and the Review section.

Study Management Functions that Relate to JMPClinicalStudyMangerAPIStudy Management Functions that Relate to JMPClinicalStudyMangerAPI


Review/Review Builder Functions that Related to JMPClinicalReviewAPIReview/Review Builder Functions that Related to JMPClinicalReviewAPI

The API is meant to take routine tasks and automate them, like refreshing studies with new metadata or to add/remove content from a Report within a Review Template. Here is a link for the JMPClinicalStudyManagerAPI functions and another link for the JMPClinicalReviewAPI functions for reference.

So, what can this JMPClinicalStudyMangerAPI API do for us? It provides us with two sets of functions: get functions (ones that get information about the studies) and manipulate functions (ones that add, remove or update studies). Here is a table of what is possible with the basic syntax to call that function. The colon (:) separates the API call and the function call. Some of the functions have input and/or returns. See the above links for details on what is expected as an input and return.

Study Management API

Get Information Functions

Manipulate Study Functions

Get list of Study names:


Add Study:


Get SDTM folder path:


Refresh Study metadata:


Get ADaM folder path:


Delete Study:


Get Date Study was added:


Update Study with a new Snapshot:


Get Date Study was lasted updated:


Change Study data folders:


Get Snapshot Enabled Status:


Pre-compute Patient Profile data:


Get Snapshot Number:



Get list of domains recognized:



Get file size on disk:



Get Windows OS user ID who created/added Study:



Get Windows OS user ID who last updated Study:



Now let’s look at the second category, Review functions. This one also has a set of get and manipulate functions but for Reviews and Reports.

Review API

Get Information Functions

Manipulate Report/Review Functions

Get a reference to the Review Builder:


Close Review Builder:


Get the Review Viewer/Builder ID and Title:


Open Review Template:


Get a reference to the Review Viewer:


Add a Report to Review Builder:


Get Table of Contents of the Review Viewer/Builder:


Remove Report form Review Builder by Title:


Get a list of Report IDs:


Run Report in Review Builder by Title:


Get a list of Report Titles:


Run all Reports in Review Builder:


Get a reference to a Report by ID:


Save Review Builder contents as a Review:


Get a reference to a Report by Title:


Open a Review in the Review Viewer:


Get Report Details by Title:


Insert Section into a Report:


Get a reference to the Report Results:


Remove Section from a Report:


Get a reference to the Report Section:


Add to end of Report Section:


Get list of data tables used in Report:


Add to beginning of Report Section:


So now we have the different functions and what they can do listed. Now it is time to show the basic syntax of their use. The basic form is this:

JMPClinical<Category>API:<function> ({argument(s)}, {namespace}, completeListenerFunction());

I have already introduced the basic call to the Study Management related API functions above when I referred to JMPClinicalStudyManagerAPI. So, if I want to refresh the metadata of the registered studies, it will look something like this:

JMPClinicalStudyManager:refreshStudies ({studyList},{},{});

We will dissect this more and talk about common uses in the next set of posts. For now, I wanted to introduce what is available and how to generally invoke it within a JSL script. The next post will be about an example of the Study Management API, talking more about namespace and completeListener parts of the API Call and start to wrap it in JSL as well as use JSL within it.

Until the next post, take care!

Last Modified: Dec 19, 2023 3:14 PM
Level II

Hi Chris, I'm wondering if there is study management API  for making a study as current study in JMP clinical. Could not find it in the table in your blog.  Many thanks. Baoyue Li



Sorry for the late reply. I did not see this comment this post.  In JMP Clinical 18 (and 17) you can set the current study. Here is a link to the API page from the user guide:

Here is a generic use of it:

JMPClinicalStudyManagerAPI:setCurrentStudy("study name")

Sets the current study to the one specified.


study - a string containing the name of the study to set as the current study, or Empty() to set the current study to <None>


If the current study was succesfully set, 1; otherwise 0.



For others who find this post. The APIs have changed some for JMP Clinical 17 and 18. Please refer to the following links for the latest:


Study Manager API:


Review API:


Level II

thanks Chris. Seems that the "setCurrentStudy" command is not available in JMP clinical version 15?


Correct. It is new in JMP Clinical 17 and also found in JMP Clinical 18