Pertinência de materiais
Overview
Agent to evaluate Infusion Pump Equipment pertinence based on patient classification and medicines present in the claim. It is associated to the agent ID C055.
Architecture
| Field | Value |
|---|---|
| Name | Pertinência de materiais |
| Agent ID | C055 |
| Version | 1 |
| Nature | tech |
| Layer | — |
Inheritance
InfusionPumpEquipmentRule → BaseRule → BaseAgent
Core Functionality
- load_artifacts
- prepare_data
- rule_assessment
Business Rules
Pertinência da cobrança
Consultar código-fonte para regras de negócio detalhadas.
Usage
from agents.infusionpumpequipmentrule import InfusionPumpEquipmentRule
rule = InfusionPumpEquipmentRule()
violations_df = rule.rule_assessment(claims_df)
Configuration
Sem parâmetros configuráveis identificados.
Input Requirements
| Column | Type | Description |
|---|---|---|
EVENT_COLUMNS.id_fatura |
- | - |
EVENT_COLUMNS.id |
- | - |
EVENT_COLUMNS.id_evento |
- | - |
ARVO_COLUMNS.id_evento_predicted |
- | - |
ARVO_COLUMNS.code_type |
- | - |
ARVO_COLUMNS.code_type_predicted |
- | - |
EVENT_COLUMNS.evento |
- | - |
BENEFICIARY_COLUMNS.id_matricula |
- | - |
BENEFICIARY_COLUMNS.idade |
- | - |
EVENT_COLUMNS.qt_paga |
- | - |
EVENT_COLUMNS.vl_pago |
- | - |
Output Format
Glosa DataFrame Columns
| Column | Description |
|---|---|
agent_id |
C055 |
version |
1 |
id_arvo |
Original record ID |
vl_glosa_arvo |
Glosa value |
qt_glosa_arvo |
Glosa quantity |
score_arvo |
Confidence score |
motivo_glosa_arvo |
Detailed reason in Portuguese |
motivo_glosa_ANS |
ANS standard code |
data_dict |
JSON metadata with calculation details |
Error Handling
- DataFrames vazios retornam estrutura vazia com colunas obrigatórias.
- Colunas ausentes geram warning mas não causam crash.
- Conversões numéricas usam
errors="coerce"para evitar falhas.