studyutils

package
v0.0.0-...-a860dbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ID_MAPPING_SAME       = "same"
	ID_MAPPING_AESCTR     = "aesctr"
	ID_MAPPING_SHA224     = "sha224"
	ID_MAPPING_SHA224_B64 = "sha224-b64"
	ID_MAPPING_SHA256     = "sha256"
	ID_MAPPING_SHA256_B64 = "sha256-b64"
)

Variables

This section is empty.

Functions

func CleanUpOrphanedTaskResults

func CleanUpOrphanedTaskResults(
	instanceID string,
	studyDBService *studydb.StudyDBService,
	rootPath string,
)

func ProfileIDtoParticipantID

func ProfileIDtoParticipantID(userID string, globalSecret string, studySecret string, method string) (string, error)

ProfileIDtoParticipantID encrypts userID to be used as participant ID

Types

type ConfidentialResponsesExportEntry

type ConfidentialResponsesExportEntry struct {
	ParticipantID string `json:"participantID"`
	EntryID       string `json:"entryID"`
	ResponseKey   string `json:"responseKey"`
	Value         string `json:"value"`
}

func PrepConfidentialResponseExport

func PrepConfidentialResponseExport(resp studyTypes.SurveyResponse, realPID string, respKeyFilter []string) []ConfidentialResponsesExportEntry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL