Add Default Values in the Mapper

If your target element includes a default value, you can use the Add Default Value option to automatically add the mapping. This capability eliminates the need to manually add a default value by creating a target element and adding the value as a literal.

Note:

The Add Default Value option is only available when the target node has a default value.
  1. Open the mapper.
  2. Right-click an element (for this example, name) and select Node info.
    Note that this element includes a default value of Peter.


    The Schema info page shows the following fields with element information: DataType, Required, Repeating, XPath, DefaultValue, ContentType, Nillable, minOccurs, NodeType, Abstract, and maxOccurs. The FHIR named object, Ext Url, and Ext Datatype labels are also displayed.

  3. Right-click the same element again (name) and select Add default value.
    The default value of Peter is automatically mapped and displayed in the Expression Builder.


    This image shows the Sources, Mapping canvas, and Target sections of the mapper. The target code element is selected. A "T" icon is shown. At the bottom, the Expression Builder shows the assigned default value for this element.

    For an example of using a default value in the mapper, see Create an AI-Generated FHIR Query in Using the FHIR Adapter with Oracle Integration 3.