public Attributes findNextStudyRecord(Attributes studyRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findNextDirectoryRecord(studyRec, false, keys(RecordType.STUDY, keys, recFact), ignoreCaseOfPN, matchNoValue); }
protected Attributes findLastLowerDirectoryRecord(Attributes rec) throws IOException { Attributes lower = readLowerDirectoryRecord(rec); if (lower == null) return null; Attributes next; while ((next = readNextDirectoryRecord(lower)) != null) lower = next; return lower; }
public synchronized Attributes findOrAddSeriesRecord(Attributes studyRec, Attributes rec) throws IOException { Attributes seriesRec = super.findSeriesRecord(studyRec, rec.getString(Tag.SeriesInstanceUID)); return seriesRec != null ? seriesRec : addLowerDirectoryRecord(studyRec, rec); }
protected boolean findNextPatient() throws IOException { if (patRec == null) patRec = ddr.findPatientRecord(keys, recFact, ignoreCaseOfPN, matchNoValue); else if (patIDs.length == 1) patRec = null; else patRec = ddr.findNextPatientRecord(patRec, keys, recFact, ignoreCaseOfPN, matchNoValue); return patRec != null; } }
private Attributes keys(RecordType type, Attributes attrs, RecordFactory recFact) { int[] selection = recFact.getRecordKeys(type); Attributes keys = new Attributes(selection.length + 1); keys.setString(Tag.DirectoryRecordType, VR.CS, type.name()); keys.addSelected(attrs, selection); return keys; }
public Attributes findStudyRecord(Attributes patRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findLowerDirectoryRecord(patRec, false, keys(RecordType.STUDY, keys, recFact), ignoreCaseOfPN, matchNoValue); }
public Attributes findNextSeriesRecord(Attributes seriesRec, String... iuids) throws IOException { return findNextDirectoryRecord(seriesRec, false, pk("SERIES", Tag.SeriesInstanceUID, VR.UI, iuids), false, false); }
public Attributes findStudyRecord(Attributes patRec, String... iuids) throws IOException { return findLowerDirectoryRecord(patRec, false, pk("STUDY", Tag.StudyInstanceUID, VR.UI, iuids), false, false); }
public Attributes findPatientRecord(Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findRootDirectoryRecord(false, keys(RecordType.PATIENT, keys, recFact), ignoreCaseOfPN, matchNoValue); }
public Attributes findRootDirectoryRecord(Attributes keys, boolean ignorePrivate, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findRecordInUse(getOffsetOfFirstRootDirectoryRecord(), ignorePrivate, keys, ignoreCaseOfPN, matchNoValue); }
public Attributes findRootInstanceRecord(boolean ignorePrivate, String... iuids) throws IOException { return findRootDirectoryRecord(ignorePrivate, pk(iuids), false, false); }
public Attributes findNextDirectoryRecordInUse(Attributes rec, boolean ignorePrivate) throws IOException { return findNextDirectoryRecord(rec, ignorePrivate, null, false, false); }
public Attributes findNextSeriesRecord(Attributes seriesRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findNextDirectoryRecord(seriesRec, false, keys(RecordType.SERIES, keys, recFact), ignoreCaseOfPN, matchNoValue); }
public Attributes findLowerInstanceRecord(Attributes seriesRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findLowerDirectoryRecord(seriesRec, false, keys(keys, recFact), ignoreCaseOfPN, matchNoValue); }
public Attributes findNextPatientRecord(Attributes patRec, String... ids) throws IOException { return findNextDirectoryRecord(patRec, false, pk("PATIENT", Tag.PatientID, VR.LO, ids), false, false); }
public Attributes findSeriesRecord(Attributes studyRec, String... iuids) throws IOException { return findLowerDirectoryRecord(studyRec, false, pk("SERIES", Tag.SeriesInstanceUID, VR.UI, iuids), false, false); }
public Attributes findNextPatientRecord(Attributes patRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findNextDirectoryRecord(patRec, false, keys(RecordType.PATIENT, keys, recFact), ignoreCaseOfPN, matchNoValue); }
public Attributes findSeriesRecord(Attributes studyRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findLowerDirectoryRecord(studyRec, false, keys(RecordType.SERIES, keys, recFact), ignoreCaseOfPN, matchNoValue); }
public Attributes findNextInstanceRecord(Attributes instRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException { return findNextDirectoryRecord(instRec, false, keys(keys, recFact), ignoreCaseOfPN, matchNoValue); }