Skip to content

Commit

Permalink
changed the default concept_value to 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoPang committed Oct 3, 2024
1 parent 07e7a1e commit 733768e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cehrbert_data/utils/spark_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def join_domain_tables(domain_tables: List[DataFrame]) -> DataFrame:
filtered_domain_table["visit_occurrence_id"],
F.lit(table_domain_field).alias("domain"),
F.concat(F.lit(table_domain_field), F.lit("-"), F.col("domain_id")).alias("event_group_id"),
F.lit(-1).alias("concept_value"),
F.lit(0.0).alias("concept_value"),
unit_udf.alias("unit"),
).distinct()

Expand Down Expand Up @@ -1411,7 +1411,7 @@ def process_measurement(
m.visit_occurrence_id,
'categorical_measurement' AS domain,
CAST(NULL AS STRING) AS unit,
-1.0 AS concept_value,
0.0 AS concept_value,
CONCAT('measurement-', CAST(m.measurement_id AS STRING)) AS event_group_id
FROM measurement AS m
WHERE EXISTS (
Expand Down

0 comments on commit 733768e

Please sign in to comment.