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

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

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.SubmitObjectsRequest.getRegistryObjectList (Showing top 9 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-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.rimSubmitObjectsRequestgetRegistryObjectList

Javadoc

Gets the value of the registryObjectList property.

Popular methods of SubmitObjectsRequest

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

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • CodeWhisperer alternatives
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