fhir replace macro with iteration