Address as Nested Attribute Vs Location as Reference Attribute
You can choose to use Address as a nested attribute or Location as a reference attribute based on the business requirement.
Before understanding the two implementations, review the following entities in the table:
Entity | Sample |
---|---|
Address |
|
HCP (Individual) |
|
HCO (Organization) |
|
Implementation 1- Location as a Reference Attribute
In a scenario where the Address acts as a reference attribute for both the HCP and HCO,
which means that the L1 layer in Reltio’s Information Model defines a relationship
that links the Address and the Individual using the affiliatedwith
relationship type. Similarly, the Address is also linked with the Organization. The
affiliatedwith
definition goes further and defines the Address
entity type to be a reference attribute of the Individual and the Organization
entity types.
If the Address gets modified, the changes must be updated across the reference attributes, Individual and Organization.
The following steps define the order in which this implementation is applied.
- Define the location entity with the appropriate cleanse configuration.
- Define the HCP/HCO with location as the reference attribute.
- Define the relationship type,
HasAddress
, between the HCP/HCO and the location entity. - Create a reference attribute in the HCP/HCO to link the location entity, using the relationship type defined in step 3.
Implementation 2 - Address as a Nested Attribute
In a scenario where the Address acts as a nested attribute for both the HCP and HCO, it has sub-attributes of Address Line1, City, State Province, Country, and Zip. For Address, all these sub-attributes are only meaningful when held together as a collection. When posted as a nested attribute the entire collection represents a single instance (the value) of the nested attribute. Hence, if the Address gets modified for the Individual, the changes are impacted on it directly.
In a similar manner, it can be separately updated for the Organization. Address as a nested attribute can be independently updated on one entity type.
The following steps define the order in which this implementation is applied.
- Define the HCP/HCO.
- Add address as the nested attribute with the required fields.
- Define the cleanse configuration for the HCO/HCP.
- In the cleanse configuration, add the appropriate path for the nested attribute.