Documentation ¶
Index ¶
Constants ¶
const ( // SecondaryUseForbidden : Do not ever share associated data with new secondary projects. SecondaryUseForbidden int // OptIn : By default, do not share associated data with new secondary projects. // Participant will opt-in to the secondary-use projects they desire to participate in. OptIn // OptOut : By default, share associated data with new secondary projects. // Participant will opt-out of the secondary-use projects that they do not desire to participate in. OptOut )
These constants capture the enum values for the genetic & clinical "Consent Styles",
the styles of default consent that may be used to initialize participation in new secondary-use projects.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultConsent ¶
type DefaultConsent struct { ID uuid.UUID `json:"id" db:"id"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` ParticipantID uuid.UUID `json:"participant_id" db:"participant_id"` Participant *Participant `json:"participant" belongs_to:"participant"` GeneticConsentStyle int `json:"genetic_consent_style" db:"genetic_consent_style"` ClinicalConsentStyle int `json:"clinical_consent_style" db:"clinical_consent_style"` }
DefaultConsent : The ORM-side representation of the ConsentStyle data object.
The consent to secondary use that a participant makes by default, when their data is DAC-approved for reuse. The DefaultConsent is used to initialize a ProjectConsent.
func (DefaultConsent) String ¶
func (d DefaultConsent) String() string
String is not required by pop and may be deleted
func (*DefaultConsent) Validate ¶
func (d *DefaultConsent) Validate(tx *pop.Connection) (*validate.Errors, error)
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
type DefaultConsents ¶
type DefaultConsents []DefaultConsent
DefaultConsents is not required by pop and may be deleted
func (DefaultConsents) String ¶
func (d DefaultConsents) String() string
String is not required by pop and may be deleted
type Participant ¶
type Participant struct { ID uuid.UUID `json:"id" db:"id"` DefaultConsent DefaultConsent `json:"default_consent" has_one:"default_consent"` ProjectConsents ProjectConsents `json:"project_consents,omitempty" has_many:"project_consents"` }
func (Participant) String ¶
func (s Participant) String() string
String is not required by pop and may be deleted
func (*Participant) Validate ¶
func (s *Participant) Validate(tx *pop.Connection) (*validate.Errors, error)
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
type Participants ¶
type Participants []Participant
Participants is not required by pop and may be deleted
func (Participants) String ¶
func (s Participants) String() string
String is not required by pop and may be deleted
type ProjectConsent ¶
type ProjectConsent struct { ID uuid.UUID `json:"id" db:"id"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` ParticipantID uuid.UUID `json:"participant_id" db:"participant_id"` Participant *Participant `json:"participant" belongs_to:"participant"` ProjectApplicationID int `json:"project_application_id" db:"project_application_id"` GeneticConsent bool `json:"genetic_consent" db:"genetic_consent"` ClinicalConsent bool `json:"clinical_consent" db:"clinical_consent"` }
func (ProjectConsent) String ¶
func (p ProjectConsent) String() string
String is not required by pop and may be deleted
func (*ProjectConsent) Validate ¶
func (p *ProjectConsent) Validate(tx *pop.Connection) (*validate.Errors, error)
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
type ProjectConsents ¶
type ProjectConsents []ProjectConsent
ProjectConsents is not required by pop and may be deleted
func (ProjectConsents) String ¶
func (p ProjectConsents) String() string
String is not required by pop and may be deleted