@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; }
@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; }
@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; }
@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; }
@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; }
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.PatientID, VR.LO, IOD.DataElementType.TYPE_1, 1, 1, 0)); return iod; }
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI, IOD.DataElementType.TYPE_1, -1, -1, 0)); return iod; } },
@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; }
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI, IOD.DataElementType.TYPE_1, -1, -1, 0)); return iod; } },
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.PatientID, VR.LO, IOD.DataElementType.TYPE_1, 1, 1, 0)); return iod; }
@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; }
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI, IOD.DataElementType.TYPE_1, -1, -1, 0)); return iod; } },
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.SeriesInstanceUID, VR.UI, IOD.DataElementType.TYPE_1, -1, -1, 0)); return iod; } },
@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; }
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.StudyInstanceUID, VR.UI, IOD.DataElementType.TYPE_1, -1, -1, 0)); return iod; } },
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { IOD iod = queryKeysIOD(rootLevel, relational); iod.add(new IOD.DataElement(Tag.SOPInstanceUID, VR.UI, IOD.DataElementType.TYPE_1, -1, -1, 0)); return iod; } },
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; } }
if (locator != null) el.setLineNumber(locator.getLineNumber()); iod.add(el); elementConditions = true; itemConditions = false;