@brady.miller @robert.down @robertovasquez
I am working over in the prescriptions section. The autocomplete is broken and there needs to be a new one built.
This is the call to the autocomplete in the openemr/templates/prescription/general_edit.html
{/literal}
{if $GLOBALS.weno_rx_enable}
{literal}
$('#drug').autocomplete({
{/literal}
source: '{$WEB_ROOT}/library/ajax/drug_autocomplete/search.php?csrf_token_form='+{$CSRF_TOKEN_FORM|js_url},
minLength: 3
{literal}
});
{/literal}
{else}
{literal}
$('#drug').autocomplete({
{/literal}
source: 'library/ajax/prescription_drugname_lookup.php?csrf_token_form=' + {$CSRF_TOKEN_FORM|js_url},
minLength: 1
{literal}
});
{/literal}
{/if}
{literal}
I added the {$WEB_ROOT} it is not in the code base.
However, when I checked the header for
<script type="text/javascript" src="{$WEBROOT}/library/js/jquery.autocomplete.pack.js"></script>
It was not there. So, I looked in the js folder to see if the autocomplete pack was in there and it is not. It got dropped somewhere along the way. And there is no reference to it in the config.yaml.
Now, that is established. My question is how should I go about implementing this feature back into the program?