au.gov.nehta.vendorlibrary.pcehr.clients.documentexchange
Class UploadDocumentClient

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.Client<ihe.iti.xds_b._2007.DocumentRepositoryPortType>
      extended by au.gov.nehta.vendorlibrary.pcehr.clients.documentexchange.UploadDocumentClient

public final class UploadDocumentClient
extends Client<ihe.iti.xds_b._2007.DocumentRepositoryPortType>

A JAX-WS client to the PCEHR 'Upload Document' web service.


Constructor Summary
UploadDocumentClient(javax.net.ssl.SSLSocketFactory sslSocketFactory, java.security.cert.X509Certificate x509Certificate, au.gov.nehta.xsp.CertificateVerifier certificateVerifier, java.security.PrivateKey privateKey, java.lang.String endpointAddress, boolean setLoggingEnabled)
          Constructor - accepts an optional certificate verifier.
UploadDocumentClient(javax.net.ssl.SSLSocketFactory sslSocketFactory, java.security.cert.X509Certificate x509Certificate, java.security.PrivateKey privateKey, java.lang.String endpointAddress, boolean setLoggingEnabled)
          Constructor - no certificate verification performed.
 
Method Summary
 oasis.names.tc.ebxml_regrep.xsd.rs._3.RegistryResponseType uploadDocument(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader, byte[] packageContent, CodedValue healthcareFacilityType, CodedValue practiceSettingTypeCode, CodedValue formatCode)
          Submit a document to the document repository.
 oasis.names.tc.ebxml_regrep.xsd.rs._3.RegistryResponseType uploadDocument(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader, byte[] packageContent, java.lang.String replacementId, CodedValue healthcareFacilityType, CodedValue practiceSettingTypeCode, CodedValue formatCode)
          Submit a document to the document repository.
 oasis.names.tc.ebxml_regrep.xsd.rs._3.RegistryResponseType uploadDocument(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader, byte[] packageContent, java.lang.String replacementId, java.lang.String repositoryUniqueId, CodedValue healthcareFacilityType, CodedValue practiceSettingTypeCode, CodedValue formatCode)
          Submit a document to the document repository.
 
Methods inherited from class au.gov.nehta.vendorlibrary.pcehr.clients.common.Client
getHandlerChain, getLastSoapRequest, getLastSoapResponse, getPort, setMTOMEnabled, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadDocumentClient

public UploadDocumentClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
                            java.security.cert.X509Certificate x509Certificate,
                            java.security.PrivateKey privateKey,
                            java.lang.String endpointAddress,
                            boolean setLoggingEnabled)
Constructor - no certificate verification performed.

Parameters:
sslSocketFactory - the SSLSocketFactory to be used when connecting to the web service provider (mandatory).
x509Certificate - the certificate key to be used for signing (mandatory)
privateKey - the private key to be used for signing (mandatory)
endpointAddress - the endpoint address of the web service (mandatory).
setLoggingEnabled - set to true to enable logging (mandatory).

UploadDocumentClient

public UploadDocumentClient(javax.net.ssl.SSLSocketFactory sslSocketFactory,
                            java.security.cert.X509Certificate x509Certificate,
                            au.gov.nehta.xsp.CertificateVerifier certificateVerifier,
                            java.security.PrivateKey privateKey,
                            java.lang.String endpointAddress,
                            boolean setLoggingEnabled)
Constructor - accepts an optional certificate verifier.

Parameters:
sslSocketFactory - the SSLSocketFactory to be used when connecting to the web service provider (mandatory).
x509Certificate - the certificate key to be used for signing (mandatory)
certificateVerifier - CertificateVerifier implementation (optional).
privateKey - the private key to be used for signing (mandatory)
endpointAddress - the endpoint address of the web service (mandatory).
setLoggingEnabled - set to true to enable logging (mandatory).
Method Detail

uploadDocument

public oasis.names.tc.ebxml_regrep.xsd.rs._3.RegistryResponseType uploadDocument(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader,
                                                                                 byte[] packageContent,
                                                                                 CodedValue healthcareFacilityType,
                                                                                 CodedValue practiceSettingTypeCode,
                                                                                 CodedValue formatCode)
                                                                          throws java.io.IOException,
                                                                                 org.xml.sax.SAXException,
                                                                                 javax.xml.xpath.XPathExpressionException,
                                                                                 javax.xml.parsers.ParserConfigurationException
Submit a document to the document repository.

Parameters:
commonHeader - PCEHR common header
packageContent - CDA package byte content
healthcareFacilityType - Healthcare facility type
practiceSettingTypeCode - Practice setting type
formatCode - document format code
Returns:
RegistryResponseType
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
javax.xml.parsers.ParserConfigurationException

uploadDocument

public oasis.names.tc.ebxml_regrep.xsd.rs._3.RegistryResponseType uploadDocument(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader,
                                                                                 byte[] packageContent,
                                                                                 java.lang.String replacementId,
                                                                                 CodedValue healthcareFacilityType,
                                                                                 CodedValue practiceSettingTypeCode,
                                                                                 CodedValue formatCode)
                                                                          throws javax.xml.xpath.XPathExpressionException,
                                                                                 java.io.IOException,
                                                                                 org.xml.sax.SAXException,
                                                                                 javax.xml.parsers.ParserConfigurationException
Submit a document to the document repository. Using this Size and Hash if Repository ID is not null

Parameters:
commonHeader - PCEHR common header
packageContent - CDA package byte content
replacementId - repository $XDSDocumentEntry.EntryUUID for document to be replaced. Can be left null if upload is a new document.
healthcareFacilityType - Healthcare facility type
practiceSettingTypeCode - Practice setting type
formatCode - document format code
Returns:
RegistryResponseType
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
javax.xml.parsers.ParserConfigurationException

uploadDocument

public oasis.names.tc.ebxml_regrep.xsd.rs._3.RegistryResponseType uploadDocument(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader,
                                                                                 byte[] packageContent,
                                                                                 java.lang.String replacementId,
                                                                                 java.lang.String repositoryUniqueId,
                                                                                 CodedValue healthcareFacilityType,
                                                                                 CodedValue practiceSettingTypeCode,
                                                                                 CodedValue formatCode)
                                                                          throws java.io.IOException,
                                                                                 org.xml.sax.SAXException,
                                                                                 javax.xml.xpath.XPathExpressionException,
                                                                                 javax.xml.parsers.ParserConfigurationException
Submit a document to the document repository. Add a Size and Hash if repository ID is not null

Parameters:
commonHeader - PCEHR common header
packageContent - CDA package byte content
replacementId - repository $XDSDocumentEntry.EntryUUID for document to be replaced. Can be left null if upload is a new document.
healthcareFacilityType - Healthcare facility type
practiceSettingTypeCode - Practice setting type
formatCode - document format code
Returns:
RegistryResponseType
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
javax.xml.parsers.ParserConfigurationException