Process a resource with injectable element values to turn a single resource
(could be a single) into multiple resources. e.g.
"{ELEMENT:Children|Child_Name} {ELEMENT:Family_Name}" with the following
submission data:
(resource: T, preparer: ((resourceText: string) => string)): T
An optional function to replace nested injectables when creating multiple
resources from repeatable sets. Only required if the resource param is
not a string.
Returns
Parameters
resource: T
The current resource that contains properties that support
injection or a string
Process a resource with injectable element values to turn a single resource (could be a single) into multiple resources. e.g.
"{ELEMENT:Children|Child_Name} {ELEMENT:Family_Name}"
with the following submission data:Would result in the following resources:
"John Smith"
"Jane Smith"
Example
Returns