示例#1
0
 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;
 }
示例#3
0
  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)));
  }
示例#4
0
  public static IDWithIssuer fromPatientIDWithIssuer(Attributes attrs) {
    String id = attrs.getString(Tag.PatientID);
    if (id == null) return null;

    return new IDWithIssuer(id, Issuer.fromIssuerOfPatientID(attrs));
  }