@ricardofago I confirm that the at0000 value change does the trick.
I feel very ignorant about it.
When I post a composition the template is checked for conformity bu what happens when I call the get method for the composition loaded? I presume the template is interrogated again to show on output the right path for each composition element. Am i wrong?
So, if the only source of knowledge for the composition posted is the template why a similar problem to the one you solved doesn't occur with Patient Discharge? In the opt template patient discharge is called with the brazilian name "Alta do paciente" whereas in the composition "Patient discharge" (alike "Autorizacao de internacao hospitalar" and "Authorization for hospital admission")
@chevalleyc Is something like this supposed to happen or is it a bug?