Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/util/buildScript.2017071.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ function buildNewRxMedication(doc, medicationRequestResource) {
if (system.endsWith('rxnorm')) {
// Medication Drug Description
xmlAddTextNode(doc, medicationPrescribed, 'DrugDescription', coding.display);
// Medication Drug Code
var drugDbCode = doc.createElement('DrugDBCode');
xmlAddTextNode(doc, drugDbCode, 'Code', coding.code);
xmlAddTextNode(doc, drugDbCode, 'Qualifier', 'BPK'); // Branded Package BPCK (BPK)
drugCoded.appendChild(drugDbCode);
} else if (system.endsWith('ndc')) {
// Medication Drug Code
var productCode = doc.createElement('ProductCode');
Expand Down