Documentation ¶
Index ¶
- Variables
- func AddIndexColumn(df dataframe.DataFrame) dataframe.DataFrame
- func CreateDataframeFromRecords(records [][]string, deduplicationTypes []deduplication.DeduplicationType, ...) (dataframe.DataFrame, error)
- func FindDuplicatesInUpload(config deduplication.DeduplicationConfig, df dataframe.DataFrame) []containers.Set[int]
- func GetRecordsFromIndividual(deduplicationTypes []deduplication.DeduplicationType, individual *Individual, ...) [][]string
- func MarshalIndividualsCSV(w io.Writer, individuals []*Individual) error
- func MarshalIndividualsExcel(w io.Writer, individuals []*Individual) error
- func NewIndividualListFromURLValues(values url.Values, into *ListIndividualsOptions) error
- func NormalizePhoneNumber(phoneNumber string) string
- func ParseAge(s string) (*int, error)
- func ParseBirthdate(s string) (*time.Time, error)
- func ParseDate(s string) (*time.Time, error)
- func UnmarshalRecordsFromCSV(records *[][]string, reader io.Reader) error
- func UnmarshalRecordsFromExcel(records *[][]string, reader io.Reader) error
- func UnmarshallRecordsFromFile(records *[][]string, reader io.Reader, filename string) error
- type AggregationType
- type Country
- type CountryList
- type FileError
- func FindDuplicatesInUUIDColumn(df dataframe.DataFrame) []FileError
- func FormatDbDeduplicationErrors(duplicates []*Individual, df dataframe.DataFrame, ...) []FileError
- func FormatFileDeduplicationErrors(duplicateMap []containers.Set[int], config deduplication.DeduplicationConfig, ...) []FileError
- func GetColumnMapping(header []string, fields *[]string) (map[string]int, []FileError)
- func UnmarshalIndividualsTabularData(data [][]string, individuals *[]*Individual, colMapping map[string]int, ...) []FileError
- type Individual
- type IndividualList
- type ListIndividualsOptions
- func (o ListIndividualsOptions) FirstPage() ListIndividualsOptions
- func (o ListIndividualsOptions) GetSortDirection(field string) SortDirection
- func (o ListIndividualsOptions) IsFemaleHeadedHouseholdSelected() bool
- func (o ListIndividualsOptions) IsHasCognitiveDisabilitySelected() bool
- func (o ListIndividualsOptions) IsHasCommunicationDisabilitySelected() bool
- func (o ListIndividualsOptions) IsHasDisabilitySelected() bool
- func (o ListIndividualsOptions) IsHasHearingDisabilitySelected() bool
- func (o ListIndividualsOptions) IsHasMedicalConditionSelected() bool
- func (o ListIndividualsOptions) IsHasMobilityDisabilitySelected() bool
- func (o ListIndividualsOptions) IsHasSelfCareDisabilitySelected() bool
- func (o ListIndividualsOptions) IsHasVisionDisabilitySelected() bool
- func (o ListIndividualsOptions) IsInactiveSelected() bool
- func (o ListIndividualsOptions) IsIsChildAtRiskSelected() bool
- func (o ListIndividualsOptions) IsIsElderAtRiskSelected() bool
- func (o ListIndividualsOptions) IsIsLactatingSelected() bool
- func (o ListIndividualsOptions) IsIsPregnantSelected() bool
- func (o ListIndividualsOptions) IsIsSeparatedChildSelected() bool
- func (o ListIndividualsOptions) IsIsSingleParentSelected() bool
- func (o ListIndividualsOptions) IsIsWomanAtRiskSelected() bool
- func (o ListIndividualsOptions) IsMinorHeadedHouseholdSelected() bool
- func (o ListIndividualsOptions) IsMinorSelected() bool
- func (o ListIndividualsOptions) IsNeedsLegalAndPhysicalProtectionSelected() bool
- func (o ListIndividualsOptions) IsNotFemaleHeadedHouseholdSelected() bool
- func (o ListIndividualsOptions) IsNotHasCognitiveDisabilitySelected() bool
- func (o ListIndividualsOptions) IsNotHasCommunicationDisabilitySelected() bool
- func (o ListIndividualsOptions) IsNotHasDisabilitySelected() bool
- func (o ListIndividualsOptions) IsNotHasHearingDisabilitySelected() bool
- func (o ListIndividualsOptions) IsNotHasMedicalConditionSelected() bool
- func (o ListIndividualsOptions) IsNotHasMobilityDisabilitySelected() bool
- func (o ListIndividualsOptions) IsNotHasSelfCareDisabilitySelected() bool
- func (o ListIndividualsOptions) IsNotHasVisionDisabilitySelected() bool
- func (o ListIndividualsOptions) IsNotInactiveSelected() bool
- func (o ListIndividualsOptions) IsNotIsChildAtRiskSelected() bool
- func (o ListIndividualsOptions) IsNotIsElderAtRiskSelected() bool
- func (o ListIndividualsOptions) IsNotIsLactatingSelected() bool
- func (o ListIndividualsOptions) IsNotIsPregnantSelected() bool
- func (o ListIndividualsOptions) IsNotIsSeparatedChildSelected() bool
- func (o ListIndividualsOptions) IsNotIsSingleParentSelected() bool
- func (o ListIndividualsOptions) IsNotIsWomanAtRiskSelected() bool
- func (o ListIndividualsOptions) IsNotMinorHeadedHouseholdSelected() bool
- func (o ListIndividualsOptions) IsNotMinorSelected() bool
- func (o ListIndividualsOptions) IsNotNeedsLegalAndPhysicalProtectionSelected() bool
- func (o ListIndividualsOptions) IsNotPresentsProtectionConcernsSelected() bool
- func (o ListIndividualsOptions) IsPresentsProtectionConcernsSelected() bool
- func (o ListIndividualsOptions) NextPage() ListIndividualsOptions
- func (o ListIndividualsOptions) PreviousPage() ListIndividualsOptions
- func (o ListIndividualsOptions) QueryParams() string
- func (o ListIndividualsOptions) WithSort(field string, direction string) ListIndividualsOptions
- func (o ListIndividualsOptions) WithTake(take int) ListIndividualsOptions
- type SortDirection
- type SortTerm
- type SortTerms
Constants ¶
This section is empty.
Variables ¶
View Source
var TRUE_VALUES = []string{"true", "yes", "1"}
Functions ¶
func CreateDataframeFromRecords ¶
func CreateDataframeFromRecords(records [][]string, deduplicationTypes []deduplication.DeduplicationType, mandatory []string) (dataframe.DataFrame, error)
func FindDuplicatesInUpload ¶
func FindDuplicatesInUpload(config deduplication.DeduplicationConfig, df dataframe.DataFrame) []containers.Set[int]
func GetRecordsFromIndividual ¶
func GetRecordsFromIndividual(deduplicationTypes []deduplication.DeduplicationType, individual *Individual, mandatory []string) [][]string
func MarshalIndividualsCSV ¶
func MarshalIndividualsCSV(w io.Writer, individuals []*Individual) error
func MarshalIndividualsExcel ¶
func MarshalIndividualsExcel(w io.Writer, individuals []*Individual) error
func NewIndividualListFromURLValues ¶
func NewIndividualListFromURLValues(values url.Values, into *ListIndividualsOptions) error
func NormalizePhoneNumber ¶
func UnmarshalRecordsFromCSV ¶
Types ¶
type AggregationType ¶
type AggregationType struct { Aggregation dataframe.Aggregation Filters []dataframe.F }
type CountryList ¶
type CountryList struct {
Items []*Country `db:"items"`
}
type FileError ¶
func FormatDbDeduplicationErrors ¶
func FormatDbDeduplicationErrors(duplicates []*Individual, df dataframe.DataFrame, config deduplication.DeduplicationConfig) []FileError
func FormatFileDeduplicationErrors ¶
func FormatFileDeduplicationErrors(duplicateMap []containers.Set[int], config deduplication.DeduplicationConfig, records [][]string, columnMapping map[string]int) []FileError
func GetColumnMapping ¶
type Individual ¶
type Individual struct { // Inactive is true if the individual is inactive Inactive bool `json:"inactive" db:"inactive"` // Address is the residence address of the individual Address string `json:"address" db:"address"` // Age is the age of the individual Age *int `json:"age" db:"age"` // BirthDate is the date of birth of the individual. BirthDate *time.Time `json:"birthDate" db:"birth_date"` // CognitiveDisabilityLevel is the cognitive disability level of the individual CognitiveDisabilityLevel enumTypes.DisabilityLevel `json:"cognitiveDisabilityLevel" db:"cognitive_disability_level"` // CollectionAdministrativeArea1 is the first administrative area of the collection // For example, in the case of a case in the Democratic Republic of Congo, this would be the province CollectionAdministrativeArea1 string `json:"collectionAdministrativeArea1" db:"collection_administrative_area_1"` // CollectionAdministrativeArea2 is the second administrative area of the collection // For example, in the case of a case in the Democratic Republic of Congo, this would be the territory CollectionAdministrativeArea2 string `json:"collectionAdministrativeArea2" db:"collection_administrative_area_2"` // CollectionAdministrativeArea3 is the third administrative area of the collection // For example, in the case of a case in the Democratic Republic of Congo, this would be the commune CollectionAdministrativeArea3 string `json:"collectionAdministrativeArea3" db:"collection_administrative_area_3"` // CollectionOffice is the office of the collection CollectionOffice string `json:"collectionOffice" db:"collection_office"` // CollectionAgentName is the ID of the agent who collected the data CollectionAgentName string `json:"collectionAgentName" db:"collection_agent_name"` // CollectionAgentTitle is the title of the agent who collected the data CollectionAgentTitle string `json:"collectionAgentTitle" db:"collection_agent_title"` // CollectionTime is the date/time the data was collected CollectionTime time.Time `json:"collectionTime" db:"collection_time"` // Comments is a free text field for comments Comments string `json:"comments" db:"comments"` // CommunicationDisabilityLevel is the communication disability level of the individual CommunicationDisabilityLevel enumTypes.DisabilityLevel `json:"communicationDisabilityLevel" db:"communication_disability_level"` // CommunityID is the ID of the community the individual belongs to CommunityID string `json:"communityId" db:"community_id"` // CommunitySize is the size of the community the individual belongs to CommunitySize *int `json:"communitySize" db:"community_size"` // CountryID is the ID of the country the individual belongs to CountryID string `json:"countryId" db:"country_id"` // CreatedAt is the time the individual record was created in the database CreatedAt time.Time `json:"createdAt" db:"created_at"` // DeletedAt is the time the individual record was deleted from the database DeletedAt *time.Time `json:"deletedAt" db:"deleted_at"` // DisplacementStatus is the displacement status of the individual DisplacementStatus enumTypes.DisplacementStatus `json:"displacementStatus" db:"displacement_status"` // DisplacementStatusComment is a comment about the displacement status of the individual DisplacementStatusComment string `json:"displacementStatusComment" db:"displacement_status_comment"` // Email1 is the email address 1 of the individual Email1 string `json:"email1" db:"email_1"` // Email2 is the email address 2 of the individual Email2 string `json:"email2" db:"email_2"` // Email 3 is the email address 3 of the individual Email3 string `json:"email3" db:"email_3"` // FullName is the full name of the individual FullName string `json:"fullName" db:"full_name"` // FirstName is the first name of the individual FirstName string `json:"firstName" db:"first_name"` // MiddleName is the middle name of the individual MiddleName string `json:"middleName" db:"middle_name"` // MothersName is the name of the individuals mother MothersName string `json:"mothersName" db:"mothers_name"` // LastName is the last name of the individual LastName string `json:"lastName" db:"last_name"` // NativeName is the name of the individual in their native language NativeName string `json:"nativeName" db:"native_name"` // FreeField1 is a free field for the individual FreeField1 string `json:"freeField1" db:"free_field_1"` // FreeField2 is a free field for the individual FreeField2 string `json:"freeField2" db:"free_field_2"` // FreeField3 is a free field for the individual FreeField3 string `json:"freeField3" db:"free_field_3"` // FreeField4 is a free field for the individual FreeField4 string `json:"freeField4" db:"free_field_4"` // FreeField5 is a free field for the individual FreeField5 string `json:"freeField5" db:"free_field_5"` // Sex is the sex of the individual Sex enumTypes.Sex `json:"sex" db:"sex"` // HasCognitiveDisability is true if the individual has a cognitive disability HasCognitiveDisability *bool `json:"hasCognitiveDisability" db:"has_cognitive_disability"` // HasCommunicationDisability is true if the individual has a communication disability HasCommunicationDisability *bool `json:"hasCommunicationDisability" db:"has_communication_disability"` // HasConsentedToRGPD is a flag indicating whether the individual has consented to the RGPD // (General Data Protection Regulation) HasConsentedToRGPD *bool `json:"hasConsentedToRgpd" db:"has_consented_to_rgpd"` // HasConsentedToReferral is a flag indicating whether the individual has consented to be referred // to internal or external services HasConsentedToReferral *bool `json:"hasConsentedToReferral" db:"has_consented_to_referral"` // HasDisability is true if the individual has a disability HasDisability *bool `json:"hasDisability" db:"has_disability"` // HasHearingDisability is true if the individual has a hearing disability HasHearingDisability *bool `json:"hasHearingDisability" db:"has_hearing_disability"` // HasMobilityDisability is true if the individual has a mobility disability HasMobilityDisability *bool `json:"hasMobilityDisability" db:"has_mobility_disability"` // HasSelfCareDisability is true if the individual has a self care disability HasSelfCareDisability *bool `json:"hasSelfCareDisability" db:"has_selfcare_disability"` // HasVisionDisability is true if the individual has a vision disability HasVisionDisability *bool `json:"hasVisionDisability" db:"has_vision_disability"` // HearingDisabilityLevel is the hearing disability level of the individual HearingDisabilityLevel enumTypes.DisabilityLevel `json:"hearingDisabilityLevel" db:"hearing_disability_level"` // HouseholdID is the ID of the household the individual belongs to HouseholdID string `json:"householdId" db:"household_id"` // HouseholdSize is the size of the household the individual belongs to HouseholdSize *int `json:"householdSize" db:"household_size"` // ID is the ID of the individual ID string `json:"id" db:"id"` // IdentificationType1 is the type of primary identification of the individual IdentificationType1 enumTypes.IdentificationType `json:"identificationType1" db:"identification_type_1"` // IdentificationTypeExplanation1 is the explanation of the primary identification type of the individual // when the primary identification type is "other" IdentificationTypeExplanation1 string `json:"identificationTypeExplanation1" db:"identification_type_explanation_1"` // IdentificationNumber1 is the primary identification number of the individual IdentificationNumber1 string `json:"identificationNumber1" db:"identification_number_1"` // IdentificationType2 is the type of secondary identification of the individual IdentificationType2 enumTypes.IdentificationType `json:"identificationType2" db:"identification_type_2"` // IdentificationTypeExplanation2 is the explanation of the secondary identification type of the individual // when the secondary identification type is "other" IdentificationTypeExplanation2 string `json:"identificationTypeExplanation2" db:"identification_type_explanation_2"` // IdentificationNumber2 is the secondary identification number of the individual IdentificationNumber2 string `json:"identificationNumber2" db:"identification_number_2"` // IdentificationType3 is the type of tertiary identification of the individual IdentificationType3 enumTypes.IdentificationType `json:"identificationType3" db:"identification_type_3"` // IdentificationTypeExplanation3 is the explanation of the tertiary identification type of the individual // when the tertiary identification type is "other" IdentificationTypeExplanation3 string `json:"identificationTypeExplanation3" db:"identification_type_explanation_3"` // IdentificationNumber3 is the tertiary identification number of the individual IdentificationNumber3 string `json:"identificationNumber3" db:"identification_number_3"` // EngagementContext is the context of the identification of the individual EngagementContext enumTypes.EngagementContext `json:"engagementContext" db:"engagement_context"` // InternalID is the internal ID of the individual. This is used to link individuals across different // systems. InternalID string `json:"internalId" db:"internal_id"` // IsHeadOfCommunity is a flag indicating whether the individual is the head of the community IsHeadOfCommunity *bool `json:"isHeadOfCommunity" db:"is_head_of_community"` // IsHeadOfHousehold is a flag indicating whether the individual is the head of the household IsHeadOfHousehold *bool `json:"isHeadOfHousehold" db:"is_head_of_household"` // IsFemaleHeadedHousehold is a flag indicating whether the head of the household is female IsFemaleHeadedHousehold *bool `json:"isFemaleHeadedHousehold" db:"is_female_headed_household"` // IsMinorHeadedHousehold is a flag indicating whether the head of the household is a minor IsMinorHeadedHousehold *bool `json:"isMinorHeadedHousehold" db:"is_minor_headed_household"` // IsMinor is a flag indicating whether the individual is a minor IsMinor *bool `json:"isMinor" db:"is_minor"` // NeedsLegalAndPhysicalProtection is a flag indicating whether the individual needs legal and physical protection NeedsLegalAndPhysicalProtection *bool `json:"needsLegalAndPhysicalProtection" db:"needs_legal_and_physical_protection"` // HasMedicalCondition is a flag indicating whether the individual has a medical condition HasMedicalCondition *bool `json:"hasMedicalCondition" db:"has_medical_condition"` // IsPregnant is a flag indicating whether the individual is pregnant IsPregnant *bool `json:"isPregnant" db:"is_pregnant"` // IsLactating is a flag indicating whether the individual is lactating IsLactating *bool `json:"isLactating" db:"is_lactating"` // IsWomanAtRisk is a flag indicating whether the individual is a woman at risk IsWomanAtRisk *bool `json:"isWomanAtRisk" db:"is_woman_at_risk"` // IsChildAtRisk is a flag indicating whether the individual is a child at risk IsChildAtRisk *bool `json:"isChildAtRisk" db:"is_child_at_risk"` // IsElderAtRisk is a flag indicating whether the individual is an elder at risk IsElderAtRisk *bool `json:"isElderAtRisk" db:"is_elder_at_risk"` // IsSingleParent is a flag indicating whether the individual is a single parent IsSingleParent *bool `json:"isSingleParent" db:"is_single_parent"` // IsSeparatedChild is a flag indicating whether the individual is a separated child IsSeparatedChild *bool `json:"isSeparatedChild" db:"is_separated_child"` // MobilityDisabilityLevel is the mobility disability level of the individual MobilityDisabilityLevel enumTypes.DisabilityLevel `json:"mobilityDisabilityLevel" db:"mobility_disability_level"` // Nationality1 is the primary nationality of the individual Nationality1 string `json:"nationality1" db:"nationality_1"` // Nationality2 is the secondary nationality of the individual Nationality2 string `json:"nationality2" db:"nationality_2"` // NormalizedPhoneNumber1 is the normalized phone number of the individual // It is used for search purposes // TODO: do not expose this field on the api. This is a database concern only NormalizedPhoneNumber1 string `json:"-" db:"normalized_phone_number_1"` NormalizedPhoneNumber2 string `json:"-" db:"normalized_phone_number_2"` NormalizedPhoneNumber3 string `json:"-" db:"normalized_phone_number_3"` // PhoneNumber1 is the phone number 1 of the individual PhoneNumber1 string `json:"phoneNumber1" db:"phone_number_1"` // PhoneNumber2 is the phone number 2 of the individual PhoneNumber2 string `json:"phoneNumber2" db:"phone_number_2"` // PhoneNumber3 is the phone number 3 of the individual PhoneNumber3 string `json:"phoneNumber3" db:"phone_number_3"` // PreferredContactMethod is the preferred contact method of the individual PreferredContactMethod enumTypes.ContactMethod `json:"preferredContactMethod" db:"preferred_contact_method"` // PreferredContactMethodComments is the comments on the preferred contact method of the individual PreferredContactMethodComments string `json:"preferredContactMethodComments" db:"preferred_contact_method_comments"` // PreferredName is the preferred name of the individual PreferredName string `json:"preferredName" db:"preferred_name"` // PreferredCommunicationLanguage is the preferred communication language of the individual PreferredCommunicationLanguage string `json:"preferredCommunicationLanguage" db:"preferred_communication_language"` // PrefersToRemainAnonymous is a flag indicating whether the individual prefers to remain anonymous PrefersToRemainAnonymous *bool `json:"prefersToRemainAnonymous" db:"prefers_to_remain_anonymous"` // PresentsProtectionConcerns is a flag indicating whether the individual presents protection concerns PresentsProtectionConcerns *bool `json:"presentsProtectionConcerns" db:"presents_protection_concerns"` // PWDComments is the comments on the disability status of the individual PWDComments string `json:"pwdComments" db:"pwd_comments"` // SelfCareDisabilityLevel is the self-care disability level of the individual SelfCareDisabilityLevel enumTypes.DisabilityLevel `json:"selfCareDisabilityLevel" db:"selfcare_disability_level"` // SpokenLanguage1 is the primary spoken language of the individual SpokenLanguage1 string `json:"spokenLanguage1" db:"spoken_language_1"` // SpokenLanguage2 is the secondary spoken language of the individual SpokenLanguage2 string `json:"spokenLanguage2" db:"spoken_language_2"` // SpokenLanguage3 is the tertiary spoken language of the individual SpokenLanguage3 string `json:"spokenLanguage3" db:"spoken_language_3"` // UpdatedAt is the time the individual was last updated in the database UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` // VisionDisabilityLevel is the vision disability level of the individual VisionDisabilityLevel enumTypes.DisabilityLevel `json:"visionDisabilityLevel" db:"vision_disability_level"` // VulnerabilityComments is the comments on the vulnerabilities of the individual VulnerabilityComments string `json:"vulnerabilityComments" db:"vulnerability_comments"` ServiceCC1 enumTypes.ServiceCC `json:"serviceCC1" db:"service_cc_1"` ServiceRequestedDate1 *time.Time `json:"serviceRequestedDate1" db:"service_requested_date_1"` ServiceDeliveredDate1 *time.Time `json:"serviceDeliveredDate1" db:"service_delivered_date_1"` ServiceComments1 string `json:"serviceComments1" db:"service_comments_1"` ServiceType1 string `json:"serviceType1" db:"service_type_1"` Service1 string `json:"service1" db:"service_1"` ServiceSubService1 string `json:"serviceSubService1" db:"service_sub_service_1"` ServiceLocation1 string `json:"serviceLocation1" db:"service_location_1"` ServiceDonor1 string `json:"serviceDonor1" db:"service_donor_1"` ServiceProjectName1 string `json:"serviceProjectName1" db:"service_project_name_1"` ServiceAgentName1 string `json:"serviceAgentName1" db:"service_agent_name_1"` ServiceCC2 enumTypes.ServiceCC `json:"serviceCC2" db:"service_cc_2"` ServiceRequestedDate2 *time.Time `json:"serviceRequestedDate2" db:"service_requested_date_2"` ServiceDeliveredDate2 *time.Time `json:"serviceDeliveredDate2" db:"service_delivered_date_2"` ServiceComments2 string `json:"serviceComments2" db:"service_comments_2"` ServiceType2 string `json:"serviceType2" db:"service_type_2"` Service2 string `json:"service2" db:"service_2"` ServiceSubService2 string `json:"serviceSubService2" db:"service_sub_service_2"` ServiceLocation2 string `json:"serviceLocation2" db:"service_location_2"` ServiceDonor2 string `json:"serviceDonor2" db:"service_donor_2"` ServiceProjectName2 string `json:"serviceProjectName2" db:"service_project_name_2"` ServiceAgentName2 string `json:"serviceAgentName2" db:"service_agent_name_2"` ServiceCC3 enumTypes.ServiceCC `json:"serviceCC3" db:"service_cc_3"` ServiceRequestedDate3 *time.Time `json:"serviceRequestedDate3" db:"service_requested_date_3"` ServiceDeliveredDate3 *time.Time `json:"serviceDeliveredDate3" db:"service_delivered_date_3"` ServiceComments3 string `json:"serviceComments3" db:"service_comments_3"` ServiceType3 string `json:"serviceType3" db:"service_type_3"` Service3 string `json:"service3" db:"service_3"` ServiceSubService3 string `json:"serviceSubService3" db:"service_sub_service_3"` ServiceLocation3 string `json:"serviceLocation3" db:"service_location_3"` ServiceDonor3 string `json:"serviceDonor3" db:"service_donor_3"` ServiceProjectName3 string `json:"serviceProjectName3" db:"service_project_name_3"` ServiceAgentName3 string `json:"serviceAgentName3" db:"service_agent_name_3"` ServiceCC4 enumTypes.ServiceCC `json:"serviceCC4" db:"service_cc_4"` ServiceRequestedDate4 *time.Time `json:"serviceRequestedDate4" db:"service_requested_date_4"` ServiceDeliveredDate4 *time.Time `json:"serviceDeliveredDate4" db:"service_delivered_date_4"` ServiceComments4 string `json:"serviceComments4" db:"service_comments_4"` ServiceType4 string `json:"serviceType4" db:"service_type_4"` Service4 string `json:"service4" db:"service_4"` ServiceSubService4 string `json:"serviceSubService4" db:"service_sub_service_4"` ServiceLocation4 string `json:"serviceLocation4" db:"service_location_4"` ServiceDonor4 string `json:"serviceDonor4" db:"service_donor_4"` ServiceProjectName4 string `json:"serviceProjectName4" db:"service_project_name_4"` ServiceAgentName4 string `json:"serviceAgentName4" db:"service_agent_name_4"` ServiceCC5 enumTypes.ServiceCC `json:"serviceCC5" db:"service_cc_5"` ServiceRequestedDate5 *time.Time `json:"serviceRequestedDate5" db:"service_requested_date_5"` ServiceDeliveredDate5 *time.Time `json:"serviceDeliveredDate5" db:"service_delivered_date_5"` ServiceComments5 string `json:"serviceComments5" db:"service_comments_5"` ServiceType5 string `json:"serviceType5" db:"service_type_5"` Service5 string `json:"service5" db:"service_5"` ServiceSubService5 string `json:"serviceSubService5" db:"service_sub_service_5"` ServiceLocation5 string `json:"serviceLocation5" db:"service_location_5"` ServiceDonor5 string `json:"serviceDonor5" db:"service_donor_5"` ServiceProjectName5 string `json:"serviceProjectName5" db:"service_project_name_5"` ServiceAgentName5 string `json:"serviceAgentName5" db:"service_agent_name_5"` ServiceCC6 enumTypes.ServiceCC `json:"serviceCC6" db:"service_cc_6"` ServiceRequestedDate6 *time.Time `json:"serviceRequestedDate6" db:"service_requested_date_6"` ServiceDeliveredDate6 *time.Time `json:"serviceDeliveredDate6" db:"service_delivered_date_6"` ServiceComments6 string `json:"serviceComments6" db:"service_comments_6"` ServiceType6 string `json:"serviceType6" db:"service_type_6"` Service6 string `json:"service6" db:"service_6"` ServiceSubService6 string `json:"serviceSubService6" db:"service_sub_service_6"` ServiceLocation6 string `json:"serviceLocation6" db:"service_location_6"` ServiceDonor6 string `json:"serviceDonor6" db:"service_donor_6"` ServiceProjectName6 string `json:"serviceProjectName6" db:"service_project_name_6"` ServiceAgentName6 string `json:"serviceAgentName6" db:"service_agent_name_6"` ServiceCC7 enumTypes.ServiceCC `json:"serviceCC7" db:"service_cc_7"` ServiceRequestedDate7 *time.Time `json:"serviceRequestedDate7" db:"service_requested_date_7"` ServiceDeliveredDate7 *time.Time `json:"serviceDeliveredDate7" db:"service_delivered_date_7"` ServiceComments7 string `json:"serviceComments7" db:"service_comments_7"` ServiceType7 string `json:"serviceType7" db:"service_type_7"` Service7 string `json:"service7" db:"service_7"` ServiceSubService7 string `json:"serviceSubService7" db:"service_sub_service_7"` ServiceLocation7 string `json:"serviceLocation7" db:"service_location_7"` ServiceDonor7 string `json:"serviceDonor7" db:"service_donor_7"` ServiceProjectName7 string `json:"serviceProjectName7" db:"service_project_name_7"` ServiceAgentName7 string `json:"serviceAgentName7" db:"service_agent_name_7"` }
func (*Individual) GetFieldValue ¶
func (i *Individual) GetFieldValue(field string) (interface{}, error)
func (*Individual) MarshalTabularData ¶
func (i *Individual) MarshalTabularData() ([]string, error)
func (*Individual) Normalize ¶
func (i *Individual) Normalize()
func (*Individual) String ¶
func (i *Individual) String() string
func (*Individual) UnmarshalTabularData ¶
func (i *Individual) UnmarshalTabularData(colMapping map[string]int, cols []string) []error
type IndividualList ¶
type IndividualList struct {
Items []*Individual `json:"items"`
}
type ListIndividualsOptions ¶
type ListIndividualsOptions struct { Inactive *bool Address string AgeFrom *int AgeTo *int BirthDateFrom *time.Time BirthDateTo *time.Time CognitiveDisabilityLevel enumTypes.DisabilityLevel CollectionAdministrativeArea1 string CollectionAdministrativeArea2 string CollectionAdministrativeArea3 string CollectionOffice string CollectionAgentName string CollectionAgentTitle string CollectionTimeFrom *time.Time CollectionTimeTo *time.Time CommunityID string CountryID string CreatedAtFrom *time.Time CreatedAtTo *time.Time DisplacementStatuses containers.Set[enumTypes.DisplacementStatus] Email string FreeField1 string FreeField2 string FreeField3 string FreeField4 string FreeField5 string FullName string Sexes containers.Set[enumTypes.Sex] HasCognitiveDisability *bool HasCommunicationDisability *bool HasConsentedToRGPD *bool HasConsentedToReferral *bool HasDisability *bool HasHearingDisability *bool HasMobilityDisability *bool HasSelfCareDisability *bool HasVisionDisability *bool HearingDisabilityLevel enumTypes.DisabilityLevel HouseholdID string IDs containers.StringSet IdentificationNumber string EngagementContext containers.Set[enumTypes.EngagementContext] InternalID string IsHeadOfCommunity *bool IsHeadOfHousehold *bool IsFemaleHeadedHousehold *bool IsMinorHeadedHousehold *bool IsMinor *bool IsChildAtRisk *bool IsWomanAtRisk *bool IsElderAtRisk *bool IsPregnant *bool IsLactating *bool IsSeparatedChild *bool IsSingleParent *bool HasMedicalCondition *bool NeedsLegalAndPhysicalProtection *bool MobilityDisabilityLevel enumTypes.DisabilityLevel MothersName string Nationality string PhoneNumber string PreferredContactMethod string PreferredCommunicationLanguage string PrefersToRemainAnonymous *bool PresentsProtectionConcerns *bool PWDComments string VulnerabilityComments string SelfCareDisabilityLevel enumTypes.DisabilityLevel SpokenLanguage string UpdatedAtFrom *time.Time UpdatedAtTo *time.Time Skip int Take int Sort SortTerms ServiceCC containers.Set[enumTypes.ServiceCC] ServiceRequestedDateFrom *time.Time ServiceRequestedDateTo *time.Time ServiceDeliveredDateFrom *time.Time ServiceDeliveredDateTo *time.Time ServiceType string Service string ServiceSubService string ServiceLocation string ServiceDonor string ServiceProjectName string ServiceAgentName string VisionDisabilityLevel enumTypes.DisabilityLevel }
func (ListIndividualsOptions) FirstPage ¶
func (o ListIndividualsOptions) FirstPage() ListIndividualsOptions
func (ListIndividualsOptions) GetSortDirection ¶
func (o ListIndividualsOptions) GetSortDirection(field string) SortDirection
func (ListIndividualsOptions) IsFemaleHeadedHouseholdSelected ¶
func (o ListIndividualsOptions) IsFemaleHeadedHouseholdSelected() bool
func (ListIndividualsOptions) IsHasCognitiveDisabilitySelected ¶
func (o ListIndividualsOptions) IsHasCognitiveDisabilitySelected() bool
func (ListIndividualsOptions) IsHasCommunicationDisabilitySelected ¶
func (o ListIndividualsOptions) IsHasCommunicationDisabilitySelected() bool
func (ListIndividualsOptions) IsHasDisabilitySelected ¶
func (o ListIndividualsOptions) IsHasDisabilitySelected() bool
func (ListIndividualsOptions) IsHasHearingDisabilitySelected ¶
func (o ListIndividualsOptions) IsHasHearingDisabilitySelected() bool
func (ListIndividualsOptions) IsHasMedicalConditionSelected ¶
func (o ListIndividualsOptions) IsHasMedicalConditionSelected() bool
func (ListIndividualsOptions) IsHasMobilityDisabilitySelected ¶
func (o ListIndividualsOptions) IsHasMobilityDisabilitySelected() bool
func (ListIndividualsOptions) IsHasSelfCareDisabilitySelected ¶
func (o ListIndividualsOptions) IsHasSelfCareDisabilitySelected() bool
func (ListIndividualsOptions) IsHasVisionDisabilitySelected ¶
func (o ListIndividualsOptions) IsHasVisionDisabilitySelected() bool
func (ListIndividualsOptions) IsInactiveSelected ¶
func (o ListIndividualsOptions) IsInactiveSelected() bool
func (ListIndividualsOptions) IsIsChildAtRiskSelected ¶
func (o ListIndividualsOptions) IsIsChildAtRiskSelected() bool
func (ListIndividualsOptions) IsIsElderAtRiskSelected ¶
func (o ListIndividualsOptions) IsIsElderAtRiskSelected() bool
func (ListIndividualsOptions) IsIsLactatingSelected ¶
func (o ListIndividualsOptions) IsIsLactatingSelected() bool
func (ListIndividualsOptions) IsIsPregnantSelected ¶
func (o ListIndividualsOptions) IsIsPregnantSelected() bool
func (ListIndividualsOptions) IsIsSeparatedChildSelected ¶
func (o ListIndividualsOptions) IsIsSeparatedChildSelected() bool
func (ListIndividualsOptions) IsIsSingleParentSelected ¶
func (o ListIndividualsOptions) IsIsSingleParentSelected() bool
func (ListIndividualsOptions) IsIsWomanAtRiskSelected ¶
func (o ListIndividualsOptions) IsIsWomanAtRiskSelected() bool
func (ListIndividualsOptions) IsMinorHeadedHouseholdSelected ¶
func (o ListIndividualsOptions) IsMinorHeadedHouseholdSelected() bool
func (ListIndividualsOptions) IsMinorSelected ¶
func (o ListIndividualsOptions) IsMinorSelected() bool
func (ListIndividualsOptions) IsNeedsLegalAndPhysicalProtectionSelected ¶
func (o ListIndividualsOptions) IsNeedsLegalAndPhysicalProtectionSelected() bool
func (ListIndividualsOptions) IsNotFemaleHeadedHouseholdSelected ¶
func (o ListIndividualsOptions) IsNotFemaleHeadedHouseholdSelected() bool
func (ListIndividualsOptions) IsNotHasCognitiveDisabilitySelected ¶
func (o ListIndividualsOptions) IsNotHasCognitiveDisabilitySelected() bool
func (ListIndividualsOptions) IsNotHasCommunicationDisabilitySelected ¶
func (o ListIndividualsOptions) IsNotHasCommunicationDisabilitySelected() bool
func (ListIndividualsOptions) IsNotHasDisabilitySelected ¶
func (o ListIndividualsOptions) IsNotHasDisabilitySelected() bool
func (ListIndividualsOptions) IsNotHasHearingDisabilitySelected ¶
func (o ListIndividualsOptions) IsNotHasHearingDisabilitySelected() bool
func (ListIndividualsOptions) IsNotHasMedicalConditionSelected ¶
func (o ListIndividualsOptions) IsNotHasMedicalConditionSelected() bool
func (ListIndividualsOptions) IsNotHasMobilityDisabilitySelected ¶
func (o ListIndividualsOptions) IsNotHasMobilityDisabilitySelected() bool
func (ListIndividualsOptions) IsNotHasSelfCareDisabilitySelected ¶
func (o ListIndividualsOptions) IsNotHasSelfCareDisabilitySelected() bool
func (ListIndividualsOptions) IsNotHasVisionDisabilitySelected ¶
func (o ListIndividualsOptions) IsNotHasVisionDisabilitySelected() bool
func (ListIndividualsOptions) IsNotInactiveSelected ¶
func (o ListIndividualsOptions) IsNotInactiveSelected() bool
func (ListIndividualsOptions) IsNotIsChildAtRiskSelected ¶
func (o ListIndividualsOptions) IsNotIsChildAtRiskSelected() bool
func (ListIndividualsOptions) IsNotIsElderAtRiskSelected ¶
func (o ListIndividualsOptions) IsNotIsElderAtRiskSelected() bool
func (ListIndividualsOptions) IsNotIsLactatingSelected ¶
func (o ListIndividualsOptions) IsNotIsLactatingSelected() bool
func (ListIndividualsOptions) IsNotIsPregnantSelected ¶
func (o ListIndividualsOptions) IsNotIsPregnantSelected() bool
func (ListIndividualsOptions) IsNotIsSeparatedChildSelected ¶
func (o ListIndividualsOptions) IsNotIsSeparatedChildSelected() bool
func (ListIndividualsOptions) IsNotIsSingleParentSelected ¶
func (o ListIndividualsOptions) IsNotIsSingleParentSelected() bool
func (ListIndividualsOptions) IsNotIsWomanAtRiskSelected ¶
func (o ListIndividualsOptions) IsNotIsWomanAtRiskSelected() bool
func (ListIndividualsOptions) IsNotMinorHeadedHouseholdSelected ¶
func (o ListIndividualsOptions) IsNotMinorHeadedHouseholdSelected() bool
func (ListIndividualsOptions) IsNotMinorSelected ¶
func (o ListIndividualsOptions) IsNotMinorSelected() bool
func (ListIndividualsOptions) IsNotNeedsLegalAndPhysicalProtectionSelected ¶
func (o ListIndividualsOptions) IsNotNeedsLegalAndPhysicalProtectionSelected() bool
func (ListIndividualsOptions) IsNotPresentsProtectionConcernsSelected ¶
func (o ListIndividualsOptions) IsNotPresentsProtectionConcernsSelected() bool
func (ListIndividualsOptions) IsPresentsProtectionConcernsSelected ¶
func (o ListIndividualsOptions) IsPresentsProtectionConcernsSelected() bool
func (ListIndividualsOptions) NextPage ¶
func (o ListIndividualsOptions) NextPage() ListIndividualsOptions
func (ListIndividualsOptions) PreviousPage ¶
func (o ListIndividualsOptions) PreviousPage() ListIndividualsOptions
func (ListIndividualsOptions) QueryParams ¶
func (o ListIndividualsOptions) QueryParams() string
func (ListIndividualsOptions) WithSort ¶
func (o ListIndividualsOptions) WithSort(field string, direction string) ListIndividualsOptions
func (ListIndividualsOptions) WithTake ¶
func (o ListIndividualsOptions) WithTake(take int) ListIndividualsOptions
type SortDirection ¶
type SortDirection string
const ( SortDirectionNone SortDirection = "" SortDirectionAscending SortDirection = "ascending" SortDirectionDescending SortDirection = "descending" )
type SortTerm ¶
type SortTerm struct { Field string Direction SortDirection }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.