From aeadff78047d0abd828bfea06847f2128b53f14e Mon Sep 17 00:00:00 2001 From: Alan Francis Date: Fri, 3 May 2024 14:46:15 +0530 Subject: [PATCH] fix: multiple sets are processed fhir is created for all sets even if one of the file is missing a column/field --- src/ahc-hrsn-elt/screening/orchestrate.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ahc-hrsn-elt/screening/orchestrate.ts b/src/ahc-hrsn-elt/screening/orchestrate.ts index ccbe76b6..33f4ad18 100644 --- a/src/ahc-hrsn-elt/screening/orchestrate.ts +++ b/src/ahc-hrsn-elt/screening/orchestrate.ts @@ -698,8 +698,14 @@ export class OrchEngine { ); if (ingestable) ingestable.issues.push(row); for (const groupName of uniqueGroups) { - if (row.ingest_table_name.includes(groupName)) { - errGroupName.push(groupName); + if ( + row.ingest_table_name.includes(govn.toSnakeCase( + groupName.toLowerCase(), + )) + ) { + errGroupName.push(govn.toSnakeCase( + groupName.toLowerCase(), + )); } } }