Skip to main content

Core Catalog Events

List of Catalogs

CatalogDescription
User CatalogCatalog representing values for primary users of the app.
Site CatalogCatalog representing values for Sites int he app, such as a facility, community, pharmacy, org, etc.


"Required Catalog Fields"

Some catalog fields can be marked as optional below but may be required for your app. Please refer to your integration notes to verify which fields are required for your use-case.

User Catalog

Below are the User Catalog values.

Overview

ParamUsabilityFormatDescription
nameOPTIONALSTRINGName of the user, provided by the partner.
countryOPTIONALSTRINGCountry in which the user is registered. As a full name.
region_stateOPTIONALSTRINGRegion/State in which the user is registered.
cityOPTIONALSTRINGCity in which the user is registered.
workplaceOPTIONALSTRINGWorkplace for the user.
professionOPTIONALSTRINGProfession of the user in the platform.
zipcodeOPTIONALSTRINGZipCode for the user.
languageOPTIONALSTRINGLanguage user is speaking/using in the app. As a full name.
experienceOPTIONALSTRINGExperience of the user as provided by the partner
education_levelOPTIONALSTRINGEducational Level of the user based on pre-defined values.
timezoneREQUIREDSTRINGTimezone for which the user is currently in. (Auto Tracked)
organization_idOPTIONALSTRINGId for the organization user is associated with.
organization_nameOPTIONALSTRINGName for the organization user is associated with.
account_typeOPTIONALSTRINGtype of the user account, basic, classic, advanced, admin, other.
birth_yearOPTIONALINTbirth year of the user, in format of YYYY.
genderOPTIONALSTRINGtype of the user gender: male, female, other
marital_statusOPTIONALSTRINGuser's marital status: single, married, widowed, divorced, separated, other, undisclosed
family_membersOPTIONALSTRINGuser's family members count: none, 1, 2, 3, 4, 5_or_more, undisclosed
children_under_fiveOPTIONALSTRINGuser's children under five count: none, 1, 2, 3, 4, 5_or_more, undisclosed
referral_codeOPTIONALSTRINGuser's own referral code

Usage

   val userCatalogModel = UserCatalogModel(
name = "User Catalog",
country = CountryCode.SouthAfrica.toString(),
regionState = "Barcelona",
city = "Barcelona",
workplace = "facility",
profession = "HCW",
zipcode = "08008",
language = LanguageCode.English.name,
experience = "4 Years",
educationLevel = EducationalLevel.Bachelors.toString(),
organizationId = "organizationID",
organizationName = "Causal Foundry",
accountType = "basic",
referralCode = "QWERTY"
)

CFCoreEvent.logCatalog(
coreCatalogType = CoreCatalogType.User,
Common.testUserId,
catalogModel = userCatalogModel
)


Site Catalog

Below are the Site Catalog values.

Format

ParamUsabilityFormatDescription
nameREQUIREDSTRINGName of the site, provided by the partner.
typeREQUIREDSTRING (ENUM) [pharmacy, clinic, community]Type of the site, provided by the partner based on the enum.
countryOPTIONALSTRINGCountry in which the site is at.
region_stateOPTIONALSTRINGRegion or State in which the site is at.
cityOPTIONALSTRINGCity in which the site is at.
street_addressOPTIONALSTRINGAddress of the site.
zipcodeOPTIONALSTRINGZipcode in which the site is at.
levelOPTIONALSTRINGLevel of the site.
is_activeOPTIONALBOOLEANIf the Site is currently active.
latitudeOPTIONALDOUBLELatitude where the site is at.
longitudeOPTIONALDOUBLELongitude where the site is at.
cultureOPTIONALSTRINGCulture of the site (if any).
parent_idOPTIONALSTRINGId of the parent site (if any).
sub_typeOPTIONALSTRINGsub_type of the site.
priorityOPTIONALSTRINGpriority of the site.
is_privateOPTIONALBOOLEANIf the site is private.
districtOPTIONALSTRINGdistrict of the site.
sub_districtOPTIONALSTRINGsub_district of the site.
landmarkOPTIONALSTRINGlandmark of the site.
attributesOPTIONALJSON OBJECTattributes of the site, such as bed_number, insurance_plan_lst
service_listOPTIONALARRAY (STRING)Array of the services provided at that facility.

Usage

    val hcwSiteCatalogModel = SiteCatalogModel(
name = "test",
type = SiteCatalogType.Community.toString(),
country = "South Africa",
regionState = "test region_state",
city = "test city",
zipcode = "test zipcode",
level = "test level",
isActive = "false",
latitude = "41.63",
longitude = "2.404",
serviceList = listOf("item1", "item1")
)

CFCoreEvent.logCatalog(
coreCatalogType = CoreCatalogType.Site,
"sampleSiteID",
catalogModel = hcwSiteCatalogModel
)