private boolean match(Attributes item, String[] ss) { String val = item.getString(tag, valueIndex); if (val == null) return not ? !matchNotPresent : matchNotPresent; for (String s : ss) { if (s.equals(val)) return !not; } return not; }
public String selectStringValue(Attributes attrs, String defVal) { Attributes item = attrs.getNestedDataset(itemPointers); return item != null ? item.getString(privateCreator, tag, vr, valueIndex, defVal) : defVal; }
public static IDWithIssuer valueOf(Attributes attrs, int idTag, int issuerSeqTag) { String id = attrs.getString(idTag); if (id == null) return null; return new IDWithIssuer(id, Issuer.valueOf(attrs.getNestedDataset(issuerSeqTag))); }
public static IDWithIssuer fromPatientIDWithIssuer(Attributes attrs) { String id = attrs.getString(Tag.PatientID); if (id == null) return null; return new IDWithIssuer(id, Issuer.fromIssuerOfPatientID(attrs)); }