Giter Club home page Giter Club logo

jquery-audiogram's Introduction

jQuery-Audiogram

An html5 canvas script to display an editable audiogram in any modern browser (i.e. one that supports )

How to use it

You need a html table with the proper form with threshold data (see below). All frequencies and transducers must be included. The table should have an id of your patient's id number or MRN (or some other unique identifier).

Data table setup

The full thing can be found in the sample index.php file.

Here is an abbreviated sample:

<table id="01496673">
	<thead>
		<tr>
			<th>Frequency</th>
			<th>Right Air Threshold</th>
			<th>Right Bone Threshold</th>
			<th>Left Air Threshold</th>
			<th>Left Bone Threshold</th>
			<th>Sound Field Unaided</th>
			<th>Sound Field Aided</th>
			<th>Cochlear Implant</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>t250</td>
			<td>10</td>
			<td>5</td>
			<td>10</td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>t500</td>
			<td>15</td>
			<td>15</td>
			<td>20</td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		// Snip to save space
		<tr>
			<td>t8k</td>
			<td>50</td>
			<td></td>
			<td>100</td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td>t12k</td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
	</tbody>
</table>

You need to include a couple of non-standard audiometric frequencies; it's just a small quirk of this program at present : 125, 180, 250, 375, 500, 750, 1k, 1.5k, 2k, 3k, 4k, 6k, 8k, 12k

Any point not plotted should have an empty value (i.e. ). Otherwise, just insert the threshold. Use -m for masking (e.g. 45 or 45-m)

Invoking the plugin

jQuery is required (hence the name) and must be included in your html before the audiogram script. After that, it's quite simple:

$('#id_here').audiogram();

jquery-audiogram's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.