diff --git a/lib/parser/ccda/sections/medications.js b/lib/parser/ccda/sections/medications.js index 866fc959..691e9cd4 100644 --- a/lib/parser/ccda/sections/medications.js +++ b/lib/parser/ccda/sections/medications.js @@ -108,7 +108,8 @@ var exportMedicationsSection = function (version) { ["quantity", "0..1", "h:quantity/@value"], ["status", "0..1", "h:status/@code"], ["author", "0..1", "h:author", author], - ["instructions", "0..1", "h:entryRelationship[@typeCode='SUBJ']/h:act", MedicationInstructions] + ["instructions", "0..1", "h:entryRelationship[@typeCode='SUBJ']/h:act", MedicationInstructions], + ["product", "0..1", "h:product/h:manufacturedProduct", medicationInformation] ]); var MedicationPerformer = component.define("MedicationPerformer") @@ -131,7 +132,8 @@ var exportMedicationsSection = function (version) { .fields([ ["identifiers", "0..*", "h:id", shared.Identifier], ["performer", "0..1", "h:performer", MedicationPerformer], - ["supply", "0..1", "h:entryRelationship[@typeCode='REFR']/h:supply", medicationSupplyOrder] + ["supply", "0..1", "h:entryRelationship[@typeCode='REFR']/h:supply", medicationSupplyOrder], + ["product", "0..1", "h:product/h:manufacturedProduct", medicationInformation] ]); medicationActivity = component.define("medicationActivity") diff --git a/package.json b/package.json index 2cb6f155..bde04ac8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blue-button", - "version": "1.8.0-beta.6", + "version": "1.8.0-beta.7", "description": "Blue Button (CCDA, C32, CMS) to JSON Parser.", "main": "./index.js", "directories": { @@ -32,7 +32,7 @@ "dependencies": { "blue-button-cms": "~1.5.0", "blue-button-meta": "~1.5.0", - "blue-button-model": "1.8.0-beta.8", + "blue-button-model": "git://github.com/amida-tech/blue-button-model.git#js-med-information-extension", "blue-button-xml": "^1.6.0-beta", "lodash": "^3.10.0", "winston": "~1.0.0"