Skip to content

Commit

Permalink
Merge pull request #569 from episphere/stage
Browse files Browse the repository at this point in the history
Stage -> Prod Sync (Mar. Release)
  • Loading branch information
we-ai authored Mar 29, 2024
2 parents cfcd087 + bda5e68 commit 5262054
Show file tree
Hide file tree
Showing 11 changed files with 624 additions and 98 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@sendgrid/eventwebhook": "^8.0.0",
"@sendgrid/mail": "^8.1.0",
"crypto": "^1.0.1",
"crypto-js": "^4.2.0",
"fast-crc32c": "^2.0.0",
"firebase-admin": "^11.11.1",
"firebase-functions": "^4.5.0",
Expand Down
17 changes: 0 additions & 17 deletions utils/biospecimen.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,23 +817,6 @@ const biospecimenAPIs = async (req, res) => {
}
}

else if(api == 'assignKit'){
if(req.method !== 'POST') {
return res.status(405).json(getResponseJSON('Only POST requests are accepted!', 405));
}
let requestData = req.body;
if(Object.keys(requestData).length === 0 ) return res.status(400).json(getResponseJSON('Request body is empty!', 400));
try {
const { assignKitToParticipant } = require('./firestore');
const response = await assignKitToParticipant(requestData);
return res.status(200).json({data: response, code:200});
}
catch {
console.error(error);
return res.status(500).json(getResponseJSON(error.message, 500));
}
}

else if(api == 'getKitData'){
if(req.method !== 'GET') {
return res.status(405).json(getResponseJSON('Only GET requests are accepted!', 405));
Expand Down
99 changes: 98 additions & 1 deletion utils/fieldToConceptIdMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ module.exports = {
destroyDataCategorical: 883668444,
requestedAndSign: 704529432,
dataHasBeenDestroyed: 861639549,
dataDestroyedStatus: 884452262,
signedInFlag:230663853,
consentFormSubmitted: 919254129,
},
// home collection
returnKitTrackingNum: 972453354,
Expand Down Expand Up @@ -167,6 +170,16 @@ module.exports = {
collectionDateTimeStamp: 678166505,
collectionCardFlag: 137401245,
collectionAddtnlNotes: 260133861,
collectionDetails: 173836415,
baseline: 266600170,
bioKitMouthwash: 319972665,
withdrawConsent: 747006172,
activityParticipantRefusal: 685002411,
baselineMouthwashSample: 277479354,
bloodOrUrineCollected: 156605577,
bloodOrUrineCollectedTimestamp: 740582332,
collectionRound: 418571751,
mouthwashKit: 976461859,

// EMR participant deceased data
participantDeceased: 857217152,
Expand Down Expand Up @@ -257,5 +270,89 @@ module.exports = {
notYetEligible: 789467219,
notStarted: 972455046,
started: 615768760,
submitted: 231311385
submitted: 231311385,
dataDestruction: {
consentFirstName: 471168198,
consentMiddleName: 436680969,
consentLastName: 736251808,
consentSuffixName: 480305327,
userProfileNameFirstName: 399159511,
userProfileNameMiddleName: 231676651,
userProfileNameLastName: 996038075,
userProfileNameSuffixName: 506826178,
dateOfBirth: 371067537,
birthMonth: 564964481,
birthDay: 795827569,
birthYear: 544150384,
healthcareProvider: 827220437,
informedConsentFlag: 919254129,
informedConsentVersion: 454205108,
informedConsentDateSigned: 454445267,
verificationStatus: 821247024,
verificationDate: 914594314,
hipaaAuthorizationFlag: 558435199,
hipaaAuthorizationVersion: 412000022,
hipaaAuthorizationDateSigned: 262613359,
userProfileSubmittedFlag: 699625233,
hipaaRevocationFlag: 773707518,
withdrawalFlag: 747006172,
dateOfWithdrawal: 659990606,
whoRequestedWithdrawal:299274441,
whoRequestedWithdrawalOther: 457532784,
reasonsForWithdrawal: 919699172,
hipaaRevocationFormHasBeenSigned: 153713899,
hipaaRevocationCategorical: 577794331,
dateOfSignatureOnHIPAARevocationForm: 613641698,
versionOfTheHIPAARevocationForm: 407743866,
nameExtractedFromSignedHIPAARevocationFormFirstName: 765336427,
nameExtractedFromSignedHIPAARevocationFormMiddleName: 826240317,
nameExtractedFromSignedHIPAARevocationFormLastName: 479278368,
nameExtractedFromSignedHIPAARevocationFormSuffix: 693626233,
dataDestructionRequest: 831041022,
dateOfDestructionRequest: 269050420,
whoRequestedDataDestruction: 524352591,
whoRequestedDataDestructionOther: 902332801,
dataDestructionRequestFormHasBeenSigned: 359404406,
dataDestructionCategoricalFlag: 883668444,
dateOfSignatureOnDataDestructionRequestForm: 119449326,
versionOfTheDataDestructionRequestForm: 304438543,
nameExtractedFromSignedDataDestructionFormFirstName: 104278817,
nameExtractedFromSignedDataDestructionFormMiddleName: 268665918,
nameExtractedFromSignedDataDestructionFormLastName: 744604255,
nameExtractedFromSignedDataDestructionFormSuffixName: 592227431,
dataHasBeenDestroyedFlag: 861639549,
participationStatus: 912301837,
incentive: 130371375,
incentiveEligible: 731498909,
dateIncentiveEligible: 787567527,
norcIncentiveEligible: 222373868,
incentiveIssued: 648936790,
dateIncentiveIssued: 297462035,
incentiveRefused: 648228701,
dateIncentiveRefused: 438636757,
norcCaseNumber: 320023644,
bloodUrineMouthwashCombinedResearchSurveyFlag: 265193023,
autogeneratedDateTimeWhenBloodUrineMouthwashResearchSurveyCompleted: 222161762,
bloodUrineSurveyCompletionFlag: 253883960,
autogeneratedDateTimeWhenBloodUrineSurveyCompleted: 764863765,
mouthwashSurveyCompletionFlag: 547363263,
autogeneratedDateTimeWhenMouthwashSurveyCompleted: 195145666,
menstrualCycleSurveyCompletionFlag: 459098666,
autogeneratedDateTimeWhenMenstrualCycleSurveyCompleted: 217640691,
covid19SurveyCompletionFlag: 220186468,
autogeneratedDateTimeWhenCOVID19SurveyCompleted: 784810139,
surveyCompletionFlag: 320303124,
autogeneratedDateTimeWhenPROMISSurveyCompleted: 843688458,
baselineSurveyStatusModuleBackgroundAndOverallHealthFlag: 949302066,
autogeneratedDateTimeStampForCompletionOfModuleBackgroundAndOverallHealth: 517311251,
baselineSurveyStatusModuleMedications: 536735468,
autogeneratedDateTimeStampForCompletionOfModuleMedications: 832139544,
baselineSurveyStatusModuleSmoking: 976570371,
autogeneratedDateTimeStampForCompletionOfModuleSmoking: 770257102,
baselineSurveyStatusModuleWhereYouLiveAndWorkFlag: 663265240,
autogeneratedDateTimeStampForCompletionOfModuleWhereYouLiveAndWork: 264644252,
snsnSurveyFlag: 126331570,
autogeneratedDateTimeWhenSSNSurveyCompleted: 315032037,
allBiospecimenCollectionDetailsData: 173836415
}
};
Loading

0 comments on commit 5262054

Please sign in to comment.