/** * @return The first repetition of repeating field {@link #element}, creating it if it does not already exist */ public SourceElementComponent getElementFirstRep() { if (getElement().isEmpty()) { addElement(); } return getElement().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.source"); } else if (name.equals("sourceVersion")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.sourceVersion"); } else if (name.equals("target")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.target"); } else if (name.equals("targetVersion")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.targetVersion"); } else if (name.equals("element")) { return addElement(); } else if (name.equals("unmapped")) { this.unmapped = new ConceptMapGroupUnmappedComponent(); return this.unmapped; } else return super.addChild(name); }
source = group.addElement(); source.setCode(theMapping.getSourceCode()); source.setDisplay(theMapping.getSourceDisplay());
source = group.addElement(); source.setCode(theMapping.getSourceCode()); source.setDisplay(theMapping.getSourceDisplay());
String tgts = (eq != ConceptMapEquivalence.UNMATCHED) ? readPrefix(prefixes, lexer) : ""; ConceptMapGroupComponent g = getGroup(map, srcs, tgts); SourceElementComponent e = g.addElement(); e.setCode(sc); if (e.getCode().startsWith("\""))
|| !mapping.getSourceValue().equals(element.getCode())) { element = currentGroup.addElement(); element.setCode(mapping.getSourceValue());
|| !mapping.getSourceValue().equals(element.getCode())) { element = currentGroup.addElement(); element.setCode(mapping.getSourceValue());
List<SourceElementComponentWrapper> ws = convertSourceElementComponent(t); for (SourceElementComponentWrapper w : ws) getGroup(tgt, w.source, w.target).addElement(w.comp);
List<SourceElementComponentWrapper> ws = convertSourceElementComponent(t); for (SourceElementComponentWrapper w : ws) getGroup(tgt, w.source, w.target).addElement(w.comp);
@Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.source"); } else if (name.equals("sourceVersion")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.sourceVersion"); } else if (name.equals("target")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.target"); } else if (name.equals("targetVersion")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.targetVersion"); } else if (name.equals("element")) { return addElement(); } else if (name.equals("unmapped")) { this.unmapped = new ConceptMapGroupUnmappedComponent(); return this.unmapped; } else return super.addChild(name); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -896505829: return getSourceElement(); case 446171197: return getSourceVersionElement(); case -880905839: return getTargetElement(); case -1639412217: return getTargetVersionElement(); case -1662836996: return addElement(); case -194857460: return getUnmapped(); default: return super.makeProperty(hash, name); } }
/** * @return The first repetition of repeating field {@link #element}, creating it if it does not already exist */ public SourceElementComponent getElementFirstRep() { if (getElement().isEmpty()) { addElement(); } return getElement().get(0); }
conceptMapGroupComponent.addElement(sourceElementComponent); hasElements = true;
String tgts = (eq != ConceptMapEquivalence.UNMATCHED) ? readPrefix(prefixes, lexer) : ""; ConceptMapGroupComponent g = getGroup(map, srcs, tgts); SourceElementComponent e = g.addElement(); e.setCode(sc); if (e.getCode().startsWith("\""))
List<SourceElementComponentWrapper> ws = convertSourceElementComponent(t); for (SourceElementComponentWrapper w : ws) getGroup(tgt, w.source, w.target).addElement(w.comp);
List<SourceElementComponentWrapper> ws = convertSourceElementComponent(t); for (SourceElementComponentWrapper w : ws) getGroup(tgt, w.source, w.target).addElement(w.comp);
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -896505829: return getSourceElement(); case 446171197: return getSourceVersionElement(); case -880905839: return getTargetElement(); case -1639412217: return getTargetVersionElement(); case -1662836996: return addElement(); case -194857460: return getUnmapped(); default: return super.makeProperty(hash, name); } }