Skip to content

Commit

Permalink
Fixing possible null error in Request template
Browse files Browse the repository at this point in the history
  • Loading branch information
dmendelowitz committed Nov 29, 2023
1 parent c18f75a commit b37265b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/CancerRelatedMedicationRequestTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function doseAndRateTemplate({ doseRateType, doseQuantityValue, doseQuantityUnit
function timingTemplate({ timingCode, timingEvent }) {
return {
timing: {
event: [timingEvent],
...(timingEvent && { event: [timingEvent] }),
code: { coding: [coding({ code: timingCode, system: 'http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation' })] },
},
};
Expand Down

0 comments on commit b37265b

Please sign in to comment.