Solicitação de Prontuários
A tabela GSA faz parte do sistema ERP Protheus da TOTVS e é utilizada para solicitação de prontuários.
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 GSA 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 GSA, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | GSA |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | GSA990 |
| X2_NOME | Solicitação de Prontuários |
| X2_NOMESPA | Solicitud de Fichas |
| X2_NOMEENG | Request for Records |
| 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_ | 5269 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GSA | 01 | GSA_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 | xxxxxx x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84341 | 0 |
| GSA | 02 | GSA_CODSOL | C | 6 | 0 | Solicitacao | Solicitud | Request | Codigo da Solicitacao | CODIGO DE SOLICITUD | Request Code | @! | - | x x x x x x x x x x x x x x x x | IIF(INCLUI, GETSXENUM("GSA","GSA_CODSOL",,4), GSA->GSA_CODSOL) | - | 1 | xxxxxxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84342 | 0 |
| GSA | 03 | GSA_DATSOL | D | 8 | 0 | Data | Fecha | Date | Data da Solicitacao | Fecha de Solicitud | Request date | @D | HS_GETM01(10) | x x x x x x x x x x x x x x x x | DDATABASE | - | 1 | xxxxxxxx | - | - | - | S | V | R | - | - | - | - | - | - | !lBolFec | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84343 | 0 |
| GSA | 04 | GSA_HORSOL | C | 5 | 0 | Hora | Hora | Time | Horario da solicitacao | Horario de la solicitud | Request time | 99:99 | HS_GETM01(11) | x x x x x x x x x x x x x x x x | TIME() | - | 1 | xxxxxxxx | - | - | - | S | V | R | - | - | - | - | - | - | !lBolFec | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84344 | 0 |
| GSA | 05 | GSA_REGGER | C | 6 | 0 | Prontuario | Ficha | Med. record | Registro geral paciente | Registro general paciente | Patient general record | @! | HS_VLDRGER("M->GSA_REGGER","GSA_NOMPAC","GBH_NOME") .And. HS_VldP39() | x x x x x x x x x x x x x x x x | - | GH1 | 1 | xxxxxxxx | - | - | - | S | A | R | - | - | - | - | - | - | INCLUI | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84345 | 0 |
| GSA | 06 | GSA_NOMPAC | C | 45 | 0 | Nome | Nombre | Name | Nome paciente | Nombre paciente | Patient name | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | S | V | R | - | - | - | - | - | - | INCLUI | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84346 | 0 |
| GSA | 07 | GSA_DTNASC | D | 8 | 0 | Data Nasc. | Fch Nacimien | DOB | Data de Nascimento | Fecha de Nacimiento | Birth Date | @D | HS_VALP39(2) | x x x x x x x x x x x x x x x x | IIf(!Inclui,Posicione("GBH",1,xFilial("GBH")+GSA->GSA_REGGER,"GBH_DTNASC"),CTOD("")) | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GBH",1,xFilial("GBH")+GSA->GSA_REGGER,"GBH_DTNASC") | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84347 | 0 |
| GSA | 08 | GSA_CODLOC | C | 2 | 0 | Setor Codigo | Sector Codig | Sector Cd | Setor solicitante | Sector solicitante | Requesting Sector | @! | HS_SeekRet("GCS","M->GSA_CODLOC",1,.F.,"M->GSA_NOMLOC","GCS_NOMLOC") .OR. VAZIO() | x x x x x x x x x x x x x x x x | - | GCS | 1 | xxxxxxxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84348 | 0 |
| GSA | 09 | GSA_NOMLOC | C | 40 | 0 | Setor Descr. | Sector Descr | Sect. Descr. | Descricao do Setor | Descripcion de Sector | Description of Sector | - | - | x x x x x x x x x x x x x x x x | IF(!INCLUI, POSICIONE("GCS", 1, XFilial("GCS") + GSA->GSA_CODLOC, "GCS_NOMLOC"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GCS",1, xFilial("GCS") +GSA->GSA_CODLOC, "GCS_NOMLOC") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84349 | 0 |
| GSA | 10 | GSA_SEXO | C | 1 | 0 | Sexo | Sexo | Gender | Sexo | Sexo | Gender | @S10! | HS_VALP39(1) | x x x x x x x x x x x x x x x x | IIf(!Inclui,Posicione("GBH",1,xFilial("GBH")+GSA->GSA_REGGER,"GBH_SEXO"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | 0=Masculino;1=Feminino | 0=Masculino;1=Femenino | 0=Male;1=Female | - | - | HS_IBrM24("GBH", 1, GSA->GSA_REGGER, "GBH_SEXO") | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84350 | 0 |
| GSA | 11 | GSA_CODEND | C | 12 | 0 | Endereco | Direccion | Address | codigo do endereco | Codigo de direccion | codigo do endereco | @! | HS_ENDER() | x x x x x x x x x x x x x x x x | - | GSB | 1 | xxxxxxxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84351 | 0 |
| GSA | 12 | GSA_NOMEND | C | 30 | 0 | Descricao | Descripcion | Description | Descricao do Endereco | Descripcion de Direccion] | Adress Description | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI, POSICIONE("GSD", 1, XFilial("GSD") + GSA->GSA_CODEND, "GSD_DESEND"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GSD",1, xFilial("GSD") +GSA->GSA_CODEND, "GSD_DESEND") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84352 | 0 |
| GSA | 13 | GSA_ENDRUA | C | 2 | 0 | Endereco Rua | Direc. Calle | Address | Endereco | Direccion | Address | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI, POSICIONE("GSD", 1, XFilial("GSD") + GSA->GSA_CODEND, "GSD_ENDRUA"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | POSICIONE("GSD", 1, XFilial("GSD") + GSA->GSA_CODEND, "GSD_ENDRUA") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84353 | 0 |
| GSA | 14 | GSA_NUMERO | C | 2 | 0 | Numero | Numero | Number | Numero | Numero | Number | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI, POSICIONE("GSD", 1, XFilial("GSD") + GSA->GSA_CODEND, "GSD_NUMERO"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | POSICIONE("GSD", 1, XFilial("GSD") + GSA->GSA_CODEND, "GSD_NUMERO") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84354 | 0 |
| GSA | 15 | GSA_PRLNUM | C | 2 | 0 | Prateleira | Prateleira | Shelf | Prateleira | Prateleira | Shelf | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI, POSICIONE("GSD", 1, XFilial("GSD") + GSA->GSA_CODEND, "GSD_PRLNUM"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | POSICIONE("GSD", 1, XFilial("GSD") + GSA->GSA_CODEND, "GSD_PRLNUM") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84355 | 0 |
| GSA | 16 | GSA_CODCRM | C | 7 | 0 | CRM Medico | CRM Medico | Doctor CRM | CRM do Medico | CRM del Medico | Doctor CRM | @! | HS_SeekRet("SRA","M->GSA_CODCRM",11,.F.,"M->GSA_NOMMED","RA_NOME") .OR. VAZIO() | x x x x x x x x x x x x x x x x | - | MED | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84356 | 0 |
| GSA | 17 | GSA_NOMMED | C | 40 | 0 | Nome Medico | Nombre Med. | Doctor Name | Nome do medico | Nombre de medico | Doctor Name | @! | - | x x x x x x x x x x x x x x x x | IIF(!INCLUI, Posicione("SRA",11, xFilial("SRA") + GSA->GSA_CODCRM, "RA_NOME"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("SRA",11, xFilial("SRA") +GSA->GSA_CODCRM, "RA_NOME") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84357 | 0 |
| GSA | 18 | GSA_CODPRO | C | 10 | 0 | Cod Procdto | Cod Product | Proced. code | Cod. produto/procedimento | Cod. Producto/procedim. | Product/ Procedure Code | @! | HS_SeekRet("GA7","M->GSA_CODPRO",1,.F.,"M->GSA_NOMPRO","GA7_DESC") .OR. VAZIO() | x x x x x x x x x x x x x x x x | - | GA7 | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84358 | 0 |
| GSA | 19 | GSA_NOMPRO | C | 40 | 0 | Procedimento | Procedimien. | Procedure | Descricao procedimento | Descripcion procedimiento | Procedure description | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI, POSICIONE("GA7", 1, xFilial("GA7") + GSA->GSA_CODPRO, "GA7_DESC"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GA7", 1, xFilial("GA7") +GSA_CODPRO, "GA7_DESC") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84359 | 0 |
| GSA | 20 | GSA_CODMOT | C | 6 | 0 | Motivo Cod | Motivo Cod | Reason code | Cod.Motivo solicitacao | Cod.Motivo Solicitud | Request reason code | @! | HS_SeekRet("GSC","M->GSA_CODMOT",1,.F.,"M->GSA_NOMMOT","GSC_DESMOT") .OR. VAZIO() | x x x x x x x x x x x x x x x x | - | GSC | 1 | xxxxxxxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84360 | 0 |
| GSA | 21 | GSA_NOMMOT | C | 40 | 0 | Motivo Solic | Motivo Solic | Req. reason | Descricao motivo | Descripcion motivo | Reason description | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI, POSICIONE("GSC", 1, xFilial("GSC") + GSC->GSC_CODMOT, "GSC_DESMOT"),"") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("GSC", 1, xFilial("GSC") +GSA_CODMOT, "GSC_DESMOT") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84361 | 0 |
| GSA | 22 | GSA_USRSOL | C | 6 | 0 | Cod Solicita | Cod Solicit. | Req. code | Codigo do usario da sol. | Codigo usuario de solic. | Request user code | @! | HS_SeekRet("SRA","M->GSA_USRSOL",1,.F.,"M->GSA_NOMSOL","RA_NOME") | x x x x x x x x x x x x x x x | - | US3 | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84362 | 0 |
| GSA | 23 | GSA_NOMSOL | C | 40 | 0 | Solicitante | Solicitante | Requestor | Nome usuario solicitacao | Nombre Usuario solicitud | Request user name | @! | - | x x x x x x x x x x x x x x x x | SUBS(CUSUARIO,7,15) | - | 1 | xxxxxx x | - | - | - | S | V | R | - | - | - | - | - | - | INCLUI | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84363 | 0 |
| GSA | 24 | GSA_USRENT | C | 6 | 0 | Func.Entrega | Func.Entrega | Deliv. Empl. | Cod.Usuario entrega | Cod.Usuario entrega | Delivery User Code | @! | HS_SeekRet("SRA","M->GSA_USRENT",1,.F.,"M->GSA_NOMENT","RA_NOME") | x x x x x x x x x x x x x x x | - | US3 | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84364 | 0 |
| GSA | 25 | GSA_NOMENT | C | 40 | 0 | Nome | Nombre | Name | usuario que entregou | usuario que entrego | User who handed in | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84365 | 0 |
| GSA | 26 | GSA_DATENT | D | 8 | 0 | Dt.Entrega | Fc.Entrega | Deliv. Date | Data da entrega | Fecha entrega | Delivery Date | @D | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84366 | 0 |
| GSA | 27 | GSA_HORENT | C | 5 | 0 | Hr.entrega | Hr.entrega | Deliver.Time | Horario da entrega | Horario de entrega | Delivery Time | 99:99 | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84367 | 0 |
| GSA | 28 | GSA_DATCAN | D | 8 | 0 | Dt.Cancela | Fc.anulacion | Cancel. Date | Data do cancelamento | Fecha de anulacion | Cancellation Date | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84368 | 0 |
| GSA | 29 | GSA_NOMCAN | C | 40 | 0 | Nome | Nombre | Name | usuario do cancelamento | Usuario de la anulacion | Cancellation user | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84369 | 0 |
| GSA | 30 | GSA_HORCAN | C | 5 | 0 | Horario | Horario | Time | Horario cancelamento | Horario anulacion | Cancellation Time | 99:99 | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84370 | 0 |
| GSA | 31 | GSA_MOTIVO | M | 10 | 0 | Encerramento | Cierre | Closing | descricao do cancelamento | Descripcion anulacion | Cancellation Description | - | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | ALTERA | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84371 | 0 |
| GSA | 32 | GSA_USRRET | C | 6 | 0 | Usuar.Retor. | Usuar.Retor. | Return User | Usuario de Retorno | Usuario de Retorno | Return User | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84372 | 0 |
| GSA | 33 | GSA_NOMRET | C | 40 | 0 | Nome | Nombre | Name | Nome usuario de retorno | Nombre Usuario de retorno | Return user name | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84373 | 0 |
| GSA | 34 | GSA_HORRET | C | 5 | 0 | Horario Ret. | Horario Ret. | Return time | Horario de retorno Pront. | Horario de retorno Pront. | Med. report return time | 99:99 | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84374 | 0 |
| GSA | 35 | GSA_DATRET | D | 8 | 0 | Dt.Retorno | Fc.Retorno | Return date | Data do retorno do pront. | Fecha de retorno de pront | Medic. report return date | @D | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84375 | 0 |
| GSA | 36 | GSA_OK | C | 1 | 0 | OK | OK | OK | OK | OK | OK | @! | - | 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 | - | - | - | 84376 | 0 |
| GSA | 37 | GSA_LOTE | C | 6 | 0 | Lote | Lote | Lot | Lote de Solicitacoes | Lote de Solicitudes | Request Lot | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84377 | 0 |
| GSA | 38 | GSA_LOGARQ | C | 50 | 0 | LOG | LOG | LOG | Log do arquivo | Log del archivo | File Log | @! | - | x x x x x x x x x x x x x x x | HS_LOGARQ() | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84378 | 0 |
| GSA | 39 | GSA_OBSERV | C | 50 | 0 | Observacao | Observacion | Req.Note | Observao da solicitacao | Observacion de la solicit | Request Note | @! | - | x 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 | - | - | - | 84379 | 0 |
| GSA | 40 | GSA_ORISOL | C | 1 | 0 | Orig. Solic. | Orig. Solic. | Req. Origin | Origem da Solicitacao | Origen de la Solicitud | Request Origin | @! | - | x x x x x x x x x x x x x x x x | '0' | - | 1 | x x | - | - | - | N | V | R | - | - | 0=Solicitacao;1=Saida Programada;2=Saida Multipla | 0=Solicitud;1=Salida programada;2=Salida multiple | 0=Request;1=Scheduled Exit;2=Multiple Exit | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 84380 | 0 |
| GSA | 41 | GSA_CODBAR | C | 18 | 0 | Pront + End | At Rap + Dir | Med.Rec+Addr | Pront + End | At Rap + Dir | Medical Record + Address | @! | Vazio() .Or. FS_ADDSOL(oGetCodBar,nAtend) | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | A | V | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84381 | 0 |
| GSA | 42 | GSA_REGATE | C | 6 | 0 | Reg.Atendi | Reg.Atencion | Serv. Reg. | Registro de Atendimento | Registro de Atencion | Service Registration | @! | HS_ENDER() | x x x x x x x x x x x x x x x x | - | GSA003 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 84382 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GSA | 1 | GSA_FILIAL+GSA_OK+GSA_REGGER+DTOS(GSA_DATSOL) | OK + Prontuario + Data | OK + Ficha + Fecha | OK + Med. record + Date | S | - | - | S | 2 | 3 | - | 12453 | 0 |
| GSA | 2 | GSA_FILIAL+GSA_OK+DTOS(GSA_DATSOL)+GSA_HORSOL+GSA_NOMPAC | OK + Data + Hora + Nome | OK + Fecha + Hora + Nombre | OK + Date + Time + Name | S | - | - | S | 2 | 3 | - | 12454 | 0 |
| GSA | 3 | GSA_FILIAL+GSA_OK+GSA_REGGER+GSA_CODEND+GSA_REGATE | OK + Prontuario + Endereco + Reg.Atendi | OK + Ficha + Direccion + Reg.Atencion | OK + Med. record + Address + Serv. Reg. | S | - | - | S | 2 | 3 | - | 12455 | 0 |
| GSA | 4 | GSA_FILIAL+GSA_CODSOL | Solicitacao | Solicitud | Request | S | - | - | S | 2 | 3 | - | 12456 | 0 |
| GSA | 5 | GSA_FILIAL+GSA_CODMOT | Motivo Cod | Motivo Cod | Reason code | S | - | - | S | 2 | 3 | - | 12457 | 0 |
| GSA | 6 | GSA_FILIAL+GSA_LOTE | Lote | Lote | Lot | S | - | - | S | 2 | 3 | - | 12458 | 0 |
| GSA | 7 | GSA_FILIAL+GSA_REGGER+GSA_CODEND | Prontuario + Endereco | Ficha + Direccion | Med. record + Address | S | - | - | S | 2 | 3 | - | 12459 | 0 |
Ela é utilizada para solicitação de prontuários 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
GSA_FILIAL,
GSA_CODSOL,
GSA_DATSOL,
GSA_HORSOL,
GSA_REGGER,
GSA_NOMPAC,
GSA_DTNASC,
GSA_CODLOC,
GSA_NOMLOC,
GSA_SEXO,
GSA_CODEND,
GSA_NOMEND,
GSA_ENDRUA,
GSA_NUMERO,
GSA_PRLNUM,
GSA_CODCRM,
GSA_NOMMED,
GSA_CODPRO,
GSA_NOMPRO,
GSA_CODMOT,
GSA_NOMMOT,
GSA_USRSOL,
GSA_NOMSOL,
GSA_USRENT,
GSA_NOMENT,
GSA_DATENT,
GSA_HORENT,
GSA_DATCAN,
GSA_NOMCAN,
GSA_HORCAN,
GSA_MOTIVO,
GSA_USRRET,
GSA_NOMRET,
GSA_HORRET,
GSA_DATRET,
GSA_OK,
GSA_LOTE,
GSA_LOGARQ,
GSA_OBSERV,
GSA_ORISOL,
GSA_CODBAR,
GSA_REGATE
FROM GSA
WHERE
D_E_L_E_T_ = ' '
AND GSA_FILIAL = 'VALOR'
AND GSA_CODSOL = 'VALOR'
AND GSA_DATSOL BETWEEN '20260501' AND '20260531'
AND GSA_HORSOL = 'VALOR'
AND GSA_REGGER = 'VALOR'
AND GSA_NOMPAC = 'VALOR'
AND GSA_DTNASC BETWEEN '20260501' AND '20260531'
AND GSA_CODLOC = 'VALOR'
AND GSA_NOMLOC = 'VALOR'
AND GSA_SEXO = 'VALOR'
AND GSA_CODEND = 'VALOR'
AND GSA_NOMEND = 'VALOR'
AND GSA_ENDRUA = 'VALOR'
AND GSA_NUMERO = 'VALOR'
AND GSA_PRLNUM = 'VALOR'
AND GSA_CODCRM = 'VALOR'
AND GSA_NOMMED = 'VALOR'
AND GSA_CODPRO = 'VALOR'
AND GSA_NOMPRO = 'VALOR'
AND GSA_CODMOT = 'VALOR'
AND GSA_NOMMOT = 'VALOR'
AND GSA_USRSOL = 'VALOR'
AND GSA_NOMSOL = 'VALOR'
AND GSA_USRENT = 'VALOR'
AND GSA_NOMENT = 'VALOR'
AND GSA_DATENT BETWEEN '20260501' AND '20260531'
AND GSA_HORENT = 'VALOR'
AND GSA_DATCAN BETWEEN '20260501' AND '20260531'
AND GSA_NOMCAN = 'VALOR'
AND GSA_HORCAN = 'VALOR'
AND GSA_USRRET = 'VALOR'
AND GSA_NOMRET = 'VALOR'
AND GSA_HORRET = 'VALOR'
AND GSA_DATRET BETWEEN '20260501' AND '20260531'
AND GSA_OK = 'VALOR'
AND GSA_LOTE = 'VALOR'
AND GSA_LOGARQ = 'VALOR'
AND GSA_OBSERV = 'VALOR'
AND GSA_ORISOL = 'VALOR'
AND GSA_CODBAR = 'VALOR'
AND GSA_REGATE = 'VALOR'