/** * @return The first repetition of repeating field {@link #dependsOn}, creating it if it does not already exist */ public OtherElementComponent getDependsOnFirstRep() { if (getDependsOn().isEmpty()) { addDependsOn(); } return getDependsOn().get(0); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("display")) { this.display = castToString(value); // StringType } else if (name.equals("equivalence")) { value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> } else if (name.equals("comment")) { this.comment = castToString(value); // StringType } else if (name.equals("dependsOn")) { this.getDependsOn().add((OtherElementComponent) value); } else if (name.equals("product")) { this.getProduct().add((OtherElementComponent) value); } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 1671764162: // display this.display = castToString(value); // StringType return value; case -15828692: // equivalence value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; case -1109214266: // dependsOn this.getDependsOn().add((OtherElementComponent) value); // OtherElementComponent return value; case -309474065: // product this.getProduct().add((OtherElementComponent) value); // OtherElementComponent return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 1671764162: // display this.display = castToString(value); // StringType return value; case -15828692: // equivalence value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; case -1109214266: // dependsOn this.getDependsOn().add((OtherElementComponent) value); // OtherElementComponent return value; case -309474065: // product this.getProduct().add((OtherElementComponent) value); // OtherElementComponent return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("display")) { this.display = castToString(value); // StringType } else if (name.equals("equivalence")) { value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> } else if (name.equals("comment")) { this.comment = castToString(value); // StringType } else if (name.equals("dependsOn")) { this.getDependsOn().add((OtherElementComponent) value); } else if (name.equals("product")) { this.getProduct().add((OtherElementComponent) value); } else return super.setProperty(name, value); return value; }
public static org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent src, org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); if (g.hasTarget()) tgt.setSystem(g.getTarget()); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); if (src.hasComment()) tgt.setComments(src.getComment()); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }
public org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent src, org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); tgt.setCodeSystem(g.getTarget()); tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setComments(src.getComment()); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }
/** * @return The first repetition of repeating field {@link #dependsOn}, creating it if it does not already exist */ public OtherElementComponent getDependsOnFirstRep() { if (getDependsOn().isEmpty()) { addDependsOn(); } return getDependsOn().get(0); }
public static org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent src, org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); if (g.hasTarget()) tgt.setSystem(g.getTarget()); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); if (src.hasComment()) tgt.setComments(src.getComment()); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }
public org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent src, org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent g) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); tgt.setCodeSystem(g.getTarget()); tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setComments(src.getComment()); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.r4.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }