Need to add numeric/range iteration support in FPML (similar to JUTE’s $ range()):
While translating a working JUTE mapping medication-batch-create-extract to FPML, a hard blocker was encountered:
FPML’s {% for %} requires an array to iterate over, while this mapping needs to iterate N times based on an integer input (items-number).
The JUTE mapping medication-batch-create-extract uses $map: $ range(0, itemsNumber, 1) to create multiple Medication resources.
FPML currently has no equivalent — {% for %} only works with arrays, not integers.
As a result, this mapping cannot be translated to FPML.
Need to add numeric/range iteration support in FPML (similar to JUTE’s
$ range()):While translating a working JUTE mapping medication-batch-create-extract to FPML, a hard blocker was encountered:
FPML’s
{% for %}requires an array to iterate over, while this mapping needs to iterate N times based on an integer input (items-number).The JUTE mapping
medication-batch-create-extractuses$map: $ range(0, itemsNumber, 1)to create multiple Medication resources.FPML currently has no equivalent —
{% for %}only works with arrays, not integers.As a result, this mapping cannot be translated to FPML.