fhirbase/fhir-xml2json — pull request #1 by jmandel (2014-04-03 13:55:28+00:00)
Title: Handle nameReference as well as type-based element defs

This is a fantastic resource!

By the way, another fun corner case (beyond extensions and ids) is the way that elements within FHIR can "borrow" there datatypes from other elements. This is how recursion is implemented for example, in [Composition.section.section](http://hl7.org/implement/standards/fhir/composition-definitions.html#Composition.section.section)

```

```

Your fhir-elements.xml currently does:
```

```

E.g. from an earlier effort in this direction, I was generating structure-describing XML [like this](https://github.com/jmandel/fhir-rdf/blob/master/generic/xslt_defs.xml#L23077).

I've submitted a quick fix here.