openIMIS Backend PolicyHolder reference module
This repository holds the files of the openIMIS Backend PolicyHolder reference module. It is dedicated to be deployed as a module of openimis-be_py.
ORM mapping:
- tblPolicyHolder > PolicyHolder
- tblPolicyHolderInsuree > PolicyHolderInsuree
- tblPolicyHolderContributionPlanBundle > PolicyHolderContributionPlanBundle
- tblPolicyHolderUser > PolicyHolderUser
GraphQL Queries
- policyHolder
- PolicyHolderInsuree
- PolicyHolderContributionPlanBundle
- PolicyHolderUser
GraphQL Mutations - each mutation emits default signals and return standard error lists (cfr. openimis-be-core_py)
- createPolicyHolder
- updatePolicyHolder
- deletePolicyHolder
- createPolicyHolderInsuree
- updatePolicyHolderInsuree
- deletePolicyHolderInsuree
- replacePolicyHolderInsuree
- createPolicyHolderContributionPlanBundle
- updatePolicyHolderContributionPlanBundle
- deletePolicyHolderContributionPlanBundle
- replacePolicyHolderContributionPlanBundle
- createPolicyHolderUser
- updatePolicyHolderUser
- deletePolicyHolderUser
- replacePolicyHolderUser
Services
- PolicyHolder - CRUD services
- PolicyHolderInsuree - CRUD services, replacePolicyHolderInsuree
- PolicyHolderContributionPlanBundle - CRUD services, replacePoicyHolderContributionPlanBundle
- PolicyHolderUser - CRUD services, replacePolicyHolderUser
Row security
PolicyHolder.get_queryset is the one rule: a user sees the policy holders in
their districts, and the ones they are currently attached to through
PolicyHolderUser. PolicyHolderInsuree, PolicyHolderContributionPlan and
PolicyHolderUser declare ParentScope("policy_holder") and follow it.
Each query takes either its back-office right or its portal right (*_portal_perms).
The portal right is narrower: it reads only the policy holders the user is attached
to, whatever their districts. PolicyHolder.filter_membership(user, prefix=...)
returns that restriction as Q objects, for other modules' portal queries.
Configuration options (can be changed via core.ModuleConfiguration)
-
gql_query_policyholder_perms: required rights to call policy_holder GraphQL Query (default: ["150101"])
-
gql_query_policyholder_admins_perms: required rights to call policy_holder_admin GraphQL Query (default: [])
-
gql_query_policyholderinsuree_perms: required rights to call policy_holder_insuree GraphQL Query (default: ["150201"])
-
gql_query_policyholderinsuree_admins_perms: required rights to call policy_holder_insuree_admin GraphQL Query (default: [])
-
gql_query_policyholderuser_perms: required rights to call policy_holder_user GraphQL Query (default: ["150301"])
-
gql_query_policyholderuser_admins_perms: required rights to call policy_holder_user_admin GraphQL Query (default: [])
-
gql_query_policyholdercontributionplanbundle_perms: required rights to call policy_holder_contribution_plan_bundle GraphQL Query (default: ["150401"])
-
gql_query_policyholdercontributionplanbundle_admins_perms: required rights to call policy_holder_contribution_plan_bundle_admin GraphQL Query (default: [])
-
gql_mutation_create_policyholder_perms: required rights to call createPolicyHolder GraphQL Mutation (default: ["150102"])
-
gql_mutation_update_policyholder_perms: required rights to call updatePolicyHolder GraphQL Mutation (default: ["150103"])
-
gql_mutation_delete_policyholder_perms: required rights to call deletePolicyHolder GraphQL Mutation (default: ["150104"])
-
gql_mutation_create_policyholderinsuree_perms: required rights to call createPolicyHolderInsuree GraphQL Mutation (default: ["150202"]),
-
gql_mutation_update_policyholderinsuree_perms: required rights to call updatePolicyHolderInsuree GraphQL Mutation (default: ["150203"]),
-
gql_mutation_delete_policyholderinsuree_perms: required rights to call deletePolicyHolderInsuree GraphQL Mutation (default: ["150204"]),
-
gql_mutation_replace_policyholderinsuree_perms: required rights to call replacePolicyHolderInsuree GraphQL Mutation (default: ["150206"]),
-
gql_mutation_create_policyholderuser_perms: required rights to call createPolicyHolderUser GraphQL Mutation (default: ["150302"]),
-
gql_mutation_update_policyholderuser_perms: required rights to call updatePolicyHolderUser GraphQL Mutation (default: ["150303"]),
-
gql_mutation_delete_policyholderuser_perms: required rights to call deletePolicyHolderUser GraphQL Mutation (default: ["150304"]),
-
gql_mutation_replace_policyholderuser_perms: required rights to call replacePolicyHolderUser GraphQL Mutation (default: ["150306"]),
-
gql_mutation_create_policyholdercontributionplan_perms: required rights to call createPolicyHolderContributionPlanBundle GraphQL Mutation (default: ["150402"]),
-
gql_mutation_update_policyholdercontributionplan_perms: required rights to call updatePolicyHolderContributionPlanBundle GraphQL Mutation (default: ["150403"]),
-
gql_mutation_delete_policyholdercontributionplan_perms: required rights to call deletePolicyHolderContributionPlanBundle GraphQL Mutation (default: ["150404"]),
-
gql_mutation_replace_policyholdercontributionplan_perms: required rights to call replacePolicyHolderContributionPlanBundle GraphQL Mutation (default: ["150406"]),
openIMIS Modules Dependencies
- core.models.HistoryBusinessModel
- contribution_plan.models.ContributionPlanBundle
- insuree.models.Insuree
- location.models.Location
- policy.models.Policy
- payment.models.Payment
Metadata
Release files for openimis-be-policyholder 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_policyholder-1.11.0.tar.gz | 33.9 kB | Without provenance | Details for openimis_be_policyholder-1.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openimis_be_policyholder-1.11.0-py3-none-any.whl | Python 3 | none | any | Details for openimis_be_policyholder-1.11.0-py3-none-any.whl |
Total release size: 83.5 kB
Release files / openimis_be_policyholder-1.11.0.tar.gz
| Download URL | openimis_be_policyholder-1.11.0.tar.gz |
|---|---|
| Size | 33.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ce53a35ac0fbd3c34f015a49a2ee8ebd764963a375ab741fcc2211fa70479b0
|
|
BLAKE2b-256 checksum How to use checksums |
4e54b777456d1da60d500fa9d43814a426da5a6d36d67de1f3ef91a1e77493f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / openimis_be_policyholder-1.11.0-py3-none-any.whl
| Download URL | openimis_be_policyholder-1.11.0-py3-none-any.whl |
|---|---|
| Size | 49.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84b2580d5a1fc1a2b88cf9535e9084de9850f6d094076912a432c9aca22ac90f
|
|
BLAKE2b-256 checksum How to use checksums |
af3dfd4ac339217c674e5a6f03c7fe3f68ce07836dd6fcbb26406c39459316f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Security for openimis-be-policyholder 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.