Skip to content

Commit

Permalink
🐛 fix the bug when there is no result.mappedFhirResource in convertTo…
Browse files Browse the repository at this point in the history
…FhirMappingResultsForInput for mapping testing
  • Loading branch information
YemreGurses committed Nov 1, 2024
1 parent 1b4caef commit d767f93
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,7 @@ object FhirMappingResultConverter {
error = firstResult.error,
executionId = firstResult.executionId,
projectId = firstResult.projectId,
mappedFhirResources = results.map { result =>
// Create MappedFhirResource for each result in the group
MappedFhirResource(
mappingExpr = result.mappedFhirResource.get.mappingExpr,
mappedResource = result.mappedFhirResource.get.mappedResource,
fhirInteraction = result.mappedFhirResource.get.fhirInteraction
)
}
mappedFhirResources = results.flatMap(_.mappedFhirResource)
)
}
}

0 comments on commit d767f93

Please sign in to comment.