[Transformation Manager] Confusing prefix choice in the case a translation is generated for a pharm element.
Strange behaviour noticed during the transformation from eD PIVOT and eD FRIENDLY:
- eD transformation in OpenNCP from PIVOT to FRIENDLY: PIVOT {code:java} <pharm:ingredient classCode="ACTI"> pharm:quantity
FRIENDLY {code:java} <pharm:ingredient classCode="ACTI"> pharm:quantity </pharm:quantity> <pharm:ingredientSubstance classCode="MMAT" determinerCode="KIND"> <pharm:code code="R03BA02" codeSystem="2.16.840.1.113883.6.73" codeSystemName="Anatomical Therapeutic Chemical" codeSystemVersion="2023-01" displayName="budesonide"> <pharm:translation xmlns:pharm="urn:hl7-org:v3" code="R03BA02" codeSystem="2.16.840.1.113883.6.73" codeSystemName="Anatomical Therapeutic Chemical" displayName="Budesonidum"/> </pharm:code> pharm:nameBudesonide</pharm:name> </pharm:ingredientSubstance> </pharm:ingredient> {code}
The namespace prefix for the element pharm:translation is very badly chosen. The namespace is correct ("urn:hl7-org:v3"), but the prefix is inherited from the enclosing element, which in some cases is the pharm prefix which is bound with the pharmacy namespace.
Not a real problem since the correct namespace is defined.