Skip to content

Instantly share code, notes, and snippets.

@hasbifadilah
Last active June 12, 2020 03:09
Show Gist options
  • Save hasbifadilah/8e38cfb112890fd78b0451f14717b385 to your computer and use it in GitHub Desktop.
Save hasbifadilah/8e38cfb112890fd78b0451f14717b385 to your computer and use it in GitHub Desktop.

Constants

getStudyGroupListAction

Get study group list action

getQuestionnaireListByStudyGroupIdAction

Get Questionnaire List By Study Group Actions

downloadQuestionnaireFile

Download Questionnaire List By Questionnaire Id

getStudyGroupResultAction

Get Study Group Result Analytics Actions

getStudyListAction2

Get study list action v2.0

getStudyPortraitPanelAction

Get Study Portrait Panel Analytics Actions

getStudyPortraitResultAction

Get Study Portrait Result Analytics Actions

getSurveyAnswerAnalyticsAction

Get Survey Analytics Actions

studyGroupsBodyValidator

Study group data validator

createStudyGroupsAction

Create study group and bulk create study list

uploadQuestionnaireStudyGroupAction

Get Questionnaire List By Study Group Actions

updateQuestionnaireStudyGroupStatusAction

Approve questionnaire status

updateStudyGroupStatusBodyValidator

Study group data validator

updateStudyGroupStatusAction

Change Study Groups Status by activate extend or stop

updateStudyUrlBodyValidator

update study url validator

updateStudyUrlAction

Change Study Groups Url Status by submit or reject

Functions

populateDomicile(domicileAnalytics, payload)

Shapping and calculating payload result for Domicile desired result ex: { ...rest, Domicile: { "Jakarta Selatan": 1, "Jakarta Barat": 1, } }

studyListSanitizer()

Sanitize study data

blastReminderForAllUserScreening(study, participants, emailLog)

Blast study for screening type all user

blastReminderForWhitelistScreening(study, participants, emailLog)

Blast study for screening type whitelist

blastReminderForDefaultScreening(study, participants, emailLog)

Blast study for screening type default or portraits

getStudyGroupListAction ⇒

Get study group list action

Kind: global constant
Returns: async Request Handler

Param Type
_StudyGroup StudyGroup

getQuestionnaireListByStudyGroupIdAction ⇒

Get Questionnaire List By Study Group Actions

Kind: global constant
Returns: async Request Handler

Param Type
_QuestionnaireFile QuestionnaireFile

downloadQuestionnaireFile

Download Questionnaire List By Questionnaire Id

Kind: global constant

getStudyGroupResultAction

Get Study Group Result Analytics Actions

Kind: global constant

getStudyListAction2 ⇒

Get study list action v2.0

Kind: global constant
Returns: async Request Handler
Version: 2.0

Param Type Description
_Study Study Study Models

getStudyPortraitPanelAction

Get Study Portrait Panel Analytics Actions

Kind: global constant

getStudyPortraitResultAction

Get Study Portrait Result Analytics Actions

Kind: global constant

getSurveyAnswerAnalyticsAction

Get Survey Analytics Actions

Kind: global constant

studyGroupsBodyValidator

Study group data validator

Kind: global constant

createStudyGroupsAction

Create study group and bulk create study list

Kind: global constant

Param Type
_StudyGroup StudyGroup
_Study Study

uploadQuestionnaireStudyGroupAction ⇒

Get Questionnaire List By Study Group Actions

Kind: global constant
Returns: async Request Handler

Param Type
_S3Bucket S3Bucket

updateQuestionnaireStudyGroupStatusAction ⇒

Approve questionnaire status

Kind: global constant
Returns: async Request Handler

Param Type
_QuestionnaireFile QuestionnaireFile

updateStudyGroupStatusBodyValidator

Study group data validator

Kind: global constant

updateStudyGroupStatusAction ⇒

Change Study Groups Status by activate extend or stop

Kind: global constant
Returns: async Request Handler

Param Type
_StudyGroup StudyGroup
_Study Study
_SurveyQuestion SurveyQuestion
_ESService ESService
_StudyGroupsServices StudyGroupsServices

updateStudyUrlBodyValidator

update study url validator

Kind: global constant

updateStudyUrlAction ⇒

Change Study Groups Url Status by submit or reject

Kind: global constant
Returns: async Request Handler

Param Type
_StudyGroup StudyGroup
_Study Study
_ESService ESService
_StudyGroupsServices StudyGroupsServices

populateDomicile(domicileAnalytics, payload)

Shapping and calculating payload result for Domicile desired result ex: { ...rest, Domicile: { "Jakarta Selatan": 1, "Jakarta Barat": 1, } }

Kind: global function

Param Type
domicileAnalytics Object
payload Object

studyListSanitizer()

Sanitize study data

Kind: global function

blastReminderForAllUserScreening(study, participants, emailLog)

Blast study for screening type all user

Kind: global function

Param Type
study Object
participants Array
emailLog Array

blastReminderForWhitelistScreening(study, participants, emailLog)

Blast study for screening type whitelist

Kind: global function

Param Type
study Object
participants Array
emailLog Array

blastReminderForDefaultScreening(study, participants, emailLog)

Blast study for screening type default or portraits

Kind: global function

Param Type
study Object
participants Array
emailLog Array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment