package org.hl7.fhir.dstu3.model; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of HL7 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ // Generated on Mon, Apr 17, 2017 17:38-0400 for FHIR v3.0.1 import java.util.*; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.dstu3.model.Enumerations.*; import ca.uhn.fhir.model.api.annotation.ResourceDef; import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; import ca.uhn.fhir.model.api.annotation.Child; import ca.uhn.fhir.model.api.annotation.ChildOrder; import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; import org.hl7.fhir.instance.model.api.*; import org.hl7.fhir.exceptions.FHIRException; /** * A code system resource specifies a set of codes drawn from one or more code systems. */ @ResourceDef(name="CodeSystem", profile="http://hl7.org/fhir/Profile/CodeSystem") @ChildOrder(names={"url", "identifier", "version", "name", "title", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "purpose", "copyright", "caseSensitive", "valueSet", "hierarchyMeaning", "compositional", "versionNeeded", "content", "count", "filter", "property", "concept"}) public class CodeSystem extends MetadataResource { public enum CodeSystemHierarchyMeaning { /** * No particular relationship between the concepts can be assumed, except what can be determined by inspection of the definitions of the elements (possible reasons to use this: importing from a source where this is not defined, or where various parts of the hierarchy have different meanings) */ GROUPEDBY, /** * A hierarchy where the child concepts have an IS-A relationship with the parents - that is, all the properties of the parent are also true for its child concepts */ ISA, /** * Child elements list the individual parts of a composite whole (e.g. body site) */ PARTOF, /** * Child concepts in the hierarchy may have only one parent, and there is a presumption that the code system is a "closed world" meaning all things must be in the hierarchy. This results in concepts such as "not otherwise classified." */ CLASSIFIEDWITH, /** * added to help the parsers with the generic types */ NULL; public static CodeSystemHierarchyMeaning fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; if ("grouped-by".equals(codeString)) return GROUPEDBY; if ("is-a".equals(codeString)) return ISA; if ("part-of".equals(codeString)) return PARTOF; if ("classified-with".equals(codeString)) return CLASSIFIEDWITH; if (Configuration.isAcceptInvalidEnums()) return null; else throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'"); } public String toCode() { switch (this) { case GROUPEDBY: return "grouped-by"; case ISA: return "is-a"; case PARTOF: return "part-of"; case CLASSIFIEDWITH: return "classified-with"; default: return "?"; } } public String getSystem() { switch (this) { case GROUPEDBY: return "http://hl7.org/fhir/codesystem-hierarchy-meaning"; case ISA: return "http://hl7.org/fhir/codesystem-hierarchy-meaning"; case PARTOF: return "http://hl7.org/fhir/codesystem-hierarchy-meaning"; case CLASSIFIEDWITH: return "http://hl7.org/fhir/codesystem-hierarchy-meaning"; default: return "?"; } } public String getDefinition() { switch (this) { case GROUPEDBY: return "No particular relationship between the concepts can be assumed, except what can be determined by inspection of the definitions of the elements (possible reasons to use this: importing from a source where this is not defined, or where various parts of the hierarchy have different meanings)"; case ISA: return "A hierarchy where the child concepts have an IS-A relationship with the parents - that is, all the properties of the parent are also true for its child concepts"; case PARTOF: return "Child elements list the individual parts of a composite whole (e.g. body site)"; case CLASSIFIEDWITH: return "Child concepts in the hierarchy may have only one parent, and there is a presumption that the code system is a \"closed world\" meaning all things must be in the hierarchy. This results in concepts such as \"not otherwise classified.\""; default: return "?"; } } public String getDisplay() { switch (this) { case GROUPEDBY: return "Grouped By"; case ISA: return "Is-A"; case PARTOF: return "Part Of"; case CLASSIFIEDWITH: return "Classified With"; default: return "?"; } } } public static class CodeSystemHierarchyMeaningEnumFactory implements EnumFactory<CodeSystemHierarchyMeaning> { public CodeSystemHierarchyMeaning fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) return null; if ("grouped-by".equals(codeString)) return CodeSystemHierarchyMeaning.GROUPEDBY; if ("is-a".equals(codeString)) return CodeSystemHierarchyMeaning.ISA; if ("part-of".equals(codeString)) return CodeSystemHierarchyMeaning.PARTOF; if ("classified-with".equals(codeString)) return CodeSystemHierarchyMeaning.CLASSIFIEDWITH; throw new IllegalArgumentException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'"); } public Enumeration<CodeSystemHierarchyMeaning> fromType(Base code) throws FHIRException { if (code == null) return null; if (code.isEmpty()) return new Enumeration<CodeSystemHierarchyMeaning>(this); String codeString = ((PrimitiveType) code).asStringValue(); if (codeString == null || "".equals(codeString)) return null; if ("grouped-by".equals(codeString)) return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.GROUPEDBY); if ("is-a".equals(codeString)) return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.ISA); if ("part-of".equals(codeString)) return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.PARTOF); if ("classified-with".equals(codeString)) return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.CLASSIFIEDWITH); throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'"); } public String toCode(CodeSystemHierarchyMeaning code) { if (code == CodeSystemHierarchyMeaning.GROUPEDBY) return "grouped-by"; if (code == CodeSystemHierarchyMeaning.ISA) return "is-a"; if (code == CodeSystemHierarchyMeaning.PARTOF) return "part-of"; if (code == CodeSystemHierarchyMeaning.CLASSIFIEDWITH) return "classified-with"; return "?"; } public String toSystem(CodeSystemHierarchyMeaning code) { return code.getSystem(); } } public enum CodeSystemContentMode { /** * None of the concepts defined by the code system are included in the code system resource */ NOTPRESENT, /** * A few representative concepts are included in the code system resource */ EXAMPLE, /** * A subset of the code system concepts are included in the code system resource */ FRAGMENT, /** * All the concepts defined by the code system are included in the code system resource */ COMPLETE, /** * added to help the parsers with the generic types */ NULL; public static CodeSystemContentMode fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; if ("not-present".equals(codeString)) return NOTPRESENT; if ("example".equals(codeString)) return EXAMPLE; if ("fragment".equals(codeString)) return FRAGMENT; if ("complete".equals(codeString)) return COMPLETE; if (Configuration.isAcceptInvalidEnums()) return null; else throw new FHIRException("Unknown CodeSystemContentMode code '"+codeString+"'"); } public String toCode() { switch (this) { case NOTPRESENT: return "not-present"; case EXAMPLE: return "example"; case FRAGMENT: return "fragment"; case COMPLETE: return "complete"; default: return "?"; } } public String getSystem() { switch (this) { case NOTPRESENT: return "http://hl7.org/fhir/codesystem-content-mode"; case EXAMPLE: return "http://hl7.org/fhir/codesystem-content-mode"; case FRAGMENT: return "http://hl7.org/fhir/codesystem-content-mode"; case COMPLETE: return "http://hl7.org/fhir/codesystem-content-mode"; default: return "?"; } } public String getDefinition() { switch (this) { case NOTPRESENT: return "None of the concepts defined by the code system are included in the code system resource"; case EXAMPLE: return "A few representative concepts are included in the code system resource"; case FRAGMENT: return "A subset of the code system concepts are included in the code system resource"; case COMPLETE: return "All the concepts defined by the code system are included in the code system resource"; default: return "?"; } } public String getDisplay() { switch (this) { case NOTPRESENT: return "Not Present"; case EXAMPLE: return "Example"; case FRAGMENT: return "Fragment"; case COMPLETE: return "Complete"; default: return "?"; } } } public static class CodeSystemContentModeEnumFactory implements EnumFactory<CodeSystemContentMode> { public CodeSystemContentMode fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) return null; if ("not-present".equals(codeString)) return CodeSystemContentMode.NOTPRESENT; if ("example".equals(codeString)) return CodeSystemContentMode.EXAMPLE; if ("fragment".equals(codeString)) return CodeSystemContentMode.FRAGMENT; if ("complete".equals(codeString)) return CodeSystemContentMode.COMPLETE; throw new IllegalArgumentException("Unknown CodeSystemContentMode code '"+codeString+"'"); } public Enumeration<CodeSystemContentMode> fromType(Base code) throws FHIRException { if (code == null) return null; if (code.isEmpty()) return new Enumeration<CodeSystemContentMode>(this); String codeString = ((PrimitiveType) code).asStringValue(); if (codeString == null || "".equals(codeString)) return null; if ("not-present".equals(codeString)) return new Enumeration<CodeSystemContentMode>(this, CodeSystemContentMode.NOTPRESENT); if ("example".equals(codeString)) return new Enumeration<CodeSystemContentMode>(this, CodeSystemContentMode.EXAMPLE); if ("fragment".equals(codeString)) return new Enumeration<CodeSystemContentMode>(this, CodeSystemContentMode.FRAGMENT); if ("complete".equals(codeString)) return new Enumeration<CodeSystemContentMode>(this, CodeSystemContentMode.COMPLETE); throw new FHIRException("Unknown CodeSystemContentMode code '"+codeString+"'"); } public String toCode(CodeSystemContentMode code) { if (code == CodeSystemContentMode.NOTPRESENT) return "not-present"; if (code == CodeSystemContentMode.EXAMPLE) return "example"; if (code == CodeSystemContentMode.FRAGMENT) return "fragment"; if (code == CodeSystemContentMode.COMPLETE) return "complete"; return "?"; } public String toSystem(CodeSystemContentMode code) { return code.getSystem(); } } public enum FilterOperator { /** * The specified property of the code equals the provided value. */ EQUAL, /** * Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, including the provided concept itself (i.e. include child codes) */ ISA, /** * Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, excluding the provided concept itself (i.e. include child codes) */ DESCENDENTOF, /** * The specified property of the code does not have an is-a relationship with the provided value. */ ISNOTA, /** * The specified property of the code matches the regex specified in the provided value. */ REGEX, /** * The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list). */ IN, /** * The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list). */ NOTIN, /** * Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (e.g. include parent codes) */ GENERALIZES, /** * The specified property of the code has at least one value (if the specified value is true; if the specified value is false, then matches when the specified property of the code has no values) */ EXISTS, /** * added to help the parsers with the generic types */ NULL; public static FilterOperator fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; if ("=".equals(codeString)) return EQUAL; if ("is-a".equals(codeString)) return ISA; if ("descendent-of".equals(codeString)) return DESCENDENTOF; if ("is-not-a".equals(codeString)) return ISNOTA; if ("regex".equals(codeString)) return REGEX; if ("in".equals(codeString)) return IN; if ("not-in".equals(codeString)) return NOTIN; if ("generalizes".equals(codeString)) return GENERALIZES; if ("exists".equals(codeString)) return EXISTS; if (Configuration.isAcceptInvalidEnums()) return null; else throw new FHIRException("Unknown FilterOperator code '"+codeString+"'"); } public String toCode() { switch (this) { case EQUAL: return "="; case ISA: return "is-a"; case DESCENDENTOF: return "descendent-of"; case ISNOTA: return "is-not-a"; case REGEX: return "regex"; case IN: return "in"; case NOTIN: return "not-in"; case GENERALIZES: return "generalizes"; case EXISTS: return "exists"; default: return "?"; } } public String getSystem() { switch (this) { case EQUAL: return "http://hl7.org/fhir/filter-operator"; case ISA: return "http://hl7.org/fhir/filter-operator"; case DESCENDENTOF: return "http://hl7.org/fhir/filter-operator"; case ISNOTA: return "http://hl7.org/fhir/filter-operator"; case REGEX: return "http://hl7.org/fhir/filter-operator"; case IN: return "http://hl7.org/fhir/filter-operator"; case NOTIN: return "http://hl7.org/fhir/filter-operator"; case GENERALIZES: return "http://hl7.org/fhir/filter-operator"; case EXISTS: return "http://hl7.org/fhir/filter-operator"; default: return "?"; } } public String getDefinition() { switch (this) { case EQUAL: return "The specified property of the code equals the provided value."; case ISA: return "Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, including the provided concept itself (i.e. include child codes)"; case DESCENDENTOF: return "Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, excluding the provided concept itself (i.e. include child codes)"; case ISNOTA: return "The specified property of the code does not have an is-a relationship with the provided value."; case REGEX: return "The specified property of the code matches the regex specified in the provided value."; case IN: return "The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list)."; case NOTIN: return "The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list)."; case GENERALIZES: return "Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (e.g. include parent codes)"; case EXISTS: return "The specified property of the code has at least one value (if the specified value is true; if the specified value is false, then matches when the specified property of the code has no values)"; default: return "?"; } } public String getDisplay() { switch (this) { case EQUAL: return "Equals"; case ISA: return "Is A (by subsumption)"; case DESCENDENTOF: return "Descendent Of (by subsumption)"; case ISNOTA: return "Not (Is A) (by subsumption)"; case REGEX: return "Regular Expression"; case IN: return "In Set"; case NOTIN: return "Not in Set"; case GENERALIZES: return "Generalizes (by Subsumption)"; case EXISTS: return "Exists"; default: return "?"; } } } public static class FilterOperatorEnumFactory implements EnumFactory<FilterOperator> { public FilterOperator fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) return null; if ("=".equals(codeString)) return FilterOperator.EQUAL; if ("is-a".equals(codeString)) return FilterOperator.ISA; if ("descendent-of".equals(codeString)) return FilterOperator.DESCENDENTOF; if ("is-not-a".equals(codeString)) return FilterOperator.ISNOTA; if ("regex".equals(codeString)) return FilterOperator.REGEX; if ("in".equals(codeString)) return FilterOperator.IN; if ("not-in".equals(codeString)) return FilterOperator.NOTIN; if ("generalizes".equals(codeString)) return FilterOperator.GENERALIZES; if ("exists".equals(codeString)) return FilterOperator.EXISTS; throw new IllegalArgumentException("Unknown FilterOperator code '"+codeString+"'"); } public Enumeration<FilterOperator> fromType(Base code) throws FHIRException { if (code == null) return null; if (code.isEmpty()) return new Enumeration<FilterOperator>(this); String codeString = ((PrimitiveType) code).asStringValue(); if (codeString == null || "".equals(codeString)) return null; if ("=".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.EQUAL); if ("is-a".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.ISA); if ("descendent-of".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.DESCENDENTOF); if ("is-not-a".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.ISNOTA); if ("regex".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.REGEX); if ("in".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.IN); if ("not-in".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.NOTIN); if ("generalizes".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.GENERALIZES); if ("exists".equals(codeString)) return new Enumeration<FilterOperator>(this, FilterOperator.EXISTS); throw new FHIRException("Unknown FilterOperator code '"+codeString+"'"); } public String toCode(FilterOperator code) { if (code == FilterOperator.EQUAL) return "="; if (code == FilterOperator.ISA) return "is-a"; if (code == FilterOperator.DESCENDENTOF) return "descendent-of"; if (code == FilterOperator.ISNOTA) return "is-not-a"; if (code == FilterOperator.REGEX) return "regex"; if (code == FilterOperator.IN) return "in"; if (code == FilterOperator.NOTIN) return "not-in"; if (code == FilterOperator.GENERALIZES) return "generalizes"; if (code == FilterOperator.EXISTS) return "exists"; return "?"; } public String toSystem(FilterOperator code) { return code.getSystem(); } } public enum PropertyType { /** * The property value is a code that identifies a concept defined in the code system */ CODE, /** * The property value is a code defined in an external code system. This may be used for translations, but is not the intent */ CODING, /** * The property value is a string */ STRING, /** * The property value is a string (often used to assign ranking values to concepts for supporting score assessments) */ INTEGER, /** * The property value is a boolean true | false */ BOOLEAN, /** * The property is a date or a date + time */ DATETIME, /** * added to help the parsers with the generic types */ NULL; public static PropertyType fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; if ("code".equals(codeString)) return CODE; if ("Coding".equals(codeString)) return CODING; if ("string".equals(codeString)) return STRING; if ("integer".equals(codeString)) return INTEGER; if ("boolean".equals(codeString)) return BOOLEAN; if ("dateTime".equals(codeString)) return DATETIME; if (Configuration.isAcceptInvalidEnums()) return null; else throw new FHIRException("Unknown PropertyType code '"+codeString+"'"); } public String toCode() { switch (this) { case CODE: return "code"; case CODING: return "Coding"; case STRING: return "string"; case INTEGER: return "integer"; case BOOLEAN: return "boolean"; case DATETIME: return "dateTime"; default: return "?"; } } public String getSystem() { switch (this) { case CODE: return "http://hl7.org/fhir/concept-property-type"; case CODING: return "http://hl7.org/fhir/concept-property-type"; case STRING: return "http://hl7.org/fhir/concept-property-type"; case INTEGER: return "http://hl7.org/fhir/concept-property-type"; case BOOLEAN: return "http://hl7.org/fhir/concept-property-type"; case DATETIME: return "http://hl7.org/fhir/concept-property-type"; default: return "?"; } } public String getDefinition() { switch (this) { case CODE: return "The property value is a code that identifies a concept defined in the code system"; case CODING: return "The property value is a code defined in an external code system. This may be used for translations, but is not the intent"; case STRING: return "The property value is a string"; case INTEGER: return "The property value is a string (often used to assign ranking values to concepts for supporting score assessments)"; case BOOLEAN: return "The property value is a boolean true | false"; case DATETIME: return "The property is a date or a date + time"; default: return "?"; } } public String getDisplay() { switch (this) { case CODE: return "code (internal reference)"; case CODING: return "Coding (external reference)"; case STRING: return "string"; case INTEGER: return "integer"; case BOOLEAN: return "boolean"; case DATETIME: return "dateTime"; default: return "?"; } } } public static class PropertyTypeEnumFactory implements EnumFactory<PropertyType> { public PropertyType fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) return null; if ("code".equals(codeString)) return PropertyType.CODE; if ("Coding".equals(codeString)) return PropertyType.CODING; if ("string".equals(codeString)) return PropertyType.STRING; if ("integer".equals(codeString)) return PropertyType.INTEGER; if ("boolean".equals(codeString)) return PropertyType.BOOLEAN; if ("dateTime".equals(codeString)) return PropertyType.DATETIME; throw new IllegalArgumentException("Unknown PropertyType code '"+codeString+"'"); } public Enumeration<PropertyType> fromType(Base code) throws FHIRException { if (code == null) return null; if (code.isEmpty()) return new Enumeration<PropertyType>(this); String codeString = ((PrimitiveType) code).asStringValue(); if (codeString == null || "".equals(codeString)) return null; if ("code".equals(codeString)) return new Enumeration<PropertyType>(this, PropertyType.CODE); if ("Coding".equals(codeString)) return new Enumeration<PropertyType>(this, PropertyType.CODING); if ("string".equals(codeString)) return new Enumeration<PropertyType>(this, PropertyType.STRING); if ("integer".equals(codeString)) return new Enumeration<PropertyType>(this, PropertyType.INTEGER); if ("boolean".equals(codeString)) return new Enumeration<PropertyType>(this, PropertyType.BOOLEAN); if ("dateTime".equals(codeString)) return new Enumeration<PropertyType>(this, PropertyType.DATETIME); throw new FHIRException("Unknown PropertyType code '"+codeString+"'"); } public String toCode(PropertyType code) { if (code == PropertyType.CODE) return "code"; if (code == PropertyType.CODING) return "Coding"; if (code == PropertyType.STRING) return "string"; if (code == PropertyType.INTEGER) return "integer"; if (code == PropertyType.BOOLEAN) return "boolean"; if (code == PropertyType.DATETIME) return "dateTime"; return "?"; } public String toSystem(PropertyType code) { return code.getSystem(); } } @Block() public static class CodeSystemFilterComponent extends BackboneElement implements IBaseBackboneElement { /** * The code that identifies this filter when it is used in the instance. */ @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Code that identifies the filter", formalDefinition="The code that identifies this filter when it is used in the instance." ) protected CodeType code; /** * A description of how or why the filter is used. */ @Child(name = "description", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="How or why the filter is used", formalDefinition="A description of how or why the filter is used." ) protected StringType description; /** * A list of operators that can be used with the filter. */ @Child(name = "operator", type = {CodeType.class}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Operators that can be used with filter", formalDefinition="A list of operators that can be used with the filter." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/filter-operator") protected List<Enumeration<FilterOperator>> operator; /** * A description of what the value for the filter should be. */ @Child(name = "value", type = {StringType.class}, order=4, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="What to use for the value", formalDefinition="A description of what the value for the filter should be." ) protected StringType value; private static final long serialVersionUID = -1087409836L; /** * Constructor */ public CodeSystemFilterComponent() { super(); } /** * Constructor */ public CodeSystemFilterComponent(CodeType code, StringType value) { super(); this.code = code; this.value = value; } /** * @return {@link #code} (The code that identifies this filter when it is used in the instance.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public CodeType getCodeElement() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystemFilterComponent.code"); else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb return this.code; } public boolean hasCodeElement() { return this.code != null && !this.code.isEmpty(); } public boolean hasCode() { return this.code != null && !this.code.isEmpty(); } /** * @param value {@link #code} (The code that identifies this filter when it is used in the instance.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public CodeSystemFilterComponent setCodeElement(CodeType value) { this.code = value; return this; } /** * @return The code that identifies this filter when it is used in the instance. */ public String getCode() { return this.code == null ? null : this.code.getValue(); } /** * @param value The code that identifies this filter when it is used in the instance. */ public CodeSystemFilterComponent setCode(String value) { if (this.code == null) this.code = new CodeType(); this.code.setValue(value); return this; } /** * @return {@link #description} (A description of how or why the filter is used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public StringType getDescriptionElement() { if (this.description == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystemFilterComponent.description"); else if (Configuration.doAutoCreate()) this.description = new StringType(); // bb return this.description; } public boolean hasDescriptionElement() { return this.description != null && !this.description.isEmpty(); } public boolean hasDescription() { return this.description != null && !this.description.isEmpty(); } /** * @param value {@link #description} (A description of how or why the filter is used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public CodeSystemFilterComponent setDescriptionElement(StringType value) { this.description = value; return this; } /** * @return A description of how or why the filter is used. */ public String getDescription() { return this.description == null ? null : this.description.getValue(); } /** * @param value A description of how or why the filter is used. */ public CodeSystemFilterComponent setDescription(String value) { if (Utilities.noString(value)) this.description = null; else { if (this.description == null) this.description = new StringType(); this.description.setValue(value); } return this; } /** * @return {@link #operator} (A list of operators that can be used with the filter.) */ public List<Enumeration<FilterOperator>> getOperator() { if (this.operator == null) this.operator = new ArrayList<Enumeration<FilterOperator>>(); return this.operator; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public CodeSystemFilterComponent setOperator(List<Enumeration<FilterOperator>> theOperator) { this.operator = theOperator; return this; } public boolean hasOperator() { if (this.operator == null) return false; for (Enumeration<FilterOperator> item : this.operator) if (!item.isEmpty()) return true; return false; } /** * @return {@link #operator} (A list of operators that can be used with the filter.) */ public Enumeration<FilterOperator> addOperatorElement() {//2 Enumeration<FilterOperator> t = new Enumeration<FilterOperator>(new FilterOperatorEnumFactory()); if (this.operator == null) this.operator = new ArrayList<Enumeration<FilterOperator>>(); this.operator.add(t); return t; } /** * @param value {@link #operator} (A list of operators that can be used with the filter.) */ public CodeSystemFilterComponent addOperator(FilterOperator value) { //1 Enumeration<FilterOperator> t = new Enumeration<FilterOperator>(new FilterOperatorEnumFactory()); t.setValue(value); if (this.operator == null) this.operator = new ArrayList<Enumeration<FilterOperator>>(); this.operator.add(t); return this; } /** * @param value {@link #operator} (A list of operators that can be used with the filter.) */ public boolean hasOperator(FilterOperator value) { if (this.operator == null) return false; for (Enumeration<FilterOperator> v : this.operator) if (v.getValue().equals(value)) // code return true; return false; } /** * @return {@link #value} (A description of what the value for the filter should be.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value */ public StringType getValueElement() { if (this.value == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystemFilterComponent.value"); else if (Configuration.doAutoCreate()) this.value = new StringType(); // bb return this.value; } public boolean hasValueElement() { return this.value != null && !this.value.isEmpty(); } public boolean hasValue() { return this.value != null && !this.value.isEmpty(); } /** * @param value {@link #value} (A description of what the value for the filter should be.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value */ public CodeSystemFilterComponent setValueElement(StringType value) { this.value = value; return this; } /** * @return A description of what the value for the filter should be. */ public String getValue() { return this.value == null ? null : this.value.getValue(); } /** * @param value A description of what the value for the filter should be. */ public CodeSystemFilterComponent setValue(String value) { if (this.value == null) this.value = new StringType(); this.value.setValue(value); return this; } protected void listChildren(List<Property> childrenList) { super.listChildren(childrenList); childrenList.add(new Property("code", "code", "The code that identifies this filter when it is used in the instance.", 0, java.lang.Integer.MAX_VALUE, code)); childrenList.add(new Property("description", "string", "A description of how or why the filter is used.", 0, java.lang.Integer.MAX_VALUE, description)); childrenList.add(new Property("operator", "code", "A list of operators that can be used with the filter.", 0, java.lang.Integer.MAX_VALUE, operator)); childrenList.add(new Property("value", "string", "A description of what the value for the filter should be.", 0, java.lang.Integer.MAX_VALUE, value)); } @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case -500553564: /*operator*/ return this.operator == null ? new Base[0] : this.operator.toArray(new Base[this.operator.size()]); // Enumeration<FilterOperator> case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType default: return super.getProperty(hash, name, checkValid); } } @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -500553564: // operator value = new FilterOperatorEnumFactory().fromType(castToCode(value)); this.getOperator().add((Enumeration) value); // Enumeration<FilterOperator> return value; case 111972721: // value this.value = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } } @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("operator")) { value = new FilterOperatorEnumFactory().fromType(castToCode(value)); this.getOperator().add((Enumeration) value); } else if (name.equals("value")) { this.value = castToString(value); // StringType } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case -1724546052: return getDescriptionElement(); case -500553564: return addOperatorElement(); case 111972721: return getValueElement(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: /*code*/ return new String[] {"code"}; case -1724546052: /*description*/ return new String[] {"string"}; case -500553564: /*operator*/ return new String[] {"code"}; case 111972721: /*value*/ return new String[] {"string"}; default: return super.getTypesForProperty(hash, name); } } @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); } else if (name.equals("operator")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.operator"); } else if (name.equals("value")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); } else return super.addChild(name); } public CodeSystemFilterComponent copy() { CodeSystemFilterComponent dst = new CodeSystemFilterComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.description = description == null ? null : description.copy(); if (operator != null) { dst.operator = new ArrayList<Enumeration<FilterOperator>>(); for (Enumeration<FilterOperator> i : operator) dst.operator.add(i.copy()); }; dst.value = value == null ? null : value.copy(); return dst; } @Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof CodeSystemFilterComponent)) return false; CodeSystemFilterComponent o = (CodeSystemFilterComponent) other; return compareDeep(code, o.code, true) && compareDeep(description, o.description, true) && compareDeep(operator, o.operator, true) && compareDeep(value, o.value, true); } @Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof CodeSystemFilterComponent)) return false; CodeSystemFilterComponent o = (CodeSystemFilterComponent) other; return compareValues(code, o.code, true) && compareValues(description, o.description, true) && compareValues(operator, o.operator, true) && compareValues(value, o.value, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, description, operator , value); } public String fhirType() { return "CodeSystem.filter"; } } @Block() public static class PropertyComponent extends BackboneElement implements IBaseBackboneElement { /** * A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters. */ @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Identifies the property on the concepts, and when referred to in operations", formalDefinition="A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters." ) protected CodeType code; /** * Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system. */ @Child(name = "uri", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Formal identifier for the property", formalDefinition="Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system." ) protected UriType uri; /** * A description of the property- why it is defined, and how its value might be used. */ @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Why the property is defined, and/or what it conveys", formalDefinition="A description of the property- why it is defined, and how its value might be used." ) protected StringType description; /** * The type of the property value. Properties of type "code" contain a code defined by the code system (e.g. a reference to anotherr defined concept). */ @Child(name = "type", type = {CodeType.class}, order=4, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="code | Coding | string | integer | boolean | dateTime", formalDefinition="The type of the property value. Properties of type \"code\" contain a code defined by the code system (e.g. a reference to anotherr defined concept)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/concept-property-type") protected Enumeration<PropertyType> type; private static final long serialVersionUID = -1810713373L; /** * Constructor */ public PropertyComponent() { super(); } /** * Constructor */ public PropertyComponent(CodeType code, Enumeration<PropertyType> type) { super(); this.code = code; this.type = type; } /** * @return {@link #code} (A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public CodeType getCodeElement() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PropertyComponent.code"); else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb return this.code; } public boolean hasCodeElement() { return this.code != null && !this.code.isEmpty(); } public boolean hasCode() { return this.code != null && !this.code.isEmpty(); } /** * @param value {@link #code} (A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public PropertyComponent setCodeElement(CodeType value) { this.code = value; return this; } /** * @return A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters. */ public String getCode() { return this.code == null ? null : this.code.getValue(); } /** * @param value A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters. */ public PropertyComponent setCode(String value) { if (this.code == null) this.code = new CodeType(); this.code.setValue(value); return this; } /** * @return {@link #uri} (Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value */ public UriType getUriElement() { if (this.uri == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PropertyComponent.uri"); else if (Configuration.doAutoCreate()) this.uri = new UriType(); // bb return this.uri; } public boolean hasUriElement() { return this.uri != null && !this.uri.isEmpty(); } public boolean hasUri() { return this.uri != null && !this.uri.isEmpty(); } /** * @param value {@link #uri} (Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value */ public PropertyComponent setUriElement(UriType value) { this.uri = value; return this; } /** * @return Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system. */ public String getUri() { return this.uri == null ? null : this.uri.getValue(); } /** * @param value Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system. */ public PropertyComponent setUri(String value) { if (Utilities.noString(value)) this.uri = null; else { if (this.uri == null) this.uri = new UriType(); this.uri.setValue(value); } return this; } /** * @return {@link #description} (A description of the property- why it is defined, and how its value might be used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public StringType getDescriptionElement() { if (this.description == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PropertyComponent.description"); else if (Configuration.doAutoCreate()) this.description = new StringType(); // bb return this.description; } public boolean hasDescriptionElement() { return this.description != null && !this.description.isEmpty(); } public boolean hasDescription() { return this.description != null && !this.description.isEmpty(); } /** * @param value {@link #description} (A description of the property- why it is defined, and how its value might be used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public PropertyComponent setDescriptionElement(StringType value) { this.description = value; return this; } /** * @return A description of the property- why it is defined, and how its value might be used. */ public String getDescription() { return this.description == null ? null : this.description.getValue(); } /** * @param value A description of the property- why it is defined, and how its value might be used. */ public PropertyComponent setDescription(String value) { if (Utilities.noString(value)) this.description = null; else { if (this.description == null) this.description = new StringType(); this.description.setValue(value); } return this; } /** * @return {@link #type} (The type of the property value. Properties of type "code" contain a code defined by the code system (e.g. a reference to anotherr defined concept).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value */ public Enumeration<PropertyType> getTypeElement() { if (this.type == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PropertyComponent.type"); else if (Configuration.doAutoCreate()) this.type = new Enumeration<PropertyType>(new PropertyTypeEnumFactory()); // bb return this.type; } public boolean hasTypeElement() { return this.type != null && !this.type.isEmpty(); } public boolean hasType() { return this.type != null && !this.type.isEmpty(); } /** * @param value {@link #type} (The type of the property value. Properties of type "code" contain a code defined by the code system (e.g. a reference to anotherr defined concept).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value */ public PropertyComponent setTypeElement(Enumeration<PropertyType> value) { this.type = value; return this; } /** * @return The type of the property value. Properties of type "code" contain a code defined by the code system (e.g. a reference to anotherr defined concept). */ public PropertyType getType() { return this.type == null ? null : this.type.getValue(); } /** * @param value The type of the property value. Properties of type "code" contain a code defined by the code system (e.g. a reference to anotherr defined concept). */ public PropertyComponent setType(PropertyType value) { if (this.type == null) this.type = new Enumeration<PropertyType>(new PropertyTypeEnumFactory()); this.type.setValue(value); return this; } protected void listChildren(List<Property> childrenList) { super.listChildren(childrenList); childrenList.add(new Property("code", "code", "A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters.", 0, java.lang.Integer.MAX_VALUE, code)); childrenList.add(new Property("uri", "uri", "Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.", 0, java.lang.Integer.MAX_VALUE, uri)); childrenList.add(new Property("description", "string", "A description of the property- why it is defined, and how its value might be used.", 0, java.lang.Integer.MAX_VALUE, description)); childrenList.add(new Property("type", "code", "The type of the property value. Properties of type \"code\" contain a code defined by the code system (e.g. a reference to anotherr defined concept).", 0, java.lang.Integer.MAX_VALUE, type)); } @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType case 116076: /*uri*/ return this.uri == null ? new Base[0] : new Base[] {this.uri}; // UriType case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<PropertyType> default: return super.getProperty(hash, name, checkValid); } } @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 116076: // uri this.uri = castToUri(value); // UriType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case 3575610: // type value = new PropertyTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<PropertyType> return value; default: return super.setProperty(hash, name, value); } } @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("uri")) { this.uri = castToUri(value); // UriType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("type")) { value = new PropertyTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<PropertyType> } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case 116076: return getUriElement(); case -1724546052: return getDescriptionElement(); case 3575610: return getTypeElement(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: /*code*/ return new String[] {"code"}; case 116076: /*uri*/ return new String[] {"uri"}; case -1724546052: /*description*/ return new String[] {"string"}; case 3575610: /*type*/ return new String[] {"code"}; default: return super.getTypesForProperty(hash, name); } } @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); } else if (name.equals("uri")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.uri"); } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); } else if (name.equals("type")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.type"); } else return super.addChild(name); } public PropertyComponent copy() { PropertyComponent dst = new PropertyComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.uri = uri == null ? null : uri.copy(); dst.description = description == null ? null : description.copy(); dst.type = type == null ? null : type.copy(); return dst; } @Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof PropertyComponent)) return false; PropertyComponent o = (PropertyComponent) other; return compareDeep(code, o.code, true) && compareDeep(uri, o.uri, true) && compareDeep(description, o.description, true) && compareDeep(type, o.type, true); } @Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof PropertyComponent)) return false; PropertyComponent o = (PropertyComponent) other; return compareValues(code, o.code, true) && compareValues(uri, o.uri, true) && compareValues(description, o.description, true) && compareValues(type, o.type, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, uri, description, type ); } public String fhirType() { return "CodeSystem.property"; } } @Block() public static class ConceptDefinitionComponent extends BackboneElement implements IBaseBackboneElement { /** * A code - a text symbol - that uniquely identifies the concept within the code system. */ @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="Code that identifies concept", formalDefinition="A code - a text symbol - that uniquely identifies the concept within the code system." ) protected CodeType code; /** * A human readable string that is the recommended default way to present this concept to a user. */ @Child(name = "display", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Text to display to the user", formalDefinition="A human readable string that is the recommended default way to present this concept to a user." ) protected StringType display; /** * The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept. */ @Child(name = "definition", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Formal definition", formalDefinition="The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept." ) protected StringType definition; /** * Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc. */ @Child(name = "designation", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Additional representations for the concept", formalDefinition="Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc." ) protected List<ConceptDefinitionDesignationComponent> designation; /** * A property value for this concept. */ @Child(name = "property", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Property value for the concept", formalDefinition="A property value for this concept." ) protected List<ConceptPropertyComponent> property; /** * Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning. */ @Child(name = "concept", type = {ConceptDefinitionComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Child Concepts (is-a/contains/categorizes)", formalDefinition="Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning." ) protected List<ConceptDefinitionComponent> concept; private static final long serialVersionUID = 878320988L; /** * Constructor */ public ConceptDefinitionComponent() { super(); } /** * Constructor */ public ConceptDefinitionComponent(CodeType code) { super(); this.code = code; } /** * @return {@link #code} (A code - a text symbol - that uniquely identifies the concept within the code system.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public CodeType getCodeElement() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptDefinitionComponent.code"); else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb return this.code; } public boolean hasCodeElement() { return this.code != null && !this.code.isEmpty(); } public boolean hasCode() { return this.code != null && !this.code.isEmpty(); } /** * @param value {@link #code} (A code - a text symbol - that uniquely identifies the concept within the code system.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public ConceptDefinitionComponent setCodeElement(CodeType value) { this.code = value; return this; } /** * @return A code - a text symbol - that uniquely identifies the concept within the code system. */ public String getCode() { return this.code == null ? null : this.code.getValue(); } /** * @param value A code - a text symbol - that uniquely identifies the concept within the code system. */ public ConceptDefinitionComponent setCode(String value) { if (this.code == null) this.code = new CodeType(); this.code.setValue(value); return this; } /** * @return {@link #display} (A human readable string that is the recommended default way to present this concept to a user.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value */ public StringType getDisplayElement() { if (this.display == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptDefinitionComponent.display"); else if (Configuration.doAutoCreate()) this.display = new StringType(); // bb return this.display; } public boolean hasDisplayElement() { return this.display != null && !this.display.isEmpty(); } public boolean hasDisplay() { return this.display != null && !this.display.isEmpty(); } /** * @param value {@link #display} (A human readable string that is the recommended default way to present this concept to a user.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value */ public ConceptDefinitionComponent setDisplayElement(StringType value) { this.display = value; return this; } /** * @return A human readable string that is the recommended default way to present this concept to a user. */ public String getDisplay() { return this.display == null ? null : this.display.getValue(); } /** * @param value A human readable string that is the recommended default way to present this concept to a user. */ public ConceptDefinitionComponent setDisplay(String value) { if (Utilities.noString(value)) this.display = null; else { if (this.display == null) this.display = new StringType(); this.display.setValue(value); } return this; } /** * @return {@link #definition} (The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value */ public StringType getDefinitionElement() { if (this.definition == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptDefinitionComponent.definition"); else if (Configuration.doAutoCreate()) this.definition = new StringType(); // bb return this.definition; } public boolean hasDefinitionElement() { return this.definition != null && !this.definition.isEmpty(); } public boolean hasDefinition() { return this.definition != null && !this.definition.isEmpty(); } /** * @param value {@link #definition} (The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value */ public ConceptDefinitionComponent setDefinitionElement(StringType value) { this.definition = value; return this; } /** * @return The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept. */ public String getDefinition() { return this.definition == null ? null : this.definition.getValue(); } /** * @param value The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept. */ public ConceptDefinitionComponent setDefinition(String value) { if (Utilities.noString(value)) this.definition = null; else { if (this.definition == null) this.definition = new StringType(); this.definition.setValue(value); } return this; } /** * @return {@link #designation} (Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.) */ public List<ConceptDefinitionDesignationComponent> getDesignation() { if (this.designation == null) this.designation = new ArrayList<ConceptDefinitionDesignationComponent>(); return this.designation; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public ConceptDefinitionComponent setDesignation(List<ConceptDefinitionDesignationComponent> theDesignation) { this.designation = theDesignation; return this; } public boolean hasDesignation() { if (this.designation == null) return false; for (ConceptDefinitionDesignationComponent item : this.designation) if (!item.isEmpty()) return true; return false; } public ConceptDefinitionDesignationComponent addDesignation() { //3 ConceptDefinitionDesignationComponent t = new ConceptDefinitionDesignationComponent(); if (this.designation == null) this.designation = new ArrayList<ConceptDefinitionDesignationComponent>(); this.designation.add(t); return t; } public ConceptDefinitionComponent addDesignation(ConceptDefinitionDesignationComponent t) { //3 if (t == null) return this; if (this.designation == null) this.designation = new ArrayList<ConceptDefinitionDesignationComponent>(); this.designation.add(t); return this; } /** * @return The first repetition of repeating field {@link #designation}, creating it if it does not already exist */ public ConceptDefinitionDesignationComponent getDesignationFirstRep() { if (getDesignation().isEmpty()) { addDesignation(); } return getDesignation().get(0); } /** * @return {@link #property} (A property value for this concept.) */ public List<ConceptPropertyComponent> getProperty() { if (this.property == null) this.property = new ArrayList<ConceptPropertyComponent>(); return this.property; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public ConceptDefinitionComponent setProperty(List<ConceptPropertyComponent> theProperty) { this.property = theProperty; return this; } public boolean hasProperty() { if (this.property == null) return false; for (ConceptPropertyComponent item : this.property) if (!item.isEmpty()) return true; return false; } public ConceptPropertyComponent addProperty() { //3 ConceptPropertyComponent t = new ConceptPropertyComponent(); if (this.property == null) this.property = new ArrayList<ConceptPropertyComponent>(); this.property.add(t); return t; } public ConceptDefinitionComponent addProperty(ConceptPropertyComponent t) { //3 if (t == null) return this; if (this.property == null) this.property = new ArrayList<ConceptPropertyComponent>(); this.property.add(t); return this; } /** * @return The first repetition of repeating field {@link #property}, creating it if it does not already exist */ public ConceptPropertyComponent getPropertyFirstRep() { if (getProperty().isEmpty()) { addProperty(); } return getProperty().get(0); } /** * @return {@link #concept} (Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning.) */ public List<ConceptDefinitionComponent> getConcept() { if (this.concept == null) this.concept = new ArrayList<ConceptDefinitionComponent>(); return this.concept; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public ConceptDefinitionComponent setConcept(List<ConceptDefinitionComponent> theConcept) { this.concept = theConcept; return this; } public boolean hasConcept() { if (this.concept == null) return false; for (ConceptDefinitionComponent item : this.concept) if (!item.isEmpty()) return true; return false; } public ConceptDefinitionComponent addConcept() { //3 ConceptDefinitionComponent t = new ConceptDefinitionComponent(); if (this.concept == null) this.concept = new ArrayList<ConceptDefinitionComponent>(); this.concept.add(t); return t; } public ConceptDefinitionComponent addConcept(ConceptDefinitionComponent t) { //3 if (t == null) return this; if (this.concept == null) this.concept = new ArrayList<ConceptDefinitionComponent>(); this.concept.add(t); return this; } /** * @return The first repetition of repeating field {@link #concept}, creating it if it does not already exist */ public ConceptDefinitionComponent getConceptFirstRep() { if (getConcept().isEmpty()) { addConcept(); } return getConcept().get(0); } protected void listChildren(List<Property> childrenList) { super.listChildren(childrenList); childrenList.add(new Property("code", "code", "A code - a text symbol - that uniquely identifies the concept within the code system.", 0, java.lang.Integer.MAX_VALUE, code)); childrenList.add(new Property("display", "string", "A human readable string that is the recommended default way to present this concept to a user.", 0, java.lang.Integer.MAX_VALUE, display)); childrenList.add(new Property("definition", "string", "The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept.", 0, java.lang.Integer.MAX_VALUE, definition)); childrenList.add(new Property("designation", "", "Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.", 0, java.lang.Integer.MAX_VALUE, designation)); childrenList.add(new Property("property", "", "A property value for this concept.", 0, java.lang.Integer.MAX_VALUE, property)); childrenList.add(new Property("concept", "@CodeSystem.concept", "Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning.", 0, java.lang.Integer.MAX_VALUE, concept)); } @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType case 1671764162: /*display*/ return this.display == null ? new Base[0] : new Base[] {this.display}; // StringType case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // StringType case -900931593: /*designation*/ return this.designation == null ? new Base[0] : this.designation.toArray(new Base[this.designation.size()]); // ConceptDefinitionDesignationComponent case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // ConceptPropertyComponent case 951024232: /*concept*/ return this.concept == null ? new Base[0] : this.concept.toArray(new Base[this.concept.size()]); // ConceptDefinitionComponent default: return super.getProperty(hash, name, checkValid); } } @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 1671764162: // display this.display = castToString(value); // StringType return value; case -1014418093: // definition this.definition = castToString(value); // StringType return value; case -900931593: // designation this.getDesignation().add((ConceptDefinitionDesignationComponent) value); // ConceptDefinitionDesignationComponent return value; case -993141291: // property this.getProperty().add((ConceptPropertyComponent) value); // ConceptPropertyComponent return value; case 951024232: // concept this.getConcept().add((ConceptDefinitionComponent) value); // ConceptDefinitionComponent return value; default: return super.setProperty(hash, name, value); } } @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("display")) { this.display = castToString(value); // StringType } else if (name.equals("definition")) { this.definition = castToString(value); // StringType } else if (name.equals("designation")) { this.getDesignation().add((ConceptDefinitionDesignationComponent) value); } else if (name.equals("property")) { this.getProperty().add((ConceptPropertyComponent) value); } else if (name.equals("concept")) { this.getConcept().add((ConceptDefinitionComponent) value); } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case 1671764162: return getDisplayElement(); case -1014418093: return getDefinitionElement(); case -900931593: return addDesignation(); case -993141291: return addProperty(); case 951024232: return addConcept(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: /*code*/ return new String[] {"code"}; case 1671764162: /*display*/ return new String[] {"string"}; case -1014418093: /*definition*/ return new String[] {"string"}; case -900931593: /*designation*/ return new String[] {}; case -993141291: /*property*/ return new String[] {}; case 951024232: /*concept*/ return new String[] {"@CodeSystem.concept"}; default: return super.getTypesForProperty(hash, name); } } @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); } else if (name.equals("display")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.display"); } else if (name.equals("definition")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.definition"); } else if (name.equals("designation")) { return addDesignation(); } else if (name.equals("property")) { return addProperty(); } else if (name.equals("concept")) { return addConcept(); } else return super.addChild(name); } public ConceptDefinitionComponent copy() { ConceptDefinitionComponent dst = new ConceptDefinitionComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.display = display == null ? null : display.copy(); dst.definition = definition == null ? null : definition.copy(); if (designation != null) { dst.designation = new ArrayList<ConceptDefinitionDesignationComponent>(); for (ConceptDefinitionDesignationComponent i : designation) dst.designation.add(i.copy()); }; if (property != null) { dst.property = new ArrayList<ConceptPropertyComponent>(); for (ConceptPropertyComponent i : property) dst.property.add(i.copy()); }; if (concept != null) { dst.concept = new ArrayList<ConceptDefinitionComponent>(); for (ConceptDefinitionComponent i : concept) dst.concept.add(i.copy()); }; return dst; } @Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof ConceptDefinitionComponent)) return false; ConceptDefinitionComponent o = (ConceptDefinitionComponent) other; return compareDeep(code, o.code, true) && compareDeep(display, o.display, true) && compareDeep(definition, o.definition, true) && compareDeep(designation, o.designation, true) && compareDeep(property, o.property, true) && compareDeep(concept, o.concept, true) ; } @Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof ConceptDefinitionComponent)) return false; ConceptDefinitionComponent o = (ConceptDefinitionComponent) other; return compareValues(code, o.code, true) && compareValues(display, o.display, true) && compareValues(definition, o.definition, true) ; } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, display, definition , designation, property, concept); } public String fhirType() { return "CodeSystem.concept"; } } @Block() public static class ConceptDefinitionDesignationComponent extends BackboneElement implements IBaseBackboneElement { /** * The language this designation is defined for. */ @Child(name = "language", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Human language of the designation", formalDefinition="The language this designation is defined for." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") protected CodeType language; /** * A code that details how this designation would be used. */ @Child(name = "use", type = {Coding.class}, order=2, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Details how this designation would be used", formalDefinition="A code that details how this designation would be used." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/designation-use") protected Coding use; /** * The text value for this designation. */ @Child(name = "value", type = {StringType.class}, order=3, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="The text value for this designation", formalDefinition="The text value for this designation." ) protected StringType value; private static final long serialVersionUID = 1515662414L; /** * Constructor */ public ConceptDefinitionDesignationComponent() { super(); } /** * Constructor */ public ConceptDefinitionDesignationComponent(StringType value) { super(); this.value = value; } /** * @return {@link #language} (The language this designation is defined for.). 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 ConceptDefinitionDesignationComponent.language"); else if (Configuration.doAutoCreate()) this.language = new CodeType(); // bb return this.language; } public boolean hasLanguageElement() { return this.language != null && !this.language.isEmpty(); } public boolean hasLanguage() { return this.language != null && !this.language.isEmpty(); } /** * @param value {@link #language} (The language this designation is defined for.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value */ public ConceptDefinitionDesignationComponent setLanguageElement(CodeType value) { this.language = value; return this; } /** * @return The language this designation is defined for. */ public String getLanguage() { return this.language == null ? null : this.language.getValue(); } /** * @param value The language this designation is defined for. */ public ConceptDefinitionDesignationComponent setLanguage(String value) { if (Utilities.noString(value)) this.language = null; else { if (this.language == null) this.language = new CodeType(); this.language.setValue(value); } return this; } /** * @return {@link #use} (A code that details how this designation would be used.) */ public Coding getUse() { if (this.use == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptDefinitionDesignationComponent.use"); else if (Configuration.doAutoCreate()) this.use = new Coding(); // cc return this.use; } public boolean hasUse() { return this.use != null && !this.use.isEmpty(); } /** * @param value {@link #use} (A code that details how this designation would be used.) */ public ConceptDefinitionDesignationComponent setUse(Coding value) { this.use = value; return this; } /** * @return {@link #value} (The text value for this designation.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value */ public StringType getValueElement() { if (this.value == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptDefinitionDesignationComponent.value"); else if (Configuration.doAutoCreate()) this.value = new StringType(); // bb return this.value; } public boolean hasValueElement() { return this.value != null && !this.value.isEmpty(); } public boolean hasValue() { return this.value != null && !this.value.isEmpty(); } /** * @param value {@link #value} (The text value for this designation.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value */ public ConceptDefinitionDesignationComponent setValueElement(StringType value) { this.value = value; return this; } /** * @return The text value for this designation. */ public String getValue() { return this.value == null ? null : this.value.getValue(); } /** * @param value The text value for this designation. */ public ConceptDefinitionDesignationComponent setValue(String value) { if (this.value == null) this.value = new StringType(); this.value.setValue(value); return this; } protected void listChildren(List<Property> childrenList) { super.listChildren(childrenList); childrenList.add(new Property("language", "code", "The language this designation is defined for.", 0, java.lang.Integer.MAX_VALUE, language)); childrenList.add(new Property("use", "Coding", "A code that details how this designation would be used.", 0, java.lang.Integer.MAX_VALUE, use)); childrenList.add(new Property("value", "string", "The text value for this designation.", 0, java.lang.Integer.MAX_VALUE, value)); } @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // CodeType case 116103: /*use*/ return this.use == null ? new Base[0] : new Base[] {this.use}; // Coding case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType default: return super.getProperty(hash, name, checkValid); } } @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1613589672: // language this.language = castToCode(value); // CodeType return value; case 116103: // use this.use = castToCoding(value); // Coding return value; case 111972721: // value this.value = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } } @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("language")) { this.language = castToCode(value); // CodeType } else if (name.equals("use")) { this.use = castToCoding(value); // Coding } else if (name.equals("value")) { this.value = castToString(value); // StringType } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1613589672: return getLanguageElement(); case 116103: return getUse(); case 111972721: return getValueElement(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case -1613589672: /*language*/ return new String[] {"code"}; case 116103: /*use*/ return new String[] {"Coding"}; case 111972721: /*value*/ return new String[] {"string"}; default: return super.getTypesForProperty(hash, name); } } @Override public Base addChild(String name) throws FHIRException { if (name.equals("language")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.language"); } else if (name.equals("use")) { this.use = new Coding(); return this.use; } else if (name.equals("value")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.value"); } else return super.addChild(name); } public ConceptDefinitionDesignationComponent copy() { ConceptDefinitionDesignationComponent dst = new ConceptDefinitionDesignationComponent(); copyValues(dst); dst.language = language == null ? null : language.copy(); dst.use = use == null ? null : use.copy(); dst.value = value == null ? null : value.copy(); return dst; } @Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof ConceptDefinitionDesignationComponent)) return false; ConceptDefinitionDesignationComponent o = (ConceptDefinitionDesignationComponent) other; return compareDeep(language, o.language, true) && compareDeep(use, o.use, true) && compareDeep(value, o.value, true) ; } @Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof ConceptDefinitionDesignationComponent)) return false; ConceptDefinitionDesignationComponent o = (ConceptDefinitionDesignationComponent) other; return compareValues(language, o.language, true) && compareValues(value, o.value, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(language, use, value); } public String fhirType() { return "CodeSystem.concept.designation"; } } @Block() public static class ConceptPropertyComponent extends BackboneElement implements IBaseBackboneElement { /** * A code that is a reference to CodeSystem.property.code. */ @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="Reference to CodeSystem.property.code", formalDefinition="A code that is a reference to CodeSystem.property.code." ) protected CodeType code; /** * The value of this property. */ @Child(name = "value", type = {CodeType.class, Coding.class, StringType.class, IntegerType.class, BooleanType.class, DateTimeType.class}, order=2, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="Value of the property for this concept", formalDefinition="The value of this property." ) protected Type value; private static final long serialVersionUID = 1742812311L; /** * Constructor */ public ConceptPropertyComponent() { super(); } /** * Constructor */ public ConceptPropertyComponent(CodeType code, Type value) { super(); this.code = code; this.value = value; } /** * @return {@link #code} (A code that is a reference to CodeSystem.property.code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public CodeType getCodeElement() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptPropertyComponent.code"); else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb return this.code; } public boolean hasCodeElement() { return this.code != null && !this.code.isEmpty(); } public boolean hasCode() { return this.code != null && !this.code.isEmpty(); } /** * @param value {@link #code} (A code that is a reference to CodeSystem.property.code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public ConceptPropertyComponent setCodeElement(CodeType value) { this.code = value; return this; } /** * @return A code that is a reference to CodeSystem.property.code. */ public String getCode() { return this.code == null ? null : this.code.getValue(); } /** * @param value A code that is a reference to CodeSystem.property.code. */ public ConceptPropertyComponent setCode(String value) { if (this.code == null) this.code = new CodeType(); this.code.setValue(value); return this; } /** * @return {@link #value} (The value of this property.) */ public Type getValue() { return this.value; } /** * @return {@link #value} (The value of this property.) */ public CodeType getValueCodeType() throws FHIRException { if (!(this.value instanceof CodeType)) throw new FHIRException("Type mismatch: the type CodeType was expected, but "+this.value.getClass().getName()+" was encountered"); return (CodeType) this.value; } public boolean hasValueCodeType() { return this.value instanceof CodeType; } /** * @return {@link #value} (The value of this property.) */ public Coding getValueCoding() throws FHIRException { if (!(this.value instanceof Coding)) throw new FHIRException("Type mismatch: the type Coding was expected, but "+this.value.getClass().getName()+" was encountered"); return (Coding) this.value; } public boolean hasValueCoding() { return this.value instanceof Coding; } /** * @return {@link #value} (The value of this property.) */ public StringType getValueStringType() throws FHIRException { if (!(this.value instanceof StringType)) throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.value.getClass().getName()+" was encountered"); return (StringType) this.value; } public boolean hasValueStringType() { return this.value instanceof StringType; } /** * @return {@link #value} (The value of this property.) */ public IntegerType getValueIntegerType() throws FHIRException { if (!(this.value instanceof IntegerType)) throw new FHIRException("Type mismatch: the type IntegerType was expected, but "+this.value.getClass().getName()+" was encountered"); return (IntegerType) this.value; } public boolean hasValueIntegerType() { return this.value instanceof IntegerType; } /** * @return {@link #value} (The value of this property.) */ public BooleanType getValueBooleanType() throws FHIRException { if (!(this.value instanceof BooleanType)) throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered"); return (BooleanType) this.value; } public boolean hasValueBooleanType() { return this.value instanceof BooleanType; } /** * @return {@link #value} (The value of this property.) */ public DateTimeType getValueDateTimeType() throws FHIRException { if (!(this.value instanceof DateTimeType)) throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.value.getClass().getName()+" was encountered"); return (DateTimeType) this.value; } public boolean hasValueDateTimeType() { return this.value instanceof DateTimeType; } public boolean hasValue() { return this.value != null && !this.value.isEmpty(); } /** * @param value {@link #value} (The value of this property.) */ public ConceptPropertyComponent setValue(Type value) { this.value = value; return this; } protected void listChildren(List<Property> childrenList) { super.listChildren(childrenList); childrenList.add(new Property("code", "code", "A code that is a reference to CodeSystem.property.code.", 0, java.lang.Integer.MAX_VALUE, code)); childrenList.add(new Property("value[x]", "code|Coding|string|integer|boolean|dateTime", "The value of this property.", 0, java.lang.Integer.MAX_VALUE, value)); } @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // Type default: return super.getProperty(hash, name, checkValid); } } @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 111972721: // value this.value = castToType(value); // Type return value; default: return super.setProperty(hash, name, value); } } @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("value[x]")) { this.value = castToType(value); // Type } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case -1410166417: return getValue(); case 111972721: return getValue(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: /*code*/ return new String[] {"code"}; case 111972721: /*value*/ return new String[] {"code", "Coding", "string", "integer", "boolean", "dateTime"}; default: return super.getTypesForProperty(hash, name); } } @Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.code"); } else if (name.equals("valueCode")) { this.value = new CodeType(); return this.value; } else if (name.equals("valueCoding")) { this.value = new Coding(); return this.value; } else if (name.equals("valueString")) { this.value = new StringType(); return this.value; } else if (name.equals("valueInteger")) { this.value = new IntegerType(); return this.value; } else if (name.equals("valueBoolean")) { this.value = new BooleanType(); return this.value; } else if (name.equals("valueDateTime")) { this.value = new DateTimeType(); return this.value; } else return super.addChild(name); } public ConceptPropertyComponent copy() { ConceptPropertyComponent dst = new ConceptPropertyComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.value = value == null ? null : value.copy(); return dst; } @Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof ConceptPropertyComponent)) return false; ConceptPropertyComponent o = (ConceptPropertyComponent) other; return compareDeep(code, o.code, true) && compareDeep(value, o.value, true); } @Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof ConceptPropertyComponent)) return false; ConceptPropertyComponent o = (ConceptPropertyComponent) other; return compareValues(code, o.code, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value); } public String fhirType() { return "CodeSystem.concept.property"; } } /** * A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance. */ @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Additional identifier for the code system", formalDefinition="A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance." ) protected Identifier identifier; /** * Explaination of why this code system is needed and why it has been designed as it has. */ @Child(name = "purpose", type = {MarkdownType.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Why this code system is defined", formalDefinition="Explaination of why this code system is needed and why it has been designed as it has." ) protected MarkdownType purpose; /** * A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system. */ @Child(name = "copyright", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system." ) protected MarkdownType copyright; /** * If code comparison is case sensitive when codes within this system are compared to each other. */ @Child(name = "caseSensitive", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="If code comparison is case sensitive", formalDefinition="If code comparison is case sensitive when codes within this system are compared to each other." ) protected BooleanType caseSensitive; /** * Canonical URL of value set that contains the entire code system. */ @Child(name = "valueSet", type = {UriType.class}, order=4, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Canonical URL for value set with entire code system", formalDefinition="Canonical URL of value set that contains the entire code system." ) protected UriType valueSet; /** * The meaning of the hierarchy of concepts. */ @Child(name = "hierarchyMeaning", type = {CodeType.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="grouped-by | is-a | part-of | classified-with", formalDefinition="The meaning of the hierarchy of concepts." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning") protected Enumeration<CodeSystemHierarchyMeaning> hierarchyMeaning; /** * True If code system defines a post-composition grammar. */ @Child(name = "compositional", type = {BooleanType.class}, order=6, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="If code system defines a post-composition grammar", formalDefinition="True If code system defines a post-composition grammar." ) protected BooleanType compositional; /** * This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system. */ @Child(name = "versionNeeded", type = {BooleanType.class}, order=7, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="If definitions are not stable", formalDefinition="This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system." ) protected BooleanType versionNeeded; /** * How much of the content of the code system - the concepts and codes it defines - are represented in this resource. */ @Child(name = "content", type = {CodeType.class}, order=8, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="not-present | example | fragment | complete", formalDefinition="How much of the content of the code system - the concepts and codes it defines - are represented in this resource." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/codesystem-content-mode") protected Enumeration<CodeSystemContentMode> content; /** * The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts. */ @Child(name = "count", type = {UnsignedIntType.class}, order=9, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Total concepts in the code system", formalDefinition="The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts." ) protected UnsignedIntType count; /** * A filter that can be used in a value set compose statement when selecting concepts using a filter. */ @Child(name = "filter", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Filter that can be used in a value set", formalDefinition="A filter that can be used in a value set compose statement when selecting concepts using a filter." ) protected List<CodeSystemFilterComponent> filter; /** * A property defines an additional slot through which additional information can be provided about a concept. */ @Child(name = "property", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Additional information supplied about each concept", formalDefinition="A property defines an additional slot through which additional information can be provided about a concept." ) protected List<PropertyComponent> property; /** * Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meaning of the hierarchical relationships are. */ @Child(name = "concept", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Concepts in the code system", formalDefinition="Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meaning of the hierarchical relationships are." ) protected List<ConceptDefinitionComponent> concept; private static final long serialVersionUID = -1344546572L; /** * Constructor */ public CodeSystem() { super(); } /** * Constructor */ public CodeSystem(Enumeration<PublicationStatus> status, Enumeration<CodeSystemContentMode> content) { super(); this.status = status; this.content = content; } /** * @return {@link #url} (An absolute URI that is used to identify this code system when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this code system is (or will be) published. The URL SHOULD include the major version of the code system. For more information see [Technical and Business Versions](resource.html#versions). This is used in [Coding]{datatypes.html#Coding}.system.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ public UriType getUrlElement() { if (this.url == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.url"); else if (Configuration.doAutoCreate()) this.url = new UriType(); // bb return this.url; } public boolean hasUrlElement() { return this.url != null && !this.url.isEmpty(); } public boolean hasUrl() { return this.url != null && !this.url.isEmpty(); } /** * @param value {@link #url} (An absolute URI that is used to identify this code system when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this code system is (or will be) published. The URL SHOULD include the major version of the code system. For more information see [Technical and Business Versions](resource.html#versions). This is used in [Coding]{datatypes.html#Coding}.system.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ public CodeSystem setUrlElement(UriType value) { this.url = value; return this; } /** * @return An absolute URI that is used to identify this code system when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this code system is (or will be) published. The URL SHOULD include the major version of the code system. For more information see [Technical and Business Versions](resource.html#versions). This is used in [Coding]{datatypes.html#Coding}.system. */ public String getUrl() { return this.url == null ? null : this.url.getValue(); } /** * @param value An absolute URI that is used to identify this code system when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this code system is (or will be) published. The URL SHOULD include the major version of the code system. For more information see [Technical and Business Versions](resource.html#versions). This is used in [Coding]{datatypes.html#Coding}.system. */ public CodeSystem setUrl(String value) { if (Utilities.noString(value)) this.url = null; else { if (this.url == null) this.url = new UriType(); this.url.setValue(value); } return this; } /** * @return {@link #identifier} (A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.) */ public Identifier getIdentifier() { if (this.identifier == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.identifier"); else if (Configuration.doAutoCreate()) this.identifier = new Identifier(); // cc return this.identifier; } public boolean hasIdentifier() { return this.identifier != null && !this.identifier.isEmpty(); } /** * @param value {@link #identifier} (A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.) */ public CodeSystem setIdentifier(Identifier value) { this.identifier = value; return this; } /** * @return {@link #version} (The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. This is used in [Coding]{datatypes.html#Coding}.version.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value */ public StringType getVersionElement() { if (this.version == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.version"); else if (Configuration.doAutoCreate()) this.version = new StringType(); // bb return this.version; } public boolean hasVersionElement() { return this.version != null && !this.version.isEmpty(); } public boolean hasVersion() { return this.version != null && !this.version.isEmpty(); } /** * @param value {@link #version} (The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. This is used in [Coding]{datatypes.html#Coding}.version.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value */ public CodeSystem setVersionElement(StringType value) { this.version = value; return this; } /** * @return The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. This is used in [Coding]{datatypes.html#Coding}.version. */ public String getVersion() { return this.version == null ? null : this.version.getValue(); } /** * @param value The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. This is used in [Coding]{datatypes.html#Coding}.version. */ public CodeSystem setVersion(String value) { if (Utilities.noString(value)) this.version = null; else { if (this.version == null) this.version = new StringType(); this.version.setValue(value); } return this; } /** * @return {@link #name} (A natural language name identifying the code system. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value */ public StringType getNameElement() { if (this.name == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.name"); else if (Configuration.doAutoCreate()) this.name = new StringType(); // bb return this.name; } public boolean hasNameElement() { return this.name != null && !this.name.isEmpty(); } public boolean hasName() { return this.name != null && !this.name.isEmpty(); } /** * @param value {@link #name} (A natural language name identifying the code system. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value */ public CodeSystem setNameElement(StringType value) { this.name = value; return this; } /** * @return A natural language name identifying the code system. This name should be usable as an identifier for the module by machine processing applications such as code generation. */ public String getName() { return this.name == null ? null : this.name.getValue(); } /** * @param value A natural language name identifying the code system. This name should be usable as an identifier for the module by machine processing applications such as code generation. */ public CodeSystem setName(String value) { if (Utilities.noString(value)) this.name = null; else { if (this.name == null) this.name = new StringType(); this.name.setValue(value); } return this; } /** * @return {@link #title} (A short, descriptive, user-friendly title for the code system.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ public StringType getTitleElement() { if (this.title == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.title"); else if (Configuration.doAutoCreate()) this.title = new StringType(); // bb return this.title; } public boolean hasTitleElement() { return this.title != null && !this.title.isEmpty(); } public boolean hasTitle() { return this.title != null && !this.title.isEmpty(); } /** * @param value {@link #title} (A short, descriptive, user-friendly title for the code system.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ public CodeSystem setTitleElement(StringType value) { this.title = value; return this; } /** * @return A short, descriptive, user-friendly title for the code system. */ public String getTitle() { return this.title == null ? null : this.title.getValue(); } /** * @param value A short, descriptive, user-friendly title for the code system. */ public CodeSystem setTitle(String value) { if (Utilities.noString(value)) this.title = null; else { if (this.title == null) this.title = new StringType(); this.title.setValue(value); } return this; } /** * @return {@link #status} (The status of this code system. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ public Enumeration<PublicationStatus> getStatusElement() { if (this.status == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.status"); else if (Configuration.doAutoCreate()) this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb return this.status; } public boolean hasStatusElement() { return this.status != null && !this.status.isEmpty(); } public boolean hasStatus() { return this.status != null && !this.status.isEmpty(); } /** * @param value {@link #status} (The status of this code system. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ public CodeSystem setStatusElement(Enumeration<PublicationStatus> value) { this.status = value; return this; } /** * @return The status of this code system. Enables tracking the life-cycle of the content. */ public PublicationStatus getStatus() { return this.status == null ? null : this.status.getValue(); } /** * @param value The status of this code system. Enables tracking the life-cycle of the content. */ public CodeSystem setStatus(PublicationStatus value) { if (this.status == null) this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); this.status.setValue(value); return this; } /** * @return {@link #experimental} (A boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value */ public BooleanType getExperimentalElement() { if (this.experimental == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.experimental"); else if (Configuration.doAutoCreate()) this.experimental = new BooleanType(); // bb return this.experimental; } public boolean hasExperimentalElement() { return this.experimental != null && !this.experimental.isEmpty(); } public boolean hasExperimental() { return this.experimental != null && !this.experimental.isEmpty(); } /** * @param value {@link #experimental} (A boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value */ public CodeSystem setExperimentalElement(BooleanType value) { this.experimental = value; return this; } /** * @return A boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ public boolean getExperimental() { return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); } /** * @param value A boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ public CodeSystem setExperimental(boolean value) { if (this.experimental == null) this.experimental = new BooleanType(); this.experimental.setValue(value); return this; } /** * @return {@link #date} (The date (and optionally time) when the code system was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value */ public DateTimeType getDateElement() { if (this.date == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.date"); else if (Configuration.doAutoCreate()) this.date = new DateTimeType(); // bb return this.date; } public boolean hasDateElement() { return this.date != null && !this.date.isEmpty(); } public boolean hasDate() { return this.date != null && !this.date.isEmpty(); } /** * @param value {@link #date} (The date (and optionally time) when the code system was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value */ public CodeSystem setDateElement(DateTimeType value) { this.date = value; return this; } /** * @return The date (and optionally time) when the code system was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system changes. */ public Date getDate() { return this.date == null ? null : this.date.getValue(); } /** * @param value The date (and optionally time) when the code system was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system changes. */ public CodeSystem setDate(Date value) { if (value == null) this.date = null; else { if (this.date == null) this.date = new DateTimeType(); this.date.setValue(value); } return this; } /** * @return {@link #publisher} (The name of the individual or organization that published the code system.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value */ public StringType getPublisherElement() { if (this.publisher == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.publisher"); else if (Configuration.doAutoCreate()) this.publisher = new StringType(); // bb return this.publisher; } public boolean hasPublisherElement() { return this.publisher != null && !this.publisher.isEmpty(); } public boolean hasPublisher() { return this.publisher != null && !this.publisher.isEmpty(); } /** * @param value {@link #publisher} (The name of the individual or organization that published the code system.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value */ public CodeSystem setPublisherElement(StringType value) { this.publisher = value; return this; } /** * @return The name of the individual or organization that published the code system. */ public String getPublisher() { return this.publisher == null ? null : this.publisher.getValue(); } /** * @param value The name of the individual or organization that published the code system. */ public CodeSystem setPublisher(String value) { if (Utilities.noString(value)) this.publisher = null; else { if (this.publisher == null) this.publisher = new StringType(); this.publisher.setValue(value); } return this; } /** * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) */ public List<ContactDetail> getContact() { if (this.contact == null) this.contact = new ArrayList<ContactDetail>(); return this.contact; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public CodeSystem setContact(List<ContactDetail> theContact) { this.contact = theContact; return this; } public boolean hasContact() { if (this.contact == null) return false; for (ContactDetail item : this.contact) if (!item.isEmpty()) return true; return false; } public ContactDetail addContact() { //3 ContactDetail t = new ContactDetail(); if (this.contact == null) this.contact = new ArrayList<ContactDetail>(); this.contact.add(t); return t; } public CodeSystem addContact(ContactDetail t) { //3 if (t == null) return this; if (this.contact == null) this.contact = new ArrayList<ContactDetail>(); this.contact.add(t); return this; } /** * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist */ public ContactDetail getContactFirstRep() { if (getContact().isEmpty()) { addContact(); } return getContact().get(0); } /** * @return {@link #description} (A free text natural language description of the code system from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public MarkdownType getDescriptionElement() { if (this.description == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.description"); else if (Configuration.doAutoCreate()) this.description = new MarkdownType(); // bb return this.description; } public boolean hasDescriptionElement() { return this.description != null && !this.description.isEmpty(); } public boolean hasDescription() { return this.description != null && !this.description.isEmpty(); } /** * @param value {@link #description} (A free text natural language description of the code system from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public CodeSystem setDescriptionElement(MarkdownType value) { this.description = value; return this; } /** * @return A free text natural language description of the code system from a consumer's perspective. */ public String getDescription() { return this.description == null ? null : this.description.getValue(); } /** * @param value A free text natural language description of the code system from a consumer's perspective. */ public CodeSystem setDescription(String value) { if (value == null) this.description = null; else { if (this.description == null) this.description = new MarkdownType(); this.description.setValue(value); } return this; } /** * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate code system instances.) */ public List<UsageContext> getUseContext() { if (this.useContext == null) this.useContext = new ArrayList<UsageContext>(); return this.useContext; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public CodeSystem setUseContext(List<UsageContext> theUseContext) { this.useContext = theUseContext; return this; } public boolean hasUseContext() { if (this.useContext == null) return false; for (UsageContext item : this.useContext) if (!item.isEmpty()) return true; return false; } public UsageContext addUseContext() { //3 UsageContext t = new UsageContext(); if (this.useContext == null) this.useContext = new ArrayList<UsageContext>(); this.useContext.add(t); return t; } public CodeSystem addUseContext(UsageContext t) { //3 if (t == null) return this; if (this.useContext == null) this.useContext = new ArrayList<UsageContext>(); this.useContext.add(t); return this; } /** * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist */ public UsageContext getUseContextFirstRep() { if (getUseContext().isEmpty()) { addUseContext(); } return getUseContext().get(0); } /** * @return {@link #jurisdiction} (A legal or geographic region in which the code system is intended to be used.) */ public List<CodeableConcept> getJurisdiction() { if (this.jurisdiction == null) this.jurisdiction = new ArrayList<CodeableConcept>(); return this.jurisdiction; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public CodeSystem setJurisdiction(List<CodeableConcept> theJurisdiction) { this.jurisdiction = theJurisdiction; return this; } public boolean hasJurisdiction() { if (this.jurisdiction == null) return false; for (CodeableConcept item : this.jurisdiction) if (!item.isEmpty()) return true; return false; } public CodeableConcept addJurisdiction() { //3 CodeableConcept t = new CodeableConcept(); if (this.jurisdiction == null) this.jurisdiction = new ArrayList<CodeableConcept>(); this.jurisdiction.add(t); return t; } public CodeSystem addJurisdiction(CodeableConcept t) { //3 if (t == null) return this; if (this.jurisdiction == null) this.jurisdiction = new ArrayList<CodeableConcept>(); this.jurisdiction.add(t); return this; } /** * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist */ public CodeableConcept getJurisdictionFirstRep() { if (getJurisdiction().isEmpty()) { addJurisdiction(); } return getJurisdiction().get(0); } /** * @return {@link #purpose} (Explaination of why this code system is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value */ public MarkdownType getPurposeElement() { if (this.purpose == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.purpose"); else if (Configuration.doAutoCreate()) this.purpose = new MarkdownType(); // bb return this.purpose; } public boolean hasPurposeElement() { return this.purpose != null && !this.purpose.isEmpty(); } public boolean hasPurpose() { return this.purpose != null && !this.purpose.isEmpty(); } /** * @param value {@link #purpose} (Explaination of why this code system is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value */ public CodeSystem setPurposeElement(MarkdownType value) { this.purpose = value; return this; } /** * @return Explaination of why this code system is needed and why it has been designed as it has. */ public String getPurpose() { return this.purpose == null ? null : this.purpose.getValue(); } /** * @param value Explaination of why this code system is needed and why it has been designed as it has. */ public CodeSystem setPurpose(String value) { if (value == null) this.purpose = null; else { if (this.purpose == null) this.purpose = new MarkdownType(); this.purpose.setValue(value); } return this; } /** * @return {@link #copyright} (A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value */ public MarkdownType getCopyrightElement() { if (this.copyright == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.copyright"); else if (Configuration.doAutoCreate()) this.copyright = new MarkdownType(); // bb return this.copyright; } public boolean hasCopyrightElement() { return this.copyright != null && !this.copyright.isEmpty(); } public boolean hasCopyright() { return this.copyright != null && !this.copyright.isEmpty(); } /** * @param value {@link #copyright} (A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value */ public CodeSystem setCopyrightElement(MarkdownType value) { this.copyright = value; return this; } /** * @return A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system. */ public String getCopyright() { return this.copyright == null ? null : this.copyright.getValue(); } /** * @param value A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system. */ public CodeSystem setCopyright(String value) { if (value == null) this.copyright = null; else { if (this.copyright == null) this.copyright = new MarkdownType(); this.copyright.setValue(value); } return this; } /** * @return {@link #caseSensitive} (If code comparison is case sensitive when codes within this system are compared to each other.). This is the underlying object with id, value and extensions. The accessor "getCaseSensitive" gives direct access to the value */ public BooleanType getCaseSensitiveElement() { if (this.caseSensitive == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.caseSensitive"); else if (Configuration.doAutoCreate()) this.caseSensitive = new BooleanType(); // bb return this.caseSensitive; } public boolean hasCaseSensitiveElement() { return this.caseSensitive != null && !this.caseSensitive.isEmpty(); } public boolean hasCaseSensitive() { return this.caseSensitive != null && !this.caseSensitive.isEmpty(); } /** * @param value {@link #caseSensitive} (If code comparison is case sensitive when codes within this system are compared to each other.). This is the underlying object with id, value and extensions. The accessor "getCaseSensitive" gives direct access to the value */ public CodeSystem setCaseSensitiveElement(BooleanType value) { this.caseSensitive = value; return this; } /** * @return If code comparison is case sensitive when codes within this system are compared to each other. */ public boolean getCaseSensitive() { return this.caseSensitive == null || this.caseSensitive.isEmpty() ? false : this.caseSensitive.getValue(); } /** * @param value If code comparison is case sensitive when codes within this system are compared to each other. */ public CodeSystem setCaseSensitive(boolean value) { if (this.caseSensitive == null) this.caseSensitive = new BooleanType(); this.caseSensitive.setValue(value); return this; } /** * @return {@link #valueSet} (Canonical URL of value set that contains the entire code system.). This is the underlying object with id, value and extensions. The accessor "getValueSet" gives direct access to the value */ public UriType getValueSetElement() { if (this.valueSet == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.valueSet"); else if (Configuration.doAutoCreate()) this.valueSet = new UriType(); // bb return this.valueSet; } public boolean hasValueSetElement() { return this.valueSet != null && !this.valueSet.isEmpty(); } public boolean hasValueSet() { return this.valueSet != null && !this.valueSet.isEmpty(); } /** * @param value {@link #valueSet} (Canonical URL of value set that contains the entire code system.). This is the underlying object with id, value and extensions. The accessor "getValueSet" gives direct access to the value */ public CodeSystem setValueSetElement(UriType value) { this.valueSet = value; return this; } /** * @return Canonical URL of value set that contains the entire code system. */ public String getValueSet() { return this.valueSet == null ? null : this.valueSet.getValue(); } /** * @param value Canonical URL of value set that contains the entire code system. */ public CodeSystem setValueSet(String value) { if (Utilities.noString(value)) this.valueSet = null; else { if (this.valueSet == null) this.valueSet = new UriType(); this.valueSet.setValue(value); } return this; } /** * @return {@link #hierarchyMeaning} (The meaning of the hierarchy of concepts.). This is the underlying object with id, value and extensions. The accessor "getHierarchyMeaning" gives direct access to the value */ public Enumeration<CodeSystemHierarchyMeaning> getHierarchyMeaningElement() { if (this.hierarchyMeaning == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.hierarchyMeaning"); else if (Configuration.doAutoCreate()) this.hierarchyMeaning = new Enumeration<CodeSystemHierarchyMeaning>(new CodeSystemHierarchyMeaningEnumFactory()); // bb return this.hierarchyMeaning; } public boolean hasHierarchyMeaningElement() { return this.hierarchyMeaning != null && !this.hierarchyMeaning.isEmpty(); } public boolean hasHierarchyMeaning() { return this.hierarchyMeaning != null && !this.hierarchyMeaning.isEmpty(); } /** * @param value {@link #hierarchyMeaning} (The meaning of the hierarchy of concepts.). This is the underlying object with id, value and extensions. The accessor "getHierarchyMeaning" gives direct access to the value */ public CodeSystem setHierarchyMeaningElement(Enumeration<CodeSystemHierarchyMeaning> value) { this.hierarchyMeaning = value; return this; } /** * @return The meaning of the hierarchy of concepts. */ public CodeSystemHierarchyMeaning getHierarchyMeaning() { return this.hierarchyMeaning == null ? null : this.hierarchyMeaning.getValue(); } /** * @param value The meaning of the hierarchy of concepts. */ public CodeSystem setHierarchyMeaning(CodeSystemHierarchyMeaning value) { if (value == null) this.hierarchyMeaning = null; else { if (this.hierarchyMeaning == null) this.hierarchyMeaning = new Enumeration<CodeSystemHierarchyMeaning>(new CodeSystemHierarchyMeaningEnumFactory()); this.hierarchyMeaning.setValue(value); } return this; } /** * @return {@link #compositional} (True If code system defines a post-composition grammar.). This is the underlying object with id, value and extensions. The accessor "getCompositional" gives direct access to the value */ public BooleanType getCompositionalElement() { if (this.compositional == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.compositional"); else if (Configuration.doAutoCreate()) this.compositional = new BooleanType(); // bb return this.compositional; } public boolean hasCompositionalElement() { return this.compositional != null && !this.compositional.isEmpty(); } public boolean hasCompositional() { return this.compositional != null && !this.compositional.isEmpty(); } /** * @param value {@link #compositional} (True If code system defines a post-composition grammar.). This is the underlying object with id, value and extensions. The accessor "getCompositional" gives direct access to the value */ public CodeSystem setCompositionalElement(BooleanType value) { this.compositional = value; return this; } /** * @return True If code system defines a post-composition grammar. */ public boolean getCompositional() { return this.compositional == null || this.compositional.isEmpty() ? false : this.compositional.getValue(); } /** * @param value True If code system defines a post-composition grammar. */ public CodeSystem setCompositional(boolean value) { if (this.compositional == null) this.compositional = new BooleanType(); this.compositional.setValue(value); return this; } /** * @return {@link #versionNeeded} (This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system.). This is the underlying object with id, value and extensions. The accessor "getVersionNeeded" gives direct access to the value */ public BooleanType getVersionNeededElement() { if (this.versionNeeded == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.versionNeeded"); else if (Configuration.doAutoCreate()) this.versionNeeded = new BooleanType(); // bb return this.versionNeeded; } public boolean hasVersionNeededElement() { return this.versionNeeded != null && !this.versionNeeded.isEmpty(); } public boolean hasVersionNeeded() { return this.versionNeeded != null && !this.versionNeeded.isEmpty(); } /** * @param value {@link #versionNeeded} (This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system.). This is the underlying object with id, value and extensions. The accessor "getVersionNeeded" gives direct access to the value */ public CodeSystem setVersionNeededElement(BooleanType value) { this.versionNeeded = value; return this; } /** * @return This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system. */ public boolean getVersionNeeded() { return this.versionNeeded == null || this.versionNeeded.isEmpty() ? false : this.versionNeeded.getValue(); } /** * @param value This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system. */ public CodeSystem setVersionNeeded(boolean value) { if (this.versionNeeded == null) this.versionNeeded = new BooleanType(); this.versionNeeded.setValue(value); return this; } /** * @return {@link #content} (How much of the content of the code system - the concepts and codes it defines - are represented in this resource.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value */ public Enumeration<CodeSystemContentMode> getContentElement() { if (this.content == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.content"); else if (Configuration.doAutoCreate()) this.content = new Enumeration<CodeSystemContentMode>(new CodeSystemContentModeEnumFactory()); // bb return this.content; } public boolean hasContentElement() { return this.content != null && !this.content.isEmpty(); } public boolean hasContent() { return this.content != null && !this.content.isEmpty(); } /** * @param value {@link #content} (How much of the content of the code system - the concepts and codes it defines - are represented in this resource.). This is the underlying object with id, value and extensions. The accessor "getContent" gives direct access to the value */ public CodeSystem setContentElement(Enumeration<CodeSystemContentMode> value) { this.content = value; return this; } /** * @return How much of the content of the code system - the concepts and codes it defines - are represented in this resource. */ public CodeSystemContentMode getContent() { return this.content == null ? null : this.content.getValue(); } /** * @param value How much of the content of the code system - the concepts and codes it defines - are represented in this resource. */ public CodeSystem setContent(CodeSystemContentMode value) { if (this.content == null) this.content = new Enumeration<CodeSystemContentMode>(new CodeSystemContentModeEnumFactory()); this.content.setValue(value); return this; } /** * @return {@link #count} (The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value */ public UnsignedIntType getCountElement() { if (this.count == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CodeSystem.count"); else if (Configuration.doAutoCreate()) this.count = new UnsignedIntType(); // bb return this.count; } public boolean hasCountElement() { return this.count != null && !this.count.isEmpty(); } public boolean hasCount() { return this.count != null && !this.count.isEmpty(); } /** * @param value {@link #count} (The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value */ public CodeSystem setCountElement(UnsignedIntType value) { this.count = value; return this; } /** * @return The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts. */ public int getCount() { return this.count == null || this.count.isEmpty() ? 0 : this.count.getValue(); } /** * @param value The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts. */ public CodeSystem setCount(int value) { if (this.count == null) this.count = new UnsignedIntType(); this.count.setValue(value); return this; } /** * @return {@link #filter} (A filter that can be used in a value set compose statement when selecting concepts using a filter.) */ public List<CodeSystemFilterComponent> getFilter() { if (this.filter == null) this.filter = new ArrayList<CodeSystemFilterComponent>(); return this.filter; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public CodeSystem setFilter(List<CodeSystemFilterComponent> theFilter) { this.filter = theFilter; return this; } public boolean hasFilter() { if (this.filter == null) return false; for (CodeSystemFilterComponent item : this.filter) if (!item.isEmpty()) return true; return false; } public CodeSystemFilterComponent addFilter() { //3 CodeSystemFilterComponent t = new CodeSystemFilterComponent(); if (this.filter == null) this.filter = new ArrayList<CodeSystemFilterComponent>(); this.filter.add(t); return t; } public CodeSystem addFilter(CodeSystemFilterComponent t) { //3 if (t == null) return this; if (this.filter == null) this.filter = new ArrayList<CodeSystemFilterComponent>(); this.filter.add(t); return this; } /** * @return The first repetition of repeating field {@link #filter}, creating it if it does not already exist */ public CodeSystemFilterComponent getFilterFirstRep() { if (getFilter().isEmpty()) { addFilter(); } return getFilter().get(0); } /** * @return {@link #property} (A property defines an additional slot through which additional information can be provided about a concept.) */ public List<PropertyComponent> getProperty() { if (this.property == null) this.property = new ArrayList<PropertyComponent>(); return this.property; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public CodeSystem setProperty(List<PropertyComponent> theProperty) { this.property = theProperty; return this; } public boolean hasProperty() { if (this.property == null) return false; for (PropertyComponent item : this.property) if (!item.isEmpty()) return true; return false; } public PropertyComponent addProperty() { //3 PropertyComponent t = new PropertyComponent(); if (this.property == null) this.property = new ArrayList<PropertyComponent>(); this.property.add(t); return t; } public CodeSystem addProperty(PropertyComponent t) { //3 if (t == null) return this; if (this.property == null) this.property = new ArrayList<PropertyComponent>(); this.property.add(t); return this; } /** * @return The first repetition of repeating field {@link #property}, creating it if it does not already exist */ public PropertyComponent getPropertyFirstRep() { if (getProperty().isEmpty()) { addProperty(); } return getProperty().get(0); } /** * @return {@link #concept} (Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meaning of the hierarchical relationships are.) */ public List<ConceptDefinitionComponent> getConcept() { if (this.concept == null) this.concept = new ArrayList<ConceptDefinitionComponent>(); return this.concept; } /** * @return Returns a reference to <code>this</code> for easy method chaining */ public CodeSystem setConcept(List<ConceptDefinitionComponent> theConcept) { this.concept = theConcept; return this; } public boolean hasConcept() { if (this.concept == null) return false; for (ConceptDefinitionComponent item : this.concept) if (!item.isEmpty()) return true; return false; } public ConceptDefinitionComponent addConcept() { //3 ConceptDefinitionComponent t = new ConceptDefinitionComponent(); if (this.concept == null) this.concept = new ArrayList<ConceptDefinitionComponent>(); this.concept.add(t); return t; } public CodeSystem addConcept(ConceptDefinitionComponent t) { //3 if (t == null) return this; if (this.concept == null) this.concept = new ArrayList<ConceptDefinitionComponent>(); this.concept.add(t); return this; } /** * @return The first repetition of repeating field {@link #concept}, creating it if it does not already exist */ public ConceptDefinitionComponent getConceptFirstRep() { if (getConcept().isEmpty()) { addConcept(); } return getConcept().get(0); } protected void listChildren(List<Property> childrenList) { super.listChildren(childrenList); childrenList.add(new Property("url", "uri", "An absolute URI that is used to identify this code system when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this code system is (or will be) published. The URL SHOULD include the major version of the code system. For more information see [Technical and Business Versions](resource.html#versions). This is used in [Coding]{datatypes.html#Coding}.system.", 0, java.lang.Integer.MAX_VALUE, url)); childrenList.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. This is used in [Coding]{datatypes.html#Coding}.version.", 0, java.lang.Integer.MAX_VALUE, version)); childrenList.add(new Property("name", "string", "A natural language name identifying the code system. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, java.lang.Integer.MAX_VALUE, name)); childrenList.add(new Property("title", "string", "A short, descriptive, user-friendly title for the code system.", 0, java.lang.Integer.MAX_VALUE, title)); childrenList.add(new Property("status", "code", "The status of this code system. Enables tracking the life-cycle of the content.", 0, java.lang.Integer.MAX_VALUE, status)); childrenList.add(new Property("experimental", "boolean", "A boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, java.lang.Integer.MAX_VALUE, experimental)); childrenList.add(new Property("date", "dateTime", "The date (and optionally time) when the code system was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system changes.", 0, java.lang.Integer.MAX_VALUE, date)); childrenList.add(new Property("publisher", "string", "The name of the individual or organization that published the code system.", 0, java.lang.Integer.MAX_VALUE, publisher)); childrenList.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); childrenList.add(new Property("description", "markdown", "A free text natural language description of the code system from a consumer's perspective.", 0, java.lang.Integer.MAX_VALUE, description)); childrenList.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate code system instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); childrenList.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the code system is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); childrenList.add(new Property("purpose", "markdown", "Explaination of why this code system is needed and why it has been designed as it has.", 0, java.lang.Integer.MAX_VALUE, purpose)); childrenList.add(new Property("copyright", "markdown", "A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system.", 0, java.lang.Integer.MAX_VALUE, copyright)); childrenList.add(new Property("caseSensitive", "boolean", "If code comparison is case sensitive when codes within this system are compared to each other.", 0, java.lang.Integer.MAX_VALUE, caseSensitive)); childrenList.add(new Property("valueSet", "uri", "Canonical URL of value set that contains the entire code system.", 0, java.lang.Integer.MAX_VALUE, valueSet)); childrenList.add(new Property("hierarchyMeaning", "code", "The meaning of the hierarchy of concepts.", 0, java.lang.Integer.MAX_VALUE, hierarchyMeaning)); childrenList.add(new Property("compositional", "boolean", "True If code system defines a post-composition grammar.", 0, java.lang.Integer.MAX_VALUE, compositional)); childrenList.add(new Property("versionNeeded", "boolean", "This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system.", 0, java.lang.Integer.MAX_VALUE, versionNeeded)); childrenList.add(new Property("content", "code", "How much of the content of the code system - the concepts and codes it defines - are represented in this resource.", 0, java.lang.Integer.MAX_VALUE, content)); childrenList.add(new Property("count", "unsignedInt", "The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts.", 0, java.lang.Integer.MAX_VALUE, count)); childrenList.add(new Property("filter", "", "A filter that can be used in a value set compose statement when selecting concepts using a filter.", 0, java.lang.Integer.MAX_VALUE, filter)); childrenList.add(new Property("property", "", "A property defines an additional slot through which additional information can be provided about a concept.", 0, java.lang.Integer.MAX_VALUE, property)); childrenList.add(new Property("concept", "", "Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meaning of the hierarchical relationships are.", 0, java.lang.Integer.MAX_VALUE, concept)); } @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus> case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType case -35616442: /*caseSensitive*/ return this.caseSensitive == null ? new Base[0] : new Base[] {this.caseSensitive}; // BooleanType case -1410174671: /*valueSet*/ return this.valueSet == null ? new Base[0] : new Base[] {this.valueSet}; // UriType case 1913078280: /*hierarchyMeaning*/ return this.hierarchyMeaning == null ? new Base[0] : new Base[] {this.hierarchyMeaning}; // Enumeration<CodeSystemHierarchyMeaning> case 1248023381: /*compositional*/ return this.compositional == null ? new Base[0] : new Base[] {this.compositional}; // BooleanType case 617270957: /*versionNeeded*/ return this.versionNeeded == null ? new Base[0] : new Base[] {this.versionNeeded}; // BooleanType case 951530617: /*content*/ return this.content == null ? new Base[0] : new Base[] {this.content}; // Enumeration<CodeSystemContentMode> case 94851343: /*count*/ return this.count == null ? new Base[0] : new Base[] {this.count}; // UnsignedIntType case -1274492040: /*filter*/ return this.filter == null ? new Base[0] : this.filter.toArray(new Base[this.filter.size()]); // CodeSystemFilterComponent case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // PropertyComponent case 951024232: /*concept*/ return this.concept == null ? new Base[0] : this.concept.toArray(new Base[this.concept.size()]); // ConceptDefinitionComponent default: return super.getProperty(hash, name, checkValid); } } @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 116079: // url this.url = castToUri(value); // UriType return value; case -1618432855: // identifier this.identifier = castToIdentifier(value); // Identifier return value; case 351608024: // version this.version = castToString(value); // StringType return value; case 3373707: // name this.name = castToString(value); // StringType return value; case 110371416: // title this.title = castToString(value); // StringType return value; case -892481550: // status value = new PublicationStatusEnumFactory().fromType(castToCode(value)); this.status = (Enumeration) value; // Enumeration<PublicationStatus> return value; case -404562712: // experimental this.experimental = castToBoolean(value); // BooleanType return value; case 3076014: // date this.date = castToDateTime(value); // DateTimeType return value; case 1447404028: // publisher this.publisher = castToString(value); // StringType return value; case 951526432: // contact this.getContact().add(castToContactDetail(value)); // ContactDetail return value; case -1724546052: // description this.description = castToMarkdown(value); // MarkdownType return value; case -669707736: // useContext this.getUseContext().add(castToUsageContext(value)); // UsageContext return value; case -507075711: // jurisdiction this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept return value; case -220463842: // purpose this.purpose = castToMarkdown(value); // MarkdownType return value; case 1522889671: // copyright this.copyright = castToMarkdown(value); // MarkdownType return value; case -35616442: // caseSensitive this.caseSensitive = castToBoolean(value); // BooleanType return value; case -1410174671: // valueSet this.valueSet = castToUri(value); // UriType return value; case 1913078280: // hierarchyMeaning value = new CodeSystemHierarchyMeaningEnumFactory().fromType(castToCode(value)); this.hierarchyMeaning = (Enumeration) value; // Enumeration<CodeSystemHierarchyMeaning> return value; case 1248023381: // compositional this.compositional = castToBoolean(value); // BooleanType return value; case 617270957: // versionNeeded this.versionNeeded = castToBoolean(value); // BooleanType return value; case 951530617: // content value = new CodeSystemContentModeEnumFactory().fromType(castToCode(value)); this.content = (Enumeration) value; // Enumeration<CodeSystemContentMode> return value; case 94851343: // count this.count = castToUnsignedInt(value); // UnsignedIntType return value; case -1274492040: // filter this.getFilter().add((CodeSystemFilterComponent) value); // CodeSystemFilterComponent return value; case -993141291: // property this.getProperty().add((PropertyComponent) value); // PropertyComponent return value; case 951024232: // concept this.getConcept().add((ConceptDefinitionComponent) value); // ConceptDefinitionComponent return value; default: return super.setProperty(hash, name, value); } } @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("url")) { this.url = castToUri(value); // UriType } else if (name.equals("identifier")) { this.identifier = castToIdentifier(value); // Identifier } else if (name.equals("version")) { this.version = castToString(value); // StringType } else if (name.equals("name")) { this.name = castToString(value); // StringType } else if (name.equals("title")) { this.title = castToString(value); // StringType } else if (name.equals("status")) { value = new PublicationStatusEnumFactory().fromType(castToCode(value)); this.status = (Enumeration) value; // Enumeration<PublicationStatus> } else if (name.equals("experimental")) { this.experimental = castToBoolean(value); // BooleanType } else if (name.equals("date")) { this.date = castToDateTime(value); // DateTimeType } else if (name.equals("publisher")) { this.publisher = castToString(value); // StringType } else if (name.equals("contact")) { this.getContact().add(castToContactDetail(value)); } else if (name.equals("description")) { this.description = castToMarkdown(value); // MarkdownType } else if (name.equals("useContext")) { this.getUseContext().add(castToUsageContext(value)); } else if (name.equals("jurisdiction")) { this.getJurisdiction().add(castToCodeableConcept(value)); } else if (name.equals("purpose")) { this.purpose = castToMarkdown(value); // MarkdownType } else if (name.equals("copyright")) { this.copyright = castToMarkdown(value); // MarkdownType } else if (name.equals("caseSensitive")) { this.caseSensitive = castToBoolean(value); // BooleanType } else if (name.equals("valueSet")) { this.valueSet = castToUri(value); // UriType } else if (name.equals("hierarchyMeaning")) { value = new CodeSystemHierarchyMeaningEnumFactory().fromType(castToCode(value)); this.hierarchyMeaning = (Enumeration) value; // Enumeration<CodeSystemHierarchyMeaning> } else if (name.equals("compositional")) { this.compositional = castToBoolean(value); // BooleanType } else if (name.equals("versionNeeded")) { this.versionNeeded = castToBoolean(value); // BooleanType } else if (name.equals("content")) { value = new CodeSystemContentModeEnumFactory().fromType(castToCode(value)); this.content = (Enumeration) value; // Enumeration<CodeSystemContentMode> } else if (name.equals("count")) { this.count = castToUnsignedInt(value); // UnsignedIntType } else if (name.equals("filter")) { this.getFilter().add((CodeSystemFilterComponent) value); } else if (name.equals("property")) { this.getProperty().add((PropertyComponent) value); } else if (name.equals("concept")) { this.getConcept().add((ConceptDefinitionComponent) value); } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: return getUrlElement(); case -1618432855: return getIdentifier(); case 351608024: return getVersionElement(); case 3373707: return getNameElement(); case 110371416: return getTitleElement(); case -892481550: return getStatusElement(); case -404562712: return getExperimentalElement(); case 3076014: return getDateElement(); case 1447404028: return getPublisherElement(); case 951526432: return addContact(); case -1724546052: return getDescriptionElement(); case -669707736: return addUseContext(); case -507075711: return addJurisdiction(); case -220463842: return getPurposeElement(); case 1522889671: return getCopyrightElement(); case -35616442: return getCaseSensitiveElement(); case -1410174671: return getValueSetElement(); case 1913078280: return getHierarchyMeaningElement(); case 1248023381: return getCompositionalElement(); case 617270957: return getVersionNeededElement(); case 951530617: return getContentElement(); case 94851343: return getCountElement(); case -1274492040: return addFilter(); case -993141291: return addProperty(); case 951024232: return addConcept(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: /*url*/ return new String[] {"uri"}; case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case 351608024: /*version*/ return new String[] {"string"}; case 3373707: /*name*/ return new String[] {"string"}; case 110371416: /*title*/ return new String[] {"string"}; case -892481550: /*status*/ return new String[] {"code"}; case -404562712: /*experimental*/ return new String[] {"boolean"}; case 3076014: /*date*/ return new String[] {"dateTime"}; case 1447404028: /*publisher*/ return new String[] {"string"}; case 951526432: /*contact*/ return new String[] {"ContactDetail"}; case -1724546052: /*description*/ return new String[] {"markdown"}; case -669707736: /*useContext*/ return new String[] {"UsageContext"}; case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; case -220463842: /*purpose*/ return new String[] {"markdown"}; case 1522889671: /*copyright*/ return new String[] {"markdown"}; case -35616442: /*caseSensitive*/ return new String[] {"boolean"}; case -1410174671: /*valueSet*/ return new String[] {"uri"}; case 1913078280: /*hierarchyMeaning*/ return new String[] {"code"}; case 1248023381: /*compositional*/ return new String[] {"boolean"}; case 617270957: /*versionNeeded*/ return new String[] {"boolean"}; case 951530617: /*content*/ return new String[] {"code"}; case 94851343: /*count*/ return new String[] {"unsignedInt"}; case -1274492040: /*filter*/ return new String[] {}; case -993141291: /*property*/ return new String[] {}; case 951024232: /*concept*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } } @Override public Base addChild(String name) throws FHIRException { if (name.equals("url")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.url"); } else if (name.equals("identifier")) { this.identifier = new Identifier(); return this.identifier; } else if (name.equals("version")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.version"); } else if (name.equals("name")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.name"); } else if (name.equals("title")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.title"); } else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.status"); } else if (name.equals("experimental")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.experimental"); } else if (name.equals("date")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.date"); } else if (name.equals("publisher")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.publisher"); } else if (name.equals("contact")) { return addContact(); } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.description"); } else if (name.equals("useContext")) { return addUseContext(); } else if (name.equals("jurisdiction")) { return addJurisdiction(); } else if (name.equals("purpose")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.purpose"); } else if (name.equals("copyright")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.copyright"); } else if (name.equals("caseSensitive")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.caseSensitive"); } else if (name.equals("valueSet")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet"); } else if (name.equals("hierarchyMeaning")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.hierarchyMeaning"); } else if (name.equals("compositional")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional"); } else if (name.equals("versionNeeded")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.versionNeeded"); } else if (name.equals("content")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.content"); } else if (name.equals("count")) { throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.count"); } else if (name.equals("filter")) { return addFilter(); } else if (name.equals("property")) { return addProperty(); } else if (name.equals("concept")) { return addConcept(); } else return super.addChild(name); } public String fhirType() { return "CodeSystem"; } public CodeSystem copy() { CodeSystem dst = new CodeSystem(); copyValues(dst); dst.url = url == null ? null : url.copy(); dst.identifier = identifier == null ? null : identifier.copy(); dst.version = version == null ? null : version.copy(); dst.name = name == null ? null : name.copy(); dst.title = title == null ? null : title.copy(); dst.status = status == null ? null : status.copy(); dst.experimental = experimental == null ? null : experimental.copy(); dst.date = date == null ? null : date.copy(); dst.publisher = publisher == null ? null : publisher.copy(); if (contact != null) { dst.contact = new ArrayList<ContactDetail>(); for (ContactDetail i : contact) dst.contact.add(i.copy()); }; dst.description = description == null ? null : description.copy(); if (useContext != null) { dst.useContext = new ArrayList<UsageContext>(); for (UsageContext i : useContext) dst.useContext.add(i.copy()); }; if (jurisdiction != null) { dst.jurisdiction = new ArrayList<CodeableConcept>(); for (CodeableConcept i : jurisdiction) dst.jurisdiction.add(i.copy()); }; dst.purpose = purpose == null ? null : purpose.copy(); dst.copyright = copyright == null ? null : copyright.copy(); dst.caseSensitive = caseSensitive == null ? null : caseSensitive.copy(); dst.valueSet = valueSet == null ? null : valueSet.copy(); dst.hierarchyMeaning = hierarchyMeaning == null ? null : hierarchyMeaning.copy(); dst.compositional = compositional == null ? null : compositional.copy(); dst.versionNeeded = versionNeeded == null ? null : versionNeeded.copy(); dst.content = content == null ? null : content.copy(); dst.count = count == null ? null : count.copy(); if (filter != null) { dst.filter = new ArrayList<CodeSystemFilterComponent>(); for (CodeSystemFilterComponent i : filter) dst.filter.add(i.copy()); }; if (property != null) { dst.property = new ArrayList<PropertyComponent>(); for (PropertyComponent i : property) dst.property.add(i.copy()); }; if (concept != null) { dst.concept = new ArrayList<ConceptDefinitionComponent>(); for (ConceptDefinitionComponent i : concept) dst.concept.add(i.copy()); }; return dst; } protected CodeSystem typedCopy() { return copy(); } @Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof CodeSystem)) return false; CodeSystem o = (CodeSystem) other; return compareDeep(identifier, o.identifier, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(caseSensitive, o.caseSensitive, true) && compareDeep(valueSet, o.valueSet, true) && compareDeep(hierarchyMeaning, o.hierarchyMeaning, true) && compareDeep(compositional, o.compositional, true) && compareDeep(versionNeeded, o.versionNeeded, true) && compareDeep(content, o.content, true) && compareDeep(count, o.count, true) && compareDeep(filter, o.filter, true) && compareDeep(property, o.property, true) && compareDeep(concept, o.concept, true) ; } @Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof CodeSystem)) return false; CodeSystem o = (CodeSystem) other; return compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true) && compareValues(caseSensitive, o.caseSensitive, true) && compareValues(valueSet, o.valueSet, true) && compareValues(hierarchyMeaning, o.hierarchyMeaning, true) && compareValues(compositional, o.compositional, true) && compareValues(versionNeeded, o.versionNeeded, true) && compareValues(content, o.content, true) && compareValues(count, o.count, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, purpose, copyright , caseSensitive, valueSet, hierarchyMeaning, compositional, versionNeeded, content , count, filter, property, concept); } @Override public ResourceType getResourceType() { return ResourceType.CodeSystem; } /** * Search parameter: <b>date</b> * <p> * Description: <b>The code system publication date</b><br> * Type: <b>date</b><br> * Path: <b>CodeSystem.date</b><br> * </p> */ @SearchParamDefinition(name="date", path="CodeSystem.date", description="The code system publication date", type="date" ) public static final String SP_DATE = "date"; /** * <b>Fluent Client</b> search parameter constant for <b>date</b> * <p> * Description: <b>The code system publication date</b><br> * Type: <b>date</b><br> * Path: <b>CodeSystem.date</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); /** * Search parameter: <b>identifier</b> * <p> * Description: <b>External identifier for the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.identifier</b><br> * </p> */ @SearchParamDefinition(name="identifier", path="CodeSystem.identifier", description="External identifier for the code system", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * <b>Fluent Client</b> search parameter constant for <b>identifier</b> * <p> * Description: <b>External identifier for the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.identifier</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); /** * Search parameter: <b>code</b> * <p> * Description: <b>A code defined in the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.concept.code</b><br> * </p> */ @SearchParamDefinition(name="code", path="CodeSystem.concept.code", description="A code defined in the code system", type="token" ) public static final String SP_CODE = "code"; /** * <b>Fluent Client</b> search parameter constant for <b>code</b> * <p> * Description: <b>A code defined in the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.concept.code</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); /** * Search parameter: <b>content-mode</b> * <p> * Description: <b>not-present | example | fragment | complete</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.content</b><br> * </p> */ @SearchParamDefinition(name="content-mode", path="CodeSystem.content", description="not-present | example | fragment | complete", type="token" ) public static final String SP_CONTENT_MODE = "content-mode"; /** * <b>Fluent Client</b> search parameter constant for <b>content-mode</b> * <p> * Description: <b>not-present | example | fragment | complete</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.content</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTENT_MODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTENT_MODE); /** * Search parameter: <b>jurisdiction</b> * <p> * Description: <b>Intended jurisdiction for the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.jurisdiction</b><br> * </p> */ @SearchParamDefinition(name="jurisdiction", path="CodeSystem.jurisdiction", description="Intended jurisdiction for the code system", type="token" ) public static final String SP_JURISDICTION = "jurisdiction"; /** * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b> * <p> * Description: <b>Intended jurisdiction for the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.jurisdiction</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); /** * Search parameter: <b>description</b> * <p> * Description: <b>The description of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.description</b><br> * </p> */ @SearchParamDefinition(name="description", path="CodeSystem.description", description="The description of the code system", type="string" ) public static final String SP_DESCRIPTION = "description"; /** * <b>Fluent Client</b> search parameter constant for <b>description</b> * <p> * Description: <b>The description of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.description</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); /** * Search parameter: <b>language</b> * <p> * Description: <b>A language in which a designation is provided</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.concept.designation.language</b><br> * </p> */ @SearchParamDefinition(name="language", path="CodeSystem.concept.designation.language", description="A language in which a designation is provided", type="token" ) public static final String SP_LANGUAGE = "language"; /** * <b>Fluent Client</b> search parameter constant for <b>language</b> * <p> * Description: <b>A language in which a designation is provided</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.concept.designation.language</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LANGUAGE); /** * Search parameter: <b>title</b> * <p> * Description: <b>The human-friendly name of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.title</b><br> * </p> */ @SearchParamDefinition(name="title", path="CodeSystem.title", description="The human-friendly name of the code system", type="string" ) public static final String SP_TITLE = "title"; /** * <b>Fluent Client</b> search parameter constant for <b>title</b> * <p> * Description: <b>The human-friendly name of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.title</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); /** * Search parameter: <b>version</b> * <p> * Description: <b>The business version of the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.version</b><br> * </p> */ @SearchParamDefinition(name="version", path="CodeSystem.version", description="The business version of the code system", type="token" ) public static final String SP_VERSION = "version"; /** * <b>Fluent Client</b> search parameter constant for <b>version</b> * <p> * Description: <b>The business version of the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.version</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); /** * Search parameter: <b>url</b> * <p> * Description: <b>The uri that identifies the code system</b><br> * Type: <b>uri</b><br> * Path: <b>CodeSystem.url</b><br> * </p> */ @SearchParamDefinition(name="url", path="CodeSystem.url", description="The uri that identifies the code system", type="uri" ) public static final String SP_URL = "url"; /** * <b>Fluent Client</b> search parameter constant for <b>url</b> * <p> * Description: <b>The uri that identifies the code system</b><br> * Type: <b>uri</b><br> * Path: <b>CodeSystem.url</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); /** * Search parameter: <b>system</b> * <p> * Description: <b>The system for any codes defined by this code system (same as 'url')</b><br> * Type: <b>uri</b><br> * Path: <b>CodeSystem.url</b><br> * </p> */ @SearchParamDefinition(name="system", path="CodeSystem.url", description="The system for any codes defined by this code system (same as 'url')", type="uri" ) public static final String SP_SYSTEM = "system"; /** * <b>Fluent Client</b> search parameter constant for <b>system</b> * <p> * Description: <b>The system for any codes defined by this code system (same as 'url')</b><br> * Type: <b>uri</b><br> * Path: <b>CodeSystem.url</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.UriClientParam SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SYSTEM); /** * Search parameter: <b>name</b> * <p> * Description: <b>Computationally friendly name of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.name</b><br> * </p> */ @SearchParamDefinition(name="name", path="CodeSystem.name", description="Computationally friendly name of the code system", type="string" ) public static final String SP_NAME = "name"; /** * <b>Fluent Client</b> search parameter constant for <b>name</b> * <p> * Description: <b>Computationally friendly name of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.name</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); /** * Search parameter: <b>publisher</b> * <p> * Description: <b>Name of the publisher of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.publisher</b><br> * </p> */ @SearchParamDefinition(name="publisher", path="CodeSystem.publisher", description="Name of the publisher of the code system", type="string" ) public static final String SP_PUBLISHER = "publisher"; /** * <b>Fluent Client</b> search parameter constant for <b>publisher</b> * <p> * Description: <b>Name of the publisher of the code system</b><br> * Type: <b>string</b><br> * Path: <b>CodeSystem.publisher</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); /** * Search parameter: <b>status</b> * <p> * Description: <b>The current status of the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.status</b><br> * </p> */ @SearchParamDefinition(name="status", path="CodeSystem.status", description="The current status of the code system", type="token" ) public static final String SP_STATUS = "status"; /** * <b>Fluent Client</b> search parameter constant for <b>status</b> * <p> * Description: <b>The current status of the code system</b><br> * Type: <b>token</b><br> * Path: <b>CodeSystem.status</b><br> * </p> */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); }