/** * @return The first repetition of repeating field {@link #dependent}, creating it if it does not already exist */ public StructureMapGroupRuleDependentComponent getDependentFirstRep() { if (getDependent().isEmpty()) { addDependent(); } return getDependent().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); } else if (name.equals("source")) { return addSource(); } else if (name.equals("target")) { return addTarget(); } else if (name.equals("rule")) { return addRule(); } else if (name.equals("dependent")) { return addDependent(); } else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); } else return super.addChild(name); }
/** * @return The first repetition of repeating field {@link #dependent}, creating it if it does not already exist */ public StructureMapGroupRuleDependentComponent getDependentFirstRep() { if (getDependent().isEmpty()) { addDependent(); } return getDependent().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("name")) { throw new FHIRException("Cannot call addChild on a primitive type StructureMap.name"); } else if (name.equals("source")) { return addSource(); } else if (name.equals("target")) { return addTarget(); } else if (name.equals("rule")) { return addRule(); } else if (name.equals("dependent")) { return addDependent(); } else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type StructureMap.documentation"); } else return super.addChild(name); }
public static org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent convertStructureMapGroupRuleComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent(); copyElement(src, tgt); tgt.setName(src.getName()); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) tgt.addSource(convertStructureMapGroupRuleSourceComponent(t)); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent t : src.getTarget()) tgt.addTarget(convertStructureMapGroupRuleTargetComponent(t)); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent t : src.getRule()) tgt.addRule(convertStructureMapGroupRuleComponent(t)); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t)); if (src.hasDocumentation()) tgt.setDocumentation(src.getDocumentation()); return tgt; }
private void parseRuleReference(StructureMapGroupRuleComponent rule, FHIRLexer lexer) throws FHIRLexerException { StructureMapGroupRuleDependentComponent ref = rule.addDependent(); ref.setName(lexer.take()); lexer.token("("); boolean done = false; while (!done) { ref.addVariable(lexer.take()); done = !lexer.hasToken(","); if (!done) lexer.next(); } lexer.token(")"); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3373707: return getNameElement(); case -896505829: return addSource(); case -880905839: return addTarget(); case 3512060: return addRule(); case -1109226753: return addDependent(); case 1587405498: return getDocumentationElement(); default: return super.makeProperty(hash, name); } }
public static org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent convertStructureMapGroupRuleComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent tgt = new org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleComponent(); copyElement(src, tgt); tgt.setName(src.getName()); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleSourceComponent t : src.getSource()) tgt.addSource(convertStructureMapGroupRuleSourceComponent(t)); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent t : src.getTarget()) tgt.addTarget(convertStructureMapGroupRuleTargetComponent(t)); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleComponent t : src.getRule()) tgt.addRule(convertStructureMapGroupRuleComponent(t)); for (org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleDependentComponent t : src.getDependent()) tgt.addDependent(convertStructureMapGroupRuleDependentComponent(t)); if (src.hasDocumentation()) tgt.setDocumentation(src.getDocumentation()); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3373707: return getNameElement(); case -896505829: return addSource(); case -880905839: return addTarget(); case 3512060: return addRule(); case -1109226753: return addDependent(); case 1587405498: return getDocumentationElement(); default: return super.makeProperty(hash, name); } }
private void parseRuleReference(StructureMapGroupRuleComponent rule, FHIRLexer lexer) throws FHIRLexerException { StructureMapGroupRuleDependentComponent ref = rule.addDependent(); ref.setName(lexer.take()); lexer.token("("); boolean done = false; while (!done) { ref.addVariable(lexer.take()); done = !lexer.hasToken(","); if (!done) lexer.next(); } lexer.token(")"); }