blue-button-meta
Metadata about Blue Button format internal structures


##Usage
Various metadata is directly available
var bbm = require("blue-button-meta");
var CCDA = bbm.CCDA;
console.log(CCDA.document.templateId);
console.log(CCDA.templates);
console.log(CCDA.sections);
console.log(CCDA.statements);
console.log(CCDA.constraints.templates);
console.log(CCDA.constraints.sections);
console.log(bbm.supported_sections);
Code system oid to name and name to oid maps are available
var code_systems = bbm.code_systems;
var csGender = code_systems.find('2.16.840.1.113883.5.1');
console.log(csGender.name());
var oid = code_systems.findFromName("HL7 AdministrativeGender");
console.log(oid);
For a subset of smaller code systems code to display name and display name to code methods are available
console.log(csGender.codeDisplayName('F'));
console.log(csGender.displayNameCode('Female'));
For a ValueSets similar methods are available
var csPS = code_systems.find('2.16.840.1.113883.3.88.12.3221.6.8');
console.log(csPS.name());
console.log(csPS.codeDisplayName('255604002'));
console.log(csPS.displayNameCode('Mild'));
In addition the parent code system is available
var id = csPS.systemId();
console.log(id.codeSystem);
console.log(id.codeSystemName);
Release Notes
See release notes here
License
Licensed under Apache 2.0