All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.fhir.model.dstu.resource.ValueSet Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
















package ca.uhn.fhir.model.dstu.resource;


import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;

import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.resource.Appointment;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.resource.Availability;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.resource.CarePlan;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu.resource.Condition;
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Device;
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Encounter;
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
import ca.uhn.fhir.model.dstu.resource.Group;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu.resource.Immunization;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu.resource.Location;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu.resource.Media;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Medication;
import ca.uhn.fhir.model.dstu.resource.MedicationAdministration;
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu.resource.Microarray;
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
import ca.uhn.fhir.model.dstu.resource.Observation;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu.resource.Order;
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Patient;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.resource.Practitioner;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.dstu.resource.Procedure;
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Profile;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
import ca.uhn.fhir.model.dstu.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.composite.ScheduleDt;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.dstu.resource.Slot;
import ca.uhn.fhir.model.dstu.resource.Specimen;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.resource.Substance;
import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu.composite.AgeDt;
import ca.uhn.fhir.model.dstu.composite.DurationDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.resource.Binary;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.IdrefDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;


/**
 * HAPI/FHIR ValueSet Resource
 * (A set of codes drawn from one or more code systems)
 *
 * 

* Definition: * A value set specifies a set of codes drawn from one or more code systems *

* *

* Requirements: * *

* *

* Profile Definition: * http://hl7.org/fhir/profiles/ValueSet *

* */ @ResourceDef(name="ValueSet", profile="http://hl7.org/fhir/profiles/ValueSet", id="valueset") public class ValueSet extends ca.uhn.fhir.model.dstu.resource.BaseResource implements IResource { /** * Search parameter constant for identifier *

* Description: The identifier of the value set
* Type: token
* Path: ValueSet.identifier
*

*/ @SearchParamDefinition(name="identifier", path="ValueSet.identifier", description="The identifier of the value set", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

* Description: The identifier of the value set
* Type: token
* Path: ValueSet.identifier
*

*/ public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); /** * Search parameter constant for version *

* Description: The version identifier of the value set
* Type: token
* Path: ValueSet.version
*

*/ @SearchParamDefinition(name="version", path="ValueSet.version", description="The version identifier of the value set", type="token" ) public static final String SP_VERSION = "version"; /** * Fluent Client search parameter constant for version *

* Description: The version identifier of the value set
* Type: token
* Path: ValueSet.version
*

*/ public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); /** * Search parameter constant for name *

* Description: The name of the value set
* Type: string
* Path: ValueSet.name
*

*/ @SearchParamDefinition(name="name", path="ValueSet.name", description="The name of the value set", type="string" ) public static final String SP_NAME = "name"; /** * Fluent Client search parameter constant for name *

* Description: The name of the value set
* Type: string
* Path: ValueSet.name
*

*/ public static final StringClientParam NAME = new StringClientParam(SP_NAME); /** * Search parameter constant for publisher *

* Description: Name of the publisher of the value set
* Type: string
* Path: ValueSet.publisher
*

*/ @SearchParamDefinition(name="publisher", path="ValueSet.publisher", description="Name of the publisher of the value set", type="string" ) public static final String SP_PUBLISHER = "publisher"; /** * Fluent Client search parameter constant for publisher *

* Description: Name of the publisher of the value set
* Type: string
* Path: ValueSet.publisher
*

*/ public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); /** * Search parameter constant for description *

* Description: Text search in the description of the value set
* Type: string
* Path: ValueSet.description
*

*/ @SearchParamDefinition(name="description", path="ValueSet.description", description="Text search in the description of the value set", type="string" ) public static final String SP_DESCRIPTION = "description"; /** * Fluent Client search parameter constant for description *

* Description: Text search in the description of the value set
* Type: string
* Path: ValueSet.description
*

*/ public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); /** * Search parameter constant for status *

* Description: The status of the value set
* Type: token
* Path: ValueSet.status
*

*/ @SearchParamDefinition(name="status", path="ValueSet.status", description="The status of the value set", type="token" ) public static final String SP_STATUS = "status"; /** * Fluent Client search parameter constant for status *

* Description: The status of the value set
* Type: token
* Path: ValueSet.status
*

*/ public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); /** * Search parameter constant for date *

* Description: The value set publication date
* Type: date
* Path: ValueSet.date
*

*/ @SearchParamDefinition(name="date", path="ValueSet.date", description="The value set publication date", type="date" ) public static final String SP_DATE = "date"; /** * Fluent Client search parameter constant for date *

* Description: The value set publication date
* Type: date
* Path: ValueSet.date
*

*/ public static final DateClientParam DATE = new DateClientParam(SP_DATE); /** * Search parameter constant for system *

* Description: The system for any codes defined by this value set
* Type: token
* Path: ValueSet.define.system
*

*/ @SearchParamDefinition(name="system", path="ValueSet.define.system", description="The system for any codes defined by this value set", type="token" ) public static final String SP_SYSTEM = "system"; /** * Fluent Client search parameter constant for system *

* Description: The system for any codes defined by this value set
* Type: token
* Path: ValueSet.define.system
*

*/ public static final TokenClientParam SYSTEM = new TokenClientParam(SP_SYSTEM); /** * Search parameter constant for code *

* Description: A code defined in the value set
* Type: token
* Path: ValueSet.define.concept.code
*

*/ @SearchParamDefinition(name="code", path="ValueSet.define.concept.code", description="A code defined in the value set", type="token" ) public static final String SP_CODE = "code"; /** * Fluent Client search parameter constant for code *

* Description: A code defined in the value set
* Type: token
* Path: ValueSet.define.concept.code
*

*/ public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); /** * Search parameter constant for reference *

* Description: A code system included or excluded in the value set or an imported value set
* Type: token
* Path: ValueSet.compose.include.system
*

*/ @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="token" ) public static final String SP_REFERENCE = "reference"; /** * Fluent Client search parameter constant for reference *

* Description: A code system included or excluded in the value set or an imported value set
* Type: token
* Path: ValueSet.compose.include.system
*

*/ public static final TokenClientParam REFERENCE = new TokenClientParam(SP_REFERENCE); @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Logical id to reference this value set", formalDefinition="The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" ) private StringDt myIdentifier; @Child(name="version", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Logical id for this version of the value set", formalDefinition="The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" ) private StringDt myVersion; @Child(name="name", type=StringDt.class, order=2, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Informal name for this value set", formalDefinition="A free text natural language name describing the value set" ) private StringDt myName; @Child(name="publisher", type=StringDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="The name of the individual or organization that published the value set" ) private StringDt myPublisher; @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="Contact information of the publisher", formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher" ) private java.util.List myTelecom; @Child(name="description", type=StringDt.class, order=5, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Human language description of the value set", formalDefinition="A free text natural language description of the use of the value set - reason for definition, conditions of use, etc." ) private StringDt myDescription; @Child(name="copyright", type=StringDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="About the value set or its content", formalDefinition="A copyright statement relating to the value set and/or its contents" ) private StringDt myCopyright; @Child(name="status", type=CodeDt.class, order=7, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="draft | active | retired", formalDefinition="The status of the value set" ) private BoundCodeDt myStatus; @Child(name="experimental", type=BooleanDt.class, order=8, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="If for testing purposes, not real usage", formalDefinition="This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" ) private BooleanDt myExperimental; @Child(name="extensible", type=BooleanDt.class, order=9, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Whether this is intended to be used with an extensible binding", formalDefinition="Whether this is intended to be used with an extensible binding or not" ) private BooleanDt myExtensible; @Child(name="date", type=DateTimeDt.class, order=10, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Date for given status", formalDefinition="The date that the value set status was last changed" ) private DateTimeDt myDate; @Child(name="define", order=11, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="When value set defines its own codes", formalDefinition="" ) private Define myDefine; @Child(name="compose", order=12, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="When value set includes codes from elsewhere", formalDefinition="" ) private Compose myCompose; @Child(name="expansion", order=13, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="When value set is an expansion", formalDefinition="" ) private Expansion myExpansion; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myDefine, myCompose, myExpansion); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myDefine, myCompose, myExpansion); } /** * Gets the value(s) for identifier (Logical id to reference this value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) *

*/ public StringDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new StringDt(); } return myIdentifier; } /** * Gets the value(s) for identifier (Logical id to reference this value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) *

*/ public StringDt getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new StringDt(); } return myIdentifier; } /** * Sets the value(s) for identifier (Logical id to reference this value set) * *

* Definition: * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) *

*/ public ValueSet setIdentifier(StringDt theValue) { myIdentifier = theValue; return this; } /** * Sets the value for identifier (Logical id to reference this value set) * *

* Definition: * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) *

*/ public ValueSet setIdentifier( String theString) { myIdentifier = new StringDt(theString); return this; } /** * Gets the value(s) for version (Logical id for this version of the value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp *

*/ public StringDt getVersion() { if (myVersion == null) { myVersion = new StringDt(); } return myVersion; } /** * Gets the value(s) for version (Logical id for this version of the value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp *

*/ public StringDt getVersionElement() { if (myVersion == null) { myVersion = new StringDt(); } return myVersion; } /** * Sets the value(s) for version (Logical id for this version of the value set) * *

* Definition: * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp *

*/ public ValueSet setVersion(StringDt theValue) { myVersion = theValue; return this; } /** * Sets the value for version (Logical id for this version of the value set) * *

* Definition: * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp *

*/ public ValueSet setVersion( String theString) { myVersion = new StringDt(theString); return this; } /** * Gets the value(s) for name (Informal name for this value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * A free text natural language name describing the value set *

*/ public StringDt getName() { if (myName == null) { myName = new StringDt(); } return myName; } /** * Gets the value(s) for name (Informal name for this value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * A free text natural language name describing the value set *

*/ public StringDt getNameElement() { if (myName == null) { myName = new StringDt(); } return myName; } /** * Sets the value(s) for name (Informal name for this value set) * *

* Definition: * A free text natural language name describing the value set *

*/ public ValueSet setName(StringDt theValue) { myName = theValue; return this; } /** * Sets the value for name (Informal name for this value set) * *

* Definition: * A free text natural language name describing the value set *

*/ public ValueSet setName( String theString) { myName = new StringDt(theString); return this; } /** * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the individual or organization that published the value set *

*/ public StringDt getPublisher() { if (myPublisher == null) { myPublisher = new StringDt(); } return myPublisher; } /** * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the individual or organization that published the value set *

*/ public StringDt getPublisherElement() { if (myPublisher == null) { myPublisher = new StringDt(); } return myPublisher; } /** * Sets the value(s) for publisher (Name of the publisher (Organization or individual)) * *

* Definition: * The name of the individual or organization that published the value set *

*/ public ValueSet setPublisher(StringDt theValue) { myPublisher = theValue; return this; } /** * Sets the value for publisher (Name of the publisher (Organization or individual)) * *

* Definition: * The name of the individual or organization that published the value set *

*/ public ValueSet setPublisher( String theString) { myPublisher = new StringDt(theString); return this; } /** * Gets the value(s) for telecom (Contact information of the publisher). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contacts of the publisher to assist a user in finding and communicating with the publisher *

*/ public java.util.List getTelecom() { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } return myTelecom; } /** * Gets the value(s) for telecom (Contact information of the publisher). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contacts of the publisher to assist a user in finding and communicating with the publisher *

*/ public java.util.List getTelecomElement() { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } return myTelecom; } /** * Sets the value(s) for telecom (Contact information of the publisher) * *

* Definition: * Contacts of the publisher to assist a user in finding and communicating with the publisher *

*/ public ValueSet setTelecom(java.util.List theValue) { myTelecom = theValue; return this; } /** * Adds and returns a new value for telecom (Contact information of the publisher) * *

* Definition: * Contacts of the publisher to assist a user in finding and communicating with the publisher *

*/ public ContactDt addTelecom() { ContactDt newType = new ContactDt(); getTelecom().add(newType); return newType; } /** * Gets the first repetition for telecom (Contact information of the publisher), * creating it if it does not already exist. * *

* Definition: * Contacts of the publisher to assist a user in finding and communicating with the publisher *

*/ public ContactDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /** * Adds a new value for telecom (Contact information of the publisher) * *

* Definition: * Contacts of the publisher to assist a user in finding and communicating with the publisher *

* * @return Returns a reference to this object, to allow for simple chaining. */ public ValueSet addTelecom( ContactUseEnum theContactUse, String theValue) { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } myTelecom.add(new ContactDt(theContactUse, theValue)); return this; } /** * Adds a new value for telecom (Contact information of the publisher) * *

* Definition: * Contacts of the publisher to assist a user in finding and communicating with the publisher *

* * @return Returns a reference to this object, to allow for simple chaining. */ public ValueSet addTelecom( String theValue) { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } myTelecom.add(new ContactDt(theValue)); return this; } /** * Gets the value(s) for description (Human language description of the value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. *

*/ public StringDt getDescription() { if (myDescription == null) { myDescription = new StringDt(); } return myDescription; } /** * Gets the value(s) for description (Human language description of the value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. *

*/ public StringDt getDescriptionElement() { if (myDescription == null) { myDescription = new StringDt(); } return myDescription; } /** * Sets the value(s) for description (Human language description of the value set) * *

* Definition: * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. *

*/ public ValueSet setDescription(StringDt theValue) { myDescription = theValue; return this; } /** * Sets the value for description (Human language description of the value set) * *

* Definition: * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. *

*/ public ValueSet setDescription( String theString) { myDescription = new StringDt(theString); return this; } /** * Gets the value(s) for copyright (About the value set or its content). * creating it if it does * not exist. Will not return null. * *

* Definition: * A copyright statement relating to the value set and/or its contents *

*/ public StringDt getCopyright() { if (myCopyright == null) { myCopyright = new StringDt(); } return myCopyright; } /** * Gets the value(s) for copyright (About the value set or its content). * creating it if it does * not exist. Will not return null. * *

* Definition: * A copyright statement relating to the value set and/or its contents *

*/ public StringDt getCopyrightElement() { if (myCopyright == null) { myCopyright = new StringDt(); } return myCopyright; } /** * Sets the value(s) for copyright (About the value set or its content) * *

* Definition: * A copyright statement relating to the value set and/or its contents *

*/ public ValueSet setCopyright(StringDt theValue) { myCopyright = theValue; return this; } /** * Sets the value for copyright (About the value set or its content) * *

* Definition: * A copyright statement relating to the value set and/or its contents *

*/ public ValueSet setCopyright( String theString) { myCopyright = new StringDt(theString); return this; } /** * Gets the value(s) for status (draft | active | retired). * creating it if it does * not exist. Will not return null. * *

* Definition: * The status of the value set *

*/ public BoundCodeDt getStatus() { if (myStatus == null) { myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Gets the value(s) for status (draft | active | retired). * creating it if it does * not exist. Will not return null. * *

* Definition: * The status of the value set *

*/ public BoundCodeDt getStatusElement() { if (myStatus == null) { myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Sets the value(s) for status (draft | active | retired) * *

* Definition: * The status of the value set *

*/ public ValueSet setStatus(BoundCodeDt theValue) { myStatus = theValue; return this; } /** * Sets the value(s) for status (draft | active | retired) * *

* Definition: * The status of the value set *

*/ public ValueSet setStatus(ValueSetStatusEnum theValue) { getStatus().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for experimental (If for testing purposes, not real usage). * creating it if it does * not exist. Will not return null. * *

* Definition: * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage *

*/ public BooleanDt getExperimental() { if (myExperimental == null) { myExperimental = new BooleanDt(); } return myExperimental; } /** * Gets the value(s) for experimental (If for testing purposes, not real usage). * creating it if it does * not exist. Will not return null. * *

* Definition: * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage *

*/ public BooleanDt getExperimentalElement() { if (myExperimental == null) { myExperimental = new BooleanDt(); } return myExperimental; } /** * Sets the value(s) for experimental (If for testing purposes, not real usage) * *

* Definition: * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage *

*/ public ValueSet setExperimental(BooleanDt theValue) { myExperimental = theValue; return this; } /** * Sets the value for experimental (If for testing purposes, not real usage) * *

* Definition: * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage *

*/ public ValueSet setExperimental( boolean theBoolean) { myExperimental = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for extensible (Whether this is intended to be used with an extensible binding). * creating it if it does * not exist. Will not return null. * *

* Definition: * Whether this is intended to be used with an extensible binding or not *

*/ public BooleanDt getExtensible() { if (myExtensible == null) { myExtensible = new BooleanDt(); } return myExtensible; } /** * Gets the value(s) for extensible (Whether this is intended to be used with an extensible binding). * creating it if it does * not exist. Will not return null. * *

* Definition: * Whether this is intended to be used with an extensible binding or not *

*/ public BooleanDt getExtensibleElement() { if (myExtensible == null) { myExtensible = new BooleanDt(); } return myExtensible; } /** * Sets the value(s) for extensible (Whether this is intended to be used with an extensible binding) * *

* Definition: * Whether this is intended to be used with an extensible binding or not *

*/ public ValueSet setExtensible(BooleanDt theValue) { myExtensible = theValue; return this; } /** * Sets the value for extensible (Whether this is intended to be used with an extensible binding) * *

* Definition: * Whether this is intended to be used with an extensible binding or not *

*/ public ValueSet setExtensible( boolean theBoolean) { myExtensible = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for date (Date for given status). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date that the value set status was last changed *

*/ public DateTimeDt getDate() { if (myDate == null) { myDate = new DateTimeDt(); } return myDate; } /** * Gets the value(s) for date (Date for given status). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date that the value set status was last changed *

*/ public DateTimeDt getDateElement() { if (myDate == null) { myDate = new DateTimeDt(); } return myDate; } /** * Sets the value(s) for date (Date for given status) * *

* Definition: * The date that the value set status was last changed *

*/ public ValueSet setDate(DateTimeDt theValue) { myDate = theValue; return this; } /** * Sets the value for date (Date for given status) * *

* Definition: * The date that the value set status was last changed *

*/ public ValueSet setDate( Date theDate, TemporalPrecisionEnum thePrecision) { myDate = new DateTimeDt(theDate, thePrecision); return this; } /** * Sets the value for date (Date for given status) * *

* Definition: * The date that the value set status was last changed *

*/ public ValueSet setDateWithSecondsPrecision( Date theDate) { myDate = new DateTimeDt(theDate); return this; } /** * Gets the value(s) for define (When value set defines its own codes). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public Define getDefine() { if (myDefine == null) { myDefine = new Define(); } return myDefine; } /** * Gets the value(s) for define (When value set defines its own codes). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public Define getDefineElement() { if (myDefine == null) { myDefine = new Define(); } return myDefine; } /** * Sets the value(s) for define (When value set defines its own codes) * *

* Definition: * *

*/ public ValueSet setDefine(Define theValue) { myDefine = theValue; return this; } /** * Gets the value(s) for compose (When value set includes codes from elsewhere). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public Compose getCompose() { if (myCompose == null) { myCompose = new Compose(); } return myCompose; } /** * Gets the value(s) for compose (When value set includes codes from elsewhere). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public Compose getComposeElement() { if (myCompose == null) { myCompose = new Compose(); } return myCompose; } /** * Sets the value(s) for compose (When value set includes codes from elsewhere) * *

* Definition: * *

*/ public ValueSet setCompose(Compose theValue) { myCompose = theValue; return this; } /** * Gets the value(s) for expansion (When value set is an expansion). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public Expansion getExpansion() { if (myExpansion == null) { myExpansion = new Expansion(); } return myExpansion; } /** * Gets the value(s) for expansion (When value set is an expansion). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public Expansion getExpansionElement() { if (myExpansion == null) { myExpansion = new Expansion(); } return myExpansion; } /** * Sets the value(s) for expansion (When value set is an expansion) * *

* Definition: * *

*/ public ValueSet setExpansion(Expansion theValue) { myExpansion = theValue; return this; } /** * Block class for child element: ValueSet.define (When value set defines its own codes) * *

* Definition: * *

*/ @Block() public static class Define extends BaseIdentifiableElement implements IResourceBlock { @Child(name="system", type=UriDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="URI to identify the code system", formalDefinition="" ) private UriDt mySystem; @Child(name="version", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Version of this system", formalDefinition="The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked" ) private StringDt myVersion; @Child(name="caseSensitive", type=BooleanDt.class, order=2, min=0, max=1, summary=true, modifier=false) @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" ) private BooleanDt myCaseSensitive; @Child(name="concept", order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Concepts in the code system", formalDefinition="" ) private java.util.List myConcept; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCaseSensitive, myConcept); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCaseSensitive, myConcept); } /** * Gets the value(s) for system (URI to identify the code system). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public UriDt getSystem() { if (mySystem == null) { mySystem = new UriDt(); } return mySystem; } /** * Gets the value(s) for system (URI to identify the code system). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public UriDt getSystemElement() { if (mySystem == null) { mySystem = new UriDt(); } return mySystem; } /** * Sets the value(s) for system (URI to identify the code system) * *

* Definition: * *

*/ public Define setSystem(UriDt theValue) { mySystem = theValue; return this; } /** * Sets the value for system (URI to identify the code system) * *

* Definition: * *

*/ public Define setSystem( String theUri) { mySystem = new UriDt(theUri); return this; } /** * Gets the value(s) for version (Version of this system). * creating it if it does * not exist. Will not return null. * *

* Definition: * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked *

*/ public StringDt getVersion() { if (myVersion == null) { myVersion = new StringDt(); } return myVersion; } /** * Gets the value(s) for version (Version of this system). * creating it if it does * not exist. Will not return null. * *

* Definition: * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked *

*/ public StringDt getVersionElement() { if (myVersion == null) { myVersion = new StringDt(); } return myVersion; } /** * Sets the value(s) for version (Version of this system) * *

* Definition: * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked *

*/ public Define setVersion(StringDt theValue) { myVersion = theValue; return this; } /** * Sets the value for version (Version of this system) * *

* Definition: * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked *

*/ public Define setVersion( String theString) { myVersion = new StringDt(theString); return this; } /** * Gets the value(s) for caseSensitive (If code comparison is case sensitive). * creating it if it does * not exist. Will not return null. * *

* Definition: * If code comparison is case sensitive when codes within this system are compared to each other *

*/ public BooleanDt getCaseSensitive() { if (myCaseSensitive == null) { myCaseSensitive = new BooleanDt(); } return myCaseSensitive; } /** * Gets the value(s) for caseSensitive (If code comparison is case sensitive). * creating it if it does * not exist. Will not return null. * *

* Definition: * If code comparison is case sensitive when codes within this system are compared to each other *

*/ public BooleanDt getCaseSensitiveElement() { if (myCaseSensitive == null) { myCaseSensitive = new BooleanDt(); } return myCaseSensitive; } /** * Sets the value(s) for caseSensitive (If code comparison is case sensitive) * *

* Definition: * If code comparison is case sensitive when codes within this system are compared to each other *

*/ public Define setCaseSensitive(BooleanDt theValue) { myCaseSensitive = theValue; return this; } /** * Sets the value for caseSensitive (If code comparison is case sensitive) * *

* Definition: * If code comparison is case sensitive when codes within this system are compared to each other *

*/ public Define setCaseSensitive( boolean theBoolean) { myCaseSensitive = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for concept (Concepts in the code system). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getConcept() { if (myConcept == null) { myConcept = new java.util.ArrayList(); } return myConcept; } /** * Gets the value(s) for concept (Concepts in the code system). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getConceptElement() { if (myConcept == null) { myConcept = new java.util.ArrayList(); } return myConcept; } /** * Sets the value(s) for concept (Concepts in the code system) * *

* Definition: * *

*/ public Define setConcept(java.util.List theValue) { myConcept = theValue; return this; } /** * Adds and returns a new value for concept (Concepts in the code system) * *

* Definition: * *

*/ public DefineConcept addConcept() { DefineConcept newType = new DefineConcept(); getConcept().add(newType); return newType; } /** * Gets the first repetition for concept (Concepts in the code system), * creating it if it does not already exist. * *

* Definition: * *

*/ public DefineConcept getConceptFirstRep() { if (getConcept().isEmpty()) { return addConcept(); } return getConcept().get(0); } } /** * Block class for child element: ValueSet.define.concept (Concepts in the code system) * *

* Definition: * *

*/ @Block() public static class DefineConcept extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Code that identifies concept", formalDefinition="" ) private CodeDt myCode; @Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="If this code is not for use as a real concept", formalDefinition="If this code is not for use as a real concept" ) private BooleanDt myAbstract; @Child(name="display", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Text to Display to the user", formalDefinition="" ) private StringDt myDisplay; @Child(name="definition", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Formal Definition", formalDefinition="The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept" ) private StringDt myDefinition; @Child(name="concept", type=DefineConcept.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Child Concepts (is-a / contains)", formalDefinition="" ) private java.util.List myConcept; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myAbstract, myDisplay, myDefinition, myConcept); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myAbstract, myDisplay, myDefinition, myConcept); } /** * Gets the value(s) for code (Code that identifies concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public CodeDt getCode() { if (myCode == null) { myCode = new CodeDt(); } return myCode; } /** * Gets the value(s) for code (Code that identifies concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public CodeDt getCodeElement() { if (myCode == null) { myCode = new CodeDt(); } return myCode; } /** * Sets the value(s) for code (Code that identifies concept) * *

* Definition: * *

*/ public DefineConcept setCode(CodeDt theValue) { myCode = theValue; return this; } /** * Sets the value for code (Code that identifies concept) * *

* Definition: * *

*/ public DefineConcept setCode( String theCode) { myCode = new CodeDt(theCode); return this; } /** * Gets the value(s) for abstract (If this code is not for use as a real concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * If this code is not for use as a real concept *

*/ public BooleanDt getAbstract() { if (myAbstract == null) { myAbstract = new BooleanDt(); } return myAbstract; } /** * Gets the value(s) for abstract (If this code is not for use as a real concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * If this code is not for use as a real concept *

*/ public BooleanDt getAbstractElement() { if (myAbstract == null) { myAbstract = new BooleanDt(); } return myAbstract; } /** * Sets the value(s) for abstract (If this code is not for use as a real concept) * *

* Definition: * If this code is not for use as a real concept *

*/ public DefineConcept setAbstract(BooleanDt theValue) { myAbstract = theValue; return this; } /** * Sets the value for abstract (If this code is not for use as a real concept) * *

* Definition: * If this code is not for use as a real concept *

*/ public DefineConcept setAbstract( boolean theBoolean) { myAbstract = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for display (Text to Display to the user). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getDisplay() { if (myDisplay == null) { myDisplay = new StringDt(); } return myDisplay; } /** * Gets the value(s) for display (Text to Display to the user). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getDisplayElement() { if (myDisplay == null) { myDisplay = new StringDt(); } return myDisplay; } /** * Sets the value(s) for display (Text to Display to the user) * *

* Definition: * *

*/ public DefineConcept setDisplay(StringDt theValue) { myDisplay = theValue; return this; } /** * Sets the value for display (Text to Display to the user) * *

* Definition: * *

*/ public DefineConcept setDisplay( String theString) { myDisplay = new StringDt(theString); return this; } /** * Gets the value(s) for definition (Formal Definition). * creating it if it does * not exist. Will not return null. * *

* Definition: * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept *

*/ public StringDt getDefinition() { if (myDefinition == null) { myDefinition = new StringDt(); } return myDefinition; } /** * Gets the value(s) for definition (Formal Definition). * creating it if it does * not exist. Will not return null. * *

* Definition: * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept *

*/ public StringDt getDefinitionElement() { if (myDefinition == null) { myDefinition = new StringDt(); } return myDefinition; } /** * Sets the value(s) for definition (Formal Definition) * *

* Definition: * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept *

*/ public DefineConcept setDefinition(StringDt theValue) { myDefinition = theValue; return this; } /** * Sets the value for definition (Formal Definition) * *

* Definition: * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept *

*/ public DefineConcept setDefinition( String theString) { myDefinition = new StringDt(theString); return this; } /** * Gets the value(s) for concept (Child Concepts (is-a / contains)). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getConcept() { if (myConcept == null) { myConcept = new java.util.ArrayList(); } return myConcept; } /** * Gets the value(s) for concept (Child Concepts (is-a / contains)). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getConceptElement() { if (myConcept == null) { myConcept = new java.util.ArrayList(); } return myConcept; } /** * Sets the value(s) for concept (Child Concepts (is-a / contains)) * *

* Definition: * *

*/ public DefineConcept setConcept(java.util.List theValue) { myConcept = theValue; return this; } /** * Adds and returns a new value for concept (Child Concepts (is-a / contains)) * *

* Definition: * *

*/ public DefineConcept addConcept() { DefineConcept newType = new DefineConcept(); getConcept().add(newType); return newType; } /** * Gets the first repetition for concept (Child Concepts (is-a / contains)), * creating it if it does not already exist. * *

* Definition: * *

*/ public DefineConcept getConceptFirstRep() { if (getConcept().isEmpty()) { return addConcept(); } return getConcept().get(0); } } /** * Block class for child element: ValueSet.compose (When value set includes codes from elsewhere) * *

* Definition: * *

*/ @Block() public static class Compose extends BaseIdentifiableElement implements IResourceBlock { @Child(name="import", type=UriDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="Import the contents of another value set", formalDefinition="Includes the contents of the referenced value set as a part of the contents of this value set" ) private java.util.List myImport; @Child(name="include", order=1, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="Include one or more codes from a code system", formalDefinition="Include one or more codes from a code system" ) private java.util.List myInclude; @Child(name="exclude", type=ComposeInclude.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Explicitly exclude codes", formalDefinition="Exclude one or more codes from the value set" ) private java.util.List myExclude; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myImport, myInclude, myExclude); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myImport, myInclude, myExclude); } /** * Gets the value(s) for import (Import the contents of another value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * Includes the contents of the referenced value set as a part of the contents of this value set *

*/ public java.util.List getImport() { if (myImport == null) { myImport = new java.util.ArrayList(); } return myImport; } /** * Gets the value(s) for import (Import the contents of another value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * Includes the contents of the referenced value set as a part of the contents of this value set *

*/ public java.util.List getImportElement() { if (myImport == null) { myImport = new java.util.ArrayList(); } return myImport; } /** * Sets the value(s) for import (Import the contents of another value set) * *

* Definition: * Includes the contents of the referenced value set as a part of the contents of this value set *

*/ public Compose setImport(java.util.List theValue) { myImport = theValue; return this; } /** * Adds and returns a new value for import (Import the contents of another value set) * *

* Definition: * Includes the contents of the referenced value set as a part of the contents of this value set *

*/ public UriDt addImport() { UriDt newType = new UriDt(); getImport().add(newType); return newType; } /** * Gets the first repetition for import (Import the contents of another value set), * creating it if it does not already exist. * *

* Definition: * Includes the contents of the referenced value set as a part of the contents of this value set *

*/ public UriDt getImportFirstRep() { if (getImport().isEmpty()) { return addImport(); } return getImport().get(0); } /** * Adds a new value for import (Import the contents of another value set) * *

* Definition: * Includes the contents of the referenced value set as a part of the contents of this value set *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Compose addImport( String theUri) { if (myImport == null) { myImport = new java.util.ArrayList(); } myImport.add(new UriDt(theUri)); return this; } /** * Gets the value(s) for include (Include one or more codes from a code system). * creating it if it does * not exist. Will not return null. * *

* Definition: * Include one or more codes from a code system *

*/ public java.util.List getInclude() { if (myInclude == null) { myInclude = new java.util.ArrayList(); } return myInclude; } /** * Gets the value(s) for include (Include one or more codes from a code system). * creating it if it does * not exist. Will not return null. * *

* Definition: * Include one or more codes from a code system *

*/ public java.util.List getIncludeElement() { if (myInclude == null) { myInclude = new java.util.ArrayList(); } return myInclude; } /** * Sets the value(s) for include (Include one or more codes from a code system) * *

* Definition: * Include one or more codes from a code system *

*/ public Compose setInclude(java.util.List theValue) { myInclude = theValue; return this; } /** * Adds and returns a new value for include (Include one or more codes from a code system) * *

* Definition: * Include one or more codes from a code system *

*/ public ComposeInclude addInclude() { ComposeInclude newType = new ComposeInclude(); getInclude().add(newType); return newType; } /** * Gets the first repetition for include (Include one or more codes from a code system), * creating it if it does not already exist. * *

* Definition: * Include one or more codes from a code system *

*/ public ComposeInclude getIncludeFirstRep() { if (getInclude().isEmpty()) { return addInclude(); } return getInclude().get(0); } /** * Gets the value(s) for exclude (Explicitly exclude codes). * creating it if it does * not exist. Will not return null. * *

* Definition: * Exclude one or more codes from the value set *

*/ public java.util.List getExclude() { if (myExclude == null) { myExclude = new java.util.ArrayList(); } return myExclude; } /** * Gets the value(s) for exclude (Explicitly exclude codes). * creating it if it does * not exist. Will not return null. * *

* Definition: * Exclude one or more codes from the value set *

*/ public java.util.List getExcludeElement() { if (myExclude == null) { myExclude = new java.util.ArrayList(); } return myExclude; } /** * Sets the value(s) for exclude (Explicitly exclude codes) * *

* Definition: * Exclude one or more codes from the value set *

*/ public Compose setExclude(java.util.List theValue) { myExclude = theValue; return this; } /** * Adds and returns a new value for exclude (Explicitly exclude codes) * *

* Definition: * Exclude one or more codes from the value set *

*/ public ComposeInclude addExclude() { ComposeInclude newType = new ComposeInclude(); getExclude().add(newType); return newType; } /** * Gets the first repetition for exclude (Explicitly exclude codes), * creating it if it does not already exist. * *

* Definition: * Exclude one or more codes from the value set *

*/ public ComposeInclude getExcludeFirstRep() { if (getExclude().isEmpty()) { return addExclude(); } return getExclude().get(0); } } /** * Block class for child element: ValueSet.compose.include (Include one or more codes from a code system) * *

* Definition: * Include one or more codes from a code system *

*/ @Block() public static class ComposeInclude extends BaseIdentifiableElement implements IResourceBlock { @Child(name="system", type=UriDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="The system the codes come from", formalDefinition="The code system from which the selected codes come from" ) private UriDt mySystem; @Child(name="version", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Specific version of the code system referred to", formalDefinition="The version of the code system that the codes are selected from" ) private StringDt myVersion; @Child(name="code", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Code or concept from system", formalDefinition="Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance" ) private java.util.List myCode; @Child(name="filter", order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Select codes/concepts by their properties (including relationships)", formalDefinition="Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true." ) private java.util.List myFilter; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myFilter); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCode, myFilter); } /** * Gets the value(s) for system (The system the codes come from). * creating it if it does * not exist. Will not return null. * *

* Definition: * The code system from which the selected codes come from *

*/ public UriDt getSystem() { if (mySystem == null) { mySystem = new UriDt(); } return mySystem; } /** * Gets the value(s) for system (The system the codes come from). * creating it if it does * not exist. Will not return null. * *

* Definition: * The code system from which the selected codes come from *

*/ public UriDt getSystemElement() { if (mySystem == null) { mySystem = new UriDt(); } return mySystem; } /** * Sets the value(s) for system (The system the codes come from) * *

* Definition: * The code system from which the selected codes come from *

*/ public ComposeInclude setSystem(UriDt theValue) { mySystem = theValue; return this; } /** * Sets the value for system (The system the codes come from) * *

* Definition: * The code system from which the selected codes come from *

*/ public ComposeInclude setSystem( String theUri) { mySystem = new UriDt(theUri); return this; } /** * Gets the value(s) for version (Specific version of the code system referred to). * creating it if it does * not exist. Will not return null. * *

* Definition: * The version of the code system that the codes are selected from *

*/ public StringDt getVersion() { if (myVersion == null) { myVersion = new StringDt(); } return myVersion; } /** * Gets the value(s) for version (Specific version of the code system referred to). * creating it if it does * not exist. Will not return null. * *

* Definition: * The version of the code system that the codes are selected from *

*/ public StringDt getVersionElement() { if (myVersion == null) { myVersion = new StringDt(); } return myVersion; } /** * Sets the value(s) for version (Specific version of the code system referred to) * *

* Definition: * The version of the code system that the codes are selected from *

*/ public ComposeInclude setVersion(StringDt theValue) { myVersion = theValue; return this; } /** * Sets the value for version (Specific version of the code system referred to) * *

* Definition: * The version of the code system that the codes are selected from *

*/ public ComposeInclude setVersion( String theString) { myVersion = new StringDt(theString); return this; } /** * Gets the value(s) for code (Code or concept from system). * creating it if it does * not exist. Will not return null. * *

* Definition: * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance *

*/ public java.util.List getCode() { if (myCode == null) { myCode = new java.util.ArrayList(); } return myCode; } /** * Gets the value(s) for code (Code or concept from system). * creating it if it does * not exist. Will not return null. * *

* Definition: * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance *

*/ public java.util.List getCodeElement() { if (myCode == null) { myCode = new java.util.ArrayList(); } return myCode; } /** * Sets the value(s) for code (Code or concept from system) * *

* Definition: * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance *

*/ public ComposeInclude setCode(java.util.List theValue) { myCode = theValue; return this; } /** * Adds and returns a new value for code (Code or concept from system) * *

* Definition: * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance *

*/ public CodeDt addCode() { CodeDt newType = new CodeDt(); getCode().add(newType); return newType; } /** * Gets the first repetition for code (Code or concept from system), * creating it if it does not already exist. * *

* Definition: * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance *

*/ public CodeDt getCodeFirstRep() { if (getCode().isEmpty()) { return addCode(); } return getCode().get(0); } /** * Adds a new value for code (Code or concept from system) * *

* Definition: * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance *

* * @return Returns a reference to this object, to allow for simple chaining. */ public ComposeInclude addCode( String theCode) { if (myCode == null) { myCode = new java.util.ArrayList(); } myCode.add(new CodeDt(theCode)); return this; } /** * Gets the value(s) for filter (Select codes/concepts by their properties (including relationships)). * creating it if it does * not exist. Will not return null. * *

* Definition: * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. *

*/ public java.util.List getFilter() { if (myFilter == null) { myFilter = new java.util.ArrayList(); } return myFilter; } /** * Gets the value(s) for filter (Select codes/concepts by their properties (including relationships)). * creating it if it does * not exist. Will not return null. * *

* Definition: * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. *

*/ public java.util.List getFilterElement() { if (myFilter == null) { myFilter = new java.util.ArrayList(); } return myFilter; } /** * Sets the value(s) for filter (Select codes/concepts by their properties (including relationships)) * *

* Definition: * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. *

*/ public ComposeInclude setFilter(java.util.List theValue) { myFilter = theValue; return this; } /** * Adds and returns a new value for filter (Select codes/concepts by their properties (including relationships)) * *

* Definition: * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. *

*/ public ComposeIncludeFilter addFilter() { ComposeIncludeFilter newType = new ComposeIncludeFilter(); getFilter().add(newType); return newType; } /** * Gets the first repetition for filter (Select codes/concepts by their properties (including relationships)), * creating it if it does not already exist. * *

* Definition: * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. *

*/ public ComposeIncludeFilter getFilterFirstRep() { if (getFilter().isEmpty()) { return addFilter(); } return getFilter().get(0); } } /** * Block class for child element: ValueSet.compose.include.filter (Select codes/concepts by their properties (including relationships)) * *

* Definition: * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. *

*/ @Block() public static class ComposeIncludeFilter extends BaseIdentifiableElement implements IResourceBlock { @Child(name="property", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A code that identifies a property defined in the code system" ) private CodeDt myProperty; @Child(name="op", type=CodeDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="= | is-a | is-not-a | regex | in | not in", formalDefinition="The kind of operation to perform as a part of the filter criteria" ) private BoundCodeDt myOp; @Child(name="value", type=CodeDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Code from the system, or regex criteria", formalDefinition="The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value" ) private CodeDt myValue; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myProperty, myOp, myValue); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myProperty, myOp, myValue); } /** * Gets the value(s) for property (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code that identifies a property defined in the code system *

*/ public CodeDt getProperty() { if (myProperty == null) { myProperty = new CodeDt(); } return myProperty; } /** * Gets the value(s) for property (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code that identifies a property defined in the code system *

*/ public CodeDt getPropertyElement() { if (myProperty == null) { myProperty = new CodeDt(); } return myProperty; } /** * Sets the value(s) for property () * *

* Definition: * A code that identifies a property defined in the code system *

*/ public ComposeIncludeFilter setProperty(CodeDt theValue) { myProperty = theValue; return this; } /** * Sets the value for property () * *

* Definition: * A code that identifies a property defined in the code system *

*/ public ComposeIncludeFilter setProperty( String theCode) { myProperty = new CodeDt(theCode); return this; } /** * Gets the value(s) for op (= | is-a | is-not-a | regex | in | not in). * creating it if it does * not exist. Will not return null. * *

* Definition: * The kind of operation to perform as a part of the filter criteria *

*/ public BoundCodeDt getOp() { if (myOp == null) { myOp = new BoundCodeDt(FilterOperatorEnum.VALUESET_BINDER); } return myOp; } /** * Gets the value(s) for op (= | is-a | is-not-a | regex | in | not in). * creating it if it does * not exist. Will not return null. * *

* Definition: * The kind of operation to perform as a part of the filter criteria *

*/ public BoundCodeDt getOpElement() { if (myOp == null) { myOp = new BoundCodeDt(FilterOperatorEnum.VALUESET_BINDER); } return myOp; } /** * Sets the value(s) for op (= | is-a | is-not-a | regex | in | not in) * *

* Definition: * The kind of operation to perform as a part of the filter criteria *

*/ public ComposeIncludeFilter setOp(BoundCodeDt theValue) { myOp = theValue; return this; } /** * Sets the value(s) for op (= | is-a | is-not-a | regex | in | not in) * *

* Definition: * The kind of operation to perform as a part of the filter criteria *

*/ public ComposeIncludeFilter setOp(FilterOperatorEnum theValue) { getOp().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for value (Code from the system, or regex criteria). * creating it if it does * not exist. Will not return null. * *

* Definition: * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value *

*/ public CodeDt getValue() { if (myValue == null) { myValue = new CodeDt(); } return myValue; } /** * Gets the value(s) for value (Code from the system, or regex criteria). * creating it if it does * not exist. Will not return null. * *

* Definition: * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value *

*/ public CodeDt getValueElement() { if (myValue == null) { myValue = new CodeDt(); } return myValue; } /** * Sets the value(s) for value (Code from the system, or regex criteria) * *

* Definition: * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value *

*/ public ComposeIncludeFilter setValue(CodeDt theValue) { myValue = theValue; return this; } /** * Sets the value for value (Code from the system, or regex criteria) * *

* Definition: * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value *

*/ public ComposeIncludeFilter setValue( String theCode) { myValue = new CodeDt(theCode); return this; } } /** * Block class for child element: ValueSet.expansion (When value set is an expansion) * *

* Definition: * *

*/ @Block() public static class Expansion extends BaseIdentifiableElement implements IResourceBlock { @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Uniquely identifies this expansion", formalDefinition="An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so" ) private IdentifierDt myIdentifier; @Child(name="timestamp", type=InstantDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Time valueset expansion happened", formalDefinition="" ) private InstantDt myTimestamp; @Child(name="contains", order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Codes in the value set", formalDefinition="" ) private java.util.List myContains; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTimestamp, myContains); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myTimestamp, myContains); } /** * Gets the value(s) for identifier (Uniquely identifies this expansion). * creating it if it does * not exist. Will not return null. * *

* Definition: * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Gets the value(s) for identifier (Uniquely identifies this expansion). * creating it if it does * not exist. Will not return null. * *

* Definition: * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so *

*/ public IdentifierDt getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier (Uniquely identifies this expansion) * *

* Definition: * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so *

*/ public Expansion setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Sets the value for identifier (Uniquely identifies this expansion) * *

* Definition: * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so *

*/ public Expansion setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for identifier (Uniquely identifies this expansion) * *

* Definition: * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so *

*/ public Expansion setIdentifier( String theSystem, String theValue) { myIdentifier = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for timestamp (Time valueset expansion happened). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public InstantDt getTimestamp() { if (myTimestamp == null) { myTimestamp = new InstantDt(); } return myTimestamp; } /** * Gets the value(s) for timestamp (Time valueset expansion happened). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public InstantDt getTimestampElement() { if (myTimestamp == null) { myTimestamp = new InstantDt(); } return myTimestamp; } /** * Sets the value(s) for timestamp (Time valueset expansion happened) * *

* Definition: * *

*/ public Expansion setTimestamp(InstantDt theValue) { myTimestamp = theValue; return this; } /** * Sets the value for timestamp (Time valueset expansion happened) * *

* Definition: * *

*/ public Expansion setTimestampWithMillisPrecision( Date theDate) { myTimestamp = new InstantDt(theDate); return this; } /** * Sets the value for timestamp (Time valueset expansion happened) * *

* Definition: * *

*/ public Expansion setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) { myTimestamp = new InstantDt(theDate, thePrecision); return this; } /** * Gets the value(s) for contains (Codes in the value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getContains() { if (myContains == null) { myContains = new java.util.ArrayList(); } return myContains; } /** * Gets the value(s) for contains (Codes in the value set). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getContainsElement() { if (myContains == null) { myContains = new java.util.ArrayList(); } return myContains; } /** * Sets the value(s) for contains (Codes in the value set) * *

* Definition: * *

*/ public Expansion setContains(java.util.List theValue) { myContains = theValue; return this; } /** * Adds and returns a new value for contains (Codes in the value set) * *

* Definition: * *

*/ public ExpansionContains addContains() { ExpansionContains newType = new ExpansionContains(); getContains().add(newType); return newType; } /** * Gets the first repetition for contains (Codes in the value set), * creating it if it does not already exist. * *

* Definition: * *

*/ public ExpansionContains getContainsFirstRep() { if (getContains().isEmpty()) { return addContains(); } return getContains().get(0); } } /** * Block class for child element: ValueSet.expansion.contains (Codes in the value set) * *

* Definition: * *

*/ @Block() public static class ExpansionContains extends BaseIdentifiableElement implements IResourceBlock { @Child(name="system", type=UriDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="System value for the code", formalDefinition="" ) private UriDt mySystem; @Child(name="code", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Code - if blank, this is not a choosable code", formalDefinition="" ) private CodeDt myCode; @Child(name="display", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="User display for the concept", formalDefinition="" ) private StringDt myDisplay; @Child(name="contains", type=ExpansionContains.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Codes contained in this concept", formalDefinition="" ) private java.util.List myContains; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myCode, myDisplay, myContains); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myCode, myDisplay, myContains); } /** * Gets the value(s) for system (System value for the code). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public UriDt getSystem() { if (mySystem == null) { mySystem = new UriDt(); } return mySystem; } /** * Gets the value(s) for system (System value for the code). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public UriDt getSystemElement() { if (mySystem == null) { mySystem = new UriDt(); } return mySystem; } /** * Sets the value(s) for system (System value for the code) * *

* Definition: * *

*/ public ExpansionContains setSystem(UriDt theValue) { mySystem = theValue; return this; } /** * Sets the value for system (System value for the code) * *

* Definition: * *

*/ public ExpansionContains setSystem( String theUri) { mySystem = new UriDt(theUri); return this; } /** * Gets the value(s) for code (Code - if blank, this is not a choosable code). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public CodeDt getCode() { if (myCode == null) { myCode = new CodeDt(); } return myCode; } /** * Gets the value(s) for code (Code - if blank, this is not a choosable code). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public CodeDt getCodeElement() { if (myCode == null) { myCode = new CodeDt(); } return myCode; } /** * Sets the value(s) for code (Code - if blank, this is not a choosable code) * *

* Definition: * *

*/ public ExpansionContains setCode(CodeDt theValue) { myCode = theValue; return this; } /** * Sets the value for code (Code - if blank, this is not a choosable code) * *

* Definition: * *

*/ public ExpansionContains setCode( String theCode) { myCode = new CodeDt(theCode); return this; } /** * Gets the value(s) for display (User display for the concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getDisplay() { if (myDisplay == null) { myDisplay = new StringDt(); } return myDisplay; } /** * Gets the value(s) for display (User display for the concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public StringDt getDisplayElement() { if (myDisplay == null) { myDisplay = new StringDt(); } return myDisplay; } /** * Sets the value(s) for display (User display for the concept) * *

* Definition: * *

*/ public ExpansionContains setDisplay(StringDt theValue) { myDisplay = theValue; return this; } /** * Sets the value for display (User display for the concept) * *

* Definition: * *

*/ public ExpansionContains setDisplay( String theString) { myDisplay = new StringDt(theString); return this; } /** * Gets the value(s) for contains (Codes contained in this concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getContains() { if (myContains == null) { myContains = new java.util.ArrayList(); } return myContains; } /** * Gets the value(s) for contains (Codes contained in this concept). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public java.util.List getContainsElement() { if (myContains == null) { myContains = new java.util.ArrayList(); } return myContains; } /** * Sets the value(s) for contains (Codes contained in this concept) * *

* Definition: * *

*/ public ExpansionContains setContains(java.util.List theValue) { myContains = theValue; return this; } /** * Adds and returns a new value for contains (Codes contained in this concept) * *

* Definition: * *

*/ public ExpansionContains addContains() { ExpansionContains newType = new ExpansionContains(); getContains().add(newType); return newType; } /** * Gets the first repetition for contains (Codes contained in this concept), * creating it if it does not already exist. * *

* Definition: * *

*/ public ExpansionContains getContainsFirstRep() { if (getContains().isEmpty()) { return addContains(); } return getContains().get(0); } } @Override public String getResourceName() { return "ValueSet"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy