@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); }
public org.hl7.fhir.instance.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ContactPoint tgt = new org.hl7.fhir.instance.model.ContactPoint(); copyElement(src, tgt); if (src.hasSystem()) tgt.setSystem(convertContactPointSystem(src.getSystem())); tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); tgt.setRank(src.getRank()); if (src.hasPeriod()) tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public static org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ContactPoint tgt = new org.hl7.fhir.dstu2016may.model.ContactPoint(); copyElement(src, tgt); tgt.setSystem(convertContactPointSystem(src.getSystem())); if (src.hasValue()) tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); if (src.hasRank()) tgt.setRank(src.getRank()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
@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); }
public static org.hl7.fhir.dstu2016may.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ContactPoint tgt = new org.hl7.fhir.dstu2016may.model.ContactPoint(); copyElement(src, tgt); tgt.setSystem(convertContactPointSystem(src.getSystem())); if (src.hasValue()) tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); if (src.hasRank()) tgt.setRank(src.getRank()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
public org.hl7.fhir.instance.model.ContactPoint convertContactPoint(org.hl7.fhir.r4.model.ContactPoint src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ContactPoint tgt = new org.hl7.fhir.instance.model.ContactPoint(); copyElement(src, tgt); if (src.hasSystem()) tgt.setSystem(convertContactPointSystem(src.getSystem())); tgt.setValue(src.getValue()); tgt.setUse(convertContactPointUse(src.getUse())); tgt.setRank(src.getRank()); if (src.hasPeriod()) tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }