Tabnine Logo
ObjectFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
ObjectFactory
in
org.dcm4chee.xds2.infoset.ihe

Best Java code snippets using org.dcm4chee.xds2.infoset.ihe.ObjectFactory (Showing top 20 results out of 315)

origin: org.dcm4che/dcm4chee-xds2-xcai-ws

private RetrieveDocumentSetResponseType doSourceRetrieve(RetrieveImagingDocumentSetRequestType req, boolean hasRespondingGWforHome) {
  RetrieveDocumentSetResponseType rsp = null, tmpRsp;
  for (Entry<String, List<StudyRequest>> entry : XDSUtil.splitRequestPerSrcID(req).entrySet()) {
    req.getStudyRequest().clear();
    req.getStudyRequest().addAll(entry.getValue());
    tmpRsp = doSourceRetrieve(entry.getKey(), req, hasRespondingGWforHome);
    if (rsp == null) {
      rsp = tmpRsp;
    } else {
      XDSUtil.addResponse(tmpRsp, rsp);
    }
  }
  if (rsp == null)
    rsp = iheFactory.createRetrieveDocumentSetResponseType();
  return rsp;
}
private RetrieveDocumentSetResponseType doSourceRetrieve(String sourceID, RetrieveImagingDocumentSetRequestType req, boolean hasRespondingGWforHome) {
origin: org.dcm4che/dcm4chee-xds2-repository-ws

private DocumentResponse getDocumentResponse(XDSDocument doc, String repositoryUniqueId) throws IOException {
  RetrieveDocumentSetResponseType.DocumentResponse docRsp;
  docRsp = iheFactory.createRetrieveDocumentSetResponseTypeDocumentResponse();
  docRsp.setDocumentUniqueId(doc.getUID());
  docRsp.setMimeType(doc.getMimeType());
  docRsp.setRepositoryUniqueId(repositoryUniqueId);
  docRsp.setDocument(doc.getContent());
  return docRsp;
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public PnRRequest(String sourceID, String submissionSetUID, String patID, String srcPatID) {
  if (sourceID == null || submissionSetUID == null || patID == null || srcPatID == null) {
    StringBuilder sb = new StringBuilder();
    sb.append("Parameter values must not be null! (");
    if (sourceID == null) sb.append("sourceID,");
    if (submissionSetUID == null) sb.append("submissionSetUID,");
    if (patID == null) sb.append("patID,");
    if (srcPatID == null) sb.append("srcPatID,");
    sb.setCharAt(sb.length()-1, ')');
    throw new IllegalArgumentException(sb.toString());
  }
  this.submissionSetUID = submissionSetUID;
  patientID = patID;
  srcPatIDSlot = Util.createSlot(XDSConstants.SLOT_NAME_SOURCE_PATIENT_ID, null, srcPatID);
  provideAndRegisterDocumentSetRequest = iheFactory.createProvideAndRegisterDocumentSetRequestType();
  SubmitObjectsRequest sor = Util.rimFactory.createSubmitObjectsRequest();
  registryObjectList = Util.rimFactory.createRegistryObjectListType();
  sor.setRegistryObjectList(registryObjectList);
  provideAndRegisterDocumentSetRequest.setSubmitObjectsRequest(sor);
  submissionSet = Util.rimFactory.createRegistryPackageType();
  submissionSet.setId(SUBMISSION_SET_ID);
  submissionSet.getExternalIdentifier().add(Util.createExternalIdentifier(nextID(), XDSConstants.UUID_XDSSubmissionSet_uniqueId, 
      SUBMISSION_SET_ID, submissionSetUID, "XDSSubmissionSet.uniqueId"));
  submissionSet.getExternalIdentifier().add(Util.createExternalIdentifier(nextID(), XDSConstants.UUID_XDSSubmissionSet_patientId, 
      SUBMISSION_SET_ID, patID, "XDSSubmissionSet.patientId"));
  submissionSet.getExternalIdentifier().add(Util.createExternalIdentifier(nextID(), XDSConstants.UUID_XDSSubmissionSet_sourceId, 
      SUBMISSION_SET_ID, sourceID, "XDSSubmissionSet.sourceId"));
  registryObjectList.getIdentifiable().add(Util.rimFactory.createRegistryPackage(submissionSet));
  submissionSet.getClassification().add(Util.createClassification(nextID(), XDSConstants.UUID_XDSSubmissionSet, SUBMISSION_SET_ID));
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public DocumentEntry(PnRRequest pnrReq, String uniqueID, byte[] content, String mime) {
  this.pnrRequest = pnrReq;
  doc = PnRRequest.iheFactory.createProvideAndRegisterDocumentSetRequestTypeDocument();
  ProvideAndRegisterDocumentSetRequestType pnr = pnrRequest.getProvideAndRegisterDocumentSetRequest();
  pnr.getDocument().add(doc);
  id = pnrReq.nextDocumentID();
  doc.setId(id);
  doc.setValue(content);
  metadata = Util.rimFactory.createExtrinsicObjectType();
  metadata.setObjectType(XDSConstants.UUID_XDSDocumentEntry);
  metadata.setId(id);
  metadata.setMimeType(mime);
  List<JAXBElement<? extends IdentifiableType>> list = pnrRequest.getRegistryObjectList().getIdentifiable();
  list.add(Util.rimFactory.createExtrinsicObject(metadata));
  metadata.getExternalIdentifier().add(Util.createExternalIdentifier(pnrRequest.nextID(), XDSConstants.UUID_XDSDocumentEntry_patientId, 
      id, pnrRequest.getPatientID(), XDS_DOCUMENT_ENTRY_PATIENT_ID));
  metadata.getSlot().add(pnrRequest.getSrcPatIDSlot());
  if (pnrRequest.getSrcPatInfo() != null) {
    metadata.getSlot().add(pnrRequest.getSrcPatInfo());
  }
  metadata.getExternalIdentifier().add(Util.createExternalIdentifier(pnrRequest.nextID(), XDSConstants.UUID_XDSDocumentEntry_uniqueId, 
      id, uniqueID, XDS_DOCUMENT_ENTRY_UNIQUE_ID));
  this.uniqueID = uniqueID;
  assoc = pnrReq.addAssociation(PnRRequest.SUBMISSION_SET_ID, id, XDSConstants.HAS_MEMBER);
}
origin: org.dcm4che/dcm4chee-xds2-ws

private DocumentResponse getDocumentResponse(XDSDocument doc, String repositoryUniqueId) throws IOException {
  RetrieveDocumentSetResponseType.DocumentResponse docRsp;
  docRsp = iheFactory.createRetrieveDocumentSetResponseTypeDocumentResponse();
  docRsp.setDocumentUniqueId(doc.getUID());
  docRsp.setMimeType(doc.getMimeType());
  docRsp.setRepositoryUniqueId(repositoryUniqueId);
  docRsp.setDocument(doc.getContent());
  return docRsp;
}
origin: org.dcm4che/dcm4chee-xds2-ws

private RetrieveDocumentSetResponseType doSourceRetrieve(RetrieveImagingDocumentSetRequestType req) {
  RetrieveDocumentSetResponseType rsp = null, tmpRsp;
  for (Entry<String, List<StudyRequest>> entry : XDSUtil.splitRequestPerSrcID(req).entrySet()) {
    req.getStudyRequest().clear();
    req.getStudyRequest().addAll(entry.getValue());
    tmpRsp = doSourceRetrieve(entry.getKey(), req);
    if (rsp == null) {
      rsp = tmpRsp;
    } else {
      XDSUtil.addResponse(tmpRsp, rsp);
    }
  }
  if (rsp == null)
    rsp = iheFactory.createRetrieveDocumentSetResponseType();
  return rsp;
}
private RetrieveDocumentSetResponseType doSourceRetrieve(String sourceID, RetrieveImagingDocumentSetRequestType req) {
origin: org.dcm4che/dcm4chee-xds2-ws

String url = cfg.getRespondingGWURL(home);
if (url == null) {
  return iheFactory.createRetrieveDocumentSetResponseType();
rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-ws

String url = XdsDevice.getXCAiInitiatingGW().getXDSiSourceURL(sourceID);
if (url == null) {
  return iheFactory.createRetrieveDocumentSetResponseType();
rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-xcai-ws

String url = cfg.getRespondingGWURL(home);
if (url == null) {
  return iheFactory.createRetrieveDocumentSetResponseType();
rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-xcai-ws

private RetrieveDocumentSetResponseType doRetrieve(RetrieveImagingDocumentSetRequestType req) {
  RetrieveDocumentSetResponseType rsp = null, tmpRsp;
  for (Entry<String, List<StudyRequest>> entry : XDSUtil.splitRequestPerSrcID(req).entrySet()) {
    req.getStudyRequest().clear();
    req.getStudyRequest().addAll(entry.getValue());
    tmpRsp = doSourceRetrieve(entry.getKey(), req);
    if (rsp == null) {
      rsp = tmpRsp;
    } else {
      XDSUtil.addResponse(tmpRsp, rsp);
    }
  }
  if (rsp == null)
    rsp = iheFactory.createRetrieveDocumentSetResponseType();
  XDSUtil.finishResponse(rsp);
  XDSAudit.logImgRetrieve(rsp, new AuditRequestInfo(LogHandler.getInboundSOAPHeader(), wsContext));
  return rsp;
}
 
origin: org.dcm4che/dcm4chee-xds2-ws

String url = XdsDevice.getXCAiRespondingGW().getXDSiSourceURL(sourceID);
if (url == null) {
  return iheFactory.createRetrieveDocumentSetResponseType();
rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-ws

private RetrieveDocumentSetResponseType doRetrieve(RetrieveImagingDocumentSetRequestType req) {
  RetrieveDocumentSetResponseType rsp = null, tmpRsp;
  for (Entry<String, List<StudyRequest>> entry : XDSUtil.splitRequestPerSrcID(req).entrySet()) {
    req.getStudyRequest().clear();
    req.getStudyRequest().addAll(entry.getValue());
    tmpRsp = doSourceRetrieve(entry.getKey(), req);
    if (rsp == null) {
      rsp = tmpRsp;
    } else {
      XDSUtil.addResponse(tmpRsp, rsp);
    }
  }
  if (rsp == null)
    rsp = iheFactory.createRetrieveDocumentSetResponseType();
  XDSUtil.finishResponse(rsp);
  XDSAudit.logImgRetrieve(rsp, new AuditRequestInfo(LogHandler.getInboundSOAPHeader(), wsContext));
  return rsp;
}
 
origin: org.dcm4che/dcm4chee-xds2-ws

rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-ws

  return iheFactory.createRetrieveDocumentSetResponseType();
rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-xcai-ws

rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-xcai-ws

rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-ws

    x.setSeverity(XDSException.XDS_ERR_SEVERITY_WARNING);
    if (rsp == null)
      rsp = iheFactory.createRetrieveDocumentSetResponseType();
    XDSUtil.addError(rsp, x);
    continue;
  rsp = iheFactory.createRetrieveDocumentSetResponseType();
XDSUtil.finishResponse(rsp);
XDSAudit.logImgRetrieve(rsp, new AuditRequestInfo(LogHandler.getInboundSOAPHeader(), wsContext));
origin: org.dcm4che/dcm4chee-xds2-xcai-ws

    x.setSeverity(XDSException.XDS_ERR_SEVERITY_WARNING);
    if (rsp == null)
      rsp = iheFactory.createRetrieveDocumentSetResponseType();
    XDSUtil.addError(rsp, x);
    continue;
  rsp = iheFactory.createRetrieveDocumentSetResponseType();
XDSUtil.finishResponse(rsp);
XDSAudit.logImgRetrieve(rsp, new AuditRequestInfo(LogHandler.getInboundSOAPHeader(), wsContext));
origin: org.dcm4che/dcm4chee-xds2-ws

rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
origin: org.dcm4che/dcm4chee-xds2-ws

rsp = iheFactory.createRetrieveDocumentSetResponseType();
if (x instanceof XDSException) {
  XDSUtil.addError(rsp, (XDSException) x);
rsp = iheFactory.createRetrieveDocumentSetResponseType();
org.dcm4chee.xds2.infoset.iheObjectFactory

Javadoc

This object contains factory methods for each Java content interface and Java element interface generated in the org.dcm4chee.xds2.infoset.ihe package.

An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.

Most used methods

  • createRetrieveDocumentSetResponseType
    Create an instance of RetrieveDocumentSetResponseType
  • createRetrieveDocumentSetResponseTypeDocumentResponse
    Create an instance of RetrieveDocumentSetResponseType.DocumentResponse
  • createProvideAndRegisterDocumentSetRequestType
    Create an instance of ProvideAndRegisterDocumentSetRequestType
  • createProvideAndRegisterDocumentSetRequestTypeDocument
    Create an instance of ProvideAndRegisterDocumentSetRequestType.Document

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JCheckBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now