Api reference
components.claims_guarantees.public.api ¶
create_internal_care_type_and_process_changes ¶
create_internal_care_type_and_process_changes(
create_input,
country,
skip_mapping_update=False,
commit=True,
)
Create a new internal care type and associate it with the given groups. It'll also trigger updates to the Internal care type to guarantee mapping.
Source code in components/claims_guarantees/public/api.py
filter_guarantees_for_member_by_age ¶
filter_guarantees_for_member_by_age(
internal_health_guarantee_short_codes,
age,
country,
on_date,
)
Return the subset of input short codes for which at least one of the
guarantee's coverage mappings (active on on_date, in country) has age
filters compatible with the given age.
Source code in components/claims_guarantees/public/api.py
get_care_type_short_codes_mapped_to_guarantees ¶
Return the short codes of internal care types mapped to any of the given claims guarantees (any date).
Source code in components/claims_guarantees/public/api.py
get_care_type_short_codes_with_filter_type_constraint ¶
Return all the short codes of internal care types that have at least one guarantee mapping carrying the given filter type (any value, any date).
Source code in components/claims_guarantees/public/api.py
get_claims_guarantees_for_care_type ¶
get_claims_guarantees_for_care_type(
internal_care_type_short_code,
country,
on_date,
care_context,
)
Return claims guarantees mapped to a care type, valid on a given date and for a list of given filters.
Source code in components/claims_guarantees/public/api.py
components.claims_guarantees.public.commands ¶
components.claims_guarantees.public.dependencies ¶
ClaimsGuaranteesDependency ¶
Bases: ABC
Abstract dependency for the claims_guarantees component.
get_app_dependency ¶
Retrieve the claims_guarantees dependency from the current Flask app.
Source code in components/claims_guarantees/public/dependencies.py
set_app_dependency ¶
Register the claims_guarantees dependency on the current Flask app.
Source code in components/claims_guarantees/public/dependencies.py
components.claims_guarantees.public.entities ¶
CareContext
dataclass
¶
CareContext(
*,
age_on_care_date=None,
is_reimbursed_by_secu=None,
is_in_network=None,
is_optam_or_secteur_1=None,
practitioner=None,
glasses_lens_complexity=None,
treatment_mode=None,
nature_de_soins=None,
is_etablissement_conventionne=None,
is_for_at_least_one_visible_tooth=None
)
ClaimsGuaranteeForInternalCareType
dataclass
¶
ClaimsGuaranteeForInternalCareType(
*,
internal_care_type_short_code,
country,
claims_guarantees_short_codes,
excluded_claims_guarantees
)
Claims guarantees mapped to an internal care type.
CreateInternalCareTypeInput
dataclass
¶
CreateInternalCareTypeInput(
*,
short_code,
name,
is_secondary,
internal_care_type_group_short_codes,
start_date=datetime.date.today(),
end_date=None
)
Input for creating a new internal care type.
ExcludedClaimsGuarantee
dataclass
¶
components.claims_guarantees.public.enums ¶
CLAIMS_GUARANTEES_SUPPORTED_COUNTRIES
module-attribute
¶
GlassesLensComplexity ¶
Bases: AlanBaseEnum
The complexity of glasses lenses.
one_complex_multifocal_one_very_complex
class-attribute
instance-attribute
¶
one_complex_one_very_complex
class-attribute
instance-attribute
¶
one_complex_unifocal_one_complex_multifocal
class-attribute
instance-attribute
¶
one_complex_unifocal_one_very_complex
class-attribute
instance-attribute
¶
one_simple_one_complex
class-attribute
instance-attribute
¶
one_simple_one_complex_multifocal
class-attribute
instance-attribute
¶
one_simple_one_complex_unifocal
class-attribute
instance-attribute
¶
one_simple_one_very_complex
class-attribute
instance-attribute
¶
two_complex_multifocal
class-attribute
instance-attribute
¶
two_complex_unifocal
class-attribute
instance-attribute
¶
MappingFilterType ¶
Bases: AlanBaseEnum
Type of filter applied to a care-type-to-guarantee mapping.
allowed_natures_de_soins
class-attribute
instance-attribute
¶
allowed_treatment_modes
class-attribute
instance-attribute
¶
glasses_lens_complexities
class-attribute
instance-attribute
¶
is_etablissement_conventionne
class-attribute
instance-attribute
¶
is_for_at_least_one_visible_tooth
class-attribute
instance-attribute
¶
is_optam_or_secteur_1
class-attribute
instance-attribute
¶
is_reimbursed_by_secu
class-attribute
instance-attribute
¶
NatureDeSoins ¶
Bases: AlanBaseEnum
The natures de soins group different DMT (Discipline Medico Tarifaire). This is used to map hospital guarantees more accurately # (eg. make the distinction between a CPC in hospi / maternity)
Practitioner ¶
Bases: AlanBaseEnum
One should be careful when adding a new value here. Question to ask ourself : does it create new guarantees mappings, does it create new display mappings, does it affect insurance documents that can be considered as from the same source ?
TreatmentMode ¶
Bases: AlanBaseEnum
List all the possible treatment modes
see https://docs.google.com/spreadsheets/d/1Q0eQyHvB1y0yu3P5CqPiICLOcn_jbmpBqCfOpTbZ4vY/edit#gid=1740869859 ⧉ and in the CDC https://www.ameli.fr/sites/default/files/Documents/CDC-NOEMIE-OC-version-mars-2024.pdf ⧉