You are here:
Create a Context Definition for Health Cloud Objects
Use Context Definition nodes and attributes to create a context definition for the Health Cloud objects and fields. Then, map the nodes with the corresponding objects, and map the attributes with the corresponding fields.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise and Unlimited Editions for clouds that have Context Service enabled |
| User Permissions Needed | |
|---|---|
| To load, view, edit, and delete context definitions: | Context Service Admin |
- From Setup, in the Quick Find box, enter Context Service, and then select Context Definitions.
- Click New.
-
Add these details.
- Enter Get_MemberPlan_Details as the name.
- In Effective From, enter [Current Date and Time].
- In Time to Live, enter 10 as the duration, and select Minute as the unit.
- Click Next.
- Configure a structure to define nodes and the relationship between the nodes.
- Click Next.
Add Attributes
-
Click Add Attributes, and enter these attribute details for
each node.
Node: MemberPlan
Attribute Name Type Data Type Status INPUT OUTPUT STRING EffectiveFrom INPUT OUTPUT DATE EffectiveTo INPUT OUTPUT DATE isActive INPUT OUTPUT BOOLEAN PlanId INPUT STRING Name INPUT STRING MemberNumber INPUT STRING Child Node: CoverageBenefit
Attribute Name Type Data Type IsActive INPUT OUTPUT BOOLEAN CoverageType INPUT OUTPUT STRING BenefitPeriodEndDate INPUT OUTPUT DATE BenefitPeriodStartDate INPUT OUTPUT DATE Name INPUT OUTPUT STRING MemberPlanId INPUT OUTPUT STRING MemberId INPUT OUTPUT STRING Child Node: CoverageBenefitItem
Attribute Name Type Data Type ServiceTypeCode INPUT OUTPUT STRING Name INPUT OUTPUT STRING ServiceType INPUT OUTPUT STRING IsPreauthorizationRequired INPUT OUTPUT BOOLEAN Cost INPUT STRING - Click Next.
Add Tags
- Click Add Tags beside the MemberPlan node. Enter MemberPlan, and click Done.
-
Similarly, click Add Tags beside each of these attributes and
enter the corresponding tag names. Click Done after you add each
tag.
Node: MemberPlan
Attribute Name Tag name Status PlanStatus EffectiveFrom EffectiveDateFrom EffectiveTo EffectiveDateTo isActive IsMemberPlanActive PlanId PlanId Name MemberName MemberNumber MemberNumber Child Node: CoverageBenefit
Attribute Name Tag name CoverageBenefit CoverageBenefit IsActive IsCoverageBenefitActive CoverageType CoverageType BenefitPeriodEndDate BenefitPeriodEndDate BenefitPeriodStartDate BenefitPeriodStartDate Name CoverageBenefitName MemberPlanId MemberPlanId MemberId MemberId ParentReference Plan Child Node: CoverageBenefitItem
Attribute Name Tag name CoverageBenefitItem CoverageBenefitItem ParentReference CB ServiceTypeCode ServiceTypeCode Name CoverageBenefitItemName ServiceType ServiceType IsPreauthorizationRequired IsPreauthorizationRequired Cost Cost - Save your changes.
Add Context Mapping
- Click the Get_MemberPlan_Details context definition to open it.
- Click the Map Data tab.
- Click Add Mapping.
- Enter Map1 as the name of the mapping.
- Select Mark as Default.
- Click Next.
- In Mapping Intent, select Association, Hydration, Persistence, and Translation.
- Click Map.
- On the Context Mapping builder page, click Select Data Source.
- In the Select an object search field, enter Member Plan, and select the Member Plan object from the dropdown.
- Similarly, find and select the Coverage Benefit and Coverage Benefit Item objects.
-
To select each object and add them to the map, click
.
- Click Done.
-
In the Structure: Get_MemberPlan_Details section, click
beside the MemberPlan node. Then, click
beside the MemberPlan object under the Connect Objects section and connect the
node and object.
-
Click
beside Unmapped under MemberPlan in both the Structure and Connect Objects
sections to show all the attributes and fields, respectively.
-
Click
beside the MemberNumber attribute in the Structure section, and then click
beside the MemberNumber field in the Connect Objects section to connect
them.
- Similarly, connect all the nodes and attributes in the Structure section with the corresponding objects and fields in the Connect Objects section, respectively.
- Save your changes.
- Open the Get_MemberPlan_Details context definition.
- Click the Map Data tab.
- Click the dropdown for the Map1 mapping record, and select Input Mapping.
- In the MemberPlan node, for isActive, enter isActive in the Input Mapping field.
- Save your changes.
- On the Custom Definitions tab, click the dropdown for the Get_MemberPlan_Details context definition item, and click Activate.
Did this article solve your issue?
Let us know so we can improve!







