def METHOD_NAME(patient_external_id: str):
    consultation = (
        PatientConsultation.objects.filter(patient__external_id=patient_external_id)
        .order_by("-created_date")
        .first()
    )
    if not consultation:
        return None
    summary_file = generate_and_upload_discharge_summary(consultation)
    return summary_file.read_signed_url(duration=2 * 24 * 60 * 60)