public ElementDefinitionConstraintComponent addConstraint() { //3 ElementDefinitionConstraintComponent t = new ElementDefinitionConstraintComponent(); if (this.constraint == null) this.constraint = new ArrayList<ElementDefinitionConstraintComponent>(); this.constraint.add(t); return t; }
public ElementDefinitionConstraintComponent addConstraint() { //3 ElementDefinitionConstraintComponent t = new ElementDefinitionConstraintComponent(); if (this.constraint == null) this.constraint = new ArrayList<ElementDefinitionConstraintComponent>(); this.constraint.add(t); return t; }
public static org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent tgt = new org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent(); copyElement(src, tgt); tgt.setKey(src.getKey()); if (src.hasRequirements()) tgt.setRequirements(src.getRequirements()); tgt.setSeverity(convertConstraintSeverity(src.getSeverity())); tgt.setHuman(src.getHuman()); if (src.hasExpression()) tgt.setExpression(convertToR4Expression(src.getExpression())); tgt.setXpath(src.getXpath()); return tgt; }
public org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.instance.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent tgt = new org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent(); copyElement(src, tgt); tgt.setKey(src.getKey()); tgt.setRequirements(src.getRequirements()); tgt.setSeverity(convertConstraintSeverity(src.getSeverity())); tgt.setHuman(src.getHuman()); tgt.setExpression(ToolingExtensions.readStringExtension(src, ToolingExtensions.EXT_EXPRESSION)); tgt.setXpath(src.getXpath()); return tgt; }
public ElementDefinitionConstraintComponent copy() { ElementDefinitionConstraintComponent dst = new ElementDefinitionConstraintComponent(); copyValues(dst); dst.key = key == null ? null : key.copy(); dst.requirements = requirements == null ? null : requirements.copy(); dst.severity = severity == null ? null : severity.copy(); dst.human = human == null ? null : human.copy(); dst.expression = expression == null ? null : expression.copy(); dst.xpath = xpath == null ? null : xpath.copy(); dst.source = source == null ? null : source.copy(); return dst; }
public static org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.dstu2016may.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent tgt = new org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent(); copyElement(src, tgt); tgt.setKey(src.getKey()); if (src.hasRequirements()) tgt.setRequirements(src.getRequirements()); tgt.setSeverity(convertConstraintSeverity(src.getSeverity())); tgt.setHuman(src.getHuman()); if (src.hasExpression()) tgt.setExpression(convertToR4Expression(src.getExpression())); tgt.setXpath(src.getXpath()); return tgt; }
public org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent convertElementDefinitionConstraintComponent(org.hl7.fhir.instance.model.ElementDefinition.ElementDefinitionConstraintComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent tgt = new org.hl7.fhir.r4.model.ElementDefinition.ElementDefinitionConstraintComponent(); copyElement(src, tgt); tgt.setKey(src.getKey()); tgt.setRequirements(src.getRequirements()); tgt.setSeverity(convertConstraintSeverity(src.getSeverity())); tgt.setHuman(src.getHuman()); tgt.setExpression(ToolingExtensions.readStringExtension(src, ToolingExtensions.EXT_EXPRESSION)); tgt.setXpath(src.getXpath()); return tgt; }
public ElementDefinitionConstraintComponent copy() { ElementDefinitionConstraintComponent dst = new ElementDefinitionConstraintComponent(); copyValues(dst); dst.key = key == null ? null : key.copy(); dst.requirements = requirements == null ? null : requirements.copy(); dst.severity = severity == null ? null : severity.copy(); dst.human = human == null ? null : human.copy(); dst.expression = expression == null ? null : expression.copy(); dst.xpath = xpath == null ? null : xpath.copy(); dst.source = source == null ? null : source.copy(); return dst; }