Tabela BD5

Processamento de Contas
228camposNome físicoBD5010(empresa 01)

Campos da tabela BD5

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

228
CampoDescrição
BD5_FILIAL
Caractere (C)(2)
Filial
BD5_ERRO
Caractere (C)(1)
Erro Integr.
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_CODOPE
Caractere (C)(4)
Operadora
Máscara:
@!
BD5_TIPPAC
Caractere (C)(2)
Tp. Paciente
Máscara:
@C
Consulta F3:
BGYPLS
Validação:
BGY->(ExistCpo("BGY",PLSINTPAD()+M->BD5_TIPPAC,1))
BD5_DESPAC
Caractere (C)(30)
Descricao
Máscara:
@C
Contexto:
Virtual (não existe no banco)
BD5_CODPAD
Caractere (C)(2)
Cd.Tp.Tabela
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
B41PLS
Validação:
ExistCpo("BR4",M->BD5_CODPAD)
BD5_CODPRO
Caractere (C)(16)
Cod.Proced.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Validação:
(BR8->(ExistCpo("BR8",M->BD5_CODPAD+M->BD5_CODPRO,1)).AND. PlsCkCon(BCI->BCI_TIPGUI,M->BD5_CODPAD,M->BD5_CODPRO)).OR. VAZIO()
BD5_DESSTA
Caractere (C)(15)
Situacao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_DESFAS
Caractere (C)(15)
Fase
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_CODLDP
Caractere (C)(4)
Cd.Local Dig
Máscara:
@!
BD5_CODPEG
Caractere (C)(8)
Codigo PEG
Máscara:
@!
BD5_NUMERO
Caractere (C)(8)
Numero
Máscara:
@!
BD5_NUMIMP
Caractere (C)(20)
Nr. Impresso
Máscara:
@!
Contexto:
Real
Validação:
( Vazio() ) .Or. ( plszero() .And. PLSA720IMP() )
BD5_DATPRO
Data (D)(8)
Data Evento
Validação:
dtos(M->BD5_DATPRO) <= dtos(Date()) .and. PLSVLDRDG(M->BD5_CODRDA)
BD5_HORPRO
Caractere (C)(6)
Hora Evento
Máscara:
@R !!:!!:!!
Validação:
PLSVLDHOR(M->BD5_HORPRO)
BD5_OPEUSR
Caractere (C)(4)
Oper. Usr.
Máscara:
@R !.!!!
Consulta F3:
B89PLS
Validação:
PLSVLDINT(M->BD5_OPEUSR)
BD5_USUARI
Caractere (C)(17)
Matricula
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
BD5PLS
Validação:
Vazio() .Or. PLSA090USR(M->BD5_USUARI,M->BD5_DATPRO,M->BD5_HORPRO,"BD5",nil,nil,nil,"2")
BD5_MATANT
Caractere (C)(17)
Matr.Antiga
Máscara:
@!
BD5_NOMUSR
Caractere (C)(70)
Usuario
Máscara:
@!
BD5_CODRDA
Caractere (C)(6)
Cd.Cred/Coop
Máscara:
@!
Consulta F3:
BASPLS
Validação:
PlAtuRda()
BD5_OPERDA
Caractere (C)(4)
Oper. RDA
Máscara:
@R !.!!!
Consulta F3:
B89PLS
Validação:
PSVLDINT(M->BD5_OPERDA)
BD5_LOCATE
Caractere (C)(6)
Local
Máscara:
@R !!!.!!!
Contexto:
Virtual (não existe no banco)
Consulta F3:
BT6PLS
Validação:
PLSVLLCBD5()
BD5_TIPRDA
Caractere (C)(1)
Tp. RDA
Máscara:
@!
2 valores possíveis
  • FPessoa Fisica
  • JPessoa Juridica
BD5_NOMRDA
Caractere (C)(40)
Nm.Cred/Coop
Máscara:
@!
BD5_DESLOC
Caractere (C)(40)
Desc. Local
Máscara:
@!
BD5_ENDLOC
Caractere (C)(100)
End. Local
Máscara:
@!
BD5_CODESP
Caractere (C)(3)
Cd. Espec.
Máscara:
@!
Consulta F3:
BBGPLS
Validação:
PLSVLESBD5()
BD5_DESESP
Caractere (C)(40)
Desc. Espec.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_SUBESP
Caractere (C)(3)
Sub-Espec.
Máscara:
@!
Consulta F3:
BFEPLS
Validação:
ExistCpo("BFN",M->BD5_OPERDA+M->BD5_CODESP+M->BD5_SUBESP,1)
BD5_DESSUB
Caractere (C)(30)
Desc.Sub-Esp
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_CID
Caractere (C)(8)
CID
Máscara:
@!
Consulta F3:
BA9PLS
Validação:
Vazio() .Or. BA9->(ExistCpo("BA9",M->BD5_CID,1))
BD5_DESCID
Caractere (C)(50)
Desc. CID
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_ESTSOL
Caractere (C)(2)
UF Solic.
Máscara:
@!
Consulta F3:
12
Validação:
ExistCpo("SX5","12"+M->BD5_ESTSOL,1)
BD5_CIDSEC
Caractere (C)(8)
CID Secund.
Máscara:
@!
Consulta F3:
BA9PLS
Validação:
BA9->(ExistCpo("BA9",M->BD5_CIDSEC,1)) .And. M->BD5_CID <> M->BD5_CIDSEC
BD5_OPESOL
Caractere (C)(4)
Oper. Sol.
Máscara:
@R !.!!!
Consulta F3:
B89PLS
Validação:
BA0->(ExistCpo("BA0",M->BD5_OPESOL,1))
BD5_SIGLA
Caractere (C)(7)
Sigla C.R.
Máscara:
@!
Consulta F3:
B53PLS
Validação:
If(Empty(M->BD5_SIGLA),.T.,ExistCpo("BAH",M->BD5_SIGLA))
BD5_DSCDSC
Caractere (C)(40)
Desc.Cid Sec
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_REGSOL
Caractere (C)(15)
C.R. Solic.
Máscara:
@R !!!!!!!!!!!!!!!
Consulta F3:
BTYPLS
Validação:
If(M->BD5_OPESOL==PLSINTPAD(),(BB0->(PLVLDPFS("BB0",M->BD5_ESTSOL+M->BD5_REGSOL+M->BD5_SIGLA,4,M->BD5_DATPRO))),.T.)
BD5_NOMSOL
Caractere (C)(30)
Solicitante
Máscara:
@!
BD5_GRAPAR
Caractere (C)(2)
Grau Partic.
Máscara:
@!
Contexto:
Real
Consulta F3:
B5DPLS
Validação:
VAZIO() .OR. BWT->(EXISTCPO("BWT", PLSINTPAD()+M->BD5_GRAPAR,1))
Modo de edição (When):
M->BD5_TIPGUI == '06'
BD5_TIPCON
Caractere (C)(1)
Tp. Consulta
Máscara:
@!
5 valores possíveis
  • 1Primeira
  • 2Seguimento
  • 3Pre-Natal
  • 4Por Encaminhamento
  • 5Retorno
BD5_TIPGUI
Caractere (C)(2)
Tp. Guia
Máscara:
@!
BD5_ATEAMB
Caractere (C)(1)
Atdo.Amb.?
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_CDPFSO
Caractere (C)(6)
Cd.Prf.Solic
Máscara:
@!
Modo de edição (When):
M->BD5_TIPRDA="J"
BD5_CODEMP
Caractere (C)(4)
Grp/Empresa
Máscara:
@!
BD5_MATRIC
Caractere (C)(6)
Matricula
Máscara:
@!
BD5_TIPREG
Caractere (C)(2)
Tp. Reg.
Máscara:
@!
BD5_CPFUSR
Caractere (C)(11)
CPF Usuario
Máscara:
@!
BD5_IDUSR
Caractere (C)(11)
Iden.Usuario
Máscara:
@!
BD5_DATNAS
Data (D)(8)
Dt.Nasc.Usr.
Máscara:
@D
BD5_CPFRDA
Caractere (C)(14)
CPF RDA
Máscara:
@!
BD5_VALOR
Numérico (N)(16,2)
Vlr.Compra
Máscara:
@E 9,999,999,999,999.99
BD5_VLRBPR
Numérico (N)(16,2)
Vlr.Contr.
Máscara:
@E 9,999,999,999,999.99
BD5_VLRMAN
Numérico (N)(16,2)
Vlr.Bs.Pagto
Máscara:
@E 9,999,999,999,999.99
BD5_VLRGLO
Numérico (N)(16,2)
Vlr.Glosas
Máscara:
@E 9,999,999,999,999.99
BD5_VLRPAG
Numérico (N)(16,2)
Vlr.Pagto
Máscara:
@E 9,999,999,999,999.99
BD5_VLRBPF
Numérico (N)(16,2)
Vlr.Base PF
Máscara:
@E 9,999,999,999,999.99
BD5_VLRPF
Numérico (N)(16,2)
Vlr.Co-Par
Máscara:
@E 9,999,999,999,999.99
BD5_SEQPF
Caractere (C)(6)
Sequencia
Máscara:
@!
BD5_FASE
Caractere (C)(1)
Fase
Máscara:
@!
5 valores possíveis
  • 1Digitacao
  • 2Conferencia
  • 3Pronta
  • 4Faturada
  • 5Processando
BD5_SITUAC
Caractere (C)(1)
Situacao
Máscara:
@!
3 valores possíveis
  • 1Ativa
  • 2Cancelada
  • 3Bloqueada
BD5_NUMATE
Caractere (C)(12)
Nr.Atendto
Máscara:
@!
BD5_DIGITO
Caractere (C)(1)
Digito
Máscara:
@!
BD5_CONEMP
Caractere (C)(12)
Cont Empresa
Máscara:
@!
BD5_VERCON
Caractere (C)(3)
Versao Emp.
Máscara:
@!
BD5_SUBCON
Caractere (C)(9)
Subcontrato
Máscara:
@!
BD5_VERSUB
Caractere (C)(3)
Versao Subc.
Máscara:
@!
BD5_LOCAL
Caractere (C)(3)
Localidade
Máscara:
@!
BD5_CODLOC
Caractere (C)(3)
Cd.Local
Máscara:
@!
BD5_MATVID
Caractere (C)(8)
Matr.Vida
Máscara:
@!
BD5_DTDIGI
Data (D)(8)
Dt.Digitacao
Máscara:
@D
BD5_MATUSA
Caractere (C)(1)
Matr.Usada
Máscara:
@!
2 valores possíveis
  • 1Matricula Principal
  • 2Matricula Antiga
BD5_QTDEVE
Numérico (N)(6)
Qtd Eventos
Máscara:
999999
BD5_ATERNA
Caractere (C)(1)
Atdo.Rec.Na?
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_GUIORI
Caractere (C)(32)
Guia Orig.
Máscara:
@R !!!!.!!!!.!!!!!!!!.!!!!!!!!
BD5_PACOTE
Caractere (C)(1)
Pacote?
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_VLRPAC
Numérico (N)(16,2)
Vlr.Pacote
Máscara:
@E 9,999,999,999,999.99
BD5_SENHA
Caractere (C)(20)
Senha
Máscara:
@!
Contexto:
Real
BD5_CID3
Caractere (C)(8)
CID 3
Máscara:
@!
Consulta F3:
BA9PLS
Validação:
BA9->(ExistCpo("BA9",M->BD5_CID3,1))
BD5_DESCI3
Caractere (C)(50)
Desc. CID 3
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_CID4
Caractere (C)(8)
CID 4
Máscara:
@!
Consulta F3:
BA9PLS
Validação:
BA9->(ExistCpo("BA9",M->BD5_CID4,1))
BD5_DESCI4
Caractere (C)(50)
Desc. CID 4
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_CID5
Caractere (C)(8)
CID 5
Máscara:
@!
Consulta F3:
BA9PLS
Validação:
BA9->(ExistCpo("BA9",M->BD5_CID5,1))
BD5_DESCI5
Caractere (C)(50)
Desc. CID 5
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_REGEXE
Caractere (C)(15)
C.R. Execut.
Máscara:
@R !!!!!!!!!!!!!!!
Consulta F3:
BTYPLS
Validação:
Vazio() .Or. BB0->(PLVLDPFS("BB0",M->BD5_ESTEXE+M->BD5_REGEXE+M->BD5_SIGEXE,4,M->BD5_DATPRO))
BD5_OPEEXE
Caractere (C)(4)
Oper. Exe.
Máscara:
@R !.!!!
BD5_NOMEXE
Caractere (C)(30)
Executante
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_CDPFRE
Caractere (C)(6)
Cd.Prf.Resp.
Máscara:
@!
BD5_ESTEXE
Caractere (C)(2)
UF Execut.
Máscara:
@!
Consulta F3:
12
Validação:
SX5->(ExistCpo("SX5","12"+M->BD5_ESTEXE,1))
BD5_SIGEXE
Caractere (C)(7)
Sigla Exec.
Máscara:
@!
Contexto:
Real
Consulta F3:
B53PLS
Validação:
If(Empty(M->BD5_SIGEXE),.T.,ExistCpo("BAH",M->BD5_SIGEXE))
BD5_ORIMOV
Caractere (C)(1)
Origem Movto
Máscara:
@!
5 valores possíveis
  • 1Guias de Consultas/Servicos
  • 2Guia de Internacao
  • 3Outros
  • 5Dig. Off-Line
  • 6Novo Autorizador
BD5_VLRTAD
Numérico (N)(16,2)
Vlr.Taxa.Adm
Máscara:
@E 9,999,999,999,999.99
BD5_VLRTPF
Numérico (N)(16,2)
Vlr.Total PF
Máscara:
@E 9,999,999,999,999.99
BD5_MESPAG
Caractere (C)(2)
Mes Pagto
Máscara:
@!
BD5_ANOPAG
Caractere (C)(4)
Ano Pagto
Máscara:
@!
BD5_OPELOT
Caractere (C)(4)
Oper. Lt.
Máscara:
@R !.!!!
BD5_NUMLOT
Caractere (C)(10)
Lote Pagto
Máscara:
@!
BD5_GUIACO
Caractere (C)(1)
Guia Comp.
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_QUACOB
Caractere (C)(1)
Quando Cobr.
Máscara:
@!
2 valores possíveis
  • 1No Ato
  • 2Na Fatura
BD5_CODCLI
Caractere (C)(6)
Cd.Cliente
Máscara:
@!
BD5_LOJA
Caractere (C)(2)
Loja
Máscara:
@!
BD5_LIBERA
Caractere (C)(1)
Liberacao?
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_PAGATO
Caractere (C)(1)
Pagto Ato?
Máscara:
@!
BD5_CC
Caractere (C)(9)
Centro Custo
Máscara:
@!
BD5_TIPPRE
Caractere (C)(3)
Tp. RDA
Máscara:
@!
Consulta F3:
B42PLS
BD5_RGIMP
Caractere (C)(1)
Reg. Imp.?
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_NRAEMP
Caractere (C)(20)
Nr.Aut.Empr.
Máscara:
@!
BD5_NRAOPE
Caractere (C)(20)
Nr.Aut.Oper.
Máscara:
@!
BD5_CODPLA
Caractere (C)(4)
Cd.Produto
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_DESPLA
Caractere (C)(40)
Desc.Produto
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_LOCREQ
Caractere (C)(1)
Loc.Requisic
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 1Consultorio
  • 2Pronto Atendimento
  • 3Hospital
  • 4Medicina do Trabalho
  • 5Medico/Desntista Na Empresa
  • 6Transcricao
BD5_TPGRV
Caractere (C)(1)
Tp. Gravacao
Máscara:
@!
4 valores possíveis
  • 1Remote Protheus
  • 2Internet(RPC)
  • 3POS
  • 4Importacao Manual
BD5_PODRFS
Caractere (C)(1)
Pode Rt.Fase
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_MOTBLO
Caractere (C)(3)
Mot.Bloq.
Máscara:
@!
BD5_DESBLO
Caractere (C)(30)
Desc.Bloquei
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BD5_SEQIMP
Caractere (C)(8)
Seq.Import.
Máscara:
@!
Consulta F3:
BRJPLS
Validação:
BRJ->(ExistCpo("BRJ"))
BD5_OPEFAT
Caractere (C)(4)
Oper. Fat.
Máscara:
@!
BD5_NUMFAT
Caractere (C)(12)
Nr. Fatura
Máscara:
@!
BD5_STAFAT
Caractere (C)(1)
Status Fat.
Máscara:
@!
2 valores possíveis
  • 1Aberto
  • 0Faturado
BD5_INTFAT
Caractere (C)(1)
Interc. Fat.
Máscara:
@!
2 valores possíveis
  • 0Nao
  • 1Sim
BD5_SOLORI
Caractere (C)(19)
Cd.Sol.Orig
Máscara:
@!
BD5_NUMFIN
Caractere (C)(11)
Nm.Fat.Int.
Máscara:
@!
BD5_BLOPAG
Caractere (C)(1)
Bloq.Pagto?
Máscara:
@!
Validação:
PLSA720B2()
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_MOTBPG
Caractere (C)(4)
Mot.Bloq. Pg
Máscara:
@!
Contexto:
Real
Consulta F3:
BCTPLS
Validação:
PlvldMoG()
Modo de edição (When):
M->BD5_BLOPAG == "1"
BD5_DESBPG
Caractere (C)(120)
Desc.Bloq.PG
Máscara:
@C
Validação:
PLSA720B2()
Modo de edição (When):
M->BD5_BLOPAG == "1"
BD5_NUMSE1
Caractere (C)(13)
Nr.Fat.Cob.
Máscara:
@!
Contexto:
Real
BD5_REGATE
Caractere (C)(1)
Reg. Atend.
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Internacao
  • 2Ambulatorial
BD5_LA
Caractere (C)(1)
nao usado
Máscara:
@!
Contexto:
Real
BD5_GUIINT
Caractere (C)(24)
Guia Interna
Máscara:
@R !!!!.!!!!.!!!!!!!!.!!!!!!!!
Contexto:
Real
Consulta F3:
BGCPLS
Validação:
Vazio() .OR. PLS498vls(M->BD5_GUIINT)
BD5_REGFOR
Caractere (C)(1)
Reg.Ate.For.
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Internacao
  • 2Ambulatorial
BD5_RDAEDI
Caractere (C)(8)
RDA EDI
Máscara:
@!
Contexto:
Real
Consulta F3:
BAUPLS
BD5_NOMEDI
Caractere (C)(40)
Nome EDI
Máscara:
@!
Contexto:
Real
BD5_GUESTO
Caractere (C)(27)
Guia Estor.
Máscara:
@!
Contexto:
Real
BD5_ESTORI
Caractere (C)(1)
Ori.Estor.
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_SEQEST
Caractere (C)(8)
Seq. Estor.
Máscara:
@!
Contexto:
Real
BD5_DPTETA
Data (D)(8)
Data Termino
Máscara:
@!
Contexto:
Real
BD5_SCDPER
Caractere (C)(1)
Sinais Perio
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
BD5_ALTMOL
Caractere (C)(1)
Alter Tecido
Máscara:
@!
Contexto:
Real
1 valores possíveis
  • 0Nao,1=Sim
BD5_PREFIX
Caractere (C)(3)
Prefixo
Máscara:
@!
Contexto:
Real
BD5_NUMTIT
Caractere (C)(9)
Numero
Máscara:
@!
Contexto:
Real
BD5_PARCEL
Caractere (C)(2)
Parcela
Máscara:
@!
Contexto:
Real
BD5_TIPTIT
Caractere (C)(3)
Tipo Titulo
Máscara:
@!
Contexto:
Real
BD5_TIPATO
Caractere (C)(1)
Tipo Atend
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 1Tratamento Odontologico
  • 2Exame Radiologico
  • 3Ortodontia
  • 4Urgencia/ Emergencia
  • 5Auditoria
BD5_TIPFAT
Caractere (C)(1)
Tp Faturamen
Máscara:
@!
Contexto:
Real
Consulta F3:
B1HPLS
Validação:
Pertence("1234TP")
6 valores possíveis
  • 1Parcial
  • 2Final
  • 3Complementar
  • 4Total
  • TTotal
  • PParcial
BD5_RDACON
Caractere (C)(6)
Cd.Sol.Cont.
Máscara:
@!
Contexto:
Real
Consulta F3:
B1HPLS
Validação:
PlValRDA('BD5')
BD5_DRDACO
Caractere (C)(40)
Ds.Sol.Cont.
Máscara:
@!
Contexto:
Real
BD5_GUIPRI
Caractere (C)(18)
Nr Guia Prin
Máscara:
@!
Contexto:
Real
BD5_TIPDOE
Caractere (C)(1)
Tipo Doenca
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • AAguda
  • CCronica
BD5_TPODOE
Numérico (N)(2)
Tempo Doenca
Máscara:
99
Contexto:
Real
BD5_UTPDOE
Caractere (C)(1)
Unid Tpo Doe
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • AAnos
  • MMeses
  • DDias
BD5_INDACI
Caractere (C)(1)
Indic Aciden
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 0Trabalho
  • 1Transito
  • 2Outros
  • 9Nao Acidente
BD5_TIPSAI
Caractere (C)(1)
Tipo Saida
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 1Retorno
  • 2Retorno com SADT
  • 3Referencia
  • 4Internacao
  • 5Alta
  • 6Obito
BD5_VALSEN
Data (D)(8)
Valid Senha
Máscara:
@D
Contexto:
Real
BD5_DATSOL
Data (D)(8)
Data Solicit
Máscara:
@D
Contexto:
Real
BD5_HORSOL
Caractere (C)(4)
Hora Solicit
Máscara:
@R !!:!!
Contexto:
Real
Validação:
PLSVLDHOR(M->BD5_HORSOL)
BD5_INDCLI
Caractere (C)(250)
Indic Clinic
Máscara:
@S70
Contexto:
Real
BD5_INDCL2
Caractere (C)(250)
Cont. IndCli
Máscara:
@S70
Contexto:
Real
BD5_LOTGUI
Caractere (C)(12)
Lot Guia
Máscara:
@!
Contexto:
Real
BD5_TIPATE
Caractere (C)(2)
Tipo Atendim
Máscara:
@!
Contexto:
Real
Validação:
M->BD5_TIPATE $ "01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21"
1 valores possíveis
  • #PLTpAteBox()
BD5_STALIB
Caractere (C)(1)
Status Lib.
Máscara:
@C
Contexto:
Real
2 valores possíveis
  • 1Em Aberto
  • 2Fechada
BD5_NRLBOR
Caractere (C)(18)
N.Solicita.
Máscara:
@!
Contexto:
Real
Consulta F3:
BD5BEA
Validação:
iIf( empty(M->BD5_NRLBOR),.t.,PLSVLIB(M->BD5_NRLBOR,M->BD5_DATPRO))
Modo de edição (When):
INCLUI .AND. BCI->BCI_TIPGUI$'01|02'
BD5_DTRECE
Data (D)(8)
Dt.Recepcao
Máscara:
@D
Contexto:
Real
BD5_DTDIG1
Data (D)(8)
nao usado
Contexto:
Virtual (não existe no banco)
BD5_DTANAL
Data (D)(8)
Dt.Analise
Máscara:
@D
Contexto:
Real
BD5_DTPAGT
Data (D)(8)
Dt.Pagto
Máscara:
@D
Contexto:
Real
BD5_GESTAN
Caractere (C)(1)
Gestante?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
BD5_SEQNFS
Caractere (C)(10)
Numero NFSS
Máscara:
@!
Consulta F3:
BBZPLS
BD5_PARCOP
Caractere (C)(1)
Parc.Co-Part
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
BD5_NPARCE
Numérico (N)(2)
Num. Parcela
Máscara:
99
Contexto:
Real
Validação:
PLSVLDPARC(M->BD5_NPARCE)
BD5_LANCF
Caractere (C)(3)
Lancam. Fat.
Máscara:
@!
Contexto:
Real
BD5_OKMARK
Caractere (C)(4)
Mark
Máscara:
@!
Contexto:
Real
BD5_LOTPAR
Caractere (C)(8)
Lote Parc.
Máscara:
@!
Contexto:
Real
BD5_TIPMAJ
Caractere (C)(1)
Tipo Maj.
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Fisica
  • 2Juridica
  • 3Cooperativa
BD5_REGINT
Caractere (C)(1)
Regime Inter
Máscara:
@!
Contexto:
Real
Validação:
Pertence('123')
3 valores possíveis
  • 1Hospitalar
  • 2Hospital-Dia
  • 3Domiciliar
BD5_GRPINT
Caractere (C)(1)
Grp.Intern.
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 1Clinica
  • 2Cirurgica
  • 3Obstetrica
  • 4Pediatrica
  • 5Psiquiatrica
BD5_TIPINT
Caractere (C)(2)
Tipo Intern.
Máscara:
@!
Contexto:
Real
Consulta F3:
BBSPLS
Validação:
(!EMPTY(M->BD5_GRPINT) .And. ExistCpo('BQR', M->BD5_GRPINT+M->BD5_TIPINT) .OR. EMPTY(M->BD5_GRPINT))
BD5_DESTIP
Caractere (C)(50)
Dsc.Tp.Inter
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Validação:
If(Inclui,'',Posicione('BQR',1,xFilial('BQR')+BD5->(BD5_GRPINT+BD5_TIPINT),'BQR_DESTIP'))
BD5_PADINT
Caractere (C)(2)
Tipo Acomod.
Máscara:
@!
Contexto:
Real
Consulta F3:
BI4PLS
Validação:
BI4->(ExistCpo('BI4',M->BD5_PADINT,1)) .OR. Empty(M->BD5_PADINT)
BD5_DESPAD
Caractere (C)(40)
Ds Acomod.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Validação:
If(Inclui,'',BI4->(Posicione('BI4',1,xFilial('BI4')+BD5->BD5_PADINT,'BI4_DESCRI')))
BD5_PADCON
Caractere (C)(6)
Pd. conforto
Máscara:
@!
Contexto:
Real
Consulta F3:
BBUPLS
Validação:
Vazio() .Or. ExistCpo('BN5',M->BD5_OPEUSR+M->BD5_PADCON,1)
BD5_CBOS
Caractere (C)(8)
CBOS
Máscara:
@!
Contexto:
Real
Consulta F3:
BD5CBO
Validação:
ExistChav("BAQ",xFilial("BAQ")+M->BD5_CBOS,6)
BD5_TIPADM
Caractere (C)(6)
Tp. Admissao
Máscara:
@!
Contexto:
Real
Consulta F3:
BTAPLS
Validação:
BDR->(ExistCpo("BDR",PLSINTPAD()+M->BD5_TIPADM,1))
BD5_DESADM
Caractere (C)(30)
Descricao
Máscara:
@C
Contexto:
Virtual (não existe no banco)
BD5_GUIJUR
Caractere (C)(1)
Guia Jurid ?
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
BD5_NUMPRO
Caractere (C)(20)
Num Processo
Contexto:
Real
BD5_ANOAUT
Caractere (C)(4)
Ano Autoriz.
Máscara:
@!
Contexto:
Real
BD5_MESAUT
Caractere (C)(2)
Mes Autoriz.
Máscara:
@!
Contexto:
Real
BD5_NUMAUT
Caractere (C)(8)
Num Autoriz.
Máscara:
@!
Contexto:
Real
BD5_LOTEDI
Caractere (C)(8)
Lote EDI
Máscara:
@!
Contexto:
Real
BD5_CNES
Caractere (C)(7)
CNES
Máscara:
@!
BD5_OPEMOV
Caractere (C)(4)
Oper. Movto.
Máscara:
@!
Contexto:
Real
BD5_CODGLO
Caractere (C)(3)
Cod Glosa
Máscara:
@!
Contexto:
Real
BD5_ESPEXE
Caractere (C)(3)
Espec.Exe.
Máscara:
@!
Contexto:
Real
Consulta F3:
BQ1PL1
Validação:
Vazio() .or. ExistCpo("BQ1",M->BD5_CDPFRE+M->BD5_ESPEXE)
BD5_SITRG
Caractere (C)(1)
Sit. Rec. Gl
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 0Sem rec de glosa
  • 1Rec Glosa Protocolado
  • 2Rec Glosa Em Analise
  • 3Rec Glosa Autorizado
  • 4Rec Glosa Negado
  • 5Aut. Parc
BD5_ESPSOL
Caractere (C)(3)
Espec.Sol.
Máscara:
@!
Contexto:
Real
Consulta F3:
BQ1PL1
Validação:
Vazio() .or. ExistCpo("BQ1",M->BD5_CDPFSO+M->BD5_ESPSOL)
BD5_NUMNDC
Caractere (C)(9)
Titulo
Máscara:
@!
Contexto:
Real
BD5_PARNDC
Caractere (C)(2)
Parcela
Máscara:
@!
Contexto:
Real
BD5_PRENDC
Caractere (C)(3)
Prefixo
Máscara:
@!
Contexto:
Real
BD5_TIPNDC
Caractere (C)(3)
Tipo titulo
Máscara:
@!
Contexto:
Real
BD5_MATXML
Caractere (C)(17)
Matric. XML
Máscara:
@!
BD5_DTRLZ
Data (D)(8)
Data Rlz.
Contexto:
Real
BD5_DTRLZ2
Data (D)(8)
Data Rlz. 2
Contexto:
Real
BD5_DTRLZ3
Data (D)(8)
Data Rlz. 3
Contexto:
Real
BD5_DTRLZ4
Data (D)(8)
Data Rlz. 4
Contexto:
Real
BD5_DTRLZ5
Data (D)(8)
Data Rlz. 5
Contexto:
Real
BD5_DTRLZ6
Data (D)(8)
Data Rlz. 6
BD5_DTRLZ7
Data (D)(8)
Data Rlz. 7
Contexto:
Real
BD5_DTRLZ8
Data (D)(8)
Data Rlz. 8
Contexto:
Real
BD5_LOTMOP
Caractere (C)(18)
Lote Monit.
Máscara:
@!
Contexto:
Real
BD5_DTRLZ9
Data (D)(8)
Data Rlz. 9
BD5_DTRLZ1
Data (D)(8)
Data Rlz. 10
Contexto:
Real
BD5_OBSGUI
Caractere (C)(254)
Observacao
Máscara:
@!
Contexto:
Real
BD5_REEANE
Caractere (C)(1)
Reemb Interc
Máscara:
@!
Contexto:
Real
Validação:
Pertence('01') .Or. Vazio()
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_ENV507
Caractere (C)(1)
Envio R507?
Máscara:
@!
Contexto:
Real
Validação:
Pertence('01') .Or. Vazio()
2 valores possíveis
  • 1Sim
  • 0Nao
BD5_PRE507
Caractere (C)(3)
Prefixo R507
Máscara:
@!
Contexto:
Real
BD5_NUM507
Caractere (C)(9)
Num Tit R507
Máscara:
@!
Contexto:
Real
BD5_PAR507
Caractere (C)(2)
Parc R507
Máscara:
@!
Contexto:
Real
BD5_TIP507
Caractere (C)(3)
Tip R507
Máscara:
@!
Contexto:
Real
BD5_LOTMOF
Caractere (C)(18)
Lote Monit.
Máscara:
@!
Contexto:
Real
BD5_LOTMOE
Caractere (C)(18)
Lote Exc Mon
Máscara:
@!
Contexto:
Real
BD5_DTFTIN
Data (D)(8)
Ini. Fat
Contexto:
Real
BD5_DTFTFN
Data (D)(8)
Final Fat
Contexto:
Real
BD5_VALORI
Numérico (N)(16,2)
Vlr Apr Tot
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BD5_VLRAPR
Numérico (N)(16,2)
Vlr Apr Uni
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BD5_PESEDI
Caractere (C)(1)
Tp Pessoa Ed
Contexto:
Real
BD5_CGCEDI
Caractere (C)(14)
CGC EDI
Contexto:
Real
BD5_CNESED
Caractere (C)(7)
CNES Edi
Contexto:
Real
BD5_MUNEDI
Caractere (C)(7)
Municipio Ed
Contexto:
Real

SELECT de exemplo da tabela BD5

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
  BD5.BD5_FILIAL,
  BD5.BD5_ERRO,
  BD5.BD5_CODOPE,
  BD5.BD5_TIPPAC,
  BD5.BD5_CODLDP,
  BD5.BD5_CODPEG,
  BD5.BD5_NUMERO,
  BD5.BD5_NUMIMP
FROM BD5010 BD5
WHERE BD5.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.