Open naXa777 opened 6 years ago
This is a really interesting find. I have not verified it yet but thanks for letting us know and having it so well documented. Will look into it in time.
This is where that logic happens
org.eclipse.mdht.uml.cda.internal.resource.CDAXSITypeProvider.getXSIType(Element)
for (int i = 0; i < nodeList.getLength(); i++) { if (nodeList.item(i) instanceof Element) { Element e = (Element) nodeList.item(i); if ("templateId".equals(e.getLocalName())) { EClass eClass = getEClass( e.getAttributeNS(null, "root"), e.getAttributeNS(null, "extension"), element); if ((eClass != null) && !eClass.isAbstract() && conformsTo(eClass, type) && (eClass.getEAllSuperTypes().size() > last)) { result = eClass; last = eClass.getEAllSuperTypes().size(); } } } }
I have not debugged it but should the general header document template id be abstract within the cda runtime ?
On Jun 1, 2018, at 8:50 AM, Dan Brown notifications@github.com wrote:
This is a really interesting find. I have not verified it yet but thanks for letting us know and having it so well documented. Will look into it in time.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mdht/mdht-models/issues/128#issuecomment-393923030, or mute the thread https://github.com/notifications/unsubscribe-auth/AFGeFyrBbgcF0a_0UXPW49k2P7-KLkJcks5t4WLSgaJpZM4Tydf_.
I'm not sure if this is a real issue. I just find it confusing.
Clinical document A
Clinical document B
Both clinical documents have identical content and declare conformance to the US Realm Header template and to the C-CDA CCD document template. But when loaded by MDHT they have different types:
Error:
I have consol2 and mu2consol dependencies in pom.xml.