Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(search): field name typos
Browse files Browse the repository at this point in the history
Closes #1878
  • Loading branch information
Christine Yu committed Mar 22, 2016
1 parent b926698 commit a7de75e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/scripts/search/search.participants.table.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,26 +174,26 @@ module ngApp.search.models {
hidden: true
}, {
name: 'Age at diagnosis',
id: 'diagnosis.age_at_diagnosis',
td: (row, $scope) => (row.diagnosis && $scope.$filter("ageDisplay")(row.diagnosis.age_at_diagnosis)) || "--",
id: 'diagnoses.age_at_diagnosis',
td: (row, $scope) => (row.diagnoses && $scope.$filter("ageDisplay")(row.diagnoses.age_at_diagnosis)) || "--",
sortable: false,
hidden: true
}, {
name: 'Days to death',
id: 'diagnosis.days_to_death',
td: (row, $scope) => (row.diagnosis && $scope.$filter("number")(row.diagnosis.days_to_death, 0)) || "--",
id: 'diagnoses.days_to_death',
td: (row, $scope) => (row.diagnoses && $scope.$filter("number")(row.diagnoses.days_to_death, 0)) || "--",
sortable: false,
hidden: true
}, {
name: 'Vital Status',
id: 'diagnosis.vital_status',
td: (row, $scope) => row.diagnosis && $scope.$filter("humanify")(row.diagnosis.vital_status),
id: 'diagnoses.vital_status',
td: (row, $scope) => row.diagnoses && $scope.$filter("humanify")(row.diagnoses.vital_status),
sortable: false,
hidden: true
}, {
name: 'Year of diagnosis',
id: 'diagnosis.year_of_diagnosis',
td: (row, $scope) => (row.diagnosis && row.diagnosis.year_of_diagnosis) || "--",
id: 'diagnoses.year_of_diagnosis',
td: (row, $scope) => (row.diagnoses && row.diagnoses.year_of_diagnosis) || "--",
sortable: false,
hidden: true
}, {
Expand Down Expand Up @@ -235,7 +235,7 @@ module ngApp.search.models {
"summary.data_categories",
"clinical",
"demographic",
"diagnosis"
"diagnoses"
],
facets: [
{name: "case_id", title: "Case", collapsed: false, facetType: "free-text", placeholder: "Case Barcode or Uuid"},
Expand All @@ -244,7 +244,7 @@ module ngApp.search.models {
{name: "project.project_id", title: "Project", collapsed: false, facetType: "terms"},
{name: "project.disease_type", title: "Disease Type", collapsed: false, facetType: "terms"},
{name: "demographic.gender", title: "Gender", collapsed: true, facetType: "terms"},
{name: "diagnosis.age_at_diagnosis", title: "Age at diagnosis", hasGraph: true, collapsed: false, facetType: "range", unitsMap: [
{name: "diagnoses.age_at_diagnosis", title: "Age at diagnosis", hasGraph: true, collapsed: false, facetType: "range", unitsMap: [
{
"label": "years",
"conversionDivisor": 365,
Expand All @@ -254,10 +254,10 @@ module ngApp.search.models {
"conversionDivisor": 1,
}
]},
{name: "diagnosis.vital_status", title: "Vital Status", collapsed: false, facetType: "terms"},
{name: "diagnosis.days_to_death", title: "Days to Death", collapsed: true, facetType: "range", hasGraph: true},
{name: "diagnoses.vital_status", title: "Vital Status", collapsed: false, facetType: "terms"},
{name: "diagnoses.days_to_death", title: "Days to Death", collapsed: true, facetType: "range", hasGraph: true},
{name: "demographic.race", title: "Race", collapsed: true, facetType: "terms"},
{name: "demographic.ethincity", title: "Ethnicity", collapsed: true, facetType: "terms"}
{name: "demographic.ethnicity", title: "Ethnicity", collapsed: true, facetType: "terms"}
]
};
angular.module("search.table.participants.model", [])
Expand Down

0 comments on commit a7de75e

Please sign in to comment.