/** * @return The first repetition of repeating field {@link #product}, creating it if it does not already exist */ public OtherElementComponent getProductFirstRep() { if (getProduct().isEmpty()) { addProduct(); } return getProduct().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); } else if (name.equals("display")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); } else if (name.equals("equivalence")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); } else if (name.equals("comment")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comment"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("product")) { return addProduct(); } else return super.addChild(name); }
/** * @return The first repetition of repeating field {@link #product}, creating it if it does not already exist */ public OtherElementComponent getProductFirstRep() { if (getProduct().isEmpty()) { addProduct(); } return getProduct().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); } else if (name.equals("display")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); } else if (name.equals("equivalence")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); } else if (name.equals("comment")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comment"); } else if (name.equals("dependsOn")) { return addDependsOn(); } else if (name.equals("product")) { return addProduct(); } else return super.addChild(name); }
public static org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); if (src.hasComments()) tgt.setComment(src.getComments()); for (org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }
public org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setComment(src.getComments()); for (org.hl7.fhir.instance.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.instance.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case 1671764162: return getDisplayElement(); case -15828692: return getEquivalenceElement(); case 950398559: return getCommentElement(); case -1109214266: return addDependsOn(); case -309474065: return addProduct(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); tgt.setComment(src.getComments()); for (org.hl7.fhir.instance.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.instance.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }
public static org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent convertTargetElementComponent(org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.TargetElementComponent(); copyElement(src, tgt); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.setEquivalence(convertConceptMapEquivalence(src.getEquivalence())); if (src.hasComments()) tgt.setComment(src.getComments()); for (org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent t : src.getDependsOn()) tgt.addDependsOn(convertOtherElementComponent(t)); for (org.hl7.fhir.dstu2016may.model.ConceptMap.OtherElementComponent t : src.getProduct()) tgt.addProduct(convertOtherElementComponent(t)); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case 1671764162: return getDisplayElement(); case -15828692: return getEquivalenceElement(); case 950398559: return getCommentElement(); case -1109214266: return addDependsOn(); case -309474065: return addProduct(); default: return super.makeProperty(hash, name); } }