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/21 16:55] – [The Astroid ResultsAPI and META Requests] kerhart | planning:userguide:results_api [2021/07/29 18:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
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 Functions and Version Compatibility ===== | ===== ResultsAPI Functions and Version Compatibility ===== | ||
Line 24: | Line 24: | ||
For a comprehensive list of available Planning Results API functions, please refer to the [[http:// | 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: | + | 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 30: | 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 41: | Line 41: | ||
=== Input Parameters === | === Input Parameters === | ||
- | These functions | + | These functions |
=== Return Data === | === Return Data === | ||
Line 47: | 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. | ||
+ | |||
+ | === Function Usage === | ||
+ | |||
+ | These context based ResultsAPI functions return a special type of calculation request object that is not directly usable within a Thinknode META request as they contain the additional context data needed to ensure the desired calculation is performed with the appropriate Astroid Planning App version. The process of running a context based ResultsAPI request consists of the following steps: | ||
+ | |||
+ | * 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 ==== | ==== Non-context based ResultsAPI functions ==== | ||
- | These functions are not recommended to be called | + | These functions are not recommended to be called |
- | Non-context based ResultsAPI | + | Non-context based ResultsAPI |
===== Example ===== | ===== Example ===== | ||
- | In the [[https:// | + | In the [[https:// |
In this particular example the // | In this particular example the // |
planning/userguide/results_api.1534870554.txt.gz · Last modified: 2021/07/29 18:22 (external edit)