|
@@ -362,8 +362,10 @@ $formID = rand(0, 100000);
|
|
'https://clinicaltables.nlm.nih.gov/api/rxterms/v3/search?ef=STRENGTHS_AND_FORMS');
|
|
'https://clinicaltables.nlm.nih.gov/api/rxterms/v3/search?ef=STRENGTHS_AND_FORMS');
|
|
window.Def.Autocompleter.Event.observeListSelections(dynID, function() {
|
|
window.Def.Autocompleter.Event.observeListSelections(dynID, function() {
|
|
var autocomp = elem.autocomp, acData = autocomp.getSelectedItemData();
|
|
var autocomp = elem.autocomp, acData = autocomp.getSelectedItemData();
|
|
- self.items[vueIndex].title = acData[0].code;
|
|
|
|
- self.onItemChange(vueIndex);
|
|
|
|
|
|
+ if(acData[0].code) {
|
|
|
|
+ self.items[vueIndex].title = acData[0].code;
|
|
|
|
+ self.onItemChange(vueIndex);
|
|
|
|
+ }
|
|
var strengths = acData[0].data['STRENGTHS_AND_FORMS'];
|
|
var strengths = acData[0].data['STRENGTHS_AND_FORMS'];
|
|
if (strengths) {
|
|
if (strengths) {
|
|
strengthElem.autocomp.setListAndField(strengths, '');
|
|
strengthElem.autocomp.setListAndField(strengths, '');
|