Class 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 Detail

      • CDAR2Renderer

        public CDAR2Renderer()
    • Method Detail

      • render

        public String render​(org.openhealthtools.mdht.uml.cda.ClinicalDocument doc,
                             Object... options)
        Description copied from interface: Renderer
        Renders the model into its external representation.
        Specified by:
        render in interface Renderer<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
      • 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 interface Renderer<org.openhealthtools.mdht.uml.cda.ClinicalDocument>
        Parameters:
        doc - the clinical document
        os - the stream to write the XML to
        options - 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.
        Specified by:
        render in interface Renderer<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
      • 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 interface Renderer<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