Tabela BOQ

Planejamento Programa Paciente
24camposNome físicoBOQ010(empresa 01)

Campos da tabela BOQ

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

24
CampoDescrição
BOQ_FILIAL
Caractere (C)(2)
Filial
BOQ_ITEM
Caractere (C)(6)
Item Planj.
Máscara:
@!
Contexto:
Real
BOQ_VIDA
Caractere (C)(8)
Matric. Vida
Máscara:
@!
Contexto:
Real
BOQ_ELEGIB
Caractere (C)(6)
Cod Elegibil
Máscara:
@!
Contexto:
Real
BOQ_NOME
Caractere (C)(70)
Nome Partic.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BOQ_CODTAB
Caractere (C)(2)
Tab. Padrao
Máscara:
@!
Contexto:
Real
Consulta F3:
PESPRO
Validação:
PlsVldBOQ()
BOQ_PROCED
Caractere (C)(16)
Cod.Proced.
Máscara:
@R 9999999999999999
Contexto:
Real
Validação:
PlsVldBOQ()
BOQ_DESPRO
Caractere (C)(230)
Descr.Proced
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BOQ_DATSUG
Data (D)(8)
Dt Sugerida
Contexto:
Real
BOQ_CODAGE
Caractere (C)(12)
Cod. Age.
Máscara:
@!
Contexto:
Real
BOQ_DATAGE
Data (D)(8)
Dt Agendamen
Contexto:
Real
BOQ_HORAGE
Caractere (C)(5)
Hr Agendamen
Máscara:
99:99
Contexto:
Real
BOQ_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 0Incluido
  • 1Lib Agenda
  • 2Agendado
  • 3Realizado
  • 4Nao Realizado
  • 5Cancelado
BOQ_PROGRA
Caractere (C)(6)
Cod Programa
Máscara:
@!
Contexto:
Real
BOQ_DESCRI
Caractere (C)(50)
Desc.Program
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BOQ_PREAGE
Caractere (C)(1)
Pre Agenda
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Sim
  • 1Nao
BOQ_CODDIS
Caractere (C)(10)
Cod. Dispon.
Máscara:
@!
Contexto:
Real
Consulta F3:
GM6
BOQ_IDMARK
Caractere (C)(1)
Id. Selecao
Contexto:
Real
BOQ_RISCO
Caractere (C)(2)
Class. Risco
Máscara:
@!
Contexto:
Real
BOQ_MEDRSP
Caractere (C)(7)
Prof. Resp
Máscara:
@!
Contexto:
Real
BOQ_NOMMED
Caractere (C)(30)
Nome Profis.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BOQ_CODLOC
Caractere (C)(3)
Cd.Local
Máscara:
@!
Contexto:
Real
BOQ_LOCAL
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BOQ_CHVEXA
Caractere (C)(40)
Chave Proced
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela BOQ

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
  BOQ.BOQ_FILIAL,
  BOQ.BOQ_ITEM,
  BOQ.BOQ_VIDA,
  BOQ.BOQ_ELEGIB,
  BOQ.BOQ_CODTAB,
  BOQ.BOQ_PROCED,
  BOQ.BOQ_DATSUG,
  BOQ.BOQ_CODAGE
FROM BOQ010 BOQ
WHERE BOQ.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.