/** * @param value If this code is not for use as a real concept. */ public ConceptDefinitionComponent setAbstract(boolean value) { if (this.abstract_ == null) this.abstract_ = new BooleanType(); this.abstract_.setValue(value); return this; }
public BooleanType(String value) { super(); setValueAsString(value); }
/** * @return {@link #mustSupport} (If true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way. If false, the element may be ignored and not supported.). This is the underlying object with id, value and extensions. The accessor "getMustSupport" gives direct access to the value */ public BooleanType getMustSupportElement() { if (this.mustSupport == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ElementDefinition.mustSupport"); else if (Configuration.doAutoCreate()) this.mustSupport = new BooleanType(); // bb return this.mustSupport; }
result.add(new BooleanType(all)); return result; } else {// (exp.getParameters().size() == 0) { boolean v = false; if (item instanceof BooleanType) { v = ((BooleanType) item).booleanValue(); } else v = item != null; result.add(new BooleanType(all)); return result;
private String summariseSlicing(ElementDefinitionSlicingComponent slice) { StringBuilder b = new StringBuilder(); boolean first = true; for (StringType d : slice.getDiscriminator()) { if (first) first = false; else b.append(", "); b.append(d); } b.append("("); if (slice.hasOrdered()) b.append(slice.getOrderedElement().asStringValue()); b.append("/"); if (slice.hasRules()) b.append(slice.getRules().toCode()); b.append(")"); if (slice.hasDescription()) { b.append(" \""); b.append(slice.getDescription()); b.append("\""); } return b.toString(); }
public TestScriptFixtureComponent copy() { TestScriptFixtureComponent dst = new TestScriptFixtureComponent(); copyValues(dst); dst.autocreate = autocreate == null ? null : autocreate.copy(); dst.autodelete = autodelete == null ? null : autodelete.copy(); dst.resource = resource == null ? null : resource.copy(); return dst; }
base.setMustSupportElement(derived.getMustSupportElement().copy()); else if (trimDifferential) derived.setMustSupportElement(null); else derived.getMustSupportElement().setUserData(DERIVATION_EQUALS, true); base.setIsModifierElement(derived.getIsModifierElement().copy()); else if (trimDifferential) derived.setIsModifierElement(null); else derived.getIsModifierElement().setUserData(DERIVATION_EQUALS, true); base.setIsSummaryElement(derived.getIsSummaryElement().copy()); else if (trimDifferential) derived.setIsSummaryElement(null); else derived.getIsSummaryElement().setUserData(DERIVATION_EQUALS, true);
public boolean isEmpty() { return super.isEmpty() && (required == null || required.isEmpty()) && (validated == null || validated.isEmpty()) && (description == null || description.isEmpty()) && (destination == null || destination.isEmpty()) && (link == null || link.isEmpty()) && (conformance == null || conformance.isEmpty()); }
private boolean isBoolean(List<Base> list, boolean b) { return list.size() == 1 && list.get(0) instanceof BooleanType && ((BooleanType) list.get(0)).booleanValue() == b; }
/** * @return {@link #preferred} (Indicates whether this identifier is the "preferred" identifier of this type.). This is the underlying object with id, value and extensions. The accessor "getPreferred" gives direct access to the value */ public BooleanType getPreferredElement() { if (this.preferred == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.preferred"); else if (Configuration.doAutoCreate()) this.preferred = new BooleanType(); // bb return this.preferred; }
result.add(new BooleanType(all)); return result; } else {// (exp.getParameters().size() == 0) { boolean v = false; if (item instanceof BooleanType) { v = ((BooleanType) item).booleanValue(); } else v = item != null; result.add(new BooleanType(all)); return result;
String value = focus.getAttribute("value"); if (fixed instanceof org.hl7.fhir.instance.model.BooleanType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.instance.model.BooleanType) fixed).asStringValue(), value), "Value is '" + value + "' but must be '" + ((org.hl7.fhir.instance.model.BooleanType) fixed).asStringValue() + "'"); else if (fixed instanceof org.hl7.fhir.instance.model.IntegerType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.instance.model.IntegerType) fixed).asStringValue(), value),
public PatientCommunicationComponent copy() { PatientCommunicationComponent dst = new PatientCommunicationComponent(); copyValues(dst); dst.language = language == null ? null : language.copy(); dst.preferred = preferred == null ? null : preferred.copy(); return dst; }
base.setMustSupportElement(derived.getMustSupportElement().copy()); else if (trimDifferential) derived.setMustSupportElement(null); else derived.getMustSupportElement().setUserData(DERIVATION_EQUALS, true); base.setIsModifierElement(derived.getIsModifierElement().copy()); else if (trimDifferential) derived.setIsModifierElement(null); else derived.getIsModifierElement().setUserData(DERIVATION_EQUALS, true); base.setIsSummaryElement(derived.getIsSummaryElement().copy()); else if (trimDifferential) derived.setIsSummaryElement(null); else derived.getIsSummaryElement().setUserData(DERIVATION_EQUALS, true);
public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty()) && (gender == null || gender.isEmpty()) && (birthDate == null || birthDate.isEmpty()) && (address == null || address.isEmpty()) && (photo == null || photo.isEmpty()) && (managingOrganization == null || managingOrganization.isEmpty()) && (active == null || active.isEmpty()) && (link == null || link.isEmpty()); }
private boolean isBoolean(List<Base> list, boolean b) { return list.size() == 1 && list.get(0) instanceof BooleanType && ((BooleanType) list.get(0)).booleanValue() == b; }
/** * @param value Set this to true if the record is saying that the medication was NOT administered. */ public MedicationAdministration setWasNotGiven(boolean value) { if (this.wasNotGiven == null) this.wasNotGiven = new BooleanType(); this.wasNotGiven.setValue(value); return this; }
/** * @return {@link #active} (Whether this person's record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value */ public BooleanType getActiveElement() { if (this.active == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Person.active"); else if (Configuration.doAutoCreate()) this.active = new BooleanType(); // bb return this.active; }