Formato institucional para uso sanatorial y archivo en historia clínica electrónica.

Paciente

{{ patient.nombre_completo }}
DNI {{ patient.documento }}
Fecha nac. {{ patient.fecha_nacimiento or '—' }}
Obra social {{ patient.obra_social.denominacion if patient.obra_social else 'Particular' }}

Profesional

{{ entry.professional.display_name if entry.professional else entry.signed_name }}
{{ entry.specialty_name or '—' }}
CIE-10 {{ entry.cie10_code or '—' }}
SNOMED {{ entry.snomed_term or entry.snomed_code or '—' }}

Motivo y diagnóstico

Motivo: {{ entry.chief_complaint or '—' }}
Presuntivo: {{ entry.provisional_diagnosis or '—' }}
Clínico: {{ entry.diagnosis_text or '—' }}
Formato institucional para uso sanatorial y archivo en historia clínica electrónica.

Subjetivo

{{ entry.subjective|safe if entry.subjective else '—' }}

Objetivo

{{ entry.objective|safe if entry.objective else '—' }}

Valoración

{{ entry.assessment|safe if entry.assessment else '—' }}

Plan

{{ entry.plan|safe if entry.plan else '—' }}

Tratamiento y estudios

Indicaciones: {{ entry.treatment|safe if entry.treatment else '—' }}
Estudios / resultados: {{ entry.study_results|safe if entry.study_results else '—' }}
Consentimiento: {{ entry.consent_reference or '—' }}

Signos vitales

{% for label, key in [('TA','bp'),('FC','hr'),('FR','rr'),('Temp','temp'),('SatO2','spo2'),('Glucemia','glucose'),('Peso','weight'),('Talla','height'),('IMC','bmi')] %}
{{ label }}
{{ entry.vitals_data.get(key) or '—' }}
{% endfor %}

Complemento por especialidad

{% if entry.structured_data %}{% else %}
Sin datos complementarios.
{% endif %}

Firma institucional y auditoría

Firmante: {{ entry.signature_data.signer or entry.signed_name or '—' }}
Modo: {{ entry.signature_data.mode or 'Sin firma' }}
Estado certificado: {{ entry.signature_data.certificate_status or '—' }}
Serial: {{ entry.signature_data.serial or '—' }}
Hash: {{ entry.signed_hash or '—' }}
Registró: {{ entry.created_by_user.full_name if entry.created_by_user else '—' }}