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 POCDMT000040ClinicalDocumentunmarshall(InputStream cdaInputStream) Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocumentobject.static POCDMT000040ClinicalDocumentunmarshall(String cdaContent) Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocumentobject.static POCDMT000040ClinicalDocumentunmarshall(InputSource inputSource) Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocumentobject.
-
Method Details
-
unmarshall
public static POCDMT000040ClinicalDocument unmarshall(String cdaContent) throws SAXException, javax.xml.bind.JAXBException Unmarshalles a CDA-ELGA document as a specializedPOCDMT000040ClinicalDocumentobject.- 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 specializedPOCDMT000040ClinicalDocumentobject.- 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 specializedPOCDMT000040ClinicalDocumentobject.- Parameters:
inputSource- The CDA XML content as anInputSource.- Returns:
- the unmarshalled clinical document.
- Throws:
SAXException- if any parse errors occur.javax.xml.bind.JAXBException
-