Documentation ¶
Index ¶
- func DefaultConsentAPIToData(apiDefaultConsent apimodels.DefaultConsent, participantID uuid.UUID) (*datamodels.DefaultConsent, error)
- func DefaultConsentDataToAPI(dataDefaultConsent datamodels.DefaultConsent) (*apimodels.DefaultConsent, error)
- func ParticipantDataToAPI(dataParticipant datamodels.Participant) (*apimodels.Participant, error)
- func ProjectConsentDataToAPI(dataProjectConsent datamodels.ProjectConsent) (*apimodels.ProjectConsent, error)
- func UUIDAPIToData(apiUUID strfmt.UUID, fieldName string) (*uuid.UUID, error)
- func UUIDDataToAPI(dataUUID uuid.UUID, fieldName string) (*strfmt.UUID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConsentAPIToData ¶
func DefaultConsentAPIToData(apiDefaultConsent apimodels.DefaultConsent, participantID uuid.UUID) (*datamodels.DefaultConsent, error)
DefaultConsentAPIToData contains the model-building step of the api-model-to-data-model transformer. Since there is no Participant property contained in the DefaultConsent API model, the ParticipantID and Participant fields of the data model are not populated in this method, and must be handled seperately.
func DefaultConsentDataToAPI ¶
func DefaultConsentDataToAPI(dataDefaultConsent datamodels.DefaultConsent) (*apimodels.DefaultConsent, error)
DefaultConsentDataToAPI contains the model-building step of the data-model-to-api-model transformer.
func ParticipantDataToAPI ¶
func ParticipantDataToAPI(dataParticipant datamodels.Participant) (*apimodels.Participant, error)
ParticipantDataToAPI contains the model-building step of the data-model-to-api-model transformer.
func ProjectConsentDataToAPI ¶
func ProjectConsentDataToAPI(dataProjectConsent datamodels.ProjectConsent) (*apimodels.ProjectConsent, error)
ProjectConsentDataToAPI contains the model-building step of the data-model-to-api-model transformer.
func UUIDAPIToData ¶
UUIDAPIToData safely transforms an api-model UUID to a data-model UUID.
Types ¶
This section is empty.