Class CdaDocumentUnmarshaller

java.lang.Object
org.projecthusky.cda.elga.xml.CdaDocumentUnmarshaller

public class CdaDocumentUnmarshaller extends Object
This class provides an unmarshaller implementation to read CDA-ELGA clinical documents from their XML representation.
Author:
Quentin Ligier
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.projecthusky.common.hl7cdar2.POCDMT000040ClinicalDocument
    unmarshall(InputStream cdaInputStream)
    Unmarshalles a CDA-ELGA document as a specialized POCDMT000040ClinicalDocument object.
    static org.projecthusky.common.hl7cdar2.POCDMT000040ClinicalDocument
    unmarshall(String cdaContent)
    Unmarshalles a CDA-ELGA document as a specialized POCDMT000040ClinicalDocument object.
    static org.projecthusky.common.hl7cdar2.POCDMT000040ClinicalDocument
    unmarshall(InputSource inputSource)
    Unmarshalles a CDA-ELGA document as a specialized POCDMT000040ClinicalDocument object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • unmarshall

      public static org.projecthusky.common.hl7cdar2.POCDMT000040ClinicalDocument unmarshall(String cdaContent) throws SAXException, javax.xml.bind.JAXBException
      Unmarshalles a CDA-ELGA document as a specialized POCDMT000040ClinicalDocument object.
      Parameters:
      cdaContent - The CDA XML content as a string.
      Returns:
      the unmarshalled clinical document.
      Throws:
      SAXException - if any parse errors occur.
      javax.xml.bind.JAXBException
    • unmarshall

      public static org.projecthusky.common.hl7cdar2.POCDMT000040ClinicalDocument unmarshall(InputStream cdaInputStream) throws SAXException, javax.xml.bind.JAXBException
      Unmarshalles a CDA-ELGA document as a specialized POCDMT000040ClinicalDocument object.
      Parameters:
      cdaInputStream - The CDA XML content as an InputStream.
      Returns:
      the unmarshalled clinical document.
      Throws:
      SAXException - if any parse errors occur.
      javax.xml.bind.JAXBException
    • unmarshall

      public static org.projecthusky.common.hl7cdar2.POCDMT000040ClinicalDocument unmarshall(InputSource inputSource) throws SAXException, javax.xml.bind.JAXBException
      Unmarshalles a CDA-ELGA document as a specialized POCDMT000040ClinicalDocument object.
      Parameters:
      inputSource - The CDA XML content as an InputSource.
      Returns:
      the unmarshalled clinical document.
      Throws:
      SAXException - if any parse errors occur.
      javax.xml.bind.JAXBException