Skip to content

Commit

Permalink
fix: CarePlan activity
Browse files Browse the repository at this point in the history
  • Loading branch information
chaldon committed Sep 1, 2015
1 parent bad10ae commit 4d7ccac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,9 @@ var Procedure = function (resource) {
});
store2bundle(procedureRequest, carePlan.patient.reference);
ensureProperty.call(carePlan, 'activity', true).push({
'reference': procedureRequest.id
'reference': {
'reference': procedureRequest.id
}
});
this._self = {
code: function (node) {
Expand Down Expand Up @@ -2337,7 +2339,9 @@ var Act = function (resource) {
});
store2bundle(procedureRequest, carePlan.patient.reference);
ensureProperty.call(carePlan, 'activity', true).push({
'reference': procedureRequest.id
'reference': {
'reference': procedureRequest.id
}
});
this._self = {
code: function (node) {
Expand Down Expand Up @@ -2407,7 +2411,9 @@ var Encounter = function (resource) {
});
store2bundle(procedureRequest, carePlan.patient.reference);
ensureProperty.call(carePlan, 'activity', true).push({
'reference': procedureRequest.id
'reference': {
'reference': procedureRequest.id
}
});
this._self = {
code: function (node) {
Expand Down
12 changes: 9 additions & 3 deletions test/artifacts/bluebutton-01-original-gold.json
Original file line number Diff line number Diff line change
Expand Up @@ -2096,13 +2096,19 @@
}
},
{
"reference": "ProcedureRequest/48"
"reference": {
"reference": "ProcedureRequest/48"
}
},
{
"reference": "ProcedureRequest/49"
"reference": {
"reference": "ProcedureRequest/49"
}
},
{
"reference": "ProcedureRequest/50"
"reference": {
"reference": "ProcedureRequest/50"
}
}
]
}
Expand Down

0 comments on commit 4d7ccac

Please sign in to comment.