{% set userData = app.session.get('userData') %}
<form method="POST" id="form-patientFileTransfer" style="height: 30%;">
    <h5>Patient File Transfer</h5>
    <div class="large-12 columns">
        <div class="row">
            <div class="large-3 large-text-right columns">
                <label for="patient">Patient</label>
            </div>
            <div class="large-9 columns">
                <input type="text" id="patient-name">
                <input type="hidden" id="patient-id">
            </div>
        </div>
    </div>
    <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-file-transfer-action"
                   data-message="Are you sure you want to transfer encounter to this patient?"
                   style="margin-left: 10px; margin-right: 0;"
                >Save</a>
                <a href="javascript:void(0)" class="button secondary" data-close style="margin-left: 10px; margin-right: 0;">Close</a>
            </div>
        </div>
    </div>
    <script>
        let autoCompleteUrl = '{{ path('patient_autocomplete') }}' ;
        global.autocomplete.bind(autoCompleteUrl, '#patient-name', '#patient-id');
    </script>
</form>