blue-button-generate
Advanced tools
Comparing version 1.5.0-beta.1 to 1.5.0-beta.2
"use strict"; | ||
/* | ||
This script converts CCDA data in JSON format (originally generated from a Continuity of Care Document (CCD) in | ||
This script converts CCDA data in JSON format (originally generated from a Continuity of Care Document (CCD) in | ||
standard XML/CCDA format) back to XML/CCDA format. | ||
@@ -37,2 +37,3 @@ */ | ||
} | ||
result.preventNullFlavor = options.preventNullFlavor; | ||
@@ -39,0 +40,0 @@ return result; |
@@ -145,3 +145,3 @@ "use strict"; | ||
} | ||
if ((!filled) && template.required) { | ||
if ((!filled) && template.required && !context.preventNullFlavor) { | ||
var node = xmlutil.newNode(xmlDoc, template.key); | ||
@@ -148,0 +148,0 @@ xmlutil.nodeAttr(node, { |
{ | ||
"name": "blue-button-generate", | ||
"version": "1.5.0-beta.1", | ||
"version": "1.5.0-beta.2", | ||
"description": "Blue Button CCDA Generator.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -7,2 +7,3 @@ # blue-button-generate.js Release Notes | ||
- Set Identifier and Confidentiality Code are now read from CCDA JSON meta properties. | ||
- Add preventNullFlavor option to generateCCD | ||
@@ -9,0 +10,0 @@ # v.1.4.0 - March 25, 2105 |
@@ -161,3 +161,5 @@ var expect = require('chai').expect; | ||
}; | ||
var xml = bbg.generateCCD(input); | ||
var xml = bbg.generateCCD(input, { | ||
preventNullFlavor: true | ||
}); | ||
@@ -164,0 +166,0 @@ // parse generated ccda |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9311817
123796
2