Skip to content

Commit

Permalink
VA file is added to generator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
au2 committed Sep 15, 2014
1 parent 430fd6a commit acdf040
Show file tree
Hide file tree
Showing 3 changed files with 5,921 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/generator/ccda/templates/immunizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ module.exports = function (data, codeSystems, isCCD, CCDxml) {
var time = libCCDAGen.getTimes(data[i].date_time);
libCCDAGen.effectiveTime(sa, time, undefined, 'IVL_TS');
}
if (data[i].sequence_number || (data[i].sequence_number === "")) { // allow empty string for now, workaround for c32 parser
sa.node('repeatNumber').attr({value: data[i].sequence_number});
}

libCCDAGen.routeCode(sa, data[i]["administration"], true);
if (data[i].administration && data[i].administration.body_site) {
libCCDAGen.code(sa, data[i].administration.body_site, 'approachSiteCode');
Expand Down
Loading

0 comments on commit acdf040

Please sign in to comment.