amida-tech/blue-button

simple codes (e.g. marital_status, race/ethnicity, relation) use display_name

Closed this issue · 1 comments

if display_name is improperly coded, we can't revert it back to proper code, need to lookup display_name based on code and code_system first.

var SimpleCode = exports.SimpleCode = function (oid) {
var r = Component.define("SimpleCode." + oid);
r.fields([]);
r.cleanupStep(Cleanup.augmentSimpleCode(oid));
return r;
};

var augmentSimplifiedCode = function () {
if (this.js) {
// TODO: look up; don't trust the name to be present...
this.js = this.js.name;
}
};

au2 commented

names are looked from code currently. it will not fallback to the specified name and maybe that should change but that is another bug.