Address indicator node
Cloverleaf can handle both address type entry(0).resource.resourceType
and
entry(0).resource.^Account.resourceType
.
entry(0).resource.resourceType
is the standard address type.entry(0).resource.^Account.resourceType
uses the caret symbol (^
) as an indicator node.
The indicator node processes the name conflict issues. For example, FHIR is a special
instance of JSON, that has many anyOf
/allOf
nodes in the
definition.
For those nodes, Cloverleaf uses the first node that has the same name. In FHIR, some nodes might have different definitions, even though they have same name.
In this case, the message might not be what the user needs or is expecting. When this
happens, you can use the caret symbol (^
) as an indicator node.
For the translation INCLUDE
action, when there is a name conflict issue, an
indicator node is required in the sub xlate file.
Example:
In the Translation Configurator:
- Configure the JSON format for inbound or outbound.
- Select the sub-node of the
anyOf
/oneOf
/allOf
node. - Add a
^
("caret" symbol) prefix to the original address.
In another example:
resource
is a oneOf
node. The sub-node is
reference
.
The address changes from entry(0).resource.resourceType
to
entry(0).resource.^Account.resourceType
.
If the sub-node is not referenced, then the address is changed from
entry(0).resource.resourceType
to
entry(0).resource.^(0).resourceType
.
^Account
and ^(0)
are the added nodes.
The ^
("caret" symbol) is the indicator.