Skip to content

Commit

Permalink
Merge Staging into master (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocshawn authored Nov 8, 2024
1 parent 5bec9c0 commit b2fdd94
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GEN3_COMMONS_NAME=bih
NEXT_PUBLIC_GEN3_API='https://imaging-hub.data-commons.org'
NEXT_PUBLIC_GEN3_API=https://bihstaging.data-commons.org
113 changes: 68 additions & 45 deletions config/bih/explorer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{
"tabTitle": "Series",
"charts": {
"gen3_discovery.commons": {
"commons_name": {
"chartType": "fullPie",
"title": "Platform"
},
"gen3_discovery.primary_site": {
"primary_site": {
"chartType": "fullPie",
"title": "Primary Site"
},
"gen3_discovery.disease_type": {
"disease_type": {
"chartType": "fullPie",
"title": "Disease Type"
}
Expand All @@ -20,12 +20,12 @@
{
"title": "Study Selection",
"fields": [
"gen3_discovery.PatientSex",
"gen3_discovery.Modality",
"gen3_discovery.BodyPartExamined",
"gen3_discovery.primary_site",
"gen3_discovery.disease_type",
"gen3_discovery.commons"
"PatientSex",
"Modality",
"BodyPartExamined",
"primary_site",
"disease_type",
"commons_name"
]
}
]
Expand All @@ -37,105 +37,130 @@
"label": "Maximum of 10,000 Total Records. Records per Page:"
},
"fields": [
"gen3_discovery.dicom_viewer_url",
"gen3_discovery.StudyInstanceUID",
"gen3_discovery.StudyDescription",
"gen3_discovery.BodyPartExamined",
"gen3_discovery.primary_site",
"gen3_discovery.disease_type",
"gen3_discovery.commons",
"gen3_discovery.collection_id",
"gen3_discovery.SeriesInstanceUID",
"gen3_discovery.SeriesDescription"
"dicom_viewer_url",
"StudyInstanceUID",
"StudyDescription",
"BodyPartExamined",
"primary_site",
"disease_type",
"commons_name",
"collection_id",
"license",
"data_url_doi",
"SeriesInstanceUID",
"SeriesDescription"
],
"columns": {
"gen3_discovery.StudyInstanceUID": {
"StudyInstanceUID": {
"title": "Study ID"
},
"gen3_discovery.StudyDescription": {
"StudyDescription": {
"title": "Study Description",
"sortable": false
},
"gen3_discovery.dicom_viewer_url": {
"dicom_viewer_url": {
"title": "",
"type": "link",
"width" : "32px",
"cellRenderFunction": "DiacomLink"
},
"gen3_discovery.SeriesDescription": {
"SeriesDescription": {
"title": "Series Description",
"sortable": false
},
"gen3_discovery.BodyPartExamined": {
"BodyPartExamined": {
"title": "Body Part Examined"
},
"gen3_discovery.SeriesInstanceUID": {
"SeriesInstanceUID": {
"title": "Series Images"
},
"gen3_discovery.commons": {
"commons_name": {
"title": "Platform",
"type": "link",
"cellRenderFunction": "linkWithValueMap",
"params": {
"valueToURL": {
"ACRdart": "https://dart.acr.org/Home/ImagingHub",
"IDC": "https://portal.imaging.datacommons.cancer.gov/explore/",
"MIDRC": "https://data.midrc.org",
"Stanford AIMI": "https://stanfordaimi.azurewebsites.net/",
"DART": "https://dart.acr.org/",
"ACRdart": "https://dart.acr.org/Home/ImagingHub"
"TCIA": "https://www.cancerimagingarchive.net/"
}
}
},
"gen3_discovery.collection_id": {
"collection_id": {
"title": "Collection"
},
"license": {
"title": "License",
"type": "link",
"cellRenderFunction": "linkURL",
"sortable": false,
"params": {
"href": ""
}
},
"data_url_doi": {
"title": "DOI",
"type": "link",
"cellRenderFunction": "linkURL",
"sortable": false
}
}
},
"guppyConfig": {
"dataType": "metadata",
"dataType": "imaging_series",
"nodeCountTitle": "Imaging Series",
"fieldMapping": [
{
"field": "gen3_discovery.StudyInstanceUID",
"field": "StudyInstanceUID",
"name": "Study ID"
},
{
"field": "gen3_discovery.SeriesDescription",
"field": "SeriesDescription",
"name": "Series Description"
},
{
"field": "gen3_discovery.BodyPartExamined",
"field": "BodyPartExamined",
"name": "Body Part Examined"
},
{
"field": "gen3_discovery.PatientSex",
"field": "PatientSex",
"name": "Gender"
},
{
"field": "gen3_discovery.primary_site",
"field": "primary_site",
"name": "Primary Site"
},
{
"field": "gen3_discovery.disease_type",
"field": "disease_type",
"name": "Disease Type"
},
{
"field": "gen3_discovery.commons",
"field": "commons_name",
"name": "Platform"
},
{
"field": "gen3_discovery.collection_id",
"field": "collection_id",
"name": "Collection ID"
},
{
"field": "license",
"name": "License"
},
{
"field": "data_url_doi",
"name": "DOI"
}
],
"manifestMapping": {
"resourceIndexType": "metadata",
"resourceIdField": "gen3_discovery.StudyInstanceUID",
"resourceIndexType": "imaging_series",
"resourceIdField": "StudyInstanceUID",
"referenceIdFieldInResourceIndex": "StudyInstanceUID",
"referenceIdFieldInDataIndex": "StudyInstanceUID"
},
"accessibleFieldCheckList": ["authz"],
"accessibleValidationField": "gen3_discovery.authz"
"accessibleValidationField": "auth_resource_path"
},
"loginForDownload": false,
"dropdowns": {
Expand All @@ -153,8 +178,7 @@
"rightIcon": "download",
"action": "data-json",
"actionArgs": {
"filename": "MIDRC_Series_table.json",
"rootPath": "gen3_discovery"
"filename": "BIH_Series_table.json"
}
},
{
Expand All @@ -165,8 +189,7 @@
"rightIcon": "download",
"action": "data-csv",
"actionArgs": {
"filename": "MIDRC_Series_table.csv",
"rootPath": "gen3_discovery"
"filename": "BIH_Series_table.csv"
}
}
]
Expand Down
25 changes: 12 additions & 13 deletions config/bih/gitops.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,20 @@
"gaTrackingId": "UA-119127212-4",
"graphql": {
"boardCounts": [
{
"graphql": "_study_count",
"name": "Study",
"plural": "Studies"
},
{
"graphql": "_subject_count",
"name": "Subject",
"plural": "Subjects"
},
{
"graphql": "_sample_count",
"name": "Sample",
"plural": "Samples"
"graphql": "_imaging_study_count",
"name": "Imaging Study",
"plural": "Imaging Studies"
},
{
"graphql": "_imaging_file_count",
"name": "Imaging File",
"plural": "Imaging Files"
"graphql": "_imaging_series_count",
"name": "Imaging Series",
"plural": "Imaging Series"
}
],
"chartCounts": [
Expand All @@ -29,8 +24,12 @@
"name": "Subject"
},
{
"graphql": "_imaging_file_count",
"name": "Imaging File"
"graphql": "_imaging_study_count",
"name": "Imaging Study"
},
{
"graphql": "_imaging_series_count",
"name": "Imaging Series"
}
],
"projectDetails": "boardCounts"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"@grafana/faro-web-sdk": "^1.9.1",
"@grafana/faro-web-tracing": "^1.9.1",
"@mantine/core": "^7.13.3",
"@mantine/dates": "^7.13.3",
"@mantine/form": "^7.13.3",
"@mantine/hooks": "^7.13.3",
"@mantine/modals": "^7.13.3",
"@mantine/dates": "^7.13.3",
"@mantine/notifications": "^7.13.3",
"@mdx-js/loader": "^3.0.0",
"@mdx-js/react": "^3.0.0",
Expand All @@ -49,8 +49,8 @@
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.7",
"@types/mdx": "^2.0.13",
"@types/lodash": "^4.14.202",
"@types/mdx": "^2.0.13",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^7.12.0",
Expand Down

0 comments on commit b2fdd94

Please sign in to comment.