Codota Logo
IOD.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.dcm4che3.data.IOD
constructor

Best Java code snippets using org.dcm4che3.data.IOD.<init> (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: dcm4che/dcm4che

public static IOD load(String uri) throws IOException {
  if (uri.startsWith("resource:")) {
    try {
      uri = ResourceLocator.getResource(uri.substring(9), IOD.class);
    } catch (NullPointerException npe) {
      throw new FileNotFoundException(uri);
    }
  } else if (uri.indexOf(':') < 2) {
    uri = new File(uri).toURI().toString();
  }
  IOD iod = new IOD();
  iod.parse(uri);
  iod.trimToSize();
  return iod;
}
origin: dcm4che/dcm4che

private void startItem(String id, String idref, String type) throws SAXException {
  IOD iod;
  if (idref != null) {
    if (type != null)
      throw new SAXException("<Item> with idref must not specify type");
      
    iod = id2iod.get(idref);
    if (iod == null)
      throw new SAXException(
          "could not resolve <Item idref:\"" + idref + "\"/>");
  } else { 
    iod = new IOD();
    if (type != null)
      iod.setType(typeOf(type));
    if (locator != null)
      iod.setLineNumber(locator.getLineNumber());
  }
  getLastDataElement().addItemIOD(iod);
  iodStack.add(iod);
  if (id != null)
    id2iod.put(id, iod);
  this.idref = idref;
  itemConditions = true;
  elementConditions = false;
}
origin: dcm4che/dcm4che

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI,
          IOD.DataElementType.TYPE_0, -1, -1, 0));
  iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  return iod;
}
origin: org.dcm4che/dcm4che-net

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI,
          IOD.DataElementType.TYPE_0, -1, -1, 0));
  iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  return iod;
}
origin: dcm4che/dcm4che

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.PatientID, VR.LO,
      !relational && rootLevel == QueryRetrieveLevel.PATIENT
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  return iod;
}
origin: org.dcm4che/dcm4che-net

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.PatientID, VR.LO,
      !relational && rootLevel == QueryRetrieveLevel.PATIENT
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  return iod;
}
origin: dcm4che/dcm4che

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.PatientID, VR.LO,
      !relational && rootLevel == QueryRetrieveLevel.PATIENT
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI,
        !relational 
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  return iod;
}
origin: org.dcm4che/dcm4che-net

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.PatientID, VR.LO,
      !relational && rootLevel == QueryRetrieveLevel.PATIENT
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI,
        !relational 
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI,
      IOD.DataElementType.TYPE_0, -1, -1, 0));
  return iod;
}
origin: dcm4che/dcm4che

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.PatientID, VR.LO,
      !relational && rootLevel == QueryRetrieveLevel.PATIENT
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI,
        !relational 
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI,
        !relational 
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  return iod;
}
origin: org.dcm4che/dcm4che-net

@Override
protected IOD queryKeysIOD(QueryRetrieveLevel rootLevel,
    boolean relational) {
  IOD iod = new IOD();
  iod.add(new IOD.DataElement(Tag.PatientID, VR.LO,
      !relational && rootLevel == QueryRetrieveLevel.PATIENT
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI,
        !relational 
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI,
        !relational 
        ? IOD.DataElementType.TYPE_1
        : IOD.DataElementType.TYPE_3,
      1, 1, 0));
  return iod;
}
origin: dcm4che/dcm4che

  public static IOD valueOf(Code code) {
    IOD iod = new IOD();
    iod.add(new DataElement(
        Tag.CodeValue, VR.SH, DataElementType.TYPE_1, 1, 1, 0)
        .setValues(code.getCodeValue()));
    iod.add(new DataElement(
        Tag.CodingSchemeDesignator, VR.SH, DataElementType.TYPE_1, 1, 1, 0)
        .setValues(code.getCodingSchemeDesignator()));
    String codingSchemeVersion = code.getCodingSchemeVersion();
    if (codingSchemeVersion == null)
      iod.add(new DataElement(
          Tag.CodingSchemeVersion, VR.SH, DataElementType.TYPE_0, -1, -1, 0));
    else
      iod.add(new DataElement(
          Tag.CodingSchemeVersion, VR.SH, DataElementType.TYPE_1, 1, 1, 0));
      
    return iod;
  }
}
org.dcm4che3.dataIOD<init>

Popular methods of IOD

  • load
  • add
  • get
  • getCondition
  • getLineNumber
  • getType
  • parse
  • setCondition
  • setLineNumber
  • setType
  • size
  • trimToSize
  • size,
  • trimToSize,
  • valueOf

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • Kernel (java.awt.image)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now