コード例 #1
0
  public static List<Code> getSubsumes(ValueSetDefineConceptComponent c) {
    List<Code> res = new ArrayList<Code>();

    for (Extension e : c.getExtensions()) {
      if (EXT_SUBSUMES.equals(e.getUrlSimple())) res.add((Code) e.getValue());
    }
    return res;
  }
コード例 #2
0
 public static void addSubsumes(ValueSetDefineConceptComponent nc, String code) throws Exception {
   nc.getModifierExtensions().add(Factory.newExtension(EXT_SUBSUMES, Factory.newCode(code), true));
 }