LOINC's RELMA tool can display HTML details pages for each LOINC. Unfortunately, we have an over 800:1 file size ratio between the smallest set of details (like the Simple Display of 13308-2, Deprecated DNA) and the largest set of details (which may be the Comprehensive Display of 45981-8, MDS full assessment form - version 2.0, with 627 LOINCs totaling 13MB (300,000+ HTML DOM elements)).
- You need to show/hide sections by their CSS style, not by their individual element. This change (coupled with others mentioned below) reduced the HTML rendering time on my new PC of the 13MB file to 23s from 10+ minutes (26X+ speed increase).
- Because LOINCs can have multiple sections that should be shown or hidden together, RELMA needed to show/hide by CSS rule name not element ID. (HTML element IDs must be unique.)
- A 2X speed increase in RELMA's case was gained by creating a new array of all of the relevant CSS rules, then working with that array rather than the live collection of all of the CSS rules (we had about twice as many of "all rules" vs. "relevant rules").
document.body.style.display = 'none'; [.... show/hide by CSS rule name ...] document.body.style.display = 'block';
(This was tested on the embedded WebBrowser Windows control, Internet Explorer 9, and Firefox 6. As document.body.style.display is a part of DOM Level 2, this tactic should work on many browsers currently in use.)
This material contains content from LOINC® (http://loinc.org). The LOINC table, LOINC codes, and LOINC panels and forms file are copyright © 1995-2011, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and available at no cost under the license at http://loinc.org/terms-of-use.