ca.uhn.fhir.model.dstu2.resource.ValueSet Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu2.resource;
import java.math.BigDecimal;
import java.net.URI;
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.dstu2.valueset.AccountStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
import ca.uhn.fhir.model.dstu2.composite.AddressDt;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
import ca.uhn.fhir.model.dstu2.resource.Appointment;
import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.resource.BodySite;
import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.CarePlan;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Claim;
import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Composition;
import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu2.resource.Condition;
import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.Contract;
import ca.uhn.fhir.model.dstu2.resource.Coverage;
import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
import ca.uhn.fhir.model.dstu2.resource.Encounter;
import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Goal;
import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Group;
import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu2.resource.Immunization;
import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Location;
import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
import ca.uhn.fhir.model.dstu2.resource.Media;
import ca.uhn.fhir.model.dstu2.resource.Medication;
import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Order;
import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Person;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.resource.Procedure;
import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.composite.RatioDt;
import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu2.resource.Schedule;
import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
import ca.uhn.fhir.model.dstu2.resource.Slot;
import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Specimen;
import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Substance;
import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.composite.TimingDt;
import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.composite.AgeDt;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
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.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.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.TimeDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR ValueSet Resource
* (conformance.terminology)
*
*
* 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.dstu2.resource.BaseResource
implements IResource
{
/**
* Search parameter constant for url
*
* Description: The logical URL for the value set
* Type: uri
* Path: ValueSet.url
*
*/
@SearchParamDefinition(name="url", path="ValueSet.url", description="The logical URL for the value set", type="uri"
)
public static final String SP_URL = "url";
/**
* Fluent Client search parameter constant for url
*
* Description: The logical URL for the value set
* Type: uri
* Path: ValueSet.url
*
*/
public static final UriClientParam URL = new UriClientParam(SP_URL);
/**
* Search parameter constant for identifier
*
* Description: The identifier for the value set
* Type: token
* Path: ValueSet.identifier
*
*/
@SearchParamDefinition(name="identifier", path="ValueSet.identifier", description="The identifier for the value set", type="token"
)
public static final String SP_IDENTIFIER = "identifier";
/**
* Fluent Client search parameter constant for identifier
*
* Description: The identifier for 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: uri
* Path: ValueSet.codeSystem.system
*
*/
@SearchParamDefinition(name="system", path="ValueSet.codeSystem.system", description="The system for any codes defined by this value set", type="uri"
)
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: uri
* Path: ValueSet.codeSystem.system
*
*/
public static final UriClientParam SYSTEM = new UriClientParam(SP_SYSTEM);
/**
* Search parameter constant for code
*
* Description: A code defined in the value set
* Type: token
* Path: ValueSet.codeSystem.concept.code
*
*/
@SearchParamDefinition(name="code", path="ValueSet.codeSystem.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.codeSystem.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: uri
* 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="uri"
)
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: uri
* Path: ValueSet.compose.include.system
*
*/
public static final UriClientParam REFERENCE = new UriClientParam(SP_REFERENCE);
/**
* Search parameter constant for context
*
* Description: A use context assigned to the value set
* Type: token
* Path: ValueSet.useContext
*
*/
@SearchParamDefinition(name="context", path="ValueSet.useContext", description="A use context assigned to the value set", type="token"
)
public static final String SP_CONTEXT = "context";
/**
* Fluent Client search parameter constant for context
*
* Description: A use context assigned to the value set
* Type: token
* Path: ValueSet.useContext
*
*/
public static final TokenClientParam CONTEXT = new TokenClientParam(SP_CONTEXT);
/**
* Search parameter constant for expansion
*
* Description:
* Type: uri
* Path: ValueSet.expansion.identifier
*
*/
@SearchParamDefinition(name="expansion", path="ValueSet.expansion.identifier", description="", type="uri"
)
public static final String SP_EXPANSION = "expansion";
/**
* Fluent Client search parameter constant for expansion
*
* Description:
* Type: uri
* Path: ValueSet.expansion.identifier
*
*/
public static final UriClientParam EXPANSION = new UriClientParam(SP_EXPANSION);
@Child(name="url", type=UriDt.class, order=0, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="id",
formalDefinition="An absolute URL that is used to identify this value set 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 value set is (or will be) published"
)
private UriDt myUrl;
@Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="id",
formalDefinition="Formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance."
)
private IdentifierDt myIdentifier;
@Child(name="version", type=StringDt.class, order=2, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="id.version",
formalDefinition="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=3, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A free text natural language name describing the value set"
)
private StringDt myName;
@Child(name="status", type=CodeDt.class, order=4, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="status",
formalDefinition="The status of the value set"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/conformance-resource-status")
private BoundCodeDt myStatus;
@Child(name="experimental", type=BooleanDt.class, order=5, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="class",
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="publisher", type=StringDt.class, order=6, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="who.witness",
formalDefinition="The name of the individual or organization that published the value set"
)
private StringDt myPublisher;
@Child(name="contact", order=7, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Contacts to assist a user in finding and communicating with the publisher"
)
private java.util.List myContact;
@Child(name="date", type=DateTimeDt.class, order=8, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="when.recorded",
formalDefinition="The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition')"
)
private DateTimeDt myDate;
@Child(name="lockedDate", type=DateDt.class, order=9, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="when.init",
formalDefinition="If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date"
)
private DateDt myLockedDate;
@Child(name="description", type=StringDt.class, order=10, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A free text natural language description of the use of the value set - reason for definition, \"the semantic space\" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set."
)
private StringDt myDescription;
@Child(name="useContext", type=CodeableConceptDt.class, order=11, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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 of value set definitions."
)
private java.util.List myUseContext;
@Child(name="immutable", type=BooleanDt.class, order=12, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change"
)
private BooleanDt myImmutable;
@Child(name="requirements", type=StringDt.class, order=13, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Explains why this value set is needed and why it has been constrained as it has"
)
private StringDt myRequirements;
@Child(name="copyright", type=StringDt.class, order=14, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set"
)
private StringDt myCopyright;
@Child(name="extensible", type=BooleanDt.class, order=15, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Whether this is intended to be used with an extensible binding or not"
)
private BooleanDt myExtensible;
@Child(name="codeSystem", order=16, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A definition of a code system, inlined into the value set (as a packaging convenience). Note that the inline code system may be used from other value sets by referring to its (codeSystem.system) directly"
)
private CodeSystem myCodeSystem;
@Child(name="compose", order=17, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A set of criteria that provide the content logical definition of the value set by including or excluding codes from outside this value set"
)
private Compose myCompose;
@Child(name="expansion", order=18, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed"
)
private Expansion myExpansion;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUrl, myIdentifier, myVersion, myName, myStatus, myExperimental, myPublisher, myContact, myDate, myLockedDate, myDescription, myUseContext, myImmutable, myRequirements, myCopyright, myExtensible, myCodeSystem, myCompose, myExpansion);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUrl, myIdentifier, myVersion, myName, myStatus, myExperimental, myPublisher, myContact, myDate, myLockedDate, myDescription, myUseContext, myImmutable, myRequirements, myCopyright, myExtensible, myCodeSystem, myCompose, myExpansion);
}
/**
* Gets the value(s) for url (id).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An absolute URL that is used to identify this value set 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 value set is (or will be) published
*
*/
public UriDt getUrlElement() {
if (myUrl == null) {
myUrl = new UriDt();
}
return myUrl;
}
/**
* Gets the value(s) for url (id).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* An absolute URL that is used to identify this value set 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 value set is (or will be) published
*
*/
public String getUrl() {
return getUrlElement().getValue();
}
/**
* Sets the value(s) for url (id)
*
*
* Definition:
* An absolute URL that is used to identify this value set 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 value set is (or will be) published
*
*/
public ValueSet setUrl(UriDt theValue) {
myUrl = theValue;
return this;
}
/**
* Sets the value for url (id)
*
*
* Definition:
* An absolute URL that is used to identify this value set 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 value set is (or will be) published
*
*/
public ValueSet setUrl( String theUri) {
myUrl = new UriDt(theUri);
return this;
}
/**
* Gets the value(s) for identifier (id).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.
*
*/
public IdentifierDt getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new IdentifierDt();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (id)
*
*
* Definition:
* Formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.
*
*/
public ValueSet setIdentifier(IdentifierDt theValue) {
myIdentifier = theValue;
return this;
}
/**
* Gets the value(s) for version (id.version).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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;
}
/**
* Gets the value(s) for version (id.version).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* 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 String getVersion() {
return getVersionElement().getValue();
}
/**
* Sets the value(s) for version (id.version)
*
*
* Definition:
* 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 (id.version)
*
*
* Definition:
* 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 ().
* 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;
}
/**
* Gets the value(s) for name ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A free text natural language name describing the value set
*
*/
public String getName() {
return getNameElement().getValue();
}
/**
* Sets the value(s) for name ()
*
*
* 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 ()
*
*
* 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 status (status).
* 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(ConformanceResourceStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status (status).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The status of the value set
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
* The status of the value set
*
*/
public ValueSet setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
* The status of the value set
*
*/
public ValueSet setStatus(ConformanceResourceStatusEnum theValue) {
setStatus(new BoundCodeDt(ConformanceResourceStatusEnum.VALUESET_BINDER, theValue));
/*
getStatusElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for experimental (class).
* 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;
}
/**
* Gets the value(s) for experimental (class).
* creating it if it does
* not exist. This method may 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 Boolean getExperimental() {
return getExperimentalElement().getValue();
}
/**
* Sets the value(s) for experimental (class)
*
*
* 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 (class)
*
*
* 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 publisher (who.witness).
* 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;
}
/**
* Gets the value(s) for publisher (who.witness).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The name of the individual or organization that published the value set
*
*/
public String getPublisher() {
return getPublisherElement().getValue();
}
/**
* Sets the value(s) for publisher (who.witness)
*
*
* 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 (who.witness)
*
*
* 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 contact ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Contacts to assist a user in finding and communicating with the publisher
*
*/
public java.util.List getContact() {
if (myContact == null) {
myContact = new java.util.ArrayList();
}
return myContact;
}
/**
* Sets the value(s) for contact ()
*
*
* Definition:
* Contacts to assist a user in finding and communicating with the publisher
*
*/
public ValueSet setContact(java.util.List theValue) {
myContact = theValue;
return this;
}
/**
* Adds and returns a new value for contact ()
*
*
* Definition:
* Contacts to assist a user in finding and communicating with the publisher
*
*/
public Contact addContact() {
Contact newType = new Contact();
getContact().add(newType);
return newType;
}
/**
* Adds a given new value for contact ()
*
*
* Definition:
* Contacts to assist a user in finding and communicating with the publisher
*
* @param theValue The contact to add (must not be null
)
*/
public ValueSet addContact(Contact theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getContact().add(theValue);
return this;
}
/**
* Gets the first repetition for contact (),
* creating it if it does not already exist.
*
*
* Definition:
* Contacts to assist a user in finding and communicating with the publisher
*
*/
public Contact getContactFirstRep() {
if (getContact().isEmpty()) {
return addContact();
}
return getContact().get(0);
}
/**
* Gets the value(s) for date (when.recorded).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition')
*
*/
public DateTimeDt getDateElement() {
if (myDate == null) {
myDate = new DateTimeDt();
}
return myDate;
}
/**
* Gets the value(s) for date (when.recorded).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition')
*
*/
public Date getDate() {
return getDateElement().getValue();
}
/**
* Sets the value(s) for date (when.recorded)
*
*
* Definition:
* The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition')
*
*/
public ValueSet setDate(DateTimeDt theValue) {
myDate = theValue;
return this;
}
/**
* Sets the value for date (when.recorded)
*
*
* Definition:
* The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition')
*
*/
public ValueSet setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
return this;
}
/**
* Sets the value for date (when.recorded)
*
*
* Definition:
* The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition')
*
*/
public ValueSet setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for lockedDate (when.init).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date
*
*/
public DateDt getLockedDateElement() {
if (myLockedDate == null) {
myLockedDate = new DateDt();
}
return myLockedDate;
}
/**
* Gets the value(s) for lockedDate (when.init).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date
*
*/
public Date getLockedDate() {
return getLockedDateElement().getValue();
}
/**
* Sets the value(s) for lockedDate (when.init)
*
*
* Definition:
* If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date
*
*/
public ValueSet setLockedDate(DateDt theValue) {
myLockedDate = theValue;
return this;
}
/**
* Sets the value for lockedDate (when.init)
*
*
* Definition:
* If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date
*
*/
public ValueSet setLockedDateWithDayPrecision( Date theDate) {
myLockedDate = new DateDt(theDate);
return this;
}
/**
* Sets the value for lockedDate (when.init)
*
*
* Definition:
* If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date
*
*/
public ValueSet setLockedDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myLockedDate = new DateDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for description ().
* 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, \"the semantic space\" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.
*
*/
public StringDt getDescriptionElement() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Gets the value(s) for description ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A free text natural language description of the use of the value set - reason for definition, \"the semantic space\" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.
*
*/
public String getDescription() {
return getDescriptionElement().getValue();
}
/**
* Sets the value(s) for description ()
*
*
* Definition:
* A free text natural language description of the use of the value set - reason for definition, \"the semantic space\" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.
*
*/
public ValueSet setDescription(StringDt theValue) {
myDescription = theValue;
return this;
}
/**
* Sets the value for description ()
*
*
* Definition:
* A free text natural language description of the use of the value set - reason for definition, \"the semantic space\" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.
*
*/
public ValueSet setDescription( String theString) {
myDescription = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for useContext ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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 of value set definitions.
*
*/
public java.util.List getUseContext() {
if (myUseContext == null) {
myUseContext = new java.util.ArrayList();
}
return myUseContext;
}
/**
* Sets the value(s) for useContext ()
*
*
* Definition:
* 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 of value set definitions.
*
*/
public ValueSet setUseContext(java.util.List theValue) {
myUseContext = theValue;
return this;
}
/**
* Adds and returns a new value for useContext ()
*
*
* Definition:
* 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 of value set definitions.
*
*/
public CodeableConceptDt addUseContext() {
CodeableConceptDt newType = new CodeableConceptDt();
getUseContext().add(newType);
return newType;
}
/**
* Adds a given new value for useContext ()
*
*
* Definition:
* 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 of value set definitions.
*
* @param theValue The useContext to add (must not be null
)
*/
public ValueSet addUseContext(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getUseContext().add(theValue);
return this;
}
/**
* Gets the first repetition for useContext (),
* creating it if it does not already exist.
*
*
* Definition:
* 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 of value set definitions.
*
*/
public CodeableConceptDt getUseContextFirstRep() {
if (getUseContext().isEmpty()) {
return addUseContext();
}
return getUseContext().get(0);
}
/**
* Gets the value(s) for immutable ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change
*
*/
public BooleanDt getImmutableElement() {
if (myImmutable == null) {
myImmutable = new BooleanDt();
}
return myImmutable;
}
/**
* Gets the value(s) for immutable ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change
*
*/
public Boolean getImmutable() {
return getImmutableElement().getValue();
}
/**
* Sets the value(s) for immutable ()
*
*
* Definition:
* If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change
*
*/
public ValueSet setImmutable(BooleanDt theValue) {
myImmutable = theValue;
return this;
}
/**
* Sets the value for immutable ()
*
*
* Definition:
* If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change
*
*/
public ValueSet setImmutable( boolean theBoolean) {
myImmutable = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for requirements ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Explains why this value set is needed and why it has been constrained as it has
*
*/
public StringDt getRequirementsElement() {
if (myRequirements == null) {
myRequirements = new StringDt();
}
return myRequirements;
}
/**
* Gets the value(s) for requirements ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Explains why this value set is needed and why it has been constrained as it has
*
*/
public String getRequirements() {
return getRequirementsElement().getValue();
}
/**
* Sets the value(s) for requirements ()
*
*
* Definition:
* Explains why this value set is needed and why it has been constrained as it has
*
*/
public ValueSet setRequirements(StringDt theValue) {
myRequirements = theValue;
return this;
}
/**
* Sets the value for requirements ()
*
*
* Definition:
* Explains why this value set is needed and why it has been constrained as it has
*
*/
public ValueSet setRequirements( String theString) {
myRequirements = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for copyright ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set
*
*/
public StringDt getCopyrightElement() {
if (myCopyright == null) {
myCopyright = new StringDt();
}
return myCopyright;
}
/**
* Gets the value(s) for copyright ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set
*
*/
public String getCopyright() {
return getCopyrightElement().getValue();
}
/**
* Sets the value(s) for copyright ()
*
*
* Definition:
* A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set
*
*/
public ValueSet setCopyright(StringDt theValue) {
myCopyright = theValue;
return this;
}
/**
* Sets the value for copyright ()
*
*
* Definition:
* A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set
*
*/
public ValueSet setCopyright( String theString) {
myCopyright = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for extensible ().
* 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;
}
/**
* Gets the value(s) for extensible ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Whether this is intended to be used with an extensible binding or not
*
*/
public Boolean getExtensible() {
return getExtensibleElement().getValue();
}
/**
* Sets the value(s) for extensible ()
*
*
* 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 ()
*
*
* 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 codeSystem ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A definition of a code system, inlined into the value set (as a packaging convenience). Note that the inline code system may be used from other value sets by referring to its (codeSystem.system) directly
*
*/
public CodeSystem getCodeSystem() {
if (myCodeSystem == null) {
myCodeSystem = new CodeSystem();
}
return myCodeSystem;
}
/**
* Sets the value(s) for codeSystem ()
*
*
* Definition:
* A definition of a code system, inlined into the value set (as a packaging convenience). Note that the inline code system may be used from other value sets by referring to its (codeSystem.system) directly
*
*/
public ValueSet setCodeSystem(CodeSystem theValue) {
myCodeSystem = theValue;
return this;
}
/**
* Gets the value(s) for compose ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A set of criteria that provide the content logical definition of the value set by including or excluding codes from outside this value set
*
*/
public Compose getCompose() {
if (myCompose == null) {
myCompose = new Compose();
}
return myCompose;
}
/**
* Sets the value(s) for compose ()
*
*
* Definition:
* A set of criteria that provide the content logical definition of the value set by including or excluding codes from outside this value set
*
*/
public ValueSet setCompose(Compose theValue) {
myCompose = theValue;
return this;
}
/**
* Gets the value(s) for expansion ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed
*
*/
public Expansion getExpansion() {
if (myExpansion == null) {
myExpansion = new Expansion();
}
return myExpansion;
}
/**
* Sets the value(s) for expansion ()
*
*
* Definition:
* A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed
*
*/
public ValueSet setExpansion(Expansion theValue) {
myExpansion = theValue;
return this;
}
/**
* Block class for child element: ValueSet.contact ()
*
*
* Definition:
* Contacts to assist a user in finding and communicating with the publisher
*
*/
@Block()
public static class Contact
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="name", type=StringDt.class, order=0, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The name of an individual to contact regarding the value set"
)
private StringDt myName;
@Child(name="telecom", type=ContactPointDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Contact details for individual (if a name was provided) or the publisher"
)
private java.util.List myTelecom;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myTelecom);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myTelecom);
}
/**
* Gets the value(s) for name ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The name of an individual to contact regarding the value set
*
*/
public StringDt getNameElement() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Gets the value(s) for name ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The name of an individual to contact regarding the value set
*
*/
public String getName() {
return getNameElement().getValue();
}
/**
* Sets the value(s) for name ()
*
*
* Definition:
* The name of an individual to contact regarding the value set
*
*/
public Contact setName(StringDt theValue) {
myName = theValue;
return this;
}
/**
* Sets the value for name ()
*
*
* Definition:
* The name of an individual to contact regarding the value set
*
*/
public Contact setName( String theString) {
myName = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for telecom ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Contact details for individual (if a name was provided) or the publisher
*
*/
public java.util.List getTelecom() {
if (myTelecom == null) {
myTelecom = new java.util.ArrayList();
}
return myTelecom;
}
/**
* Sets the value(s) for telecom ()
*
*
* Definition:
* Contact details for individual (if a name was provided) or the publisher
*
*/
public Contact setTelecom(java.util.List theValue) {
myTelecom = theValue;
return this;
}
/**
* Adds and returns a new value for telecom ()
*
*
* Definition:
* Contact details for individual (if a name was provided) or the publisher
*
*/
public ContactPointDt addTelecom() {
ContactPointDt newType = new ContactPointDt();
getTelecom().add(newType);
return newType;
}
/**
* Adds a given new value for telecom ()
*
*
* Definition:
* Contact details for individual (if a name was provided) or the publisher
*
* @param theValue The telecom to add (must not be null
)
*/
public Contact addTelecom(ContactPointDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getTelecom().add(theValue);
return this;
}
/**
* Gets the first repetition for telecom (),
* creating it if it does not already exist.
*
*
* Definition:
* Contact details for individual (if a name was provided) or the publisher
*
*/
public ContactPointDt getTelecomFirstRep() {
if (getTelecom().isEmpty()) {
return addTelecom();
}
return getTelecom().get(0);
}
}
/**
* Block class for child element: ValueSet.codeSystem ()
*
*
* Definition:
* A definition of a code system, inlined into the value set (as a packaging convenience). Note that the inline code system may be used from other value sets by referring to its (codeSystem.system) directly
*
*/
@Block()
public static class CodeSystem
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="system", type=UriDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="An absolute URI that is used to reference this code system, including in [Coding]{datatypes.html#Coding}.system"
)
private UriDt mySystem;
@Child(name="version", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
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="",
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=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
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"
)
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 ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An absolute URI that is used to reference this code system, including in [Coding]{datatypes.html#Coding}.system
*
*/
public UriDt getSystemElement() {
if (mySystem == null) {
mySystem = new UriDt();
}
return mySystem;
}
/**
* Gets the value(s) for system ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* An absolute URI that is used to reference this code system, including in [Coding]{datatypes.html#Coding}.system
*
*/
public String getSystem() {
return getSystemElement().getValue();
}
/**
* Sets the value(s) for system ()
*
*
* Definition:
* An absolute URI that is used to reference this code system, including in [Coding]{datatypes.html#Coding}.system
*
*/
public CodeSystem setSystem(UriDt theValue) {
mySystem = theValue;
return this;
}
/**
* Sets the value for system ()
*
*
* Definition:
* An absolute URI that is used to reference this code system, including in [Coding]{datatypes.html#Coding}.system
*
*/
public CodeSystem setSystem( String theUri) {
mySystem = new UriDt(theUri);
return this;
}
/**
* Gets the value(s) for version ().
* 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;
}
/**
* Gets the value(s) for version ().
* creating it if it does
* not exist. This method may 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 String getVersion() {
return getVersionElement().getValue();
}
/**
* Sets the value(s) for version ()
*
*
* 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 CodeSystem setVersion(StringDt theValue) {
myVersion = theValue;
return this;
}
/**
* Sets the value for version ()
*
*
* 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 CodeSystem setVersion( String theString) {
myVersion = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for caseSensitive ().
* 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;
}
/**
* Gets the value(s) for caseSensitive ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* If code comparison is case sensitive when codes within this system are compared to each other
*
*/
public Boolean getCaseSensitive() {
return getCaseSensitiveElement().getValue();
}
/**
* Sets the value(s) for caseSensitive ()
*
*
* Definition:
* If code comparison is case sensitive when codes within this system are compared to each other
*
*/
public CodeSystem setCaseSensitive(BooleanDt theValue) {
myCaseSensitive = theValue;
return this;
}
/**
* Sets the value for caseSensitive ()
*
*
* Definition:
* If code comparison is case sensitive when codes within this system are compared to each other
*
*/
public CodeSystem setCaseSensitive( boolean theBoolean) {
myCaseSensitive = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for concept ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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 java.util.List getConcept() {
if (myConcept == null) {
myConcept = new java.util.ArrayList();
}
return myConcept;
}
/**
* Sets the value(s) for concept ()
*
*
* Definition:
* 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 CodeSystem setConcept(java.util.List theValue) {
myConcept = theValue;
return this;
}
/**
* Adds and returns a new value for concept ()
*
*
* Definition:
* 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 CodeSystemConcept addConcept() {
CodeSystemConcept newType = new CodeSystemConcept();
getConcept().add(newType);
return newType;
}
/**
* Adds a given new value for concept ()
*
*
* Definition:
* 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
*
* @param theValue The concept to add (must not be null
)
*/
public CodeSystem addConcept(CodeSystemConcept theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getConcept().add(theValue);
return this;
}
/**
* Gets the first repetition for concept (),
* creating it if it does not already exist.
*
*
* Definition:
* 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 CodeSystemConcept getConceptFirstRep() {
if (getConcept().isEmpty()) {
return addConcept();
}
return getConcept().get(0);
}
}
/**
* Block class for child element: ValueSet.codeSystem.concept ()
*
*
* Definition:
* 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
*
*/
@Block()
public static class CodeSystemConcept
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="code", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A code - a text symbol - that uniquely identifies the concept within the code system"
)
private CodeDt myCode;
@Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
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="",
formalDefinition="A human readable string that is the recommended default way to present this concept to a user"
)
private StringDt myDisplay;
@Child(name="definition", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The formal definition of the concept. The value set 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"
)
private StringDt myDefinition;
@Child(name="designation", order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc."
)
private java.util.List myDesignation;
@Child(name="concept", type=CodeSystemConcept.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) and can only be determined by examining the definitions of the concepts"
)
private java.util.List myConcept;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myAbstract, myDisplay, myDefinition, myDesignation, myConcept);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myAbstract, myDisplay, myDefinition, myDesignation, myConcept);
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A code - a text symbol - that uniquely identifies the concept within the code system
*
*/
public CodeDt getCodeElement() {
if (myCode == null) {
myCode = new CodeDt();
}
return myCode;
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A code - a text symbol - that uniquely identifies the concept within the code system
*
*/
public String getCode() {
return getCodeElement().getValue();
}
/**
* Sets the value(s) for code ()
*
*
* Definition:
* A code - a text symbol - that uniquely identifies the concept within the code system
*
*/
public CodeSystemConcept setCode(CodeDt theValue) {
myCode = theValue;
return this;
}
/**
* Sets the value for code ()
*
*
* Definition:
* A code - a text symbol - that uniquely identifies the concept within the code system
*
*/
public CodeSystemConcept setCode( String theCode) {
myCode = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for abstract ().
* 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;
}
/**
* Gets the value(s) for abstract ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* If this code is not for use as a real concept
*
*/
public Boolean getAbstract() {
return getAbstractElement().getValue();
}
/**
* Sets the value(s) for abstract ()
*
*
* Definition:
* If this code is not for use as a real concept
*
*/
public CodeSystemConcept setAbstract(BooleanDt theValue) {
myAbstract = theValue;
return this;
}
/**
* Sets the value for abstract ()
*
*
* Definition:
* If this code is not for use as a real concept
*
*/
public CodeSystemConcept setAbstract( boolean theBoolean) {
myAbstract = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for display ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A human readable string that is the recommended default way to present this concept to a user
*
*/
public StringDt getDisplayElement() {
if (myDisplay == null) {
myDisplay = new StringDt();
}
return myDisplay;
}
/**
* Gets the value(s) for display ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A human readable string that is the recommended default way to present this concept to a user
*
*/
public String getDisplay() {
return getDisplayElement().getValue();
}
/**
* Sets the value(s) for display ()
*
*
* Definition:
* A human readable string that is the recommended default way to present this concept to a user
*
*/
public CodeSystemConcept setDisplay(StringDt theValue) {
myDisplay = theValue;
return this;
}
/**
* Sets the value for display ()
*
*
* Definition:
* A human readable string that is the recommended default way to present this concept to a user
*
*/
public CodeSystemConcept setDisplay( String theString) {
myDisplay = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for definition ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The formal definition of the concept. The value set 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 StringDt getDefinitionElement() {
if (myDefinition == null) {
myDefinition = new StringDt();
}
return myDefinition;
}
/**
* Gets the value(s) for definition ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The formal definition of the concept. The value set 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 getDefinitionElement().getValue();
}
/**
* Sets the value(s) for definition ()
*
*
* Definition:
* The formal definition of the concept. The value set 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 CodeSystemConcept setDefinition(StringDt theValue) {
myDefinition = theValue;
return this;
}
/**
* Sets the value for definition ()
*
*
* Definition:
* The formal definition of the concept. The value set 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 CodeSystemConcept setDefinition( String theString) {
myDefinition = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for designation ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public java.util.List getDesignation() {
if (myDesignation == null) {
myDesignation = new java.util.ArrayList();
}
return myDesignation;
}
/**
* Sets the value(s) for designation ()
*
*
* Definition:
* Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public CodeSystemConcept setDesignation(java.util.List theValue) {
myDesignation = theValue;
return this;
}
/**
* Adds and returns a new value for designation ()
*
*
* Definition:
* Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public CodeSystemConceptDesignation addDesignation() {
CodeSystemConceptDesignation newType = new CodeSystemConceptDesignation();
getDesignation().add(newType);
return newType;
}
/**
* Adds a given new value for designation ()
*
*
* Definition:
* Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
* @param theValue The designation to add (must not be null
)
*/
public CodeSystemConcept addDesignation(CodeSystemConceptDesignation theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getDesignation().add(theValue);
return this;
}
/**
* Gets the first repetition for designation (),
* creating it if it does not already exist.
*
*
* Definition:
* Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public CodeSystemConceptDesignation getDesignationFirstRep() {
if (getDesignation().isEmpty()) {
return addDesignation();
}
return getDesignation().get(0);
}
/**
* Gets the value(s) for concept ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) and can only be determined by examining the definitions of the concepts
*
*/
public java.util.List getConcept() {
if (myConcept == null) {
myConcept = new java.util.ArrayList();
}
return myConcept;
}
/**
* Sets the value(s) for concept ()
*
*
* Definition:
* Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) and can only be determined by examining the definitions of the concepts
*
*/
public CodeSystemConcept setConcept(java.util.List theValue) {
myConcept = theValue;
return this;
}
/**
* Adds and returns a new value for concept ()
*
*
* Definition:
* Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) and can only be determined by examining the definitions of the concepts
*
*/
public CodeSystemConcept addConcept() {
CodeSystemConcept newType = new CodeSystemConcept();
getConcept().add(newType);
return newType;
}
/**
* Adds a given new value for concept ()
*
*
* Definition:
* Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) and can only be determined by examining the definitions of the concepts
*
* @param theValue The concept to add (must not be null
)
*/
public CodeSystemConcept addConcept(CodeSystemConcept theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getConcept().add(theValue);
return this;
}
/**
* Gets the first repetition for concept (),
* creating it if it does not already exist.
*
*
* Definition:
* Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) and can only be determined by examining the definitions of the concepts
*
*/
public CodeSystemConcept getConceptFirstRep() {
if (getConcept().isEmpty()) {
return addConcept();
}
return getConcept().get(0);
}
}
/**
* Block class for child element: ValueSet.codeSystem.concept.designation ()
*
*
* Definition:
* Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
@Block()
public static class CodeSystemConceptDesignation
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="language", type=CodeDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The language this designation is defined for"
)
private CodeDt myLanguage;
@Child(name="use", type=CodingDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A code that details how this designation would be used"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-designation-use")
private CodingDt myUse;
@Child(name="value", type=StringDt.class, order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The text value for this designation"
)
private StringDt myValue;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLanguage, myUse, myValue);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLanguage, myUse, myValue);
}
/**
* Gets the value(s) for language ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The language this designation is defined for
*
*/
public CodeDt getLanguageElement() {
if (myLanguage == null) {
myLanguage = new CodeDt();
}
return myLanguage;
}
/**
* Gets the value(s) for language ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The language this designation is defined for
*
*/
public String getLanguage() {
return getLanguageElement().getValue();
}
/**
* Sets the value(s) for language ()
*
*
* Definition:
* The language this designation is defined for
*
*/
public CodeSystemConceptDesignation setLanguage(CodeDt theValue) {
myLanguage = theValue;
return this;
}
/**
* Sets the value for language ()
*
*
* Definition:
* The language this designation is defined for
*
*/
public CodeSystemConceptDesignation setLanguage( String theCode) {
myLanguage = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for use ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A code that details how this designation would be used
*
*/
public CodingDt getUse() {
if (myUse == null) {
myUse = new CodingDt();
}
return myUse;
}
/**
* Sets the value(s) for use ()
*
*
* Definition:
* A code that details how this designation would be used
*
*/
public CodeSystemConceptDesignation setUse(CodingDt theValue) {
myUse = theValue;
return this;
}
/**
* Gets the value(s) for value ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The text value for this designation
*
*/
public StringDt getValueElement() {
if (myValue == null) {
myValue = new StringDt();
}
return myValue;
}
/**
* Gets the value(s) for value ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The text value for this designation
*
*/
public String getValue() {
return getValueElement().getValue();
}
/**
* Sets the value(s) for value ()
*
*
* Definition:
* The text value for this designation
*
*/
public CodeSystemConceptDesignation setValue(StringDt theValue) {
myValue = theValue;
return this;
}
/**
* Sets the value for value ()
*
*
* Definition:
* The text value for this designation
*
*/
public CodeSystemConceptDesignation setValue( String theString) {
myValue = new StringDt(theString);
return this;
}
}
/**
* Block class for child element: ValueSet.compose ()
*
*
* Definition:
* A set of criteria that provide the content logical definition of the value set by including or excluding codes from outside this value set
*
*/
@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="",
formalDefinition="Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri"
)
private java.util.List myImport;
@Child(name="include", order=1, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
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="",
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 ().
* 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. This is an absolute URI that is a reference to ValueSet.uri
*
*/
public java.util.List getImport() {
if (myImport == null) {
myImport = new java.util.ArrayList();
}
return myImport;
}
/**
* Sets the value(s) for import ()
*
*
* Definition:
* Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri
*
*/
public Compose setImport(java.util.List theValue) {
myImport = theValue;
return this;
}
/**
* Adds and returns a new value for import ()
*
*
* Definition:
* Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri
*
*/
public UriDt addImport() {
UriDt newType = new UriDt();
getImport().add(newType);
return newType;
}
/**
* Adds a given new value for import ()
*
*
* Definition:
* Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri
*
* @param theValue The import to add (must not be null
)
*/
public Compose addImport(UriDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getImport().add(theValue);
return this;
}
/**
* Gets the first repetition for import (),
* 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. This is an absolute URI that is a reference to ValueSet.uri
*
*/
public UriDt getImportFirstRep() {
if (getImport().isEmpty()) {
return addImport();
}
return getImport().get(0);
}
/**
* Adds a new value for import ()
*
*
* Definition:
* Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri
*
*
* @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 ().
* 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;
}
/**
* Sets the value(s) for include ()
*
*
* 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 ()
*
*
* Definition:
* Include one or more codes from a code system
*
*/
public ComposeInclude addInclude() {
ComposeInclude newType = new ComposeInclude();
getInclude().add(newType);
return newType;
}
/**
* Adds a given new value for include ()
*
*
* Definition:
* Include one or more codes from a code system
*
* @param theValue The include to add (must not be null
)
*/
public Compose addInclude(ComposeInclude theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getInclude().add(theValue);
return this;
}
/**
* Gets the first repetition for include (),
* 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 ().
* 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;
}
/**
* Sets the value(s) for exclude ()
*
*
* 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 ()
*
*
* Definition:
* Exclude one or more codes from the value set
*
*/
public ComposeInclude addExclude() {
ComposeInclude newType = new ComposeInclude();
getExclude().add(newType);
return newType;
}
/**
* Adds a given new value for exclude ()
*
*
* Definition:
* Exclude one or more codes from the value set
*
* @param theValue The exclude to add (must not be null
)
*/
public Compose addExclude(ComposeInclude theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getExclude().add(theValue);
return this;
}
/**
* Gets the first repetition for exclude (),
* 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 ()
*
*
* 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="",
formalDefinition="An absolute URI which is 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="",
formalDefinition="The version of the code system that the codes are selected from"
)
private StringDt myVersion;
@Child(name="concept", order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Specifies a concept to be included or excluded."
)
private java.util.List myConcept;
@Child(name="filter", order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
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, myConcept, myFilter);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myConcept, myFilter);
}
/**
* Gets the value(s) for system ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An absolute URI which is the code system from which the selected codes come from
*
*/
public UriDt getSystemElement() {
if (mySystem == null) {
mySystem = new UriDt();
}
return mySystem;
}
/**
* Gets the value(s) for system ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* An absolute URI which is the code system from which the selected codes come from
*
*/
public String getSystem() {
return getSystemElement().getValue();
}
/**
* Sets the value(s) for system ()
*
*
* Definition:
* An absolute URI which is the code system from which the selected codes come from
*
*/
public ComposeInclude setSystem(UriDt theValue) {
mySystem = theValue;
return this;
}
/**
* Sets the value for system ()
*
*
* Definition:
* An absolute URI which is 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 ().
* 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;
}
/**
* Gets the value(s) for version ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The version of the code system that the codes are selected from
*
*/
public String getVersion() {
return getVersionElement().getValue();
}
/**
* Sets the value(s) for version ()
*
*
* 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 ()
*
*
* 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 concept ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specifies a concept to be included or excluded.
*
*/
public java.util.List getConcept() {
if (myConcept == null) {
myConcept = new java.util.ArrayList();
}
return myConcept;
}
/**
* Sets the value(s) for concept ()
*
*
* Definition:
* Specifies a concept to be included or excluded.
*
*/
public ComposeInclude setConcept(java.util.List theValue) {
myConcept = theValue;
return this;
}
/**
* Adds and returns a new value for concept ()
*
*
* Definition:
* Specifies a concept to be included or excluded.
*
*/
public ComposeIncludeConcept addConcept() {
ComposeIncludeConcept newType = new ComposeIncludeConcept();
getConcept().add(newType);
return newType;
}
/**
* Adds a given new value for concept ()
*
*
* Definition:
* Specifies a concept to be included or excluded.
*
* @param theValue The concept to add (must not be null
)
*/
public ComposeInclude addConcept(ComposeIncludeConcept theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getConcept().add(theValue);
return this;
}
/**
* Gets the first repetition for concept (),
* creating it if it does not already exist.
*
*
* Definition:
* Specifies a concept to be included or excluded.
*
*/
public ComposeIncludeConcept getConceptFirstRep() {
if (getConcept().isEmpty()) {
return addConcept();
}
return getConcept().get(0);
}
/**
* Gets the value(s) for filter ().
* 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;
}
/**
* Sets the value(s) for filter ()
*
*
* 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 ()
*
*
* 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;
}
/**
* Adds a given new value for filter ()
*
*
* 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.
*
* @param theValue The filter to add (must not be null
)
*/
public ComposeInclude addFilter(ComposeIncludeFilter theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getFilter().add(theValue);
return this;
}
/**
* Gets the first repetition for filter (),
* 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.concept ()
*
*
* Definition:
* Specifies a concept to be included or excluded.
*
*/
@Block()
public static class ComposeIncludeConcept
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="code", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Specifies a code for the concept to be included or excluded"
)
private CodeDt myCode;
@Child(name="display", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system"
)
private StringDt myDisplay;
@Child(name="designation", type=CodeSystemConceptDesignation.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc."
)
private java.util.List myDesignation;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDisplay, myDesignation);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDisplay, myDesignation);
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specifies a code for the concept to be included or excluded
*
*/
public CodeDt getCodeElement() {
if (myCode == null) {
myCode = new CodeDt();
}
return myCode;
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Specifies a code for the concept to be included or excluded
*
*/
public String getCode() {
return getCodeElement().getValue();
}
/**
* Sets the value(s) for code ()
*
*
* Definition:
* Specifies a code for the concept to be included or excluded
*
*/
public ComposeIncludeConcept setCode(CodeDt theValue) {
myCode = theValue;
return this;
}
/**
* Sets the value for code ()
*
*
* Definition:
* Specifies a code for the concept to be included or excluded
*
*/
public ComposeIncludeConcept setCode( String theCode) {
myCode = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for display ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system
*
*/
public StringDt getDisplayElement() {
if (myDisplay == null) {
myDisplay = new StringDt();
}
return myDisplay;
}
/**
* Gets the value(s) for display ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system
*
*/
public String getDisplay() {
return getDisplayElement().getValue();
}
/**
* Sets the value(s) for display ()
*
*
* Definition:
* The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system
*
*/
public ComposeIncludeConcept setDisplay(StringDt theValue) {
myDisplay = theValue;
return this;
}
/**
* Sets the value for display ()
*
*
* Definition:
* The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system
*
*/
public ComposeIncludeConcept setDisplay( String theString) {
myDisplay = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for designation ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public java.util.List getDesignation() {
if (myDesignation == null) {
myDesignation = new java.util.ArrayList();
}
return myDesignation;
}
/**
* Sets the value(s) for designation ()
*
*
* Definition:
* Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public ComposeIncludeConcept setDesignation(java.util.List theValue) {
myDesignation = theValue;
return this;
}
/**
* Adds and returns a new value for designation ()
*
*
* Definition:
* Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public CodeSystemConceptDesignation addDesignation() {
CodeSystemConceptDesignation newType = new CodeSystemConceptDesignation();
getDesignation().add(newType);
return newType;
}
/**
* Adds a given new value for designation ()
*
*
* Definition:
* Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
* @param theValue The designation to add (must not be null
)
*/
public ComposeIncludeConcept addDesignation(CodeSystemConceptDesignation theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getDesignation().add(theValue);
return this;
}
/**
* Gets the first repetition for designation (),
* creating it if it does not already exist.
*
*
* Definition:
* Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.
*
*/
public CodeSystemConceptDesignation getDesignationFirstRep() {
if (getDesignation().isEmpty()) {
return addDesignation();
}
return getDesignation().get(0);
}
}
/**
* Block class for child element: ValueSet.compose.include.filter ()
*
*
* 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="",
formalDefinition="The kind of operation to perform as a part of the filter criteria"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/filter-operator")
private BoundCodeDt myOp;
@Child(name="value", type=CodeDt.class, order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The match value may be either a code defined by the system, or a string value, which is 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 getPropertyElement() {
if (myProperty == null) {
myProperty = new CodeDt();
}
return myProperty;
}
/**
* Gets the value(s) for property ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A code that identifies a property defined in the code system
*
*/
public String getProperty() {
return getPropertyElement().getValue();
}
/**
* 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 ().
* 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;
}
/**
* Gets the value(s) for op ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The kind of operation to perform as a part of the filter criteria
*
*/
public String getOp() {
return getOpElement().getValue();
}
/**
* Sets the value(s) for op ()
*
*
* 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 ()
*
*
* Definition:
* The kind of operation to perform as a part of the filter criteria
*
*/
public ComposeIncludeFilter setOp(FilterOperatorEnum theValue) {
setOp(new BoundCodeDt(FilterOperatorEnum.VALUESET_BINDER, theValue));
/*
getOpElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for value ().
* 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 a regex match on the literal string of the property value
*
*/
public CodeDt getValueElement() {
if (myValue == null) {
myValue = new CodeDt();
}
return myValue;
}
/**
* Gets the value(s) for value ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value
*
*/
public String getValue() {
return getValueElement().getValue();
}
/**
* Sets the value(s) for value ()
*
*
* Definition:
* The match value may be either a code defined by the system, or a string value, which is 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 ()
*
*
* Definition:
* The match value may be either a code defined by the system, or a string value, which is 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 ()
*
*
* Definition:
* A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed
*
*/
@Block()
public static class Expansion
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="identifier", type=UriDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
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 UriDt myIdentifier;
@Child(name="timestamp", type=DateTimeDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The time at which the expansion was produced by the expanding system."
)
private DateTimeDt myTimestamp;
@Child(name="total", type=IntegerDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter"
)
private IntegerDt myTotal;
@Child(name="offset", type=IntegerDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present"
)
private IntegerDt myOffset;
@Child(name="parameter", order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion"
)
private java.util.List myParameter;
@Child(name="contains", order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The codes that are contained in the value set expansion"
)
private java.util.List myContains;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTimestamp, myTotal, myOffset, myParameter, myContains);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myTimestamp, myTotal, myOffset, myParameter, myContains);
}
/**
* Gets the value(s) for identifier ().
* 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 UriDt getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new UriDt();
}
return myIdentifier;
}
/**
* Gets the value(s) for identifier ().
* creating it if it does
* not exist. This method may 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 String getIdentifier() {
return getIdentifierElement().getValue();
}
/**
* Sets the value(s) for identifier ()
*
*
* 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(UriDt theValue) {
myIdentifier = theValue;
return this;
}
/**
* Sets the value for identifier ()
*
*
* 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 theUri) {
myIdentifier = new UriDt(theUri);
return this;
}
/**
* Gets the value(s) for timestamp ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The time at which the expansion was produced by the expanding system.
*
*/
public DateTimeDt getTimestampElement() {
if (myTimestamp == null) {
myTimestamp = new DateTimeDt();
}
return myTimestamp;
}
/**
* Gets the value(s) for timestamp ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The time at which the expansion was produced by the expanding system.
*
*/
public Date getTimestamp() {
return getTimestampElement().getValue();
}
/**
* Sets the value(s) for timestamp ()
*
*
* Definition:
* The time at which the expansion was produced by the expanding system.
*
*/
public Expansion setTimestamp(DateTimeDt theValue) {
myTimestamp = theValue;
return this;
}
/**
* Sets the value for timestamp ()
*
*
* Definition:
* The time at which the expansion was produced by the expanding system.
*
*/
public Expansion setTimestampWithSecondsPrecision( Date theDate) {
myTimestamp = new DateTimeDt(theDate);
return this;
}
/**
* Sets the value for timestamp ()
*
*
* Definition:
* The time at which the expansion was produced by the expanding system.
*
*/
public Expansion setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) {
myTimestamp = new DateTimeDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for total ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter
*
*/
public IntegerDt getTotalElement() {
if (myTotal == null) {
myTotal = new IntegerDt();
}
return myTotal;
}
/**
* Gets the value(s) for total ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter
*
*/
public Integer getTotal() {
return getTotalElement().getValue();
}
/**
* Sets the value(s) for total ()
*
*
* Definition:
* The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter
*
*/
public Expansion setTotal(IntegerDt theValue) {
myTotal = theValue;
return this;
}
/**
* Sets the value for total ()
*
*
* Definition:
* The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter
*
*/
public Expansion setTotal( int theInteger) {
myTotal = new IntegerDt(theInteger);
return this;
}
/**
* Gets the value(s) for offset ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present
*
*/
public IntegerDt getOffsetElement() {
if (myOffset == null) {
myOffset = new IntegerDt();
}
return myOffset;
}
/**
* Gets the value(s) for offset ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present
*
*/
public Integer getOffset() {
return getOffsetElement().getValue();
}
/**
* Sets the value(s) for offset ()
*
*
* Definition:
* If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present
*
*/
public Expansion setOffset(IntegerDt theValue) {
myOffset = theValue;
return this;
}
/**
* Sets the value for offset ()
*
*
* Definition:
* If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present
*
*/
public Expansion setOffset( int theInteger) {
myOffset = new IntegerDt(theInteger);
return this;
}
/**
* Gets the value(s) for parameter ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion
*
*/
public java.util.List getParameter() {
if (myParameter == null) {
myParameter = new java.util.ArrayList();
}
return myParameter;
}
/**
* Sets the value(s) for parameter ()
*
*
* Definition:
* A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion
*
*/
public Expansion setParameter(java.util.List theValue) {
myParameter = theValue;
return this;
}
/**
* Adds and returns a new value for parameter ()
*
*
* Definition:
* A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion
*
*/
public ExpansionParameter addParameter() {
ExpansionParameter newType = new ExpansionParameter();
getParameter().add(newType);
return newType;
}
/**
* Adds a given new value for parameter ()
*
*
* Definition:
* A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion
*
* @param theValue The parameter to add (must not be null
)
*/
public Expansion addParameter(ExpansionParameter theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getParameter().add(theValue);
return this;
}
/**
* Gets the first repetition for parameter (),
* creating it if it does not already exist.
*
*
* Definition:
* A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion
*
*/
public ExpansionParameter getParameterFirstRep() {
if (getParameter().isEmpty()) {
return addParameter();
}
return getParameter().get(0);
}
/**
* Gets the value(s) for contains ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The codes that are contained in the value set expansion
*
*/
public java.util.List getContains() {
if (myContains == null) {
myContains = new java.util.ArrayList();
}
return myContains;
}
/**
* Sets the value(s) for contains ()
*
*
* Definition:
* The codes that are contained in the value set expansion
*
*/
public Expansion setContains(java.util.List theValue) {
myContains = theValue;
return this;
}
/**
* Adds and returns a new value for contains ()
*
*
* Definition:
* The codes that are contained in the value set expansion
*
*/
public ExpansionContains addContains() {
ExpansionContains newType = new ExpansionContains();
getContains().add(newType);
return newType;
}
/**
* Adds a given new value for contains ()
*
*
* Definition:
* The codes that are contained in the value set expansion
*
* @param theValue The contains to add (must not be null
)
*/
public Expansion addContains(ExpansionContains theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getContains().add(theValue);
return this;
}
/**
* Gets the first repetition for contains (),
* creating it if it does not already exist.
*
*
* Definition:
* The codes that are contained in the value set expansion
*
*/
public ExpansionContains getContainsFirstRep() {
if (getContains().isEmpty()) {
return addContains();
}
return getContains().get(0);
}
}
/**
* Block class for child element: ValueSet.expansion.parameter ()
*
*
* Definition:
* A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion
*
*/
@Block()
public static class ExpansionParameter
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="name", type=StringDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The name of the parameter"
)
private StringDt myName;
@Child(name="value", order=1, min=0, max=1, summary=false, modifier=false, type={
StringDt.class,
BooleanDt.class,
IntegerDt.class,
DecimalDt.class,
UriDt.class,
CodeDt.class
})
@Description(
shortDefinition="",
formalDefinition="The value of the parameter"
)
private IDatatype myValue;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myValue);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myValue);
}
/**
* Gets the value(s) for name ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The name of the parameter
*
*/
public StringDt getNameElement() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Gets the value(s) for name ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The name of the parameter
*
*/
public String getName() {
return getNameElement().getValue();
}
/**
* Sets the value(s) for name ()
*
*
* Definition:
* The name of the parameter
*
*/
public ExpansionParameter setName(StringDt theValue) {
myName = theValue;
return this;
}
/**
* Sets the value for name ()
*
*
* Definition:
* The name of the parameter
*
*/
public ExpansionParameter setName( String theString) {
myName = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for value[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The value of the parameter
*
*/
public IDatatype getValue() {
return myValue;
}
/**
* Sets the value(s) for value[x] ()
*
*
* Definition:
* The value of the parameter
*
*/
public ExpansionParameter setValue(IDatatype theValue) {
myValue = theValue;
return this;
}
}
/**
* Block class for child element: ValueSet.expansion.contains ()
*
*
* Definition:
* The codes that are contained in the value set expansion
*
*/
@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="",
formalDefinition="An absolute URI which is the code system in which the code for this item in the expansion is defined"
)
private UriDt mySystem;
@Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value"
)
private BooleanDt myAbstract;
@Child(name="version", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence"
)
private StringDt myVersion;
@Child(name="code", type=CodeDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set"
)
private CodeDt myCode;
@Child(name="display", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The recommended display for this item in the expansion"
)
private StringDt myDisplay;
@Child(name="contains", type=ExpansionContains.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Other codes and entries contained under this entry in the hierarchy"
)
private java.util.List myContains;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myAbstract, myVersion, myCode, myDisplay, myContains);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myAbstract, myVersion, myCode, myDisplay, myContains);
}
/**
* Gets the value(s) for system ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An absolute URI which is the code system in which the code for this item in the expansion is defined
*
*/
public UriDt getSystemElement() {
if (mySystem == null) {
mySystem = new UriDt();
}
return mySystem;
}
/**
* Gets the value(s) for system ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* An absolute URI which is the code system in which the code for this item in the expansion is defined
*
*/
public String getSystem() {
return getSystemElement().getValue();
}
/**
* Sets the value(s) for system ()
*
*
* Definition:
* An absolute URI which is the code system in which the code for this item in the expansion is defined
*
*/
public ExpansionContains setSystem(UriDt theValue) {
mySystem = theValue;
return this;
}
/**
* Sets the value for system ()
*
*
* Definition:
* An absolute URI which is the code system in which the code for this item in the expansion is defined
*
*/
public ExpansionContains setSystem( String theUri) {
mySystem = new UriDt(theUri);
return this;
}
/**
* Gets the value(s) for abstract ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value
*
*/
public BooleanDt getAbstractElement() {
if (myAbstract == null) {
myAbstract = new BooleanDt();
}
return myAbstract;
}
/**
* Gets the value(s) for abstract ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value
*
*/
public Boolean getAbstract() {
return getAbstractElement().getValue();
}
/**
* Sets the value(s) for abstract ()
*
*
* Definition:
* If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value
*
*/
public ExpansionContains setAbstract(BooleanDt theValue) {
myAbstract = theValue;
return this;
}
/**
* Sets the value for abstract ()
*
*
* Definition:
* If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value
*
*/
public ExpansionContains setAbstract( boolean theBoolean) {
myAbstract = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for version ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence
*
*/
public StringDt getVersionElement() {
if (myVersion == null) {
myVersion = new StringDt();
}
return myVersion;
}
/**
* Gets the value(s) for version ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence
*
*/
public String getVersion() {
return getVersionElement().getValue();
}
/**
* Sets the value(s) for version ()
*
*
* Definition:
* The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence
*
*/
public ExpansionContains setVersion(StringDt theValue) {
myVersion = theValue;
return this;
}
/**
* Sets the value for version ()
*
*
* Definition:
* The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence
*
*/
public ExpansionContains setVersion( String theString) {
myVersion = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set
*
*/
public CodeDt getCodeElement() {
if (myCode == null) {
myCode = new CodeDt();
}
return myCode;
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set
*
*/
public String getCode() {
return getCodeElement().getValue();
}
/**
* Sets the value(s) for code ()
*
*
* Definition:
* The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set
*
*/
public ExpansionContains setCode(CodeDt theValue) {
myCode = theValue;
return this;
}
/**
* Sets the value for code ()
*
*
* Definition:
* The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set
*
*/
public ExpansionContains setCode( String theCode) {
myCode = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for display ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The recommended display for this item in the expansion
*
*/
public StringDt getDisplayElement() {
if (myDisplay == null) {
myDisplay = new StringDt();
}
return myDisplay;
}
/**
* Gets the value(s) for display ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The recommended display for this item in the expansion
*
*/
public String getDisplay() {
return getDisplayElement().getValue();
}
/**
* Sets the value(s) for display ()
*
*
* Definition:
* The recommended display for this item in the expansion
*
*/
public ExpansionContains setDisplay(StringDt theValue) {
myDisplay = theValue;
return this;
}
/**
* Sets the value for display ()
*
*
* Definition:
* The recommended display for this item in the expansion
*
*/
public ExpansionContains setDisplay( String theString) {
myDisplay = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for contains ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Other codes and entries contained under this entry in the hierarchy
*
*/
public java.util.List getContains() {
if (myContains == null) {
myContains = new java.util.ArrayList();
}
return myContains;
}
/**
* Sets the value(s) for contains ()
*
*
* Definition:
* Other codes and entries contained under this entry in the hierarchy
*
*/
public ExpansionContains setContains(java.util.List theValue) {
myContains = theValue;
return this;
}
/**
* Adds and returns a new value for contains ()
*
*
* Definition:
* Other codes and entries contained under this entry in the hierarchy
*
*/
public ExpansionContains addContains() {
ExpansionContains newType = new ExpansionContains();
getContains().add(newType);
return newType;
}
/**
* Adds a given new value for contains ()
*
*
* Definition:
* Other codes and entries contained under this entry in the hierarchy
*
* @param theValue The contains to add (must not be null
)
*/
public ExpansionContains addContains(ExpansionContains theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getContains().add(theValue);
return this;
}
/**
* Gets the first repetition for contains (),
* creating it if it does not already exist.
*
*
* Definition:
* Other codes and entries contained under this entry in the hierarchy
*
*/
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.DSTU2;
}
}