Skip to content

Commit 3739e75

Browse files
Update src/templates/ConditionTemplate.js
Co-authored-by: Dylan Phelan <dtphelan1@gmail.com>
1 parent b23d516 commit 3739e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/ConditionTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function subjectTemplate({ subject }) {
9999
function conditionTemplate({
100100
subject, id, code, category, dateOfDiagnosis, clinicalStatus, verificationStatus, bodySite, laterality, histology,
101101
}) {
102-
if (!(id && subject && code.every((c) => c.system) && code.every((c) => c.code) && category)) {
102+
if (!(id && subject && code.every((c) => c.system && c.code) && category)) {
103103
throw Error('Trying to render a ConditionTemplate, but a required argument is missing; ensure that id, mrn, code, codesystem, and category are all present');
104104
}
105105

0 commit comments

Comments
 (0)