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

How to use
SubmitObjectsRequest
in
org.dcm4chee.xds2.infoset.rim

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.SubmitObjectsRequest (Showing top 11 results out of 315)

origin: org.dcm4che/dcm4chee-xds2-infoset

public static List<ExtrinsicObjectType> getExtrinsicObjects(SubmitObjectsRequest so) {
  List<ExtrinsicObjectType> extrObjs = new ArrayList<ExtrinsicObjectType>();
  List<JAXBElement<? extends IdentifiableType>> list = so.getRegistryObjectList().getIdentifiable();
  IdentifiableType o;
  for ( int i = 0, len = list.size() ; i < len ; i++ ) {
    o = list.get(i).getValue();
    if ( o instanceof ExtrinsicObjectType) {
      extrObjs.add((ExtrinsicObjectType) o);
    }
  }
  return extrObjs;
}
origin: org.dcm4che/dcm4chee-xds2-infoset

/**
 * Create an instance of {@link SubmitObjectsRequest }
 * 
 */
public SubmitObjectsRequest createSubmitObjectsRequest() {
  return new SubmitObjectsRequest();
}
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-ws

private String getSourceID(ProvideAndRegisterDocumentSetRequestType req) {
  List<JAXBElement<? extends IdentifiableType>> objs = req.getSubmitObjectsRequest().getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  for (int i = 0, len = objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      return InfosetUtil.getExternalIdentifierValue(XDSConstants.UUID_XDSSubmissionSet_sourceId, (RegistryPackageType)obj);
    }
  }
  return null;
}
origin: org.dcm4che/dcm4chee-xds2-repository-ws

private String getSourceID(ProvideAndRegisterDocumentSetRequestType req) throws XDSException {
  List<JAXBElement<? extends IdentifiableType>> objs = req.getSubmitObjectsRequest().getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  for (int i = 0, len = objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      return InfosetUtil.getExternalIdentifierValue(XDSConstants.UUID_XDSSubmissionSet_sourceId, (RegistryPackageType)obj);
    }
  }
  throw new XDSException(XDSException.XDS_ERR_REPOSITORY_METADATA_ERROR, "Missing XDSSubmissionSet.sourceId!", null);
}
origin: org.dcm4che/dcm4chee-xds2-infoset

public static RegistryPackageType getRegistryPackage(SubmitObjectsRequest sor, String classificationUUID) {
  List<JAXBElement<? extends IdentifiableType>> list = sor.getRegistryObjectList().getIdentifiable();
  String id = null;
  IdentifiableType identifiable;
  if ( classificationUUID != null ) {
    ClassificationType ct;
    for ( int i = 0, len = list.size() ; i < len ; i++) {
      identifiable = list.get(i).getValue();
      if ( identifiable instanceof ClassificationType) {
        ct = (ClassificationType) identifiable;
        if ( classificationUUID.equals( ct.getClassificationNode())) {
          id = ct.getClassifiedObject();
          break;
        }
      }
    }
  }
  RegistryPackageType rp;
  for ( int i = 0, len = list.size() ; i < len ; i++ ) {
    identifiable = list.get(i).getValue();
    if ( identifiable instanceof RegistryPackageType) {
      rp = (RegistryPackageType) identifiable;
      if ( id == null || id.equals( rp.getId())) {
        return rp;
      }
    }
  }
  return null;
}
origin: org.dcm4che/dcm4chee-xds2-repository-ws

private String[] getSubmissionUIDandPatID(SubmitObjectsRequest req) {
  String[] result = new String[2];
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  whole: for (int i=0,len=objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      List<ExternalIdentifierType> list = ((RegistryPackageType)obj).getExternalIdentifier();
      if (list != null) {
        for (ExternalIdentifierType eiType : list) {
          if (XDSConstants.UUID_XDSSubmissionSet_patientId.equals(eiType.getIdentificationScheme())) {
            result[1] = eiType.getValue();
          } else if (XDSConstants.UUID_XDSSubmissionSet_uniqueId.equals(eiType.getIdentificationScheme())) {
            result[0] = eiType.getValue();
          } else {
            continue;
          }
          if (result[0] != null && result[1] != null)
            break whole;
        }
      }
    }
  }
  return result;
}
origin: org.dcm4che/dcm4chee-xds2-ws

private String[] getSubmissionUIDandPatID(SubmitObjectsRequest req) {
  String[] result = new String[2];
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  whole: for (int i=0,len=objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      List<ExternalIdentifierType> list = ((RegistryPackageType)obj).getExternalIdentifier();
      if (list != null) {
        for (ExternalIdentifierType eiType : list) {
          if (XDSConstants.UUID_XDSSubmissionSet_patientId.equals(eiType.getIdentificationScheme())) {
            result[1] = eiType.getValue();
          } else if (XDSConstants.UUID_XDSSubmissionSet_uniqueId.equals(eiType.getIdentificationScheme())) {
            result[0] = eiType.getValue();
          } else {
            continue;
          }
          if (result[0] != null && result[1] != null)
            break whole;
        }
      }
    
    }
  }
  return result;
}
origin: org.dcm4che/dcm4chee-xds2-ws

private List<Identifiable> store(SubmitObjectsRequest req, XDSPersistenceWrapper wrapper) throws XDSException {
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  List<Identifiable> objects = new ArrayList<Identifiable>();
origin: org.dcm4che/dcm4chee-xds2-ws

private String[] getSubmissionUIDandPatID(SubmitObjectsRequest req) {
  String[] result = new String[]{UNKNOWN, UNKNOWN};
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  whole: for (int i=0,len=objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      List<ExternalIdentifierType> list = ((RegistryPackageType)obj).getExternalIdentifier();
      if (list != null) {
        for (ExternalIdentifierType eiType : list) {
          if (XDSConstants.UUID_XDSSubmissionSet_patientId.equals(eiType.getIdentificationScheme())) {
            if (eiType.getValue() != null)
              result[1] = eiType.getValue();
          } else if (XDSConstants.UUID_XDSSubmissionSet_uniqueId.equals(eiType.getIdentificationScheme())) {
            if (eiType.getValue() != null)
              result[0] = eiType.getValue();
          } else {
            continue;
          }
          if (result[0] != UNKNOWN && result[1] != UNKNOWN)
            break whole;
        }
      }
    
    }
  }
  return result;
}
 
origin: org.dcm4che/dcm4chee-xds2-ws

private void preMetadataCheck(SubmitObjectsRequest req) throws XDSException {
  XdsRegistry cfg = XdsDevice.getXdsRegistry();
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  List<ExternalIdentifierType> list;
org.dcm4chee.xds2.infoset.rimSubmitObjectsRequest

Javadoc

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType> 
<complexContent> 
<extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0}RegistryRequestType"> 
<sequence> 
<element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}RegistryObjectList"/> 
</sequence> 
</extension> 
</complexContent> 
</complexType> 

Most used methods

  • getRegistryObjectList
    Gets the value of the registryObjectList property.
  • <init>
  • setRegistryObjectList
    Sets the value of the registryObjectList property.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTable (javax.swing)
  • Top Sublime Text plugins
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