{% set userData = app.session.get('userData') %}
<form method="POST" id="form-patientExportHl7FormAction">
    <h5>Export To HL7 File</h5>
    <select id="hl7_message_type">
        {% for messageType in hl7MessageTypes %}
            {% if messageType.settings.displayGlobal %}
            <option value="{{ messageType.code }}">{{ messageType.code ~ ' - ' ~ messageType.label }}</option>
            {% endif %}
        {% endfor %}
    </select>
    <hr>
    <div class="row-max-width-initial">
        <div class="small-12 columns no-padding-right">
            <div class="button-container text-right">
                <a href="javascript:void(0)" class="button just-continue href-patient-export-hl7-action"
                   data-message="Are you sure you want to export this patient details to HL7?"
                   style="margin-left: 10px; margin-right: 0;"
                >Export</a>
                <a href="javascript:void(0)" class="button secondary" data-close style="margin-left: 10px; margin-right: 0;">Close</a>
            </div>
        </div>
    </div>
</form>