Skip to content

Commit

Permalink
add medicationInformation template to supply and product sections
Browse files Browse the repository at this point in the history
  • Loading branch information
jsachs committed Dec 7, 2015
1 parent 24354cd commit a3dd49d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/parser/ccda/sections/medications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a3dd49d

Please sign in to comment.