public static boolean matches(ContactPoint c1, ContactPoint c2, Object profile) { if (profile != null) throw new NotImplementedException("Not Implemented Yet"); // in the absence of a profile, we insist on system return matches(c1.getSystemElement(), c2.getSystemElement(), null) && matches(c1.getValue(), c2.getValue(), null); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -887328209: return getSystemElement(); case 111972721: return getValueElement(); case 116103: return getUseElement(); case 3492908: return getRankElement(); case -991726143: return getPeriod(); default: return super.makeProperty(hash, name); } }
continue; systems.add(nextValue.getSystemElement().getValueAsString()); codes.add(nextValue.getValueElement().getValue()); } else if (nextObject instanceof Enumeration<?>) {
private void checkContactPoint(List<ValidationMessage> errors, String path, Element focus, ContactPoint fixed) { checkFixedValue(errors, path + ".system", focus.getNamedChild("system"), fixed.getSystemElement(), "system", focus); checkFixedValue(errors, path + ".value", focus.getNamedChild("value"), fixed.getValueElement(), "value", focus); checkFixedValue(errors, path + ".use", focus.getNamedChild("use"), fixed.getUseElement(), "use", focus); checkFixedValue(errors, path + ".period", focus.getNamedChild("period"), fixed.getPeriod(), "period", focus); }
public static boolean matches(ContactPoint c1, ContactPoint c2, Object profile) { if (profile != null) throw new NotImplementedException("Not Implemented Yet"); // in the absence of a profile, we insist on system return matches(c1.getSystemElement(), c2.getSystemElement(), null) && matches(c1.getValue(), c2.getValue(), null); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -887328209: return getSystemElement(); case 111972721: return getValueElement(); case 116103: return getUseElement(); case 3492908: return getRankElement(); case -991726143: return getPeriod(); default: return super.makeProperty(hash, name); } }
private void checkContactPoint(List<ValidationMessage> errors, String path, Element focus, ContactPoint fixed) { checkFixedValue(errors, path + ".system", focus.getNamedChild("system"), fixed.getSystemElement(), "system", focus); checkFixedValue(errors, path + ".value", focus.getNamedChild("value"), fixed.getValueElement(), "value", focus); checkFixedValue(errors, path + ".use", focus.getNamedChild("use"), fixed.getUseElement(), "use", focus); checkFixedValue(errors, path + ".period", focus.getNamedChild("period"), fixed.getPeriod(), "period", focus); }