Skip to content

Commit

Permalink
Merge pull request #566 from episphere/addcampaigntypevariables
Browse files Browse the repository at this point in the history
SiteManager Dashboard: Added new variables under campaign types
  • Loading branch information
abhinavjonnada82 authored Aug 24, 2023
2 parents 5b6574f + d9dfea6 commit 06915bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions siteManagerDashboard/fieldToConceptIdMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ export default
'lowIncomeAreas': 663706936,
'studyIdTimeStamp': 521025370,
'automatedVerification': 444699761,
'researchRegistry': 208952854,
'popUp': 296312382,
'outreachRequiredForVerification': 188797763,
'manualVerification': 953614051,
'duplicateType': 148197146,
Expand Down
6 changes: 5 additions & 1 deletion siteManagerDashboard/participantCommons.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,13 @@ const tableTemplate = (data, showButtons) => {
template += `<td>${participant['state'][fieldMapping.campaignType.toString()] ? `Technology Adapters` : ``}</td>`
: ( participant['state'][fieldMapping.campaignType.toString()] === fieldMapping.lowIncomeAreas ) ?
template += `<td>${participant['state'][fieldMapping.campaignType.toString()] ? `Low Income Areas/Health Professional Shortage Areas` : ``}</td>`
: ( participant['state'][fieldMapping.campaignType.toString()] === fieldMapping.researchRegistry ) ?
template += `<td>${participant['state'][fieldMapping.campaignType.toString()] ? `Research Registry` : ``}</td>`
: ( participant['state'][fieldMapping.campaignType.toString()] === fieldMapping.popUp ) ?
template += `<td>${participant['state'][fieldMapping.campaignType.toString()] ? `Pop up` : ``}</td>`
: ( participant['state'][fieldMapping.campaignType.toString()] === fieldMapping.noneOftheAbove ) ?
template += `<td>${participant['state'][fieldMapping.campaignType.toString()] ? `None of the Above` : ``}</td>`
:
:
template += `<td>${participant['state'][fieldMapping.campaignType.toString()] ? `Other` : ``}</td>`)
)
: (x === (fieldMapping.enrollmentStatus).toString()) ?
Expand Down

0 comments on commit 06915bb

Please sign in to comment.