/** * @return The name of used to identify the parameter. */ public String getName() { return this.name == null ? null : this.name.getValue(); }
public boolean hasTarget() { if (this.target == null) return false; for (CodeType item : this.target) if (!item.isEmpty()) return true; return false; }
/** * @return {@link #subjectType} (Identifies the types of subjects that can be the subject of the questionnaire.) */ // syntactic sugar public CodeType addSubjectTypeElement() {//2 CodeType t = new CodeType(); if (this.subjectType == null) this.subjectType = new ArrayList<CodeType>(); this.subjectType.add(t); return t; }
public CodeableConcept castToCodeableConcept(Base b) throws FHIRException { if (b instanceof CodeableConcept) return (CodeableConcept) b; else if (b instanceof CodeType) { CodeableConcept cc = new CodeableConcept(); cc.addCoding().setCode(((CodeType) b).asStringValue()); return cc; } else throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a CodeableConcept"); }
/** * @return {@link #mode} (How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value */ public CodeType getModeElement() { if (this.mode == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SectionComponent.mode"); else if (Configuration.doAutoCreate()) this.mode = new CodeType(); // bb return this.mode; }
public SourceElementComponent copy() { SourceElementComponent dst = new SourceElementComponent(); copyValues(dst); dst.codeSystem = codeSystem == null ? null : codeSystem.copy(); dst.code = code == null ? null : code.copy(); if (target != null) { dst.target = new ArrayList<TargetElementComponent>(); for (TargetElementComponent i : target) dst.target.add(i.copy()); }; return dst; }
/** * @param value A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jwt for JWT, and image/* for a graphical image of a signature. */ public Signature setContentType(String value) { if (this.contentType == null) this.contentType = new CodeType(); this.contentType.setValue(value); return this; }
/** * @return The human language of the content. The value can be any valid value according to BCP 47. */ public String getLanguage() { return this.language == null ? null : this.language.getValue(); }
/** * @return {@link #confidentiality} (The code specifying the level of confidentiality of the Composition.). This is the underlying object with id, value and extensions. The accessor "getConfidentiality" gives direct access to the value */ public CodeType getConfidentialityElement() { if (this.confidentiality == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Composition.confidentiality"); else if (Configuration.doAutoCreate()) this.confidentiality = new CodeType(); // bb return this.confidentiality; }
public TypeRefComponent copy() { TypeRefComponent dst = new TypeRefComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); if (profile != null) { dst.profile = new ArrayList<UriType>(); for (UriType i : profile) dst.profile.add(i.copy()); }; if (aggregation != null) { dst.aggregation = new ArrayList<Enumeration<AggregationMode>>(); for (Enumeration<AggregationMode> i : aggregation) dst.aggregation.add(i.copy()); }; return dst; }
public boolean hasFormat() { if (this.format == null) return false; for (CodeType item : this.format) if (!item.isEmpty()) return true; return false; }
/** * @return The base resource type that this search parameter refers to. */ public String getBase() { return this.base == null ? null : this.base.getValue(); }
/** * @return {@link #language} (The base language in which the resource is written.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value */ public CodeType getLanguageElement() { if (this.language == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Resource.language"); else if (Configuration.doAutoCreate()) this.language = new CodeType(); // bb return this.language; }
public ConceptReferenceComponent copy() { ConceptReferenceComponent dst = new ConceptReferenceComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.display = display == null ? null : display.copy(); if (designation != null) { dst.designation = new ArrayList<ConceptDefinitionDesignationComponent>(); for (ConceptDefinitionDesignationComponent i : designation) dst.designation.add(i.copy()); }; return dst; }
public boolean hasType() { if (this.type == null) return false; for (CodeType item : this.type) if (!item.isEmpty()) return true; return false; }
/** * @return MimeType of the binary content represented as a standard MimeType (BCP 13). */ public String getContentType() { return this.contentType == null ? null : this.contentType.getValue(); }