Skip to content

Commit

Permalink
Update demographics.js
Browse files Browse the repository at this point in the history
path for religion was pointing to an xml attribute (@value instead of node), which does not match shared.ConceptDescriptor type. This was causing an error when parsing a valid C32 CCD.
  • Loading branch information
jamadriz authored Feb 20, 2017
1 parent 9f1cc16 commit 71721d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser/c32/demographics.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports.patient = component.define("Patient")
["race", "0..1", "h:patient/h:raceCode", shared.ConceptDescriptor],
["ethnicity", "0..1", "h:patient/h:ethnicGroupCode", shared.ConceptDescriptor],
["languages", "0..*", "h:patient/h:languageCommunication", LanguageCommunication],
["religion", "0..1", "h:patient/h:religiousAffiliationCode/@code", shared.ConceptDescriptor],
["religion", "0..1", "h:patient/h:religiousAffiliationCode", shared.ConceptDescriptor],
["birthplace", "0..1", "h:patient/h:birthplace/h:place/h:addr", shared.Address],
["guardians", "0..*", "h:patient/h:guardian", Guardian]
]);

0 comments on commit 71721d5

Please sign in to comment.