congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
RegistryPackageType.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
org.dcm4chee.xds2.infoset.rim.RegistryPackageType

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.RegistryPackageType.getId (Showing top 5 results out of 315)

origin: org.dcm4che/dcm4chee-xds2-src-base

private boolean isSubmissionSet(String sourceID) {
  return sourceID!=null && sourceID.equals(submissionSet.getId());
}
origin: org.dcm4che/dcm4chee-xds2-ws

public static void checkFolderMetadata(RegistryPackageType rpType) throws XDSException {
  if (rpType.getId() == null || rpType.getId().trim().length() == 1) {
    throw new XDSException(XDSException.XDS_ERR_REGISTRY_METADATA_ERROR, 
        "Folder: Missing entryUUID attribute!", null);
  }
  
  checkCodes(rpType, toList(XDSConstants.UUID_XDSFolder_codeList));
  checkExternalIdentifiers(rpType, toList(XDSConstants.UUID_XDSFolder_patientId,
      XDSConstants.UUID_XDSFolder_uniqueId));
}
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-ws

public static void checkSubmissionSetMetadata(RegistryPackageType rpType) throws XDSException {
  if (rpType.getId() == null || rpType.getId().trim().length() == 1) {
    throw new XDSException(XDSException.XDS_ERR_REGISTRY_METADATA_ERROR, 
        "SubmissionSet: Missing entryUUID attribute!", null);
  }
  
  checkSlots(rpType, toList(XDSConstants.SLOT_NAME_SUBMISSION_TIME));
  
  checkCodes(rpType, toList(XDSConstants.UUID_XDSSubmissionSet_contentTypeCode));
  checkExternalIdentifiers(rpType, toList(
      XDSConstants.UUID_XDSSubmissionSet_patientId,
      XDSConstants.UUID_XDSSubmissionSet_uniqueId,
      XDSConstants.UUID_XDSSubmissionSet_sourceId
      ));
}
origin: org.dcm4che/dcm4chee-xds2-repository-ws

private List<ExtrinsicObjectType> checkRequest(ProvideAndRegisterDocumentSetRequestType req) throws XDSException {
  SubmitObjectsRequest sor = req.getSubmitObjectsRequest();
  RegistryPackageType submissionSet = InfosetUtil.getRegistryPackage(sor, XDSConstants.UUID_XDSSubmissionSet);
  if ( submissionSet == null ) {
    log.error("No RegistryPackage id=SubmissionSet found!");
    throw new XDSException( XDSException.XDS_ERR_REPOSITORY_ERROR, 
        XDSException.XDS_ERR_MISSING_REGISTRY_PACKAGE, null);
  } else if (submissionSet.getId() == null || submissionSet.getId().trim().length() == 0) {
    throw new XDSException(XDSException.XDS_ERR_REPOSITORY_METADATA_ERROR, "Missing XDSSubmissionSet.entryUUID!", null);
  }
  List<ExtrinsicObjectType> extrObjs = InfosetUtil.getExtrinsicObjects(req.getSubmitObjectsRequest());
  checkPatientIDs(req, submissionSet, extrObjs);
  Map<String, Document> docs = InfosetUtil.getDocuments(req);
  if ( extrObjs.size() > docs.size() ) {
    log.warn("Missing Documents! Found more ExtrinsicObjects("+extrObjs.size()+") than Documents("+docs.size()+")!");
    throw new XDSException(XDSException.XDS_ERR_MISSING_DOCUMENT,
        "", null);
  } else if ( extrObjs.size() < docs.size() ) {
    log.warn("Missing Document Metadata! Found less ExtrinsicObjects("+extrObjs.size()+") than Documents("+docs.size()+")!");
    throw new XDSException(XDSException.XDS_ERR_MISSING_DOCUMENT_METADATA,
        "", null);
  }
  return extrObjs;
}
org.dcm4chee.xds2.infoset.rimRegistryPackageTypegetId

Popular methods of RegistryPackageType

  • getExternalIdentifier
  • <init>
  • getClassification
  • setId

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JButton (javax.swing)
  • JFrame (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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