ICD10 Search with JQuery Autocomplete
*** searches the underlying nodes ***
HTML
<script src="http://d3js.org/d3.v2.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<input id="tags" size="60">
<div id="mysvg"></div>
CSS
.ui-helper-hidden-accessible {
color: firebrick;
clear: both;
}
.ui-autocomplete-input {
font-size: 12px;
}
.ui-corner-all {
color: steelblue;
}
JavaScript
var w = 4000,
h = 2000;
var nodes= {
"name": "Chapter-5 Mental, Behavioral and Neurodevelopmental disorders",
"firstnode": "true",
"key": "Mental, Behavioral and Neurodevelopmental disorders",
"group": 0,
"children": [{
"name": "F01-F09 Mental disorders due to known physiological conditions",
"key": "Mental disorders due to known physiological conditions",
"group": 1,
"children": [{
"name": "F01 Vascular dementia",
"group": 1,
"children": [{
"name": "F01.5 Vascular dementia",
"group": 1,
"children": [{
"name": "F01.50 Vascular dementia without behavioral disturbance",
"group": 1
}, {
"name": "F01.51 Vascular dementia with behavioral disturbance",
"group": 1
}]
}]
}, {
"name": "F02 Dementia in other diseases classified elsewhere",
"group": 1,
"children": [{
"name": "F02.8 Dementia in other diseases classified elsewhere",
"group": 1,
"children": [{
"name": "F02.80 Dementia in other diseases classified elsewhere without behavioral disturbance",
"group": 1
}, {
"name": "F02.81 Dementia in other diseases classified elsewhere with behavioral disturbance",
"group": 1
}]
}]
}, {
"name": "F03 Unspecified dementia",
"group": 1,
"children": [{
"name": "F03.9 Unspecified dementia",
"group": 1,
"children": [{
"name": "F03.90 Unspecified dementia without behavioral disturbance",
"group": 1
}, {
"name": "F03.91 Unspecified dementia with...