Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blue-button-meta

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blue-button-meta

Metadata about Blue Button format (CCDA) internal structures

  • 1.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

blue-button-meta

Metadata about Blue Button format internal structures

NPM

Build Status Coverage Status

##Usage

Various metadata is directly available

var bbm = require("blue-button-meta");
var CCDA = bbm.CCDA;

//CCDA Document OID
console.log(CCDA.document.templateId);

//list of CCDA Templates and their OIDs
console.log(CCDA.templates);

//list of CCDA Sections and their OIDs
console.log(CCDA.sections);

//list of CCDA Clinical Statements and their OIDs
console.log(CCDA.statements);

//list of CCDA constraints
console.log(CCDA.constraints.templates);
console.log(CCDA.constraints.sections);

//list of supported master health record 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()); // "HL7 AdministrativeGender"

var oid = code_systems.findFromName("HL7 AdministrativeGender");
console.log(oid); // '2.16.840.1.113883.5.1'

For a subset of smaller code systems code to display name and display name to code methods are available

console.log(csGender.codeDisplayName('F'));      // 'Female'
console.log(csGender.displayNameCode('Female')); // 'F'

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()); // "Problem Severity"

console.log(csPS.codeDisplayName('255604002')); // 'Mild';
console.log(csPS.displayNameCode('Mild'));      // '255604002';

In addition the parent code system is available

var id = csPS.systemId();
console.log(id.codeSystem);     // '2.16.840.1.113883.6.96'
console.log(id.codeSystemName); // 'SNOMED CT'

Release Notes

See release notes here

License

Licensed under Apache 2.0

Keywords

FAQs

Package last updated on 03 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc