Skip to content

Commit 6dde94c

Browse files
authored
Merge branch 'dev' into dependabot/npm_and_yarn/npm_and_yarn-511caccbb4
2 parents d2ace7f + 3d0b28e commit 6dde94c

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

src/components/DisplayBox/DisplayBox.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,13 @@ const DisplayBox = props => {
355355
{summarySection}
356356
</Typography>
357357

358+
<div>
359+
<Typography variant="div">{detailSection}</Typography>
360+
</div>
361+
358362
{/* Forms */}
359363
{linksSection.length !== 0 ? (
360364
<div>
361-
<Typography variant="div">{detailSection}</Typography>
362365
<Typography color="text.secondary">Required Forms</Typography>
363366
<List className={'links-section'}>{linksSection}</List>
364367
</div>

src/util/buildScript.2017071.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,20 +227,29 @@ function buildNewRxMedication(doc, medicationRequestResource) {
227227
// loop through the coding values and find the ndc code and the rxnorm code
228228
let medicationCodingList =
229229
getDrugCodeableConceptFromMedicationRequest(medicationRequestResource)?.coding;
230+
231+
var drugDisplay = 'undefined';
230232
for (let i = 0; i < medicationCodingList.length; i++) {
231233
const coding = medicationCodingList[i];
232234
const system = coding.system.toLowerCase();
233235

236+
// get the display from first drug coding that contains a display value
237+
if (coding.display && drugDisplay == 'undefined') {
238+
drugDisplay = coding.display;
239+
}
240+
234241
if (system.endsWith('ndc')) {
235242
// Medication Drug Code
236-
xmlAddTextNode(doc, medicationPrescribed, 'DrugDescription', coding.display);
237243
var productCode = doc.createElement('ProductCode');
238244
xmlAddTextNode(doc, productCode, 'Code', coding.code);
239245
xmlAddTextNode(doc, productCode, 'Qualifier', 'ND'); // National Drug Code (NDC)
240246
drugCoded.appendChild(productCode);
241247
}
242248
}
243249

250+
// set the drug description
251+
xmlAddTextNode(doc, medicationPrescribed, 'DrugDescription', drugDisplay);
252+
244253
medicationPrescribed.appendChild(drugCoded);
245254

246255
// Medication Quantity

vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
base: '',
1111
plugins: [react(), viteTsconfigPaths(), nodePolyfills()],
1212
preview: {
13-
allowedHosts: ['.mitre.org', '.us-east-1.elb.amazonaws.com'],
13+
allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com']
1414
},
1515
define: {
1616
'process.env': process.env
@@ -22,7 +22,9 @@ export default defineConfig({
2222
// this sets a default port to 3000
2323
port: 3000,
2424
open: false,
25-
host: true
25+
host: true,
26+
allowedHosts: ['.mitre.org', '.elb.us-east-1.amazonaws.com']
27+
2628
},
2729
build: {
2830
outDir: 'build',

0 commit comments

Comments
 (0)