Tabnine Logo
ExtrinsicObjectType.getSlot
Code IndexAdd Tabnine to your IDE (free)

How to use
getSlot
method
in
org.dcm4chee.xds2.infoset.rim.ExtrinsicObjectType

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.ExtrinsicObjectType.getSlot (Showing top 2 results out of 315)

origin: org.dcm4che/dcm4chee-xds2-ws

public static void checkAlreadyExists(String uniqueId, ExtrinsicObjectType eoType, XDSRegistryBean session) throws XDSException {
  List<XDSDocumentEntry> docs = session.getDocumentEntriesByUniqueId(uniqueId);
  if (docs.size() > 0) {
    List<String> hash1 = getSlotTypeValues(eoType.getSlot(), "hash");;
    if (hash1 == null || hash1.isEmpty()) {
      throw new XDSException(XDSException.XDS_ERR_REGISTRY_ERROR, 
          "Slot 'hash' missing in DocumentEntry uniqueId:"+uniqueId, null);
    } else if (!hash1.get(0).equals(docs.get(0).getHash())) {
      throw new XDSException(XDSException.XDS_ERR_NON_IDENTICAL_HASH, 
          "DocumentEntry uniqueId:"+uniqueId+
          " already exists but has different hash value! hash:'"+hash1+
          "' vs. '"+docs.get(0).getHash()+"'", null);
    }
  }
}
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);
}
org.dcm4chee.xds2.infoset.rimExtrinsicObjectTypegetSlot

Popular methods of ExtrinsicObjectType

  • getExternalIdentifier
  • getId
  • getMimeType
    Gets the value of the mimeType property.
  • setMimeType
    Sets the value of the mimeType property.
  • <init>
  • getObjectType
  • setId
  • setIsOpaque
    Sets the value of the isOpaque property.
  • setObjectType

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • JPanel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best IntelliJ 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