HIST. EXAME CLINICO - GERAL
A tabela GTH faz parte do sistema ERP Protheus da TOTVS e é utilizada para hist. exame clinico - geral.
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 GTH 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 GTH, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | GTH |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | GTH990 |
| X2_NOME | HIST. EXAME CLINICO - GERAL |
| X2_NOMESPA | HIST. EXAMEN CLINICO - GRAL |
| X2_NOMEENG | PHYS. EXAMIN. HIST - GENERAL |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | GTH_FILIAL+GTH_REGATE+GTH_CODCFG+GTH_ITEM |
| X2_PYME | N |
| 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_ | 5294 |
| R_E_C_D_E_L_ | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GTH | 01 | GTH_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del Sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | - | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84634 | 0 |
| GTH | 02 | GTH_REGATE | C | 6 | 0 | Reg Atendim. | Reg Atencion | Service Reg. | Codigo do Atendimento | Codigo de Atencion | Service Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84635 | 0 |
| GTH | 03 | GTH_ITEM | C | 3 | 0 | Item | Item | Item | Item | Item | Item | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84636 | 0 |
| GTH | 04 | GTH_HISATE | C | 150 | 0 | Hist.Atend. | Hist.Atenc. | Serv.History | Historico Atendimento | Historial Atencion | Service History | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84637 | 0 |
| GTH | 05 | GTH_CODREG | C | 6 | 0 | Codigo Regia | Cod Region | Region Code | Regiao | Region | Region | @! | HS_SeekRet('GTI','M->GTH_CODREG',1, .F., 'GTH_DESREG', 'GTI_DESCRI') | x x x x x x x x x x x x x x x x | - | GTI | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84638 | 0 |
| GTH | 06 | GTH_DESREG | C | 50 | 0 | Descricao | Descripcion | Description | Descricao | Descripcion | Description | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,HS_INIPADR('GTI',1,GTH->GTH_CODREG,'GTI_DESCRI'),'') | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | HS_INIPADR('GTI',1,GTH->GTH_CODREG,'GTI_DESCRI') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84639 | 0 |
| GTH | 07 | GTH_DATHIS | D | 8 | 0 | Data | Fecha | Date | Data do Historico | Fecha del Historial | History Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84640 | 0 |
| GTH | 08 | GTH_CODCFG | C | 6 | 0 | Codigo Conf. | Codigo Conf. | Conf. Code | Codigo da Configuracao | Codigo de Configuracion | Configuration Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84641 | 0 |
| GTH | 09 | GTH_ORCGER | C | 6 | 0 | Num Orc Fat | No.Pres.Fact | InvenBudget# | Numero Orcamento Faturam | Numero presup.facturacion | Inventory Budget Number | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84642 | 0 |
| GTH | 10 | GTH_CODPRO | C | 15 | 0 | Produto | Producto | Product | Codigo do Produto | Codigo del Producto | Product Code | @! | HS_SeekRet('SB1', 'M->GTH_CODPRO', 1, .F., 'GTH_DESPRO', 'B1_DESC') | x x x x x x x x x x x x x x x x | - | HSPSB1 | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84643 | 0 |
| GTH | 11 | GTH_DESPRO | C | 30 | 0 | Desc Proced. | Desc.Proced. | ProcedrDescr | Descricao do Procedimento | Descripcion procedimiento | Description of Procedure | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,HS_INIPADR('SB1',1,PadR(AllTrim(GTH->GTH_CODPRO), Len(SB1->B1_COD)),'B1_DESC'),'') | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84644 | 0 |
| GTH | 12 | GTH_ITEMOR | C | 2 | 0 | Item | Item | Item | Item do Orcamento | Item del presupuesto | Budget Item | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84645 | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GTH | 1 | GTH_FILIAL+GTH_REGATE+GTH_ITEM | Reg Atendim. + Item | Reg Atencion + Item | Service Reg. + Item | S | - | - | S | 2 | 3 | - | 12496 | 0 |
| GTH | 2 | GTH_FILIAL+GTH_ORCGER+GTH_ITEMOR | Num Orc Fat + Item | No.Pres.Fact + Item | InvenBudget# + Item | S | - | - | S | 2 | 3 | - | 12497 | 0 |
Ela é utilizada para hist. exame clinico - geral dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
GTH_FILIAL,
GTH_REGATE,
GTH_ITEM,
GTH_HISATE,
GTH_CODREG,
GTH_DESREG,
GTH_DATHIS,
GTH_CODCFG,
GTH_ORCGER,
GTH_CODPRO,
GTH_DESPRO,
GTH_ITEMOR
FROM GTH
WHERE
D_E_L_E_T_ = ' '
AND GTH_FILIAL = 'VALOR'
AND GTH_REGATE = 'VALOR'
AND GTH_ITEM = 'VALOR'
AND GTH_HISATE = 'VALOR'
AND GTH_CODREG = 'VALOR'
AND GTH_DESREG = 'VALOR'
AND GTH_DATHIS BETWEEN '20260501' AND '20260531'
AND GTH_CODCFG = 'VALOR'
AND GTH_ORCGER = 'VALOR'
AND GTH_CODPRO = 'VALOR'
AND GTH_DESPRO = 'VALOR'
AND GTH_ITEMOR = 'VALOR'