Api reference
components.guarantee_catalog.public.commands ¶
sync_guarantee_catalog ¶
guarantee_catalog
module-attribute
¶
guarantee_catalog = AppGroup(
name="guarantee_catalog",
help="Main command group for the Guarantee Catalog component",
)
sync_guarantee_catalog ¶
Synchronize guarantee catalog from YAML configuration to database.
This command: 1. Reads the guarantee catalog configuration from guarantees.yaml 2. Validates the structure and relationships of the configuration 3. Clears existing guarantee catalog entries from the database 4. Stores the new configuration in the database
The --dry-run flag can be used to validate and test the sync without committing changes. Use --product-type to sync a specific product type (e.g. fr_prevoyance).
Source code in components/guarantee_catalog/public/commands/sync_guarantee_catalog.py
components.guarantee_catalog.public.dependencies ¶
GuaranteeCatalogDependency ¶
Bases: ABC
get_country_code
abstractmethod
¶
get_guarantee_yaml_file_path
abstractmethod
¶
get_product_type
abstractmethod
¶
validate_coverage_rules ¶
Validates country-specific coverage rules for a given coverage against guarantee definitions.
Source code in components/guarantee_catalog/public/dependencies.py
get_app_dependency ¶
get_dependency_for_product_type ¶
Get the registered dependency for a specific product type.
Source code in components/guarantee_catalog/public/dependencies.py
set_app_dependency ¶
Source code in components/guarantee_catalog/public/dependencies.py
components.guarantee_catalog.public.entities ¶
coverage_rules ¶
AggregatedLimitParameter
module-attribute
¶
CoverageRule ¶
Bases: CoverageRuleBaseModel
Model representing an instantiated guarantee (coverage rule) with its chosen expression type, parameters and optional eligibility items.
CoverageRuleBaseModel ¶
CoverageRuleParameter ¶
Bases: CoverageRuleBaseModel
Model representing a parameter value for a coverage rule.
CoverageRuleValidationContext
dataclass
¶
CoverageRuleValidationContext(
guarantee_business_id=None,
bundle_choice_business_id=None,
category_business_id=None,
parameter_type=None,
)
Bases: DataClassJsonMixin
Context information for a coverage rule validation error.
InstantiatedBundleChoiceParameter ¶
InstantiatedCategoryParameter ¶
PropagatedParameter
module-attribute
¶
ValidateCoverageRulesRequest ¶
Bases: CoverageRuleBaseModel
Model representing a request to validate a set of coverage rules.
Includes: - List of coverage rules - Propagated parameters for bundle choices and categories - Aggregated limit parameters for bundle choices and categories - Selected category IDs to validate required coverage rules
errors ¶
GuaranteeCatalogError ¶
GuaranteeCatalogError(
error_type,
description,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
param_type=None,
**kwargs
)
Bases: BaseErrorCode
Error class for guarantee catalog validation failures.
Initialize a guarantee catalog error with type and description.
Source code in components/guarantee_catalog/public/entities/errors.py
builder_coverage_lower_level_than_source
classmethod
¶
builder_coverage_lower_level_than_source(
guarantee_id,
bundle_choice_id,
description,
missing_eligibility_items=None,
param_type=None,
)
Create error for target coverage less premium than source.
Source code in components/guarantee_catalog/public/entities/errors.py
bundle_choice_not_found
classmethod
¶
Create error for non-existent bundle choice.
Source code in components/guarantee_catalog/public/entities/errors.py
duplicate_guarantee
classmethod
¶
Create error for duplicate guarantee in bundle choice.
Source code in components/guarantee_catalog/public/entities/errors.py
duplicate_parameter
classmethod
¶
duplicate_parameter(
param_type,
level_name,
identifier,
is_limit=False,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for duplicate parameters within the same level.
Source code in components/guarantee_catalog/public/entities/errors.py
exactly_one_bundle_choice_required
classmethod
¶
Create error for incompatible bundle choice.
Source code in components/guarantee_catalog/public/entities/errors.py
guarantee_from_unselected_category
classmethod
¶
Create error for guarantee from unselected category.
Source code in components/guarantee_catalog/public/entities/errors.py
guarantee_not_found
classmethod
¶
Create error for non-existent guarantee.
Source code in components/guarantee_catalog/public/entities/errors.py
guarantee_not_in_bundle_choice
classmethod
¶
Create error for guarantee that doesn't belong to the specified bundle choice.
Source code in components/guarantee_catalog/public/entities/errors.py
invalid_parameter_format
classmethod
¶
invalid_parameter_format(
param_type,
level_name,
identifier,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for invalid parameter format.
Source code in components/guarantee_catalog/public/entities/errors.py
mandatory_bundle_missing
classmethod
¶
Create error for missing mandatory bundle.
Source code in components/guarantee_catalog/public/entities/errors.py
missing_bundle_choice_guarantee
classmethod
¶
Create error for missing guarantee from bundle choice.
Source code in components/guarantee_catalog/public/entities/errors.py
missing_mandatory_eligibility_item
classmethod
¶
Create error for missing mandatory eligibility items.
Source code in components/guarantee_catalog/public/entities/errors.py
missing_parameter
classmethod
¶
missing_parameter(
missing_types,
level_name,
identifier,
param_type,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for missing required parameters.
Source code in components/guarantee_catalog/public/entities/errors.py
missing_propagated_limit
classmethod
¶
Create error for missing propagated limit parameter.
Source code in components/guarantee_catalog/public/entities/errors.py
multiple_bundle_choices
classmethod
¶
Create error for multiple bundle choices selected from same bundle.
Source code in components/guarantee_catalog/public/entities/errors.py
no_eligibility_items_selected
classmethod
¶
Create error if no eligibility items are selected.
Source code in components/guarantee_catalog/public/entities/errors.py
parameter_below_business_min
classmethod
¶
parameter_below_business_min(
param_type,
level_name,
identifier,
min_value,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for parameter below business minimum.
Source code in components/guarantee_catalog/public/entities/errors.py
parameter_below_pricer_min
classmethod
¶
parameter_below_pricer_min(
param_type,
level_name,
identifier,
min_value,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for parameter below pricer minimum.
Source code in components/guarantee_catalog/public/entities/errors.py
parameter_exceeds_business_max
classmethod
¶
parameter_exceeds_business_max(
param_type,
level_name,
identifier,
max_value,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for parameter exceeding business maximum.
Source code in components/guarantee_catalog/public/entities/errors.py
parameter_exceeds_fiscal_max
classmethod
¶
parameter_exceeds_fiscal_max(
param_type,
level_name,
identifier,
max_value,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for parameter exceeding fiscal maximum.
Source code in components/guarantee_catalog/public/entities/errors.py
parameter_exceeds_pricer_max
classmethod
¶
parameter_exceeds_pricer_max(
param_type,
level_name,
identifier,
max_value,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for parameter exceeding pricer maximum.
Source code in components/guarantee_catalog/public/entities/errors.py
unexpected_parameter
classmethod
¶
unexpected_parameter(
param_type,
level_name,
identifier,
guarantee_id=None,
bundle_choice_id=None,
category_id=None,
)
Create error for unexpected parameter that wasn't defined.
Source code in components/guarantee_catalog/public/entities/errors.py
unexpected_parameter_source
classmethod
¶
Create error for unexpected constant or propagated parameter.
Source code in components/guarantee_catalog/public/entities/errors.py
unknown_eligibility_item
classmethod
¶
Create error for unknown eligibility item.
Source code in components/guarantee_catalog/public/entities/errors.py
unsupported_expression_type
classmethod
¶
Create error for unsupported expression type.
Source code in components/guarantee_catalog/public/entities/errors.py
GuaranteeCatalogErrorType ¶
Bases: AlanBaseEnum
Error types for guarantee catalog validation.
builder_coverage_lower_level_than_source
class-attribute
instance-attribute
¶
bundle_choice_not_found
class-attribute
instance-attribute
¶
duplicate_guarantee
class-attribute
instance-attribute
¶
duplicate_parameter
class-attribute
instance-attribute
¶
exactly_one_bundle_choice_required
class-attribute
instance-attribute
¶
guarantee_from_unselected_category
class-attribute
instance-attribute
¶
guarantee_not_found
class-attribute
instance-attribute
¶
guarantee_not_in_bundle_choice
class-attribute
instance-attribute
¶
invalid_parameter_format
class-attribute
instance-attribute
¶
mandatory_bundle_missing
class-attribute
instance-attribute
¶
missing_bundle_choice_guarantee
class-attribute
instance-attribute
¶
missing_mandatory_eligibility_item
class-attribute
instance-attribute
¶
missing_propagated_limit
class-attribute
instance-attribute
¶
multiple_bundle_choices
class-attribute
instance-attribute
¶
no_eligibility_item_selected
class-attribute
instance-attribute
¶
parameter_below_business_min
class-attribute
instance-attribute
¶
parameter_below_pricer_min
class-attribute
instance-attribute
¶
parameter_diverges_from_constant_value
class-attribute
instance-attribute
¶
parameter_exceeds_business_max
class-attribute
instance-attribute
¶
parameter_exceeds_fiscal_max
class-attribute
instance-attribute
¶
parameter_exceeds_pricer_max
class-attribute
instance-attribute
¶
unexpected_parameter
class-attribute
instance-attribute
¶
unexpected_parameter_source
class-attribute
instance-attribute
¶
unknown_eligibility_item
class-attribute
instance-attribute
¶
unsupported_expression_type
class-attribute
instance-attribute
¶
guarantee_definition ¶
Bundle
dataclass
¶
Bases: DataClassJsonMixin
A guarantee bundle.
Contains multiple bundle choices.
BundleChoice
dataclass
¶
BundleChoice(
*,
business_identifier,
product_type,
guarantees,
display_name=None,
premiumness=None,
propagated_parameters=list(),
aggregated_limit_parameters=list(),
is_default,
status
)
Category
dataclass
¶
Category(
*,
business_identifier,
product_type,
bundles,
display_name=None,
propagated_parameters=list(),
aggregated_limit_parameters=list()
)
EligibleBeneficiary
dataclass
¶
EligibleBeneficiaryParameter
dataclass
¶
EligibleBeneficiaryParameter(
*,
type,
source,
constant_value=None,
business_min=None,
business_max=None
)
Bases: DataClassJsonMixin
A parameter for an eligible beneficiary criterion.
EligibleEvent
dataclass
¶
EligibleEventParameter
dataclass
¶
EligibleMember
dataclass
¶
EligibleMemberParameter
dataclass
¶
Guarantee
dataclass
¶
Guarantee(
*,
business_identifier,
product_type,
expressions,
display_name=None,
tax_bracket_tag=None,
metadata=None,
eligibility_items=list(),
eligible_member=None,
eligible_beneficiaries=list(),
eligible_events=list()
)
Bases: DataClassJsonMixin
A guarantee, ie a representation of a (Alan-defined) type of care.
Contains all information needed to define a guarantee including its expressions and eligibility items.
__post_init__ ¶
Dataclass post-initialization hook.
Source code in components/guarantee_catalog/public/entities/guarantee_definition.py
eligibility_items
class-attribute
instance-attribute
¶
eligible_beneficiaries
class-attribute
instance-attribute
¶
get_expression ¶
Get an expression by its type.
Source code in components/guarantee_catalog/public/entities/guarantee_definition.py
GuaranteeCatalog
dataclass
¶
Bases: DataClassJsonMixin
A guarantee catalog.
Contains all guarantees.
- Guarantees are regrouped into categories->bundles->bundle_choices->guarantees.
- Each guarantee can be in several bundle_choices. However, a guarantee can be in only one bundle and only one category.
- By transition:
- Each bundle_choice is in exactly one bundle.
- Each bundle is in exactly one category.
__post_init__ ¶
Dataclass post-initialization hook.
Source code in components/guarantee_catalog/public/entities/guarantee_definition.py
get_bundle_by_guarantee ¶
Get the bundle containing a given guarantee.
Source code in components/guarantee_catalog/public/entities/guarantee_definition.py
get_bundle_choices_by_guarantee ¶
Get all bundle choices for a given guarantee.
Source code in components/guarantee_catalog/public/entities/guarantee_definition.py
get_category_by_guarantee ¶
Get the category containing a given guarantee.
Source code in components/guarantee_catalog/public/entities/guarantee_definition.py
get_guarantee ¶
Get a guarantee by its identifier.
Source code in components/guarantee_catalog/public/entities/guarantee_definition.py
get_guarantee_or_none ¶
Get a guarantee by its identifier if it exists.
GuaranteeEligibilityItem
dataclass
¶
Bases: DataClassJsonMixin
An eligibility item for a guarantee.
Defines what the guarantee applies to.
An eligibility item can be optional (guarantee must cover it) or not (guarantee may or may not cover it).
GuaranteeExpression
dataclass
¶
Bases: DataClassJsonMixin
A guarantee expression.
Defines how a guarantee is reimbursed using a specific type and optional parameters.
GuaranteeParameter
dataclass
¶
GuaranteeParameter(
*,
type,
source,
business_min=None,
business_max=None,
fiscal_max=None,
pricer_min=None,
pricer_max=None,
pricer_step=None,
constant_value=None
)
Bases: DataClassJsonMixin
A parameter for a guarantee expression.
components.guarantee_catalog.public.enums ¶
es_category_ref ¶
ES category identifiers from catalog_guarantees.yaml.
EsCategoryRef ¶
Bases: AlanBaseEnum
ES category identifiers from catalog_guarantees.yaml.
These identifiers correspond to the identifier field in the
categories section of the ES health plan guarantee catalog.
es_guarantee_ref ¶
ES guarantee identifiers from catalog_guarantees.yaml.
ES_ADDONS_REFS
module-attribute
¶
ES_ADDONS_REFS = frozenset(
{
es_optical,
es_pharmacy,
es_preexisting_conditions,
es_premium_reimbursement,
es_physio_nutrition,
}
)
ES_ALAN_ESSENTIAL_ALLOWED_GUARANTEES
module-attribute
¶
ES_CORE_PRODUCT_REFS
module-attribute
¶
EsGuaranteeRef ¶
Bases: AlanBaseEnum
ES guarantee identifiers from catalog_guarantees.yaml.
These identifiers correspond to the identifier field in the
ES health plan guarantee catalog.
guarantee_coverage_expression_enums ¶
DeathBasisType ¶
Bases: AlanBaseEnum
Basis type for death / education annuity coverage rate calculations.
FixedAmountFrequency ¶
PermanentDisabilityBasisType ¶
Bases: AlanBaseEnum
Basis type for permanent disability coverage rate calculations.
snr_invalidity_rate
class-attribute
instance-attribute
¶
SsAmountIncluded ¶
WorkStoppageBasisType ¶
Bases: AlanBaseEnum
Basis type for work stoppage coverage rate calculations.
WorkStoppageDeductibleType ¶
Bases: AlanBaseEnum
Deductible calculation type for work stoppage coverage expressions.
discontinuous_over_12_months
class-attribute
instance-attribute
¶
guarantee_eligible_beneficiary_enums ¶
GuaranteeCatalogGuaranteeEligibleBeneficiaryParameterType ¶
Bases: AlanBaseEnum
Type of parameter for a guarantee eligible beneficiary.
These parameters define additional eligibility criteria for beneficiaries. This enum is incomplete and will be filled in at a later date as we define more beneficiary parameter types.
max_age_at_status_start_date
class-attribute
instance-attribute
¶
guarantee_eligible_event_enums ¶
EventValidReason ¶
Bases: AlanBaseEnum
Valid reasons for eligible events (death, permanent disability, work stoppage).
GuaranteeCatalogGuaranteeEligibleEventParameterType ¶
Bases: AlanBaseEnum
Type of parameter for a guarantee eligible event.
These parameters define additional eligibility criteria for events.
is_occupational_disease_or_accident
class-attribute
instance-attribute
¶
max_disability_category
class-attribute
instance-attribute
¶
max_disability_rate
class-attribute
instance-attribute
¶
min_disability_category
class-attribute
instance-attribute
¶
min_disability_rate
class-attribute
instance-attribute
¶
requires_hospitalization
class-attribute
instance-attribute
¶
work_stoppage_valid_reasons
class-attribute
instance-attribute
¶
GuaranteeEligibleEventType ¶
Bases: AlanBaseEnum
Type of eligible event for a guarantee.
This is the global enum used for DB storage. Use the per-product-type sets below for validation of which event types are valid for each product.
GuaranteeEligibleEventUserType ¶
Bases: AlanBaseEnum
Who the event happens to.
WorkStoppageValidReason ¶
Bases: AlanBaseEnum
Valid reasons for work stoppage events.
Synced with InternalizedWorkStoppageReason from prevoyance_claim_management.
guarantee_eligible_member_enums ¶
GuaranteeCatalogGuaranteeEligibleMemberParameterType ¶
Bases: AlanBaseEnum
Type of parameter for a guarantee eligible member.
These parameters define additional eligibility criteria for members. This enum is incomplete and will be filled in at a later date as we define more member parameter types.
has_dependant_child
class-attribute
instance-attribute
¶
is_covered_in_parental_leave
class-attribute
instance-attribute
¶
max_hours_worked_in_trimester
class-attribute
instance-attribute
¶
max_tenure_or_less_than_200_hours_per_trimester
class-attribute
instance-attribute
¶
max_tenure_or_less_than_200_hours_per_trimester = (
"max_tenure_or_less_than_200_hours_per_trimester"
)
min_covered_presence_days
class-attribute
instance-attribute
¶
min_hours_worked_in_trimester
class-attribute
instance-attribute
¶
number_of_dependant_children
class-attribute
instance-attribute
¶
guarantee_expression_type ¶
GuaranteeExpressionType ¶
Bases: AlanBaseEnum
Enumeration of all possible guarantee expression types. Defines how a guarantee's reimbursement is calculated.
cumulative_copayment
class-attribute
instance-attribute
¶
cumulative_limit_on_percent_reimburement_monthly_social_security_ceiling
class-attribute
instance-attribute
¶
cumulative_limit_on_percent_reimburement_monthly_social_security_ceiling = "cumulative_limit_on_percent_reimburement_monthly_social_security_ceiling"
cumulative_limit_per_side
class-attribute
instance-attribute
¶
fixed_amount__monthly
class-attribute
instance-attribute
¶
fixed_amount__monthly__x2_orphan
class-attribute
instance-attribute
¶
fixed_amount__one_time
class-attribute
instance-attribute
¶
get_before_and_after_parameter_types
classmethod
¶
Returns the before and after parameter types (if any) for a given expression type.
Source code in components/guarantee_catalog/public/enums/guarantee_expression_type.py
get_pricer_main_and_extra_param_types
classmethod
¶
Returns the main and extra parameter types used by the pricer for a given expression type.
The pricer uses these parameters as inputs to compute pure premiums for guarantees: - main_parameter_type: The primary parameter that affects the pure premium calculation - extra_parameter_type: An optional secondary parameter that may also influence the calculation
For example, for percent_reimbursement_ss: - main_parameter_type is percent_reimbursement_ss - no extra_parameter_type is needed The pure premium will depend only on the value of percent_reimbursement_ss.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expression_type
|
GuaranteeExpressionType
|
The type of guarantee expression |
required |
Returns:
| Type | Description |
|---|---|
GuaranteeParameterType
|
A tuple containing: |
Optional[GuaranteeParameterType]
|
|
tuple[GuaranteeParameterType, Optional[GuaranteeParameterType]]
|
|
Source code in components/guarantee_catalog/public/enums/guarantee_expression_type.py
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 | |
get_required_parameter_types
classmethod
¶
Returns set of required parameter types for a given expression type.
Source code in components/guarantee_catalog/public/enums/guarantee_expression_type.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | |
is_prevoyance
property
¶
Returns True if the expression type is a prevoyance type (pricer validation skipped).
is_priceable
property
¶
Returns True if the expression type is priceable, False otherwise.
lump_sum_and_percent_reimbursement_ss
class-attribute
instance-attribute
¶
max_reimbursement_per_care
class-attribute
instance-attribute
¶
max_reimbursement_per_care_before_after_count_limit
class-attribute
instance-attribute
¶
max_reimbursement_per_care_before_after_count_limit = (
"max_reimbursement_per_care_before_after_count_limit"
)
max_reimbursement_per_care_with_count_limit
class-attribute
instance-attribute
¶
max_reimbursement_per_care_with_count_limit_and_frame_amount
class-attribute
instance-attribute
¶
max_reimbursement_per_care_with_count_limit_and_frame_amount = "max_reimbursement_per_care_with_count_limit_and_frame_amount"
max_reimbursement_per_care_with_cumulative_limit
class-attribute
instance-attribute
¶
max_reimbursement_per_care_with_cumulative_limit = (
"max_reimbursement_per_care_with_cumulative_limit"
)
net_salary_rate__brut_ss_included
class-attribute
instance-attribute
¶
net_salary_rate__brut_ss_included__discontinuous_deductible
class-attribute
instance-attribute
¶
net_salary_rate__brut_ss_included__discontinuous_deductible = "net_salary_rate__brut_ss_included__discontinuous_deductible"
net_salary_rate__brut_ss_included__invalidity_rate
class-attribute
instance-attribute
¶
net_salary_rate__brut_ss_included__invalidity_rate = (
"net_salary_rate__brut_ss_included__invalidity_rate"
)
net_salary_rate__brut_ss_included__standard_deductible
class-attribute
instance-attribute
¶
net_salary_rate__brut_ss_included__standard_deductible = (
"net_salary_rate__brut_ss_included__standard_deductible"
)
net_salary_rate__net_ss_included
class-attribute
instance-attribute
¶
pass_rate__x2_orphan
class-attribute
instance-attribute
¶
percent_reimbursement_coinsurance
class-attribute
instance-attribute
¶
percent_reimbursement_coinsurance_and_ss
class-attribute
instance-attribute
¶
percent_reimbursement_fixed_contribution
class-attribute
instance-attribute
¶
percent_reimbursement_monthly_social_security_ceiling
class-attribute
instance-attribute
¶
percent_reimbursement_monthly_social_security_ceiling = (
"percent_reimbursement_monthly_social_security_ceiling"
)
percent_reimbursement_ss
class-attribute
instance-attribute
¶
percent_reimbursement_ss_before_after_count_limit
class-attribute
instance-attribute
¶
percent_reimbursement_ss_before_after_count_limit = (
"percent_reimbursement_ss_before_after_count_limit"
)
percent_reimbursement_ss_with_count_limit
class-attribute
instance-attribute
¶
percent_reimbursement_ss_with_cumulative_limit
class-attribute
instance-attribute
¶
percent_reimbursement_ss_with_cumulative_limit = (
"percent_reimbursement_ss_with_cumulative_limit"
)
percent_reimbursement_total_cost
class-attribute
instance-attribute
¶
percent_reimbursement_total_cost_with_count_limit
class-attribute
instance-attribute
¶
percent_reimbursement_total_cost_with_count_limit = (
"percent_reimbursement_total_cost_with_count_limit"
)
percent_reimbursement_total_cost_with_cumulative_limit
class-attribute
instance-attribute
¶
percent_reimbursement_total_cost_with_cumulative_limit = (
"percent_reimbursement_total_cost_with_cumulative_limit"
)
percent_reimbursement_with_cumulative_and_count_limit_per_side
class-attribute
instance-attribute
¶
percent_reimbursement_with_cumulative_and_count_limit_per_side = "percent_reimbursement_with_cumulative_and_count_limit_per_side"
reimburse_full_cost
class-attribute
instance-attribute
¶
reimburse_full_cost_with_count_limit
class-attribute
instance-attribute
¶
reimburse_full_cost_with_count_limit_per_side
class-attribute
instance-attribute
¶
reimburse_full_cost_with_waiting_period
class-attribute
instance-attribute
¶
salary_above_ta_rate__ss_not_included
class-attribute
instance-attribute
¶
salary_above_ta_rate__ss_not_included__standard_deductible
class-attribute
instance-attribute
¶
salary_above_ta_rate__ss_not_included__standard_deductible = "salary_above_ta_rate__ss_not_included__standard_deductible"
salary_rate__brut_ss_included
class-attribute
instance-attribute
¶
salary_rate__brut_ss_included__discontinuous_deductible
class-attribute
instance-attribute
¶
salary_rate__brut_ss_included__discontinuous_deductible = "salary_rate__brut_ss_included__discontinuous_deductible"
salary_rate__brut_ss_included__invalidity_rate
class-attribute
instance-attribute
¶
salary_rate__brut_ss_included__invalidity_rate = (
"salary_rate__brut_ss_included__invalidity_rate"
)
salary_rate__brut_ss_included__standard_deductible
class-attribute
instance-attribute
¶
salary_rate__brut_ss_included__standard_deductible = (
"salary_rate__brut_ss_included__standard_deductible"
)
salary_rate__brut_ss_included__supplement_and_replacement_salary_continuation__standard_deductible
class-attribute
instance-attribute
¶
salary_rate__brut_ss_included__supplement_and_replacement_salary_continuation__standard_deductible = "salary_rate__brut_ss_included__supplement_and_replacement_salary_continuation__standard_deductible"
salary_rate__min_fixed_amount
class-attribute
instance-attribute
¶
salary_rate__min_fixed_amount__x2_orphan
class-attribute
instance-attribute
¶
salary_rate__ss_not_included
class-attribute
instance-attribute
¶
salary_rate__ss_not_included__invalidity_rate
class-attribute
instance-attribute
¶
salary_rate__ss_not_included__standard_deductible
class-attribute
instance-attribute
¶
salary_rate__ss_not_included__standard_deductible = (
"salary_rate__ss_not_included__standard_deductible"
)
salary_rate__ss_not_included__supplemental_and_replacement_salary_continuation__standard_deductible
class-attribute
instance-attribute
¶
salary_rate__ss_not_included__supplemental_and_replacement_salary_continuation__standard_deductible = "salary_rate__ss_not_included__supplemental_and_replacement_salary_continuation__standard_deductible"
salary_rate__x2_orphan
class-attribute
instance-attribute
¶
salary_rate_ta__brut_ss_included
class-attribute
instance-attribute
¶
salary_ta_rate__ss_not_included
class-attribute
instance-attribute
¶
salary_ta_rate__ss_not_included__standard_deductible
class-attribute
instance-attribute
¶
salary_ta_rate__ss_not_included__standard_deductible = (
"salary_ta_rate__ss_not_included__standard_deductible"
)
salary_ta_rate__ss_not_included__supplemental_and_replacement_salary_continuation__standard_deductible
class-attribute
instance-attribute
¶
salary_ta_rate__ss_not_included__supplemental_and_replacement_salary_continuation__standard_deductible = "salary_ta_rate__ss_not_included__supplemental_and_replacement_salary_continuation__standard_deductible"
guarantee_parameter_type ¶
GuaranteeParameterType ¶
Bases: AlanBaseEnum
Enumeration of all possible guarantee parameter types.
always_reimburse_100_pct_ss
class-attribute
instance-attribute
¶
coverage_max_limit_amount
class-attribute
instance-attribute
¶
cumulative_copayment
class-attribute
instance-attribute
¶
fixed_amount_frequency
class-attribute
instance-attribute
¶
format_value ¶
Format the provided value of the parameter according to its type.
get_limit_types
classmethod
¶
Returns set of parameter types that are limits.
get_valid_constant_values
classmethod
¶
Return the expected enum type for constant values, optionally scoped by event type.
Looks up by (parameter_type, event_type) first, then falls back to (parameter_type, None) for types valid across all events. Returns None if the parameter type has no constrained constant value type.
Source code in components/guarantee_catalog/public/enums/guarantee_parameter_type.py
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | |
get_value_formatter
classmethod
¶
Return the type of the value for the parameter.
Source code in components/guarantee_catalog/public/enums/guarantee_parameter_type.py
is_valid_for_event_type
classmethod
¶
Return True if parameter_type is allowed for the given event type.
A parameter is invalid only if it appears in the registry scoped to a different event type but not to this one (and not universally).
Source code in components/guarantee_catalog/public/enums/guarantee_parameter_type.py
max_reimbursement_per_care
class-attribute
instance-attribute
¶
max_reimbursement_per_care_after_count_limit_reached
class-attribute
instance-attribute
¶
max_reimbursement_per_care_after_count_limit_reached = (
"max_reimbursement_per_care_after_count_limit_reached"
)
percent_reimbursement_coinsurance
class-attribute
instance-attribute
¶
percent_reimbursement_fixed_contribution
class-attribute
instance-attribute
¶
percent_reimbursement_monthly_social_security_ceiling
class-attribute
instance-attribute
¶
percent_reimbursement_monthly_social_security_ceiling = (
"percent_reimbursement_monthly_social_security_ceiling"
)
percent_reimbursement_ss
class-attribute
instance-attribute
¶
percent_reimbursement_ss_after_count_limit_reached
class-attribute
instance-attribute
¶
percent_reimbursement_ss_after_count_limit_reached = (
"percent_reimbursement_ss_after_count_limit_reached"
)
percent_reimbursement_total_cost
class-attribute
instance-attribute
¶
post_duration_in_months
class-attribute
instance-attribute
¶
pre_duration_in_months
class-attribute
instance-attribute
¶
reimburse_full_cost
class-attribute
instance-attribute
¶
salary_continuation_type
class-attribute
instance-attribute
¶
waiting_period_in_months
class-attribute
instance-attribute
¶
product_type ¶
ProductType ¶
Bases: AlanBaseEnum
Product type for guarantee catalog entities.
Represents the combination of country and insurance product line.
components.guarantee_catalog.public.queries ¶
guarantees_definition ¶
get_guarantee_catalog ¶
Returns all guarantee categories and their complete hierarchy for the current app's product type.
Source code in components/guarantee_catalog/public/queries/guarantees_definition.py
validate_guarantee_catalog_from_yaml ¶
Validate the guarantee catalog YAML file for the current app.
This function validates the default guarantee catalog YAML file (as configured in app dependencies) without persisting any changes. Primarily used for testing to ensure the production YAML is well-formed and meets all validation rules.
Raises:
| Type | Description |
|---|---|
YAMLError
|
If the YAML file is malformed |
GuaranteeDefinitionError
|
If any validation fails (parameter constraints, references, uniqueness checks, etc.) |
Source code in components/guarantee_catalog/public/queries/guarantees_definition.py
validate_coverage_rules ¶
validate_coverage_rules ¶
Validates coverage rules for a given coverage against guarantee definitions.
Source code in components/guarantee_catalog/public/queries/validate_coverage_rules.py
validate_target_coverage_rule_is_equal_or_better_than_source ¶
Validate that target coverage rule is equal to or better than source coverage rule.
Source code in components/guarantee_catalog/public/queries/validate_coverage_rules.py
components.guarantee_catalog.public.test_helpers ¶
load_guarantee_catalog ¶
load_guarantee_catalog ¶
Load the guarantee catalog.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app_dependency
|
GuaranteeCatalogDependency | None
|
The app dependency to use. If not provided, the default app dependency will be used. |
None
|