openIMIS Backend Calculation reference module
This repository holds the files of the openIMIS Backend Calculation reference module. It is dedicated to be deployed as a module of openimis-be_py.
Models
- None (using no database approach for CalculationRule) - Calculation Rule is saved by defining class extending the ABSCalculationClass from core module.
Listened Django Signals
- signal_get_rule_name
- signal_get_rule_details
- signal_get_param
- signal_get_linked_class
- signal_calculate_event
GraphQl Queries
- calculationRules
- allow frontend to fetch the all calculation rules data
- calculationRulesByClassName
- allow frontend to fetch the calculation data based on its name
- calculationParams
- allow frontend to fetch the calculation parameters
- linkedClass
- allow frontend to fetch the linked class related to chosen instance
Services
- get_rule_name(class_name)
- return the names of calculation rules
- get_rule_details(class_name)
- this function will send a signal and the rules will reply if they have object matching the classname in their list of object
- run_calculation_rules(instance, context, user)
- trigger calculations so as to calculate based on provided parameters
- get_parameters(class_name, instance)
- return the ruleDetails that are valid to classname and related to instance
- get_linked_class(class_name_list)
- List[ClassName] is send from FE, by checking the class used in page where the user have access
- return all the ListClass
Configuration options (can be changed via core.ModuleConfiguration)
- gql_query_calculation_rule_perms: required rights to call all graphQl queries defined for Calculation module (default: ["153001"])
- gql_mutation_update_calculation_rule_perms: required rights to update CalculationRule (default: ["153003"])
Metadata
Release files for openimis-be-calculation 1.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openimis_be_calculation-1.11.0.tar.gz | 13.4 kB | Without provenance | Details for openimis_be_calculation-1.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openimis_be_calculation-1.11.0-py3-none-any.whl | Python 3 | none | any | Details for openimis_be_calculation-1.11.0-py3-none-any.whl |
Total release size: 29.6 kB
Release files / openimis_be_calculation-1.11.0.tar.gz
| Download URL | openimis_be_calculation-1.11.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b99566bd09de8f2d6a79ffbb36b9b53bf0917c848b60df158e7a93b451b3d56
|
|
BLAKE2b-256 checksum How to use checksums |
1011b5fdbff404df3d134bcd76b3c93ae0d7a5399d7e2eebbbaa2a487709d72e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / openimis_be_calculation-1.11.0-py3-none-any.whl
| Download URL | openimis_be_calculation-1.11.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2406070726f1a9aff3faed4c100f21bd0d7859e91767d7c00fffebc61010eb32
|
|
BLAKE2b-256 checksum How to use checksums |
20a3de02d5829b3e6fa26bfc05c5a67d37ceba2689476674ff26b83afc8ae808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for openimis-be-calculation 1.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.