Enviado em 19/11/2019 - 17:48h
Boa tarde,select
a.nr_atendimento ATENDIMENTO,
obter_nome_pf_atend(a.nr_atendimento) NOME,
obter_data_nascto_pac_atend(a.nr_atendimento) NASCIMENTO,
'DOSE: ' || a.qt_dose,
'VOLUME: ' || a.qt_volume || ' ml' VOLUME,
obter_desc_material(a.cd_material) MEDICAMENTO,
d.qt_hora_min_sessao TEMPO,
e.nr_seq_tecnica ACESSO
-- Inserir aqui condicionais para cálculo de BOLUS e RATE
from
CPOE_material a, atend_paciente_unidade b, hd_escala_dialise c, cpoe_dialise d, hd_acesso e
where
a.cd_material = 49749 and
a.nr_atendimento = b.nr_atendimento and
d.nr_atendimento = b.nr_atendimento and
obter_cd_pes_fis_atend(b.nr_atendimento) = c.cd_pessoa_fisica and
b.dt_saida_unidade is null and
a.dt_liberacao is not null and
a.dt_suspensao is null and
d.dt_liberacao is not null and
d.dt_suspensao is null and
c.dt_fim is null and
e.cd_pessoa_fisica = obter_pessoa_atendimento(b.nr_atendimento,'C') and
e.ie_adequado = 'S' and
e.dt_perda_retirada is null and
c.nr_seq_turno = :turno and
c.nr_seq_escala = :escala
Case acesso = 'arteriovenoso' thene assim por diante...
case a.qt_dose = 2500 then bolus = volume e rate = null
Case a.qt_dose = 5000 then:
case tempo = 2:00h, 2:05h, 2:30h ou 2:35h then Bolus = volume e rate = '-'
case tempo = 3:00h ou 3:05 then Bolus = 6,0 e rate = 1,6
case tempo = 3:30h ou 3:35 then Bolus = 6,0 e rate = 1,3
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Atualizar Debian Online de uma Versão para outra
Instalar driver Nvidia no Debian 13
Redimensionando, espelhando, convertendo e rotacionando imagens com script
Debian 13 Trixie para Iniciantes
Convertendo pacotes DEB que usam ZSTD (Padrão Novo) para XZ (Padrão Antigo)
Ajuda com o Debian 13 - Video hibrido geforce 940 mx Wayland OFF (0)
baschrc customizado pegeui vários. (3)