fhir generation from tree instead of list