Skip to content

Commit

Permalink
🐛 Fix phenotype source_text col in fam (INCLUDE) (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
evans-g-crsj authored Jun 15, 2023
1 parent 9f133ab commit b893f1e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/reports/family-clinical-data/configInclude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,8 @@ const phenotypes: SheetConfig = {
},
},
{
field: 'phenotype.hpo_phenotype_observed_text',
additionalFields: ['phenotype.hpo_phenotype_not_observed_text'],
field: 'phenotype.source_text',
header: 'Phenotype (Source Text)',
transform: (value, row) => {
if (!row.phenotype) {
return;
}
return value || row.phenotype.hpo_phenotype_not_observed_text;
},
},
{
field: 'phenotype.hpo_phenotype_observed',
Expand Down Expand Up @@ -101,7 +94,7 @@ const diagnoses: SheetConfig = {
},
{ field: 'diagnoses.source_text_tumor_location' },
],
sort: [{ 'families_id': 'asc' }, { participant_id: 'asc' }],
sort: [{ families_id: 'asc' }, { participant_id: 'asc' }],
};

export const queryConfigs: QueryConfig = {
Expand Down

0 comments on commit b893f1e

Please sign in to comment.