What are the good arguments for having taken a GreenCDA approach for generating the CDA documents? It seems a bit unnecessary redefine most of the core classes when they can either be imported from multiple projects elsewhere or simply autogenerated from the schemas from the standard (e.g. as done here: https://github.com/jkiddo/cda-gen if one does not like dependencies). Also, it seems a bit over the top that custom XML serializers have been created. I’d rather not count the lines of code that now needs to be maintained in the namespace ‘dk.s4.hl7.util.xml’ – when this could have been solved with a few lines of JAXB code.
IMHO, it all could have been a lot more simple, if this framework simply provided a few simple domain driven wrappers on top of autogenerated classes taken from the standard.