ArvoAgentHub

Cobrança indevida de procedimentos ambulatoriais durante internação

Overview

Detects invalid billing of outpatient procedures during hospitalization. The rule finds outpatient therapy sessions whose inferred/expanded dates fall strictly inside an inpatient period for the same beneficiary.

Architecture

Field Value
Name Cobrança indevida de procedimentos ambulatoriais durante internação
Agent ID C038
Version 4
Nature tech
Layer

Inheritance

IntAmbOverlapTherapiesRule → BaseRule → BaseAgent

Core Functionality

  1. artifacts_tolerance
  2. load_artifacts
  3. prepare_data
  4. prepare_datas_amb
  5. rule_assessment

Business Rules

Comportamento indevido

Consultar código-fonte para regras de negócio detalhadas.

Usage

from agents.intamboverlaptherapiesrule import IntAmbOverlapTherapiesRule

rule = IntAmbOverlapTherapiesRule()
violations_df = rule.rule_assessment(claims_df)

Configuration

Sem parâmetros configuráveis identificados.

Input Requirements

Consultar expected_input_columns no código-fonte.

Output Format

Glosa DataFrame Columns

Column Description
agent_id C038
version 4
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.