@@ -231,16 +231,9 @@ function buildNewRxMedication(doc, medicationRequestResource) {
231231 const coding = medicationCodingList [ i ] ;
232232 const system = coding . system . toLowerCase ( ) ;
233233
234- if ( system . endsWith ( 'rxnorm' ) ) {
235- // Medication Drug Description
236- xmlAddTextNode ( doc , medicationPrescribed , 'DrugDescription' , coding . display ) ;
237- // Medication Drug Code
238- var drugDbCode = doc . createElement ( 'DrugDBCode' ) ;
239- xmlAddTextNode ( doc , drugDbCode , 'Code' , coding . code ) ;
240- xmlAddTextNode ( doc , drugDbCode , 'Qualifier' , 'BPK' ) ; // Branded Package BPCK (BPK)
241- drugCoded . appendChild ( drugDbCode ) ;
242- } else if ( system . endsWith ( 'ndc' ) ) {
234+ if ( system . endsWith ( 'ndc' ) ) {
243235 // Medication Drug Code
236+ xmlAddTextNode ( doc , medicationPrescribed , 'DrugDescription' , coding . display ) ;
244237 var productCode = doc . createElement ( 'ProductCode' ) ;
245238 xmlAddTextNode ( doc , productCode , 'Code' , coding . code ) ;
246239 xmlAddTextNode ( doc , productCode , 'Qualifier' , 'ND' ) ; // National Drug Code (NDC)
0 commit comments