planning:userguide:results_api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
planning:userguide:results_api [2018/08/16 18:58] – [Context based ResultsAPI functions] dpatenaude | planning:userguide:results_api [2021/07/29 18:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Planning App ResultsAPI ====== | ====== Planning App ResultsAPI ====== | ||
- | The results API is provided to facilitate a controlled and consistent means for accessing necessary treatment plan details and information. The Results API is most frequently used by customers wishing to develop custom treatment plan reports for clinical patients. From the results API treatment plan data can be accessed, including (but not limited to): patient geometries, prescriptions, | + | The ResultsAPI |
- | Most Planning | + | Most Planning |
===== The Astroid ResultsAPI and META Requests ===== | ===== The Astroid ResultsAPI and META Requests ===== | ||
- | A fundamental principle of the Thinknode data environment in which Astroid lives is that Astroid stores INPUT data only, not calculation results. As such, this makes it difficult for end users to directly access the " | + | A fundamental principle of the Thinknode data environment in which Astroid lives is that Astroid stores INPUT data only, not calculation results. As such, this makes it difficult for end users to directly access the " |
- | The ResultsAPI functions | + | Most ResultsAPI functions |
- | A META request consists of a function that is flagged as a // | + | A META request consists of a function that is flagged as a // |
In summary, the process flow of using the ResultsAPI is as follows: | In summary, the process flow of using the ResultsAPI is as follows: | ||
Line 17: | Line 17: | ||
- User calls a ResultsAPI function with a specific treatment plan | - User calls a ResultsAPI function with a specific treatment plan | ||
- ResultsAPI returns a calculation request for the final data the user requires | - ResultsAPI returns a calculation request for the final data the user requires | ||
- | - A META request is submitted with the returned ResultsAPI calculation request | + | - A META request is submitted with the returned ResultsAPI calculation request |
- | - The META request result is the useful data the user requires | + | - The META request result is the useful data that the user requires |
- | ===== ResultsAPI | + | ===== ResultsAPI |
- | The Planning Results API provides two types of functions for generating the request for a treatment plan: | + | For a comprehensive list of available Planning Results API functions, please refer to the [[http:// |
+ | |||
+ | The Planning Results API provides two types of functions for generating the request for a treatment plan: Context based ResultsAPI functions and Non-context based ResultsAPI functions. Each type is described more fully below. | ||
==== Context based ResultsAPI functions ==== | ==== Context based ResultsAPI functions ==== | ||
Line 28: | Line 30: | ||
These are the recommended functions to be used when interfacing with the Planning App ResultsAPI, as they will ensure compatibility with past and future versions of the ResultsAPI. | These are the recommended functions to be used when interfacing with the Planning App ResultsAPI, as they will ensure compatibility with past and future versions of the ResultsAPI. | ||
- | Context based ResultsAPI functions are signified | + | Context based ResultsAPI functions are signified |
/*The context based functions provide compatibility for treatment plans that have been created using past versions of the Planning App and thus may have differing ResultsAPI functions or functions with differing signatures. This is achieved by these functions: | /*The context based functions provide compatibility for treatment plans that have been created using past versions of the Planning App and thus may have differing ResultsAPI functions or functions with differing signatures. This is achieved by these functions: | ||
Line 39: | Line 41: | ||
=== Input Parameters === | === Input Parameters === | ||
- | These functions | + | These functions |
=== Return Data === | === Return Data === | ||
Line 45: | Line 47: | ||
The context based ResultsAPI functions return a // | The context based ResultsAPI functions return a // | ||
- | The function uses the following logic to attempt to generate a compatible // | + | These functions use the following logic to attempt to generate a compatible // |
* If the ResultsAPI function does not exist for the captured Planning App version, the optional< | * If the ResultsAPI function does not exist for the captured Planning App version, the optional< | ||
* If the ResultsAPI function signature has changed, the calculation request will be constructed for the Planning ResultsAPI version that corresponds for the returned context ID. | * If the ResultsAPI function signature has changed, the calculation request will be constructed for the Planning ResultsAPI version that corresponds for the returned context ID. | ||
- | ==== Non-context based ResultsAPI functions ==== | ||
- | These functions are not recommended to be called from the ResultsAPI unless the caller wishes to recompute resulting data with a new Astroid version. These functions construct a request for the end data while not taking into account the captured Planning App context ID of the treatment plan. | + | === Function Usage === |
- | Non-context based ResultsAPI functions | + | These context based ResultsAPI functions |
- | ===== Available Functions ===== | + | * Submit the initial " |
+ | * Retrieve the result of the above calculation and get the context ID | ||
+ | * Perform a META request using the above context, setting the META Generator as the request portion of the above " | ||
+ | ==== Non-context based ResultsAPI functions | ||
- | For a comprehensive list of available Planning Results API functions, | + | These functions are not recommended to be called directly unless the caller specifically wishes to recompute the resulting data with a new Astroid version. These functions |
+ | |||
+ | Non-context based ResultsAPI function names are not prefixed with " | ||
===== Example ===== | ===== Example ===== | ||
- | In the [[https:// | + | In the [[https:// |
In this particular example the // | In this particular example the // |
planning/userguide/results_api.1534445931.txt.gz · Last modified: 2021/07/29 18:22 (external edit)