Tabela |
GCY |
Atendimentos |
Campo |
Tipo |
Tamanho |
Decimal |
Titulo |
Formato |
Validacao |
F3 |
Contexto |
Lista |
Condicao |
PYME |
GCY_FILIAL |
C |
2 |
0 |
Filial |
|
|
|
|
|
|
N |
GCY_REGATE |
C |
6 |
0 |
Atendimento |
@! |
|
|
R |
|
|
N |
GCY_RG |
C |
15 |
0 |
RG |
|
HS_VldM24(,33) |
|
R |
|
|
N |
GCY_ORGEMI |
C |
3 |
0 |
Org. Emissor |
@! |
HS_VldA58() .AND. HS_VldM24(,33) |
64 |
R |
|
|
N |
GCY_UFEMIS |
C |
2 |
0 |
UF Emissor |
@! |
HS_VldA58() .AND. HS_VldM24(,33) |
12 |
R |
|
|
N |
GCY_DTNASC |
D |
8 |
0 |
Data Nasc. |
@D |
HS_VldM24(,2) |
|
R |
|
cGcyAtendi <> '3' |
N |
GCY_IDADE |
C |
10 |
0 |
Idade |
|
|
|
R |
|
|
N |
GCY_SEXO |
C |
1 |
0 |
Sexo |
@! |
HS_VldM24(,3) |
|
R |
0=Masculino;1=Feminino |
cGcyAtendi <> '3' |
N |
GCY_REGGER |
C |
6 |
0 |
Prontuario |
@! |
HS_VldM24(,4) |
GH1 |
R |
|
|
N |
GCY_NOME |
C |
45 |
0 |
Nome Pacient |
@! |
|
|
R |
|
|
N |
GCY_CODCRM |
C |
7 |
0 |
CRM Medico |
@! |
HS_VldM24(,5) |
MED |
R |
|
|
N |
GCY_NOMMED |
C |
30 |
0 |
Nome Medico |
@! |
|
|
V |
|
|
N |
GCY_CODCLI |
C |
6 |
0 |
Clinica |
@! |
HS_VldM24(,6) |
GCW |
R |
|
|
N |
GCY_DESCLI |
C |
30 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_ORIPAC |
C |
6 |
0 |
Origem |
@! |
HS_VldM24(,7) |
GD0 |
R |
|
|
N |
GCY_DORIPA |
C |
30 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_CLISEC |
C |
6 |
0 |
Clin. Secund |
@! |
HS_VLDM24(,45) |
GCW |
R |
|
|
N |
GCY_DSCLIS |
C |
30 |
0 |
Desc Cli Sec |
@! |
|
|
V |
|
|
N |
GCY_CARATE |
C |
6 |
0 |
Carater |
@! |
HS_VldM24(,8) |
GD1 |
R |
|
|
N |
GCY_DCARAT |
C |
30 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_DTCLIS |
D |
8 |
0 |
Dat Clin Sec |
@D |
|
|
R |
|
|
N |
GCY_REGIME |
C |
1 |
0 |
Regime Int. |
@! |
Vazio() .Or. Pertence('0123') |
|
R |
0=Nao Definido;1=Hospitalar;2=Hospital-dia;3=Domiciliar |
|
N |
GCY_ATENDI |
C |
1 |
0 |
Tipo Atendto |
@! |
|
|
R |
0=Internacao;1=Ambulatorio;2=Pronto Atendimento;3=Doacao |
|
N |
GCY_CODRES |
C |
6 |
0 |
Codigo |
@! |
HS_SeekRet("GFD","M->GCY_CODRES",1,.f.,"GCY_NOMRES","GFD_NOME") |
GFD |
R |
|
|
N |
GCY_NOMRES |
C |
40 |
0 |
Nome |
@! |
|
|
V |
|
|
N |
GCY_QATEND |
N |
11 |
4 |
Quantidade |
@E 999,999.9999 |
HS_VldM05() |
|
V |
|
|
S |
GCY_ACITRA |
C |
1 |
0 |
Ac. Trabalho |
@! |
HS_VldM24(,11) |
|
R |
1=Sim;0=Nao;2=Transito |
|
N |
GCY_CBMATM |
C |
17 |
0 |
Cod Bar MatM |
@! |
Vazio() .Or. HS_VCODBAR(M->GCY_CBMATM, "GAJ_PROSOL",,.F., M->GCY_CODLOC, .F.) |
HSP001 |
V |
|
|
S |
GCY_INDCBL |
C |
1 |
0 |
Pesq CB Lote |
@! |
Pertence("123456") |
|
V |
#HS_IndSB8() |
|
S |
GCY_CBLOTE |
C |
39 |
0 |
Cod Bar Lote |
@! |
Vazio() .Or. HS_VCODBAR(M->GCY_CBLOTE, 'GAJ_PROSOL',,.F., M->GCY_CODLOC, .T.) |
|
V |
|
|
S |
GCY_CODEMP |
C |
6 |
0 |
Cod Empresa |
@! |
HS_VldM24(,12) |
GAE |
R |
|
M->GCY_ACITRA == "1" |
N |
GCY_EMPRES |
C |
30 |
0 |
Nome Empresa |
@! |
|
|
V |
|
|
N |
GCY_DATATE |
D |
8 |
0 |
Data Atend. |
@D |
|
|
R |
|
|
N |
GCY_HORATE |
C |
5 |
0 |
Hora Atend. |
99:99 |
HS_VldHora(M->GCY_HORATE) |
|
R |
|
|
N |
GCY_CODLOC |
C |
2 |
0 |
Setor |
@! |
HS_VldM24(M->GCY_CODLOC, 1, .F.) |
GCS |
R |
|
lAltCodLoc |
N |
GCY_NOMLOC |
C |
30 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_QUAINT |
C |
4 |
0 |
Quarto Inter |
@! |
HS_VldM24(,9) |
GAV |
R |
|
|
N |
GCY_LEIINT |
C |
4 |
0 |
Leito Intern |
@! |
|
|
R |
|
|
N |
GCY_DATALT |
D |
8 |
0 |
Data da Alta |
@D |
|
|
R |
|
|
N |
GCY_HORALT |
C |
5 |
0 |
Hora da Alta |
99:99 |
HS_VldHora(M->GCY_HORALT) |
|
R |
|
|
N |
GCY_TPALTA |
C |
2 |
0 |
Tipo da Alta |
@! |
HS_SeekRet("GF4","M->GCY_TPALTA",1,.f.,"GCY_DESALT","GF4_DSTPAL") |
GF4 |
R |
|
|
N |
GCY_DESALT |
C |
30 |
0 |
Desc Tp Alta |
@! |
|
|
V |
|
|
N |
GCY_CIDALT |
C |
8 |
0 |
Cod CID Alta |
@! |
HS_SeekRet("GAS","M->GCY_CIDALT",1,.f.,"GCY_DESCID","GAS_PATOLO") |
GAS |
R |
|
|
N |
GCY_DESCID |
C |
200 |
0 |
Patologia |
@! |
|
|
V |
|
|
N |
GCY_CIDCMP |
C |
8 |
0 |
CIDs Compl |
@! |
HS_SeekRet("GAS","M->GCY_CIDCMP",1,.f.,"GCY_DESCMP","GAS_PATOLO") |
GAS |
R |
|
|
N |
GCY_DESCMP |
C |
70 |
0 |
Descricao |
@! |
|
|
V |
|
|
S |
GCY_OBTINF |
C |
1 |
0 |
Obito Infecc |
@! |
HS_VLNOT(8) |
|
R |
0=Nao;1=Sim |
|
N |
GCY_CIDINT |
C |
8 |
0 |
CID Atendim. |
@! |
HS_SeekRet("GAS","M->GCY_CIDINT",1,.f.,"GCY_DCIDIN","GAS_PATOLO") |
GAS |
R |
|
|
N |
GCY_DCIDIN |
C |
70 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_DTLCUD |
D |
8 |
0 |
Data Lanc UD |
@D |
|
|
R |
|
|
N |
GCY_FECBOL |
C |
1 |
0 |
Boletim Fech |
@! |
|
|
R |
1=Sim;0=Nao |
|
N |
GCY_ATENDE |
C |
25 |
0 |
Atendente |
@! |
|
|
R |
|
|
N |
GCY_ALTTPC |
C |
2 |
0 |
Tp Alta Orig |
@! |
|
|
R |
|
|
N |
GCY_ALTDTC |
D |
8 |
0 |
Dt.Alta Orig |
@D |
|
|
R |
|
|
N |
GCY_ALTHRC |
C |
5 |
0 |
Hr.Alta Orig |
@! |
|
|
R |
|
|
N |
GCY_LOGALT |
C |
50 |
0 |
Log Alta |
|
|
|
R |
|
|
N |
GCY_LOGCAN |
C |
50 |
0 |
Log Canc.Ate |
|
|
|
R |
|
|
N |
GCY_CODMOT |
C |
6 |
0 |
Motivo Canct |
@! |
HS_SeekRet("GES","M->GCY_CODMOT",1,.F.,"GCY_MOTCAN","GES_DESCRI") |
GES |
R |
|
|
N |
GCY_MOTCAN |
C |
40 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_DATFEC |
D |
8 |
0 |
Data Fecham. |
@D |
|
|
R |
|
|
N |
GCY_LOCATE |
C |
2 |
0 |
Setor Atend. |
@! |
HS_VldM24(M->GCY_LOCATE, 1, .F., "M->GCY_NLATEN") |
GCS |
R |
|
|
N |
GCY_NLATEN |
C |
30 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_TIPINF |
C |
1 |
0 |
Infeccao |
|
HS_LibMM31(M->GCY_TIPINF) |
|
R |
0=Nao houve;1=Comunitaria;2=Hospitalar;3=De outro hospital |
|
S |
GCY_TIPOBS |
M |
10 |
0 |
Observacao |
@! |
|
|
R |
|
|
S |
GCY_OK |
C |
2 |
0 |
OK |
|
|
|
R |
|
|
N |
GCY_CIDCO1 |
C |
8 |
0 |
Cid Comp. 1 |
@! |
HS_SeekRet('GAS','M->GCY_CIDCO1',1,.f.,'GCY_DESCC1','GAS_PATOLO') |
GAS |
|
|
|
N |
GCY_DESCC1 |
C |
70 |
0 |
Dsc Cmp Cid1 |
@! |
|
|
V |
|
|
N |
GCY_ATORIG |
C |
1 |
0 |
Tp Orig. Ate |
@! |
|
|
R |
0=Internacao;1=Ambulatorio;2=Pronto Atendimento |
|
N |
GCY_CIDCO2 |
C |
8 |
0 |
Cid Comp. 2 |
@! |
HS_SeekRet('GAS','M->GCY_CIDCO2',1,.f.,'GCY_DESCC2','GAS_PATOLO') |
GAS |
|
|
|
N |
GCY_DESCC2 |
C |
70 |
0 |
Dsc Cmp Cid2 |
@! |
|
|
V |
|
|
N |
GCY_CLORIG |
C |
2 |
0 |
Setor Origem |
@! |
|
|
R |
|
|
N |
GCY_DATSAI |
D |
8 |
0 |
Dt. da saida |
@D |
|
|
R |
|
|
N |
GCY_HORSAI |
C |
5 |
0 |
Hr. da saida |
99:99 |
|
|
R |
|
|
N |
GCY_DATLIB |
D |
8 |
0 |
Data Liber. |
@D |
|
|
R |
|
|
S |
GCY_HORLIB |
C |
5 |
0 |
Hora lib |
99:99 |
|
|
R |
|
|
S |
GCY_CIDCMI |
C |
8 |
0 |
CID Comp. I. |
@! |
HS_SeekRet("GAS","M->GCY_CIDCMI",1,.f.,"GCY_DCIDCI","GAS_PATOLO") |
GAS |
R |
|
|
N |
GCY_DCIDCI |
C |
70 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_CDESTI |
C |
6 |
0 |
Destino |
@! |
HS_SeekRet("GEV","M->GCY_CDESTI",1,.F.,"GCY_DDESTI","GEV_DESCRI") |
GEV |
R |
|
|
S |
GCY_DDESTI |
C |
40 |
0 |
Descricao |
@! |
|
|
V |
|
|
S |
GCY_ACOMPA |
C |
1 |
0 |
Acompanhante |
|
|
|
R |
0=Sim;1=Nao |
|
N |
GCY_VISQT |
N |
2 |
0 |
Qtde Visita |
99 |
|
|
R |
|
|
S |
GCY_NMACOM |
C |
45 |
0 |
Nome Acomp. |
@! |
|
|
R |
|
HS_VldM24(,27) |
N |
GCY_CRMALT |
C |
7 |
0 |
Medico Alta |
@! |
HS_VldM24(,37) |
MED |
R |
|
|
S |
GCY_MEDALT |
C |
40 |
0 |
Nome Medico |
@! |
|
|
V |
|
|
S |
GCY_ACOQT |
N |
2 |
0 |
Qtde Acomp |
99 |
|
|
R |
|
|
S |
GCY_GESTAC |
C |
1 |
0 |
At. Gestacao |
@! |
Vazio() .Or. Pertence('01') |
|
R |
0=Nao;1=Sim |
|
N |
GCY_TRAMAT |
C |
1 |
0 |
Transt. Mat. |
@! |
Vazio() .Or. Pertence('01') |
|
R |
0=Nao;1=Sim |
|
N |
GCY_COMPUE |
C |
1 |
0 |
Compl. Puerp |
@! |
Vazio() .Or. Pertence('01') |
|
R |
0=Nao;1=Sim |
|
N |
GCY_OBSALT |
C |
40 |
0 |
Observacao |
@! |
|
|
R |
|
|
S |
GCY_OBTDOC |
C |
11 |
0 |
No Doc Obito |
@! |
|
|
R |
|
|
S |
GCY_LOGARQ |
C |
50 |
0 |
Log do Arq |
|
|
|
R |
|
|
N |
GCY_OBIMUL |
C |
1 |
0 |
Obto Gestant |
9 |
Vazio() .Or. Pertence('123') |
|
R |
1=Gravida;2=ate 42 dias apos termino gestacao;3=de 43 dias a 12 meses apos termino gestacao |
|
N |
GCY_CDMOTD |
C |
1 |
0 |
Mot. Doacao |
@! |
HS_VldM24(,31) |
|
R |
0=Espontanea;1=Casada;2=Autologo;3=Reposicao |
|
N |
GCY_CDTIPD |
C |
6 |
0 |
Tipo Doacao |
@! |
HS_VldM24(, 32) |
GGE001 |
R |
|
|
N |
GCY_DSTIPD |
C |
30 |
0 |
Descricao |
@! |
|
|
V |
|
|
N |
GCY_NMBENE |
C |
6 |
0 |
Codigo |
@! |
HS_VldM24(,31) |
GH1 |
R |
|
M->GCY_CDMOTD <> '0' |
N |
GCY_DSBENE |
C |
45 |
0 |
Beneficiario |
@! |
HS_VldM24(,31) |
|
R |
|
M->GCY_CDMOTD <> '0' .And. Empty(M->GCY_NMBENE) |
N |
GCY_CRMANM |
C |
7 |
0 |
CRM Anamnese |
@! |
|
MED |
R |
|
|
N |
GCY_DTANAM |
D |
8 |
0 |
Dt.Anamnese |
@D |
|
|
R |
|
|
N |
GCY_HRANAM |
C |
5 |
0 |
Hr.Anamnese |
99:99 |
|
|
R |
|
|
N |
GCY_DTPTRI |
D |
8 |
0 |
Dt.Triagem |
@D |
|
|
R |
|
|
N |
GCY_HRPTRI |
C |
5 |
0 |
Hr.Triagem |
99:99 |
|
|
R |
|
|
N |
GCY_CODUSU |
C |
25 |
0 |
Usuario |
@! |
|
|
R |
|
|
N |
GCY_AUTJUD |
C |
6 |
0 |
Autorizacao |
@! |
|
|
R |
|
|
N |
GCY_STATUS |
C |
1 |
0 |
Situacao |
@! |
Pertence("0123") |
|
R |
0=Recepcionado;1=Pre-triagem;2=Anamnese;3=Anamnese confirmada |
|
N |
GCY_HOSBEN |
C |
30 |
0 |
Hospital |
@! |
|
|
R |
|
M->GCY_CDMOTD <> '0' |
N |
GCY_DTACON |
D |
8 |
0 |
Dt.Anam.Conf |
@D |
|
|
R |
|
|
N |
GCY_HRACON |
C |
5 |
0 |
Hr.Anam.Conf |
99:99 |
|
|
R |
|
|
N |
GCY_VOTOEX |
C |
3 |
0 |
Voto |
@! |
|
|
R |
|
|
N |
GCY_ATEDST |
C |
6 |
0 |
Aten Destino |
@! |
|
|
R |
|
|
N |
GCY_ABORTO |
C |
1 |
0 |
Aborto |
@! |
Pertence('12') |
|
R |
0=Nao;1=Sim |
|
N |
GCY_MATRIC |
C |
25 |
0 |
Matricula |
@! |
|
|
R |
|
|
N |
GCY_CDPREV |
C |
1 |
0 |
Tp Vinc Prev |
@! |
|
|
R |
1=Autonomo; 2=Desempregado; 3=Aposentado; 4=Nao Segurado; 5=Empregado; 6=Empregador |
|
N |
GCY_CNASUS |
C |
3 |
0 |
CNAER SUS |
@! |
HS_VldM24(,47) |
|
R |
|
|
N |
GCY_DESCNA |
C |
40 |
0 |
Desc CNAER |
@! |
|
|
V |
|
|
N |
GCY_SEQSES |
C |
5 |
0 |
Seq. Sessao |
@! |
|
|
R |
|
|
N |
GCY_CDATPL |
C |
12 |
0 |
Cod Ate Pls |
@! |
|
|
R |
|
|
N |
GCY_DINIPE |
D |
8 |
0 |
Dt Ini Atend |
@D |
|
|
R |
|
|
N |
GCY_HINIPE |
C |
8 |
0 |
Hr Ini Atend |
99:99:99 |
|
|
R |
|
|
N |
GCY_ORIMTV |
C |
1 |
0 |
Orig. Motivo |
@! |
Pertence('012') |
|
R |
0=Medico;1=Paciente;2=Empresa |
|
N |
GCY_ATEMTV |
C |
6 |
0 |
Motivo atend |
@! |
|
|
|
|
|
N |
GCY_USUMTV |
C |
25 |
0 |
Usuario |
@! |
|
|
R |
|
|
N |
GCY_CODSAL |
C |
6 |
0 |
Cod. Sala |
@! |
|
|
R |
|
|
N |
GCY_DINIAC |
D |
8 |
0 |
Dt In At Con |
|
|
|
R |
|
|
N |
GCY_HINIAC |
C |
8 |
0 |
Hr In At Con |
99:99:99 |
|
|
R |
|
|
N |
GCY_USUCPA |
C |
25 |
0 |
Usr Cham Pac |
@! |
|
|
R |
|
|
N |
GCY_USURAT |
C |
25 |
0 |
Usr Aten Pac |
@! |
|
|
R |
|
|
N |
GCY_HORAGE |
C |
5 |
0 |
Hora Agenda |
99:99 |
|
|
R |
|
|
S |
GCY_ATERN |
C |
1 |
0 |
Atend. RN |
@! |
|
|
R |
N=Nao;S=Sim |
|
S |