Skip to content

Commit

Permalink
Merge pull request #589 from episphere/add-orland-park-site-location
Browse files Browse the repository at this point in the history
Add Orland Park location to shipping dashboard
  • Loading branch information
Gbarra9 authored Sep 26, 2023
2 parents a04e486 + 55755cc commit d71c0ca
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/fieldToConceptIdMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ export default {
589224449 : 'Sioux Falls Imagenetics',
145191545 : 'Ingalls Harvey',
489380324 : 'River East',
319518299 : 'UCM Pop-Up',
940329442 : 'Orland Park',
567969985 : 'MF Pop-Up',
120264574 : 'South Loop',
691714762 : 'Rice Lake',
487512085 : 'Wisconsin Rapids',
Expand Down
4 changes: 2 additions & 2 deletions src/pages/shipping.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ export const addNewBox = async () => {

const largestLocationBoxNum = largestBoxNum === -1 ? -1 : getLargestLocationBoxId(boxList, siteLocationConversion);
const largestLocationBoxIndex = boxList.findIndex(box => box[conceptIds.shippingBoxId] === 'Box' + largestLocationBoxNum.toString());
const shouldCreateNewBox = Object.keys(boxList[largestLocationBoxIndex]['bags']).length !== 0 || largestLocationBoxIndex === -1;
const shouldCreateNewBox = Object.keys(boxList[largestLocationBoxIndex]?.['bags'] ?? {}).length !== 0 || largestLocationBoxIndex === -1;

if (shouldCreateNewBox) {
const boxToAdd = await createNewBox(boxList, siteLocationConversion, siteCode, largestBoxNum, docId);
if (!boxToAdd) {
Expand Down
24 changes: 20 additions & 4 deletions src/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ export const siteSpecificLocation = {
"Ingalls Harvey": {"siteAcronym":"UCM", "siteCode":809703864, "loginSiteName": "University of Chicago Medicine"},
"River East": {"siteAcronym":"UCM", "siteCode":809703864, "loginSiteName": "University of Chicago Medicine"},
"South Loop": {"siteAcronym":"UCM", "siteCode":809703864, "loginSiteName": "University of Chicago Medicine"},
"Orland Park": {"siteAcronym":"UCM", "siteCode":809703864, "loginSiteName": "University of Chicago Medicine"},
"Main Campus": {"siteAcronym":"NIH", "siteCode":13, "loginSiteName": "National Cancer Institute"},
"Frederick": {"siteAcronym":"NIH", "siteCode":13, "loginSiteName": "National Cancer Institute"},
}
Expand All @@ -1251,7 +1252,7 @@ export const locationConceptIDToLocationMap = {
},
},
752948709: {
siteSpecificLocation: 'Henry Ford Main Campus', // Note: should this be changed to "Henry Ford One Place"?
siteSpecificLocation: 'Henry Ford Main Campus',
siteAcronym: 'HFHS',
siteCode: '548392715',
loginSiteName: 'Henry Ford Health System',
Expand Down Expand Up @@ -1540,6 +1541,19 @@ export const locationConceptIDToLocationMap = {
}],
},
},
940329442: {
siteSpecificLocation: 'Orland Park',
siteAcronym: 'UCM',
siteCode: '809703864',
loginSiteName: 'University of Chicago Medicine',
contactInfo: {
"UCM":[{
"fullName":"N/A",
"email":"N/A",
"phone":["N/A"],
}],
},
},
111111111: {
siteSpecificLocation: 'Main Campus',
siteAcronym: 'NIH',
Expand All @@ -1557,7 +1571,7 @@ export const locationConceptIDToLocationMap = {
contactInfo: {
"NIH":[],
},
}
},
};

export const conceptIdToSiteSpecificLocation = {
Expand All @@ -1576,6 +1590,7 @@ export const conceptIdToSiteSpecificLocation = {
145191545: "Ingalls Harvey",
489380324: "River East",
120264574: "South Loop",
940329442: "Orland Park",
691714762: "Rice Lake",
487512085: "Wisconsin Rapids",
983848564: "Colby Abbotsford",
Expand All @@ -1585,7 +1600,7 @@ export const conceptIdToSiteSpecificLocation = {
589224449: "Sioux Falls Imagenetics",
777644826: "DCAM",
111111111: "Main Campus",
222222222: "Frederick"
222222222: "Frederick",
}

export const siteSpecificLocationToConceptId = {
Expand All @@ -1608,12 +1623,13 @@ export const siteSpecificLocationToConceptId = {
"Ingalls Harvey": 145191545,
"River East": 489380324,
"South Loop": 120264574,
"Orland Park": 940329442,
"Rice Lake": 691714762,
"Wisconsin Rapids": 487512085,
"Colby Abbotsford": 983848564,
"Minocqua": 261931804,
"Merrill": 665277300,
"Fargo South University": 467088902
"Fargo South University": 467088902,
}

export const nameToKeyObj =
Expand Down

0 comments on commit d71c0ca

Please sign in to comment.