blue-button-fhir
Advanced tools
Comparing version 1.4.0-beta.7 to 1.4.0-beta.8
@@ -99,3 +99,6 @@ "use strict"; | ||
}, []); | ||
return preliminaryResult; | ||
var result = preliminaryResult.filter(function (e) { | ||
return e; | ||
}); | ||
return result; | ||
}; | ||
@@ -136,13 +139,9 @@ })(); | ||
var fn = function (entryResource) { | ||
if (entryResource) { | ||
var handlerKey = entryResource.handlerKey; | ||
var modeller = modellers[handlerKey]; | ||
var value = resourceToModel(store, modeller, entryResource.resource.body); | ||
return { | ||
type: modeller.type, | ||
value: value | ||
}; | ||
} else { | ||
return null; | ||
} | ||
var handlerKey = entryResource.handlerKey; | ||
var modeller = modellers[handlerKey]; | ||
var value = resourceToModel(store, modeller, entryResource.resource.body); | ||
return { | ||
type: modeller.type, | ||
value: value | ||
}; | ||
}; | ||
@@ -157,8 +156,6 @@ | ||
results.forEach(function (result) { | ||
if (result) { | ||
var type = result.type; | ||
var f = modelUpdate[type]; | ||
if (f) { | ||
f(model.data, result.value); | ||
} | ||
var type = result.type; | ||
var f = modelUpdate[type]; | ||
if (f) { | ||
f(model.data, result.value); | ||
} | ||
@@ -165,0 +162,0 @@ }); |
{ | ||
"name": "blue-button-fhir", | ||
"version": "1.4.0-beta.7", | ||
"version": "1.4.0-beta.8", | ||
"description": "Blue Button FHIR to Model Translator", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
97135
2777