tb_historico_cabecalho

4748 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
co_seq_historico_cabecalho int8 19 null
rl_historico_cabecalho.co_ficha_concatenada fk_histcabecalho_concatenadaR
rl_historico_cabecalho.co_ficha_origem_concatenacao fk_histcabecalho_origemconcatR
co_unico_registro varchar 255 null
nu_cns_cidadao varchar 15 null
co_unico_cidadao_prontuario varchar 96 null
nu_cns_prof varchar 15 null
co_cbo varchar 255 null
nu_cnes_unid varchar 50 null
co_turno int8 19 null
nu_ine varchar 255 null
dt_atendimento timestamptz 35,6 null
co_tipo_atendimento int8 19 null

Código do tipo atendimento, provindo de diferentes tabelas dependendo da origem.

co_tipo_apresentacao int8 19 null

Código do tipo de atendimento que será apresentado ao usuário, provindo de enum próprio na aplicação.

co_subtipo_atendimento int8 19 null
co_tipo_consulta int8 19 null

Tipo de consulta a ser apresentado no histórico, a princípio somente para consulta odontológica.

co_origem_atendimento int8 19 null

Indexes

Constraint Name Type Sort Column(s)
pk_historicocabecalho Primary key Asc co_seq_historico_cabecalho
in_histcabecalho_cocbo Performance Asc co_cbo
in_histcabecalho_concatenacao Performance Asc/Asc co_origem_atendimento + co_tipo_atendimento
in_histcabecalho_dtatend Performance Asc dt_atendimento
in_histcabecalho_nucnesunid Performance Asc nu_cnes_unid
in_histcabecalho_nucnscidadao Performance Asc nu_cns_cidadao
in_histcabecalho_nucnsprof Performance Asc nu_cns_prof
in_histcabecalho_nuine Performance Asc nu_ine
in_histcabecalho_origematend Performance Asc co_origem_atendimento
in_histcabecalho_tpapresent Performance Asc co_tipo_apresentacao
in_histcabecalho_tpatenddate Performance Asc/Asc co_tipo_atendimento + dt_atendimento
in_histcabecalho_uuidpront Performance Asc co_unico_cidadao_prontuario

Relationships