View Source Glific.Clients.Stir (Glific v5.1.6)

Example implementation of survey computation for STiR Glific.Clients.Stir.compute_art_content(res)

Link to this section Summary

Functions

Return art content

Return integer depending on number of n as response in messages

Return total score

Get a GCS file name for specific user

Link to this section Functions

Link to this function

compute_art_content(results)

View Source
@spec compute_art_content(map()) :: String.t()

Return art content

Link to this function

compute_art_results(results)

View Source
@spec compute_art_results(map()) :: non_neg_integer()

Return integer depending on number of n as response in messages

Link to this function

compute_survey_score(results)

View Source
@spec compute_survey_score(map()) :: map()

Return total score

@spec gcs_file_name(map()) :: String.t()

Get a GCS file name for specific user