Dicionário Protheus
Início

Tabela GEJ no Protheus

Rel Cirúrgia x Dados Infecção

O que é a tabela GEJ no Protheus?

A tabela GEJ faz parte do sistema ERP Protheus da TOTVS e é utilizada para rel cirúrgia x dados infecção.

Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.

A tabela GEJ possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.

Nesta página você pode consultar a estrutura completa da tabela GEJ, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE GEJ
X2_PATH \DATA\
X2_ARQUIVO GEJ990
X2_NOME Rel Cirúrgia x Dados Infecção
X2_NOMESPA Vínc. Cirugía vs. Datos Infecc
X2_NOMEENG Rep. Surgery x Infection Data
X2_ROTINA -
X2_MODO C
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO -
X2_PYME S
X2_MODULO 51
X2_DISPLAY -
X2_SYSOBJ -
X2_USROBJ -
X2_POSLGT 1
X2_CLOB 2
X2_AUTREC 2
X2_TAMFIL 2
X2_TAMUN 0
X2_TAMEMP 0
X2_STAMP 2
X2_INSDT 2
D_E_L_E_T_ -
R_E_C_N_O_ 4942
R_E_C_D_E_L_ 0

Campos da Tabela GEJ (20 campos)

X3_ARQUIVO X3_ORDEM X3_CAMPO X3_TIPO X3_TAMANHO X3_DECIMAL X3_TITULO X3_TITSPA X3_TITENG X3_DESCRIC X3_DESCSPA X3_DESCENG X3_PICTURE X3_VALID X3_USADO X3_RELACAO X3_F3 X3_NIVEL X3_RESERV X3_CHECK X3_TRIGGER X3_PROPRI X3_BROWSE X3_VISUAL X3_CONTEXT X3_OBRIGAT X3_VLDUSER X3_CBOX X3_CBOXSPA X3_CBOXENG X3_PICTVAR X3_WHEN X3_INIBRW X3_GRPSXG X3_FOLDER X3_PYME X3_CONDSQL X3_CHKSQL X3_IDXSRV X3_ORTOGRA X3_IDXFLD X3_TELA X3_PICBRV X3_AGRUP X3_POSLGT X3_MODAL X3_CHKSUM X3_ADDSUM D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
GEJ 01 GEJ_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Sucursal System branch - - x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - N - - - - - - - - - - 033 - S - - N N N - - - 1 2 - - - 80165 0
GEJ 02 GEJ_DATCIR D 8 0 Dt Cirurgia Fc. Cirurgia Surgery Dt Data da Cirurgia Fecha de Cirurgia Surgery Date @D HS_VLNOT(16) x x x x x x x x x x x x x x x x - - 1 xxxxxxxx - - - S A R - - - - - - - - - - S - - N N N - - - 1 1 - - - 80166 0
GEJ 03 GEJ_CODPRO C 10 0 Procedimento Procedimient Procedure Codigo do procedimento Codigo de procedimiento Procedure code @! HS_VLNOT(3) x x x x x x x x x x x x x x x x - GA7 1 xxxxxxxx - - - S A R - - - - - - - - - - S - - N N N - - - 1 1 - - - 80167 0
GEJ 04 GEJ_DESPRO C 40 0 Descricao Descripcion Description Descricao do procedimento Descripcion de procedimie Procedure description @! - x x x x x x x x x x x x x x x x IIf(!Inclui,Posicione("GA7",1,xFilial("GA7")+GEJ->GEJ_CODPRO,"GA7_DESC"),"") - 1 xxxxxx x - - - S V V - - - - - - - Posicione("GA7",1,xFilial("GA7")+GEJ->GEJ_CODPRO,"GA7_DESC") - - S - - N N N - - - 1 2 - - - 80168 0
GEJ 05 GEJ_CODTOP C 6 0 Topografia Topografia Configuratio Codigo da Topografia Codigo de Topografia Configuration Code @! HS_VLNOT(4) x x x x x x x x x x x x x x x x - LI 1 xxxxxx x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80169 0
GEJ 06 GEJ_DESTOP C 55 0 Descricao Descripcion Description Descricao da topografia Descripcion de topografia Topography description @! - x x x x x x x x x x x x x x x x IIf(!Inclui,Posicione("SX5",1,xFilial("SX5")+"LI"+GEJ->GEJ_CODTOP,"X5_DESCRI"),"") - 1 xxxxxx x - - - S V V - - - - - - - Posicione("SX5",1,xFilial("SX5")+"LI"+GEJ->GEJ_CODTOP,"X5_DESCRI") - - S - - N N N - - - 1 2 - - - 80170 0
GEJ 07 GEJ_CODPOR C 6 0 Porte Cirurg Porte Cirurg Surg Charge Porte cirurgia Porte cirurgia Surgery Charge @! HS_VLNOT(5) x x x x x x x x x x x x x x x x - PC 1 xxxxxx x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80171 0
GEJ 08 GEJ_DESPOR C 55 0 Descricao Descripcion Description Descr. porte de cirurgia Descr. porte de cirurgia Descr of Surgery Charge @! - x x x x x x x x x x x x x x x x IIf(!Inclui,Posicione("SX5",1,xFilial("SX5")+"PC"+GEJ->GEJ_CODPOR,"X5_DESCRI"),"") - 1 xxxxxx x - - - S V V - - - - - - - Posicione("SX5",1,xFilial("SX5")+"PC"+GEJ->GEJ_CODPOR,"X5_DESCRI") - - S - - N N N - - - 1 2 - - - 80172 0
GEJ 09 GEJ_TPANES C 6 0 Tp Anestesia Tp Anestesia Tp Anesthes Tipo de anestesica Tipo de anestesia Anesthesia Type @! HS_VLNOT(6) x x x x x x x x x x x x x x x x - CA 1 xxxxxx x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80173 0
GEJ 10 GEJ_DESANE C 55 0 Descricao Descripcion Description Descricao do tipo anestes Descripcion tipo anesteci Descr of anesthesia type @! - x x x x x x x x x x x x x x x x IIf(!Inclui,Posicione("SX5",1,xFilial("SX5")+"CA"+GEJ->GEJ_TPANES,"X5_DESCRI"),"") - 1 xxxxxx x - - - S V V - - - - - - - Posicione("SX5",1,xFilial("SX5")+"CA"+GEJ->GEJ_TPANES,"X5_DESCRI") - - S - - N N N - - - 1 2 - - - 80174 0
GEJ 11 GEJ_CLACIR C 6 0 Class.Cirurg Clas.Cirurg Surg Class Classificacao da cirurgia Clasificacion de cirurgia Surgery Classification @! HS_VLNOT(7) x x x x x x x x x x x x x x x x - CQ 1 xxxxxx x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80175 0
GEJ 12 GEJ_DESCLA C 55 0 Descricao Descripcion Description Descricao da classf.cirur Descripcion de clasf.ciru Descr of surgery class @! - x x x x x x x x x x x x x x x x IIf(!Inclui,Posicione("SX5",1,xFilial("SX5")+"CQ"+GEJ->GEJ_CLACIR,"X5_DESCRI"),"") - 1 xxxxxx x - - - S V V - - - - - - - Posicione("SX5",1,xFilial("SX5")+"CQ"+GEJ->GEJ_CLACIR,"X5_DESCRI") - - S - - N N N - - - 1 2 - - - 80176 0
GEJ 13 GEJ_ASA C 1 0 ASA ALA ASA ASA ALA ASA @! - x x x x x x x x x x x x x x x x "1" - 1 xxxxxx x - - - S A R - - 1=ASA 1;2=ASA 2;3=ASA 3;4=ASA 4;5=ASA 5;6=Ignorado 1=ALA 1;2=ALA 2;3=ALA 3;4=ALA 4;5=ALA 5;6=Ignorado 1=ASA 1;2=ASA 2;3=ASA 3;4=ASA 4;5=ASA 5;6=Ignored - - - - - S - - N N N - - - 1 2 - - - 80177 0
GEJ 14 GEJ_HORINI C 5 0 Hora Inicial Hora Inicial Start time Hora inicial Hora inicial Start time 99:99 - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80178 0
GEJ 15 GEJ_HORFIN C 5 0 Hora Termino Hora Termino End Time Hora final Hora final End Time 99:99 - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80179 0
GEJ 16 GEJ_IRC C 6 0 I.R.C. I.R.C. I.R.C. I.R.C. I.R.C. I.R.C. @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80180 0
GEJ 17 GEJ_SEQGEJ C 6 0 Sq.Propria Sc.Propia Proper Seq Sequencia Propria Secuencia Propia Proper Sequence @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80181 0
GEJ 18 GEJ_SEQGEH C 6 0 Sq.Dados Inf Sc.Datos Inf Sq.Data Inf Sequencia dados infeccao Secuencia datos infeccion Sequence Data Infection @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80182 0
GEJ 19 GEJ_REGATE C 6 0 Atendimento Atendimiento Service Registro de atendimento Registro de atendimiento Service Record @! - x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - N A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80183 0
GEJ 20 GEJ_LOGARQ C 40 0 LOG LOG LOG LOG DE ARQUIVO LOG DE ARCHIVO FILE LOG @! - x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - N A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 80184 0

Índices da Tabela GEJ (6 índices)

INDICE ORDEM CHAVE DESCRICAO DESCSPA DESCENG PROPRI F3 NICKNAME SHOWPESQ IX_VIRTUAL IX_VIRCUST D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
GEJ 1 GEJ_FILIAL+GEJ_SEQGEJ Sq.Propria Sc.Propia Proper Seq S - - S 2 3 - 11760 0
GEJ 2 GEJ_FILIAL+GEJ_SEQGEH Sq.Dados Inf Sc.Datos Inf Sq.Data Inf S - - S 2 3 - 11761 0
GEJ 3 GEJ_FILIAL+GEJ_CODPOR Porte Cirurg Porte Cirurg Surg Charge S - - S 2 3 - 11762 0
GEJ 4 GEJ_FILIAL+GEJ_CLACIR Class.Cirurg Clas.Cirurg Surg Class S - - S 2 3 - 11763 0
GEJ 5 GEJ_FILIAL+GEJ_CODTOP Topografia Topografia Configuratio S - - S 2 3 - 11764 0
GEJ 6 GEJ_FILIAL+GEJ_TPANES Tp Anestesia Tp Anestesia Tp Anesthes S - - S 2 3 - 11765 0

Perguntas frequentes

Para que serve a tabela GEJ no Protheus?

Ela é utilizada para rel cirúrgia x dados infecção dentro do sistema ERP Protheus.

Como consultar os campos da tabela GEJ?

Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.

O que são os índices da tabela GEJ?

Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.

Exemplo de consulta SQL da tabela GEJ

Modelo de query gerado automaticamente com base na estrutura da tabela.

SELECT
    GEJ_FILIAL,
    GEJ_DATCIR,
    GEJ_CODPRO,
    GEJ_DESPRO,
    GEJ_CODTOP,
    GEJ_DESTOP,
    GEJ_CODPOR,
    GEJ_DESPOR,
    GEJ_TPANES,
    GEJ_DESANE,
    GEJ_CLACIR,
    GEJ_DESCLA,
    GEJ_ASA,
    GEJ_HORINI,
    GEJ_HORFIN,
    GEJ_IRC,
    GEJ_SEQGEJ,
    GEJ_SEQGEH,
    GEJ_REGATE,
    GEJ_LOGARQ
FROM GEJ
WHERE
    D_E_L_E_T_ = ' '
    AND GEJ_FILIAL = 'VALOR'
    AND GEJ_DATCIR BETWEEN '20260401' AND '20260430'
    AND GEJ_CODPRO = 'VALOR'
    AND GEJ_DESPRO = 'VALOR'
    AND GEJ_CODTOP = 'VALOR'
    AND GEJ_DESTOP = 'VALOR'
    AND GEJ_CODPOR = 'VALOR'
    AND GEJ_DESPOR = 'VALOR'
    AND GEJ_TPANES = 'VALOR'
    AND GEJ_DESANE = 'VALOR'
    AND GEJ_CLACIR = 'VALOR'
    AND GEJ_DESCLA = 'VALOR'
    AND GEJ_ASA = 'VALOR'
    AND GEJ_HORINI = 'VALOR'
    AND GEJ_HORFIN = 'VALOR'
    AND GEJ_IRC = 'VALOR'
    AND GEJ_SEQGEJ = 'VALOR'
    AND GEJ_SEQGEH = 'VALOR'
    AND GEJ_REGATE = 'VALOR'
    AND GEJ_LOGARQ = 'VALOR'