Tabela B4N

GUIAS MONITORAMENTO
61camposNome físicoB4N010(empresa 01)

Campos da tabela B4N

61 campos no dicionário de dados do TOTVS Protheus.

61
CampoDescrição
B4N_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
B4N_TPRGMN
Caractere (C)(1)
TP. RG. Mon.
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Inclusao
  • 2Alteracao
  • 3Exclusao
B4N_CNES
Caractere (C)(7)
CNES
Máscara:
@!
Contexto:
Real
B4N_RGOPIN
Caractere (C)(6)
Num Reg ANS
Máscara:
999999
Contexto:
Real
B4N_NUMCNS
Caractere (C)(15)
Nr Cart Nac.
Máscara:
@!
Contexto:
Real
B4N_SEXO
Caractere (C)(1)
Sexo
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Masculino
  • 3Feminino
B4N_DATNAS
Data (D)(8)
Nasc./Fund
Contexto:
Real
B4N_CDMNRS
Caractere (C)(7)
Cd Municipio
Máscara:
@!
Contexto:
Real
B4N_TPEVAT
Caractere (C)(2)
Tp Evento A.
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 1Consulta
  • 2SP/SADT
  • 3Internacao
  • 4Odontologico
  • 5Honorarios
B4N_NMGPRI
Caractere (C)(18)
N Guia Princ
Máscara:
@!
Contexto:
Real
B4N_DTPAGT
Data (D)(8)
Dt Pagamento
Contexto:
Real
B4N_INAVIV
Caractere (C)(1)
Recem-Nasc.
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • SSim
  • NNao
B4N_INDACI
Caractere (C)(1)
Indic Aciden
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 0Relacionado ao trabalho
  • 1Acidente de Transito
  • 2Outros Acidente
  • 9Nao Acidente
B4N_TIPADM
Caractere (C)(6)
Tp. Admissao
Máscara:
@!
Contexto:
Real
B4N_TIPINT
Caractere (C)(1)
Tip. Intern.
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 1Internacao Clinica
  • 2Internacao Cirurgica
  • 3Internacao Obstetrica
  • 4Internacao Pediatrica
  • 5Internacao Psiquiatrica
B4N_REGINT
Caractere (C)(1)
Regime Inter
Máscara:
@!
Contexto:
Real
B4N_CDCID2
Caractere (C)(8)
CID Secundar
Máscara:
@!
Contexto:
Real
B4N_TIPATE
Caractere (C)(2)
Tipo Atendim
Máscara:
@!
Contexto:
Real
B4N_TIPFAT
Caractere (C)(1)
Tp Faturamen
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • TTotal
  • PParcial
  • 1Parcial
  • 2Final
  • 3Complementar
  • 4Total
B4N_MOTSAI
Caractere (C)(2)
Tipo Saida
Máscara:
@C
Contexto:
Real
B4N_NRDCNV
Caractere (C)(79)
N.Dec Nas Vi
Máscara:
@!
Contexto:
Real
B4N_NRDCOB
Caractere (C)(11)
N.Dec Obito
Máscara:
@!
Contexto:
Real
B4N_VLTGUI
Numérico (N)(15,2)
Vl Pago Guia
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTINF
Numérico (N)(15,2)
Vlr Tot Info
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTPRO
Numérico (N)(15,2)
Vlr Process.
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTPGP
Numérico (N)(15,2)
Vl Tot Proc.
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTDIA
Numérico (N)(15,2)
Tot. Diarias
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTTAX
Numérico (N)(15,2)
Total Taxas
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTMAT
Numérico (N)(15,2)
Total Mater.
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTOPM
Numérico (N)(15,2)
Total OPME
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTMED
Numérico (N)(15,2)
Tot Medicam.
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTGLO
Numérico (N)(15,2)
Vl Glosa G.
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTFOR
Numérico (N)(15,2)
Vl Pg Fornec
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTTBP
Numérico (N)(15,2)
Tot Tab Prop
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_VLTCOP
Numérico (N)(15,2)
Vl Tot Copar
Máscara:
@E 999,999,999,999.99
Contexto:
Real
B4N_SCPRPS
Caractere (C)(20)
Nr Reg Plano
Máscara:
@!
Contexto:
Real
B4N_CODCID
Caractere (C)(8)
Diagnos. CID
Máscara:
@!
Contexto:
Real
B4N_NMGPRE
Caractere (C)(20)
N Guia Prest
Máscara:
@!
Contexto:
Real
B4N_NMGOPE
Caractere (C)(20)
N Guia Oper.
Máscara:
@!
Contexto:
Real
B4N_IDEREE
Caractere (C)(20)
Id Reembolso
Máscara:
@!
Contexto:
Real
B4N_CODOPE
Caractere (C)(4)
Operadora
Máscara:
@!
Contexto:
Real
B4N_CODLDP
Caractere (C)(4)
Cd.Local Dig
Máscara:
@!
Contexto:
Real
B4N_CODPEG
Caractere (C)(8)
Codigo PEG
Máscara:
@!
Contexto:
Real
B4N_NUMERO
Caractere (C)(8)
Numero
Máscara:
@!
Contexto:
Real
B4N_OREVAT
Caractere (C)(3)
Orig. Evento
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 1Rede Contratada, referenciada ou credenciada
  • 2Rede Propria = Cooperados
  • 3Rede Propria = Demais prestadores
  • 4Reembolso benef
B4N_SUSEP
Caractere (C)(6)
Registro ANS
Máscara:
@!
Contexto:
Real
B4N_CMPLOT
Caractere (C)(6)
Compet. Lote
Máscara:
@R 9999/99
Contexto:
Real
B4N_NUMLOT
Caractere (C)(12)
Numero Lote
Máscara:
@!
Contexto:
Real
B4N_CODRDA
Caractere (C)(6)
Codigo RDA
Máscara:
@!
Contexto:
Real
B4N_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sem Critica
  • 2Criticado
B4N_DTPRGU
Data (D)(8)
Dt Proc Guia
Contexto:
Real
B4N_VTISPR
Caractere (C)(7)
Ver. TISS P.
Máscara:
@!
Contexto:
Real
B4N_FORENV
Caractere (C)(1)
Forma Envio
Máscara:
@!
Contexto:
Real
B4N_CDMNEX
Caractere (C)(7)
Cod Mun Exec
Máscara:
@!
Contexto:
Real
B4N_SOLINT
Caractere (C)(20)
Solicit Int.
Máscara:
@!
Contexto:
Real
B4N_DIAACP
Caractere (C)(3)
Diarias Acom
Máscara:
@!
Contexto:
Real
B4N_DPPRGU
Data (D)(8)
Dt Proc Guia
Contexto:
Real
B4N_ORIERR
Caractere (C)(1)
Origem Erro
Máscara:
@!
Contexto:
Real
B4N_LOTREP
Caractere (C)(18)
Lote Reproc
Máscara:
@!
Contexto:
Real
B4N_DIAUTI
Caractere (C)(3)
Diarias UTI
B4N_FORATE
Caractere (C)(1)
Forma Atend.
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Eventual
  • 2Habitual

SELECT de exemplo da tabela B4N

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  B4N.B4N_FILIAL,
  B4N.B4N_TPRGMN,
  B4N.B4N_CNES,
  B4N.B4N_RGOPIN,
  B4N.B4N_NUMCNS,
  B4N.B4N_SEXO,
  B4N.B4N_DATNAS,
  B4N.B4N_CDMNRS
FROM B4N010 B4N
WHERE B4N.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.