fda_submission_package
Version:
this plug-in be use FDA Submission
1 lines • 1.39 kB
JavaScript
const a10_0x5875=['json','then','toUpperCase','exports','log','2019-07-31','catch','https://browser.ihtsdotools.org/snowstorm/snomed-ct','MAIN','/concepts?term='];(function(_0x29722a,_0x5875a1){const _0x2f3398=function(_0x2a16b3){while(--_0x2a16b3){_0x29722a['push'](_0x29722a['shift']());}};_0x2f3398(++_0x5875a1);}(a10_0x5875,0x112));const a10_0x2f33=function(_0x29722a,_0x5875a1){_0x29722a=_0x29722a-0x0;let _0x2f3398=a10_0x5875[_0x29722a];return _0x2f3398;};module[a10_0x2f33('0x9')]={'getSnomed':getSnomed,'getSnomedCode':getSnomedCode};function getSnomed(_0x2ea0a7){let _0x58e88c=a10_0x2f33('0x3'),_0x295804=a10_0x2f33('0x4'),_0x6d4117=a10_0x2f33('0x1');if(_0x2ea0a7){let _0x3a1620=_0x58e88c+'/'+_0x295804+'/'+_0x6d4117+a10_0x2f33('0x5')+encodeURIComponent(_0x2ea0a7)+'&activeFilter=true&offset=0&limit=1';return console['log'](_0x3a1620),fetch(_0x3a1620)[a10_0x2f33('0x7')](_0xdaf726=>_0xdaf726[a10_0x2f33('0x6')]())[a10_0x2f33('0x7')](_0x23af3f=>{return _0x23af3f['items'];})[a10_0x2f33('0x2')](_0x1a3974=>{console[a10_0x2f33('0x0')](_0x1a3974);});}}function getSnomedCode(_0x5cf93e){let _0x4245eb=getSnomed(_0x5cf93e[a10_0x2f33('0x8')]());return _0x4245eb[a10_0x2f33('0x7')](_0x3cd974=>_0x3cd974)[a10_0x2f33('0x7')](_0x4a3587=>{let _0x2f16e9='';return _0x4a3587&&(_0x2f16e9=_0x4a3587[0x0]['id']),_0x2f16e9;})[a10_0x2f33('0x2')](function(_0x506f3c){console['log'](_0x506f3c);});}