Skip to content

Commit

Permalink
fix: CQDG-268 rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adipaul1981 committed Jan 4, 2024
1 parent 0add47f commit 08fc989
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ object Utils {
}

def addDiagnosisPhenotypes(phenotypeDF: DataFrame, diagnosesDF: DataFrame)(hpoTerms: DataFrame, mondoTerms: DataFrame, icdTerms: DataFrame): DataFrame = {
val (observedPhenotypes, nonObservedPhenotypes, observedPhenotypesWithAncestors, phenotypes) = getTaggedPhenotypes(phenotypeDF, hpoTerms)
val (observedPhenotypes, observedPhenotypesWithAncestors, phenotypes) = getTaggedPhenotypes(phenotypeDF, hpoTerms)

val (diagnosis, mondoWithAncestors) = getDiagnosis(diagnosesDF, mondoTerms, icdTerms)

Expand All @@ -97,7 +97,6 @@ object Utils {
.drop("cqdg_participant_id")
.join(phenotypes, col("fhir_id") === col("cqdg_participant_id"), "left_outer")
.join(observedPhenotypes, Seq("cqdg_participant_id"), "left_outer")
.join(nonObservedPhenotypes, Seq("cqdg_participant_id"), "left_outer")
.join(observedPhenotypesWithAncestors, Seq("cqdg_participant_id"), "left_outer")
.drop("cqdg_participant_id")
.withColumnRenamed("fhir_id", "participant_id")
Expand Down

0 comments on commit 08fc989

Please sign in to comment.