Skip to content

Commit

Permalink
Update import manifest for kickoff-import
Browse files Browse the repository at this point in the history
  • Loading branch information
lmd59 committed Aug 2, 2024
1 parent 5bba357 commit 68b892a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/services/bulkstatus.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ async function kickoffImport(request, reply) {
]
};
});
// check if bulk status is byPatient, if so, add inputdetails
if (bulkStatus.byPatient) {
importManifest.parameter.push({
name: 'inputDetails',
part: [
{
name: 'subjectType',
valueCode: 'Patient'
}
]
});

Check warning on line 57 in src/services/bulkstatus.service.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
}

Check warning on line 58 in src/services/bulkstatus.service.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 58 in src/services/bulkstatus.service.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch

// TODO: add provenance?
const headers = {
Expand Down

0 comments on commit 68b892a

Please sign in to comment.