Skip to content

Commit

Permalink
fix: CQDG-00 more small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adipaul1981 committed Oct 18, 2024
1 parent c230825 commit 1c60b7c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ object Transformations {
filter(col("type")("coding"), col => col("system") === DOCUMENT_DATA_TYPE)(0)
)
.withColumn("data_type", when(isnull(col("data_type_cs")("display")), col("data_type_cs")("code"))
.otherwise(col("data_type_cs")("code"))
.otherwise(col("data_type_cs")("display"))
)
.withColumn("data_category_cs",
filter(col("category")(0)("coding"), col => col("system") === DOCUMENT_DATA_CATEGORY)(0)
)
.withColumn("data_category", when(isnull(col("data_category_cs")("display")), col("data_category_cs")("display"))
.otherwise(col("data_category_cs")("code"))
.withColumn("data_category", when(isnull(col("data_category_cs")("display")), col("data_category_cs")("code"))
.otherwise(col("data_category_cs")("display"))
)
.withColumn("content_exp", explode(col("content")))
.withColumn("file_size", retrieveSize(firstNonNull(filter(col("content_exp")("attachment")("extension"), col => col("url") === DOCUMENT_SIZE_S_D))("fileSize")))
Expand Down

0 comments on commit 1c60b7c

Please sign in to comment.