Package org.openehealth.ipf.modules.cda
Class CDAR2Renderer
java.lang.Object
org.openehealth.ipf.modules.cda.CDAR2Renderer
- All Implemented Interfaces:
Renderer<org.openhealthtools.mdht.uml.cda.ClinicalDocument>
public class CDAR2Renderer
extends Object
implements Renderer<org.openhealthtools.mdht.uml.cda.ClinicalDocument>
- Author:
- Christian Ohr
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrender
(org.openhealthtools.mdht.uml.cda.ClinicalDocument doc, OutputStream os, Object... options) Renders the clinical document as XML.Renders the model into its external representation.Renders the model into its external representation.Renders the model into its external representation.
-
Constructor Details
-
CDAR2Renderer
public CDAR2Renderer()
-
-
Method Details
-
render
Description copied from interface:Renderer
Renders the model into its external representation. -
render
public OutputStream render(org.openhealthtools.mdht.uml.cda.ClinicalDocument doc, OutputStream os, Object... options) throws IOException Renders the clinical document as XML. Options can be specified for dynamic configuration of the rendering process.- Specified by:
render
in interfaceRenderer<org.openhealthtools.mdht.uml.cda.ClinicalDocument>
- Parameters:
doc
- the clinical documentos
- the stream to write the XML tooptions
- may contains a map with options for rendering.- Returns:
- the external representation of the model
- Throws:
IOException
-
render
public Result render(org.openhealthtools.mdht.uml.cda.ClinicalDocument doc, Result result, Object... options) Description copied from interface:Renderer
Renders the model into its external representation. -
render
public Writer render(org.openhealthtools.mdht.uml.cda.ClinicalDocument doc, Writer writer, Object... options) throws IOException Description copied from interface:Renderer
Renders the model into its external representation.- Specified by:
render
in interfaceRenderer<org.openhealthtools.mdht.uml.cda.ClinicalDocument>
options
- dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.- Returns:
- the external representation of the model
- Throws:
IOException
-