Package org.projecthusky.cda.elga.xml
Class CdaDocumentUnmarshaller
java.lang.Object
org.projecthusky.cda.elga.xml.CdaDocumentUnmarshaller
This class provides an unmarshaller implementation to read CDA-ELGA clinical
documents from their XML representation.
- Author:
- Quentin Ligier
-
Method Summary
Modifier and TypeMethodDescriptionstatic POCDMT000040ClinicalDocument
unmarshall
(InputStream cdaInputStream) Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocument
object.static POCDMT000040ClinicalDocument
unmarshall
(String cdaContent) Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocument
object.static POCDMT000040ClinicalDocument
unmarshall
(InputSource inputSource) Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocument
object.
-
Method Details
-
unmarshall
public static POCDMT000040ClinicalDocument unmarshall(String cdaContent) throws SAXException, javax.xml.bind.JAXBException Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocument
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 POCDMT000040ClinicalDocument unmarshall(InputStream cdaInputStream) throws SAXException, javax.xml.bind.JAXBException Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocument
object.- Parameters:
cdaInputStream
- The CDA XML content as anInputStream
.- Returns:
- the unmarshalled clinical document.
- Throws:
SAXException
- if any parse errors occur.javax.xml.bind.JAXBException
-
unmarshall
public static POCDMT000040ClinicalDocument unmarshall(InputSource inputSource) throws SAXException, javax.xml.bind.JAXBException Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocument
object.- Parameters:
inputSource
- The CDA XML content as anInputSource
.- Returns:
- the unmarshalled clinical document.
- Throws:
SAXException
- if any parse errors occur.javax.xml.bind.JAXBException
-