onc-healthit / onc-certification-g10-test-kit

ONC Certification (g)(10) Standardized API Tests
Apache License 2.0
34 stars 12 forks source link

Ability to export results into CSV or EXCEL #144

Closed MTroianov closed 2 years ago

MTroianov commented 2 years ago

Hello! Our team is looking for the best way to store results of the profile runs for tracking purposes, how would you recommend to do it in this version? Previously, we were using 'save results' which we were able to retrieve later by hashed link, but now I can't find this option in the UI. I also tried looking into generated SQLITE db directly, but I haven't found clear indication of how to create a relation between results and the profile/test run. Thanks in advance!

Jammjammjamm commented 2 years ago

All the save results button did was display the url from the address bar in a modal. You can just copy the url from your browser's address bar for the same effect.

If you want the results in a machine-readable format, I'd recommend using the JSON API over directly querying the db. When you're using Inferno, your url will look like: HOST_AND_BASE_PATH/test_sessions/TEST_SESSION_ID#GROUP_ID You can get the results for a session as JSON by performing a GET to: HOST_AND_BASE_PATH/api/test_sessions/TEST_SESSION_ID/results If there is additional functionality that would be helpful in the JSON API, please let us know and we will consider adding it.

You're really looking for the results of a test session, rather than a test run. Any time you click a run button in inferno, a new test run is created. So a single test session can contain multiple test runs together.

MTroianov commented 2 years ago

Thanks for very descriptive response! I might be getting some questions while testing the JSON API that you shared, but it looks very useful to our needs at the first glance.

MTroianov commented 2 years ago

Sorry, one more question. Is there a way to install Inferno with US Core 4.0.0 locally?

Jammjammjamm commented 2 years ago

Sure, if you don't want the g10 tests, you can just clone and run the US Core Test Kit.

If you want the g10 tests to be available, too, I'm pretty sure you need to:

Be warned that the US Core 4 IG makes the validator use a lot of memory.

MTroianov commented 2 years ago

Our team is concentrated on compliance of Single Patient API with US Core 4.0.0, did I get it correctly that we can use US Core Test Kit with 4.0.0 selected for that?

Jammjammjamm commented 2 years ago

Yes.

MTroianov commented 2 years ago

Thanks for help!