The normal method for doing what you want, would be to select the rows in the initial data table that (ex in patient underwent orthopedic intervention).
Then create a subset data table by using the Subset Platform
Tables=>Subset
Finally, run the Fit Y by X or Categorical platforms
Analyze=>Fit Y by X
Analyze=>Consumer Research=>Categorical
Finally, I recommend that you take the time to read the JMP introduction documents of Discovering JMP and Using JMP. Both are found in the JMP Documentation Library found under the Help pull down menu.