diff --git a/atlas/templates/atlas/series_form.html b/atlas/templates/atlas/series_form.html index e169aff6..281af33e 100755 --- a/atlas/templates/atlas/series_form.html +++ b/atlas/templates/atlas/series_form.html @@ -312,6 +312,14 @@ var study_description = dataSet.string('x00081030').toLowerCase(); console.log("STUDY", study_description); + $.ajax({ + url: `{% url 'generic:examination-autocomplete' %}/${encodeURI(study_description)}`, + //context: document.body, + success: function(data){ + console.log(data) + } + }); + // try to match with a study description (if not already selected) if ($(`#id_examination_to option`).length < 1) { option = $(`#id_examination_from option[title*='${study_description}' i]`);