Skip to content

Commit

Permalink
fix value to string field in problem onset age
Browse files Browse the repository at this point in the history
  • Loading branch information
sirctseb committed Feb 13, 2017
1 parent 09a6397 commit 659c134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/parser/ccda/sections/problems.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ var exportProblemsSection = function (version) {
["source_list_identifiers", "0..*", "h:id", shared.Identifier],
["onset_age_reference", "0..1", "h:entryRelationship/h:observation/h:entryRelationship/h:observation/h:templateId[@root='2.16.840.1.113883.10.20.22.4.31']/../h:value", shared.TextWithReference]
])
.cleanupStep(cleanup.renameField("onset_age_reference", "onset_age"));
.cleanupStep(cleanup.renameField("onset_age_reference", "onset_age"))
.cleanupStep(cleanup.replaceStringFieldWithNullFlavorName("onset_age"))
.cleanupStep(cleanup.replaceStringFieldWithNullFlavorName("onset_age_unit"));

var NonProblemObservation = ProblemConcernAct
.define("ProblemObservation");
Expand Down

0 comments on commit 659c134

Please sign in to comment.