Tabela BRJ - Importacoes de Guias
Modo: C
Modo Unid.: E
Modo Empr.: E
Sumario:
Campos
| Campo | Titulo | Descricao | Tipo | Contexto | Tamanho |
|---|---|---|---|---|---|
| BRJ_FILIAL | Filial | Filial | C | Real | 2 |
| BRJ_CODIGO | Seq.Import. | Sequencia da Importacao | C | Real | 8 |
| BRJ_DATA | Data | Data da Importacao | D | Real | 8 |
| BRJ_REGPRI | Reg.Princ. | Registro Principal? | C | Real | 1 |
| BRJ_CODOPE | Cd.Operadora | Codigo da Operadora | C | Real | 4 |
| BRJ_CODLDP | Cod.Loc.Dig. | Cod.Local.Digitacao PEG | C | Real | 4 |
| BRJ_CODPEG | Codigo PEG | Codigo PEG | C | Real | 8 |
| BRJ_ARQIMP | Arq. Questi. | Arquivo de Questionamento | C | Real | 40 |
| BRJ_ARQUIV | Arquivo Imp | Arquivo Importado | C | Real | 40 |
| BRJ_OPEORI | Operad.Orig. | Operadora Origem | C | Real | 4 |
| BRJ_NOMORI | Operad.Orig. | Operadora Origem | C | Real | 50 |
| BRJ_ANO | Ano Fatura | Ano da Fatura | C | Real | 4 |
| BRJ_ANOPAG | Ano Pagto | Ano Comp. do Pagamento | C | Real | 4 |
| BRJ_MES | Mes Fatura | Mes da Fatura | C | Real | 2 |
| BRJ_MESPAG | Mes Pagto | Mes Comp. do Pagamento | C | Real | 2 |
| BRJ_NUMFAT | Num. Fatura | Numero da Fatura | C | Real | 20 |
| BRJ_VALOR | Valor Fatura | Valor da Fatura | N | Real | 16, 2 |
| BRJ_DTEMIS | Data Emissao | Data Emissao | D | Real | 8 |
| BRJ_DTVENC | Data Vencto. | Data de Vencimento | D | Real | 8 |
| BRJ_FATPLS | Fat. Pag.PLS | Fatura Pagamento PLS | C | Real | 13 |
| BRJ_FCBPLS | Fat. Cob.PLS | Fatura Cobranca PLS | C | Real | 17 |
| BRJ_STATUS | Status | Status | C | Real | 1 |
| BRJ_OK | Ident. Selec | Identificador de Selecao | C | Real | 2 |
| BRJ_CAMCOM | Cod.EDI.Cam. | Cod. EDI Cam.Compensacao | C | Real | 3 |
| BRJ_TPPAG | Forma Pag. | Forma de Pagamento | C | Real | 1 |
| BRJ_PREFIX | Prefixo | Prefixo | C | Real | 3 |
| BRJ_NUMTIT | Nr. Titulo | Numero do Titulo | C | Real | 9 |
| BRJ_PARCEL | Parcela | Parcela | C | Real | 2 |
| BRJ_TIPTIT | Tipo | Tipo do Titulo | C | Real | 3 |
| BRJ_PRESE2 | Prefixo CP | Prefixo Contas Pagar | C | Real | 3 |
| BRJ_NUMSE2 | Num Tit CP | Num Tit Contas Pagar | C | Real | 9 |
| BRJ_PARSE2 | Parcela CP | Parcela Contas Pagar | C | Real | 2 |
| BRJ_TIPSE2 | Tipo CP | Tipo Tit Contas Pagar | C | Real | 3 |
| BRJ_NIV550 | Nivel A550 | Nivel do A550 | C | Real | 1 |
| BRJ_GERPTU | Const. Pag. | Contestacao no Pag? | C | Real | 1 |
| BRJ_VLRNDC | Valor NDC | Valor NDC | N | Real | 16, 2 |
| BRJ_VLRFAT | Valor Fatura | Valor Fatura | N | Real | 16, 2 |
| BRJ_TPDOC1 | Tipo Doc.1 | Tipo Documento 1 | C | Real | 1 |
| BRJ_TPCOB | Tp. Cobranca | Tp. Cobranca | C | Real | 1 |
| BRJ_TPDOC2 | Tipo Doc.2 | Tipo Documento 2 | C | Real | 1 |
| BRJ_PRENDC | Pre Con NDC | Pre Con NDC | C | Real | 3 |
| BRJ_NUMNDC | Num Con NDC | Num Con NDC | C | Real | 9 |
| BRJ_PARNDC | Par Con NDC | Par Con NDC | C | Real | 2 |
| BRJ_TIPNDC | Tip Con NDC | Tip Con NDC | C | Real | 3 |
| BRJ_PREE2N | Prefixo NDC | Prefixo NDC | C | Real | 3 |
| BRJ_NUME2N | Num Tit NDC | Num Tit NDC | C | Real | 9 |
| BRJ_PARE2N | Parcela NDC | Parcela NDC | C | Real | 2 |
| BRJ_TIPE2N | Tipo NDC | Tipo NDC | C | Real | 3 |
| BRJ_NRNDC | Num. NDC | Numero da NDC | C | Real | 20 |
| BRJ_DTVNDC | Dt Venc NDC | Data Venc. NDC | D | Real | 8 |
| BRJ_DTENDC | Dt Emiss NDC | Data Emissao NDC | D | Real | 8 |
| BRJ_CNDPRE | Pref.Titulo. | Prefixo Titulo | C | Real | 3 |
| BRJ_CNDTIT | Num.Titulo | Numero Titulo | C | Real | 9 |
| BRJ_CNDPAR | Parc Titulo | Parcela Titulo | C | Real | 2 |
| BRJ_CNDTIP | Tipo Titulo | Tipo do Titulo | C | Real | 3 |
| BRJ_CFTPRE | Pref Titulo | Prefixo Titulo | C | Real | 3 |
| BRJ_CFTTIT | Num Titulo | Numero Titulo | C | Real | 9 |
| BRJ_CFTPAR | Parc Titulo | Parcela Titulo | C | Real | 2 |
| BRJ_CFTTIP | Tipo Titulo | Tipo do Titulo | C | Real | 3 |
| BRJ_DOCFI1 | Num.Doc.Fis1 | Numero Doc. Fiscal 1 | C | Real | 20 |
| BRJ_DOCFI2 | Num.Doc.Fis2 | Numero Doc. Fiscal 2 | C | Real | 20 |
| BRJ_ARQPAR | Tp.Arq.Parc | Tipo Arquivo Parcial | C | Real | 1 |
| BRJ_TIPLOT | Tipo Lote | Tipo Lote | C | Real | 1 |
| BRJ_FP2PRE | Pref. Titulo | Prefixo Titulo | C | Real | 3 |
| BRJ_FP2TIT | Num Titulo | Numero Titulo | C | Real | 9 |
| BRJ_FP2PAR | Parc Titulo | Parcela Titulo | C | Real | 2 |
| BRJ_FP2TIP | Tipo Titulo | Tipo do Titulo | C | Real | 3 |
| BRJ_NP2PRE | Pref. Titulo | Prefixo Titulo | C | Real | 3 |
| BRJ_NP2TIT | Num Titulo | Numero Titulo | C | Real | 9 |
| BRJ_NP2PAR | Parc Titulo | Parcela Titulo | C | Real | 2 |
| BRJ_NP2TIP | Tipo Titulo | Tipo do Titulo | C | Real | 3 |
| BRJ_STTP1 | Stat Parc 1 | Status Parcial 1 A510 | C | Real | 1 |
| BRJ_STTP2 | Stat Parc 2 | Status Parcial 2 A510 | C | Real | 1 |
| BRJ_STTCO | Stat Comp | Status Complementar A510 | C | Real | 1 |
| BRJ_GLOSA | Glosado Tot | Glosado Integralmente | C | Real | 1 |
| BRJ_NDFP1 | CHV SE2 P1 | Chave Parcial 1 comp. NDF | C | Real | 50 |
| BRJ_NDFP2 | BRJ_NDFP2 | Chave Parcial 2 comp. NDF | C | Real | 50 |
| BRJ_NDFF | CHV SE2 FECH | Chave SE2 final comp. NDF | C | Real | 50 |
Indices
| Ordem | Chave | Descricao | Nickname |
|---|---|---|---|
| 1 | BRJ_FILIAL + BRJ_CODIGO | Seq.Import. | |
| 2 | BRJ_FILIAL + BRJ_OPEORI + BRJ_ANOPAG + BRJ_MESPAG + BRJ_REGPRI + BRJ_STATUS + BRJ_NUMFAT | Operad.Orig. + Ano Pagto + Mes Pagto + Reg.Princ. + Status + Num. Fatu | |
| 3 | BRJ_FILIAL + BRJ_OK | Ident. Selec | |
| 4 | BRJ_FILIAL + BRJ_CODIGO + BRJ_ANOPAG + BRJ_MESPAG | Seq.Import. + Ano Pagto + Mes Pagto | |
| 5 | BRJ_FILIAL + BRJ_PREFIX + BRJ_NUMTIT + BRJ_PARCEL + BRJ_TIPTIT | Prefixo + Nr. Titulo + Parcela + Tipo |
Relacionamentos
| Tabela Origem | Tabela Destino | Expressao Origem | Expressao Destino | Relacionamento |
|---|---|---|---|---|
| BA0 (Operadoras de Saude) | BRJ (Importacoes de Guias) | BA0_CODIDE + BA0_CODINT | BRJ_OPEORI | 1 para N |
| BA0 (Operadoras de Saude) | BRJ (Importacoes de Guias) | BA0_CODIDE + BA0_CODINT | BRJ_CODOPE | 1 para N |
| BRJ (Importacoes de Guias) | B2A (Questionamentos de Fat Interc) | BRJ_OPEORI + BRJ_CODIGO | B2A_OPEDES + B2A_LOTE | 1 para N |