You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: org.hl7.fhir.exceptions.FHIRException: Unknown element div
at org.hl7.fhir.utilities.xhtml.CDANarrativeFormat.processChildNode(CDANarrativeFormat.java:405)
at org.hl7.fhir.utilities.xhtml.CDANarrativeFormat.processChildren(CDANarrativeFormat.java:346)
at org.hl7.fhir.utilities.xhtml.CDANarrativeFormat.convert(CDANarrativeFormat.java:340)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:678)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.compose(XmlParser.java:599)
at ch.ahdis.matchbox.mappinglanguage.StructureMapTransformProvider.transfrom(StructureMapTransformProvider.java:202)
at ch.ahdis.matchbox.mappinglanguage.StructureMapTransformProvider.manualInputAndOutput(StructureMapTransformProvider.java:158)
... 39 common frames omitted
2021-09-22 08:59:13.068 [http-nio-8080-exec-6] ERROR o.a.c.c.C.[.[.[.[jpaRestfulServer] [DirectJDKLog.java:175] Servlet.service() for servlet [jpaRestfulServer] in context with path [/matchbox] threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:584)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:227)
at ca.uhn.fhir.rest.server.servlet.ServletRestfulResponse.getResponseWriter(ServletRestfulResponse.java:76)
at ca.uhn.fhir.rest.server.RestfulServerUtils.streamResponseAsResource(RestfulServerUtils.java:1004)
at ca.uhn.fhir.rest.server.RestfulResponse.streamResponseAsResource(RestfulResponse.java:87)
at ca.uhn.fhir.rest.server.interceptor.ExceptionHandlingInterceptor.handleException(Exception
it is due that in the input we have two div elements:
For FHIR to CDA transformation we have an issued that the xml output ist cutoff:
the server throws internally an exception with:
Caused by: org.hl7.fhir.exceptions.FHIRException: Unknown element div
at org.hl7.fhir.utilities.xhtml.CDANarrativeFormat.processChildNode(CDANarrativeFormat.java:405)
at org.hl7.fhir.utilities.xhtml.CDANarrativeFormat.processChildren(CDANarrativeFormat.java:346)
at org.hl7.fhir.utilities.xhtml.CDANarrativeFormat.convert(CDANarrativeFormat.java:340)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:678)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.composeElement(XmlParser.java:731)
at ch.ahdis.matchbox.mappinglanguage.XmlParser.compose(XmlParser.java:599)
at ch.ahdis.matchbox.mappinglanguage.StructureMapTransformProvider.transfrom(StructureMapTransformProvider.java:202)
at ch.ahdis.matchbox.mappinglanguage.StructureMapTransformProvider.manualInputAndOutput(StructureMapTransformProvider.java:158)
... 39 common frames omitted
2021-09-22 08:59:13.068 [http-nio-8080-exec-6] ERROR o.a.c.c.C.[.[.[.[jpaRestfulServer] [DirectJDKLog.java:175] Servlet.service() for servlet [jpaRestfulServer] in context with path [/matchbox] threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:584)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:227)
at ca.uhn.fhir.rest.server.servlet.ServletRestfulResponse.getResponseWriter(ServletRestfulResponse.java:76)
at ca.uhn.fhir.rest.server.RestfulServerUtils.streamResponseAsResource(RestfulServerUtils.java:1004)
at ca.uhn.fhir.rest.server.RestfulResponse.streamResponseAsResource(RestfulResponse.java:87)
at ca.uhn.fhir.rest.server.interceptor.ExceptionHandlingInterceptor.handleException(Exception
it is due that in the input we have two div elements:
instead of cutting of the response it would be helpful if an OperationOutcome error would generated with the exception.
http://localhost:8080/matchbox/fhir/StructureMap/$transform?source=http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmedMedicationCardDocument
testFhir2Cda.txt
The text was updated successfully, but these errors were encountered: