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

ca.uhn.fhir.model.dstu2.resource.StructureDefinition Maven / Gradle / Ivy

The newest version!
















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 StructureDefinition Resource
 * (conformance.content)
 *
 * 

* Definition: * A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions, and constraints on resources and data types. *

* *

* Requirements: * *

* *

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

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

* Description:
* Type: uri
* Path: StructureDefinition.url
*

*/ @SearchParamDefinition(name="url", path="StructureDefinition.url", description="", type="uri" ) public static final String SP_URL = "url"; /** * Fluent Client search parameter constant for url *

* Description:
* Type: uri
* Path: StructureDefinition.url
*

*/ public static final UriClientParam URL = new UriClientParam(SP_URL); /** * Search parameter constant for identifier *

* Description: The identifier of the profile
* Type: token
* Path: StructureDefinition.identifier
*

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

* Description: The identifier of the profile
* Type: token
* Path: StructureDefinition.identifier
*

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

* Description: The version identifier of the profile
* Type: token
* Path: StructureDefinition.version
*

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

* Description: The version identifier of the profile
* Type: token
* Path: StructureDefinition.version
*

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

* Description: Name of the profile
* Type: string
* Path: StructureDefinition.name
*

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

* Description: Name of the profile
* Type: string
* Path: StructureDefinition.name
*

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

* Description: Name of the publisher of the profile
* Type: string
* Path: StructureDefinition.publisher
*

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

* Description: Name of the publisher of the profile
* Type: string
* Path: StructureDefinition.publisher
*

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

* Description: Text search in the description of the profile
* Type: string
* Path: StructureDefinition.description
*

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

* Description: Text search in the description of the profile
* Type: string
* Path: StructureDefinition.description
*

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

* Description: The current status of the profile
* Type: token
* Path: StructureDefinition.status
*

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

* Description: The current status of the profile
* Type: token
* Path: StructureDefinition.status
*

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

* Description: The profile publication date
* Type: date
* Path: StructureDefinition.date
*

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

* Description: The profile publication date
* Type: date
* Path: StructureDefinition.date
*

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

* Description: A code for the profile
* Type: token
* Path: StructureDefinition.code
*

*/ @SearchParamDefinition(name="code", path="StructureDefinition.code", description="A code for the profile", type="token" ) public static final String SP_CODE = "code"; /** * Fluent Client search parameter constant for code *

* Description: A code for the profile
* Type: token
* Path: StructureDefinition.code
*

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

* Description: A vocabulary binding reference
* Type: reference
* Path: StructureDefinition.snapshot.element.binding.valueSet[x]
*

*/ @SearchParamDefinition(name="valueset", path="StructureDefinition.snapshot.element.binding.valueSet[x]", description="A vocabulary binding reference", type="reference" ) public static final String SP_VALUESET = "valueset"; /** * Fluent Client search parameter constant for valueset *

* Description: A vocabulary binding reference
* Type: reference
* Path: StructureDefinition.snapshot.element.binding.valueSet[x]
*

*/ public static final ReferenceClientParam VALUESET = new ReferenceClientParam(SP_VALUESET); /** * Search parameter constant for type *

* Description:
* Type: token
* Path: StructureDefinition.constrainedType
*

*/ @SearchParamDefinition(name="type", path="StructureDefinition.constrainedType", description="", type="token" ) public static final String SP_TYPE = "type"; /** * Fluent Client search parameter constant for type *

* Description:
* Type: token
* Path: StructureDefinition.constrainedType
*

*/ public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); /** * Search parameter constant for kind *

* Description:
* Type: token
* Path: StructureDefinition.kind
*

*/ @SearchParamDefinition(name="kind", path="StructureDefinition.kind", description="", type="token" ) public static final String SP_KIND = "kind"; /** * Fluent Client search parameter constant for kind *

* Description:
* Type: token
* Path: StructureDefinition.kind
*

*/ public static final TokenClientParam KIND = new TokenClientParam(SP_KIND); /** * Search parameter constant for path *

* Description: A path that is constrained in the profile
* Type: token
* Path: StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path
*

*/ @SearchParamDefinition(name="path", path="StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path ", description="A path that is constrained in the profile", type="token" ) public static final String SP_PATH = "path"; /** * Fluent Client search parameter constant for path *

* Description: A path that is constrained in the profile
* Type: token
* Path: StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path
*

*/ public static final TokenClientParam PATH = new TokenClientParam(SP_PATH); /** * Search parameter constant for context *

* Description: A use context assigned to the structure
* Type: token
* Path: StructureDefinition.useContext
*

*/ @SearchParamDefinition(name="context", path="StructureDefinition.useContext", description="A use context assigned to the structure", type="token" ) public static final String SP_CONTEXT = "context"; /** * Fluent Client search parameter constant for context *

* Description: A use context assigned to the structure
* Type: token
* Path: StructureDefinition.useContext
*

*/ public static final TokenClientParam CONTEXT = new TokenClientParam(SP_CONTEXT); /** * Search parameter constant for display *

* Description:
* Type: string
* Path: StructureDefinition.display
*

*/ @SearchParamDefinition(name="display", path="StructureDefinition.display", description="", type="string" ) public static final String SP_DISPLAY = "display"; /** * Fluent Client search parameter constant for display *

* Description:
* Type: string
* Path: StructureDefinition.display
*

*/ public static final StringClientParam DISPLAY = new StringClientParam(SP_DISPLAY); /** * Search parameter constant for experimental *

* Description:
* Type: token
* Path: StructureDefinition.experimental
*

*/ @SearchParamDefinition(name="experimental", path="StructureDefinition.experimental", description="", type="token" ) public static final String SP_EXPERIMENTAL = "experimental"; /** * Fluent Client search parameter constant for experimental *

* Description:
* Type: token
* Path: StructureDefinition.experimental
*

*/ public static final TokenClientParam EXPERIMENTAL = new TokenClientParam(SP_EXPERIMENTAL); /** * Search parameter constant for abstract *

* Description:
* Type: token
* Path: StructureDefinition.abstract
*

*/ @SearchParamDefinition(name="abstract", path="StructureDefinition.abstract", description="", type="token" ) public static final String SP_ABSTRACT = "abstract"; /** * Fluent Client search parameter constant for abstract *

* Description:
* Type: token
* Path: StructureDefinition.abstract
*

*/ public static final TokenClientParam ABSTRACT = new TokenClientParam(SP_ABSTRACT); /** * Search parameter constant for context-type *

* Description:
* Type: token
* Path: StructureDefinition.contextType
*

*/ @SearchParamDefinition(name="context-type", path="StructureDefinition.contextType", description="", type="token" ) public static final String SP_CONTEXT_TYPE = "context-type"; /** * Fluent Client search parameter constant for context-type *

* Description:
* Type: token
* Path: StructureDefinition.contextType
*

*/ public static final TokenClientParam CONTEXT_TYPE = new TokenClientParam(SP_CONTEXT_TYPE); /** * Search parameter constant for ext-context *

* Description:
* Type: string
* Path: StructureDefinition.context
*

*/ @SearchParamDefinition(name="ext-context", path="StructureDefinition.context", description="", type="string" ) public static final String SP_EXT_CONTEXT = "ext-context"; /** * Fluent Client search parameter constant for ext-context *

* Description:
* Type: string
* Path: StructureDefinition.context
*

*/ public static final StringClientParam EXT_CONTEXT = new StringClientParam(SP_EXT_CONTEXT); /** * Search parameter constant for base *

* Description:
* Type: uri
* Path: StructureDefinition.base
*

*/ @SearchParamDefinition(name="base", path="StructureDefinition.base", description="", type="uri" ) public static final String SP_BASE = "base"; /** * Fluent Client search parameter constant for base *

* Description:
* Type: uri
* Path: StructureDefinition.base
*

*/ public static final UriClientParam BASE = new UriClientParam(SP_BASE); /** * Search parameter constant for base-path *

* Description:
* Type: token
* Path: StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path
*

*/ @SearchParamDefinition(name="base-path", path="StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path ", description="", type="token" ) public static final String SP_BASE_PATH = "base-path"; /** * Fluent Client search parameter constant for base-path *

* Description:
* Type: token
* Path: StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path
*

*/ public static final TokenClientParam BASE_PATH = new TokenClientParam(SP_BASE_PATH); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "StructureDefinition:valueset". */ public static final Include INCLUDE_VALUESET = new Include("StructureDefinition:valueset"); @Child(name="url", type=UriDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="id", formalDefinition="An absolute URL that is used to identify this structure definition 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 structure definition is (or will be) published" ) private UriDt myUrl; @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="id", formalDefinition="Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI)" ) private java.util.List myIdentifier; @Child(name="version", type=StringDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="id.version", formalDefinition="The identifier that is used to identify this version of the StructureDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the StructureDefinition author manually" ) private StringDt myVersion; @Child(name="name", type=StringDt.class, order=3, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A free text natural language name identifying the StructureDefinition" ) private StringDt myName; @Child(name="display", type=StringDt.class, order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Defined so that applications can use this name when displaying the value of the extension to the user" ) private StringDt myDisplay; @Child(name="status", type=CodeDt.class, order=5, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="status", formalDefinition="The status of the StructureDefinition" ) @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=6, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="class", formalDefinition="This StructureDefinition 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=7, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="who.witness", formalDefinition="The name of the individual or organization that published the structure definition" ) private StringDt myPublisher; @Child(name="contact", order=8, 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=9, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="when.recorded", formalDefinition="The date this version of the structure definition was published. 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 structure definition changes" ) private DateTimeDt myDate; @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 StructureDefinition and its use" ) 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 structure definitions." ) private java.util.List myUseContext; @Child(name="requirements", type=StringDt.class, order=12, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="why", formalDefinition="Explains why this structure definition is needed and why it's been constrained as it has" ) private StringDt myRequirements; @Child(name="copyright", type=StringDt.class, order=13, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings" ) private StringDt myCopyright; @Child(name="code", type=CodingDt.class, order=14, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." ) private java.util.List myCode; @Child(name="fhirVersion", type=IdDt.class, order=15, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version" ) private IdDt myFhirVersion; @Child(name="mapping", order=16, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An external specification that the content is mapped to" ) private java.util.List myMapping; @Child(name="kind", type=CodeDt.class, order=17, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Defines the kind of structure that this definition is describing" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/structure-definition-kind") private BoundCodeDt myKind; @Child(name="constrainedType", type=CodeDt.class, order=18, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The type of type that is being constrained - a data type, an extension, a resource, including abstract ones. If this field is present, it indicates that the structure definition is a constraint. If it is not present, then the structure definition is the definition of a base structure" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/defined-types") private CodeDt myConstrainedType; @Child(name="abstract", type=BooleanDt.class, order=19, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Whether structure this definition describes is abstract or not - that is, whether an actual exchanged item can ever be of this type" ) private BooleanDt myAbstract; @Child(name="contextType", type=CodeDt.class, order=20, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="If this is an extension, Identifies the context within FHIR resources where the extension can be used" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/extension-context") private BoundCodeDt myContextType; @Child(name="context", type=StringDt.class, order=21, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies the types of resource or data type elements to which the extension can be applied" ) private java.util.List myContext; @Child(name="base", type=UriDt.class, order=22, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="An absolute URI that is the base structure from which this set of constraints is derived" ) private UriDt myBase; @Child(name="snapshot", order=23, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base StructureDefinition" ) private Snapshot mySnapshot; @Child(name="differential", order=24, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A differential view is expressed relative to the base StructureDefinition - a statement of differences that it applies" ) private Differential myDifferential; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUrl, myIdentifier, myVersion, myName, myDisplay, myStatus, myExperimental, myPublisher, myContact, myDate, myDescription, myUseContext, myRequirements, myCopyright, myCode, myFhirVersion, myMapping, myKind, myConstrainedType, myAbstract, myContextType, myContext, myBase, mySnapshot, myDifferential); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUrl, myIdentifier, myVersion, myName, myDisplay, myStatus, myExperimental, myPublisher, myContact, myDate, myDescription, myUseContext, myRequirements, myCopyright, myCode, myFhirVersion, myMapping, myKind, myConstrainedType, myAbstract, myContextType, myContext, myBase, mySnapshot, myDifferential); } /** * 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 structure definition 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 structure definition 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 structure definition 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 structure definition 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 structure definition 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 structure definition is (or will be) published *

*/ public StructureDefinition setUrl(UriDt theValue) { myUrl = theValue; return this; } /** * Sets the value for url (id) * *

* Definition: * An absolute URL that is used to identify this structure definition 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 structure definition is (or will be) published *

*/ public StructureDefinition 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 StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) *

*/ public java.util.List getIdentifier() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Sets the value(s) for identifier (id) * *

* Definition: * Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) *

*/ public StructureDefinition setIdentifier(java.util.List theValue) { myIdentifier = theValue; return this; } /** * Adds and returns a new value for identifier (id) * *

* Definition: * Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) *

*/ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; } /** * Adds a given new value for identifier (id) * *

* Definition: * Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) *

* @param theValue The identifier to add (must not be null) */ public StructureDefinition addIdentifier(IdentifierDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getIdentifier().add(theValue); return this; } /** * Gets the first repetition for identifier (id), * creating it if it does not already exist. * *

* Definition: * Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) *

*/ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Gets the value(s) for version (id.version). * creating it if it does * not exist. Will not return null. * *

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

*/ 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: * The identifier that is used to identify this version of the StructureDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the StructureDefinition author manually *

*/ public String getVersion() { return getVersionElement().getValue(); } /** * Sets the value(s) for version (id.version) * *

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

*/ public StructureDefinition setVersion(StringDt theValue) { myVersion = theValue; return this; } /** * Sets the value for version (id.version) * *

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

*/ public StructureDefinition 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 identifying the StructureDefinition *

*/ 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 identifying the StructureDefinition *

*/ public String getName() { return getNameElement().getValue(); } /** * Sets the value(s) for name () * *

* Definition: * A free text natural language name identifying the StructureDefinition *

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

* Definition: * A free text natural language name identifying the StructureDefinition *

*/ public StructureDefinition setName( String theString) { myName = new StringDt(theString); return this; } /** * Gets the value(s) for display (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Defined so that applications can use this name when displaying the value of the extension to the 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: * Defined so that applications can use this name when displaying the value of the extension to the user *

*/ public String getDisplay() { return getDisplayElement().getValue(); } /** * Sets the value(s) for display () * *

* Definition: * Defined so that applications can use this name when displaying the value of the extension to the user *

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

* Definition: * Defined so that applications can use this name when displaying the value of the extension to the user *

*/ public StructureDefinition setDisplay( String theString) { myDisplay = 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 StructureDefinition *

*/ 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 StructureDefinition *

*/ public String getStatus() { return getStatusElement().getValue(); } /** * Sets the value(s) for status (status) * *

* Definition: * The status of the StructureDefinition *

*/ public StructureDefinition setStatus(BoundCodeDt theValue) { myStatus = theValue; return this; } /** * Sets the value(s) for status (status) * *

* Definition: * The status of the StructureDefinition *

*/ public StructureDefinition 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 StructureDefinition 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 StructureDefinition 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 StructureDefinition was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage *

*/ public StructureDefinition setExperimental(BooleanDt theValue) { myExperimental = theValue; return this; } /** * Sets the value for experimental (class) * *

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

*/ public StructureDefinition 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 structure definition *

*/ 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 structure definition *

*/ 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 structure definition *

*/ public StructureDefinition 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 structure definition *

*/ public StructureDefinition 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 StructureDefinition 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 StructureDefinition 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 this version of the structure definition was published. 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 structure definition changes *

*/ 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 this version of the structure definition was published. 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 structure definition changes *

*/ public Date getDate() { return getDateElement().getValue(); } /** * Sets the value(s) for date (when.recorded) * *

* Definition: * The date this version of the structure definition was published. 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 structure definition changes *

*/ public StructureDefinition setDate(DateTimeDt theValue) { myDate = theValue; return this; } /** * Sets the value for date (when.recorded) * *

* Definition: * The date this version of the structure definition was published. 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 structure definition changes *

*/ public StructureDefinition setDateWithSecondsPrecision( Date theDate) { myDate = new DateTimeDt(theDate); return this; } /** * Sets the value for date (when.recorded) * *

* Definition: * The date this version of the structure definition was published. 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 structure definition changes *

*/ public StructureDefinition setDate( Date theDate, TemporalPrecisionEnum thePrecision) { myDate = new DateTimeDt(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 StructureDefinition and its use *

*/ 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 StructureDefinition and its use *

*/ public String getDescription() { return getDescriptionElement().getValue(); } /** * Sets the value(s) for description () * *

* Definition: * A free text natural language description of the StructureDefinition and its use *

*/ public StructureDefinition setDescription(StringDt theValue) { myDescription = theValue; return this; } /** * Sets the value for description () * *

* Definition: * A free text natural language description of the StructureDefinition and its use *

*/ public StructureDefinition 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 structure 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 structure definitions. *

*/ public StructureDefinition 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 structure 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 structure definitions. *

* @param theValue The useContext to add (must not be null) */ public StructureDefinition 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 structure definitions. *

*/ public CodeableConceptDt getUseContextFirstRep() { if (getUseContext().isEmpty()) { return addUseContext(); } return getUseContext().get(0); } /** * Gets the value(s) for requirements (why). * creating it if it does * not exist. Will not return null. * *

* Definition: * Explains why this structure definition is needed and why it's been constrained as it has *

*/ public StringDt getRequirementsElement() { if (myRequirements == null) { myRequirements = new StringDt(); } return myRequirements; } /** * Gets the value(s) for requirements (why). * creating it if it does * not exist. This method may return null. * *

* Definition: * Explains why this structure definition is needed and why it's been constrained as it has *

*/ public String getRequirements() { return getRequirementsElement().getValue(); } /** * Sets the value(s) for requirements (why) * *

* Definition: * Explains why this structure definition is needed and why it's been constrained as it has *

*/ public StructureDefinition setRequirements(StringDt theValue) { myRequirements = theValue; return this; } /** * Sets the value for requirements (why) * *

* Definition: * Explains why this structure definition is needed and why it's been constrained as it has *

*/ public StructureDefinition 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 structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings *

*/ 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 structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings *

*/ public String getCopyright() { return getCopyrightElement().getValue(); } /** * Sets the value(s) for copyright () * *

* Definition: * A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings *

*/ public StructureDefinition setCopyright(StringDt theValue) { myCopyright = theValue; return this; } /** * Sets the value for copyright () * *

* Definition: * A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings *

*/ public StructureDefinition setCopyright( String theString) { myCopyright = new StringDt(theString); return this; } /** * Gets the value(s) for code (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. *

*/ public java.util.List getCode() { if (myCode == null) { myCode = new java.util.ArrayList(); } return myCode; } /** * Sets the value(s) for code () * *

* Definition: * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. *

*/ public StructureDefinition setCode(java.util.List theValue) { myCode = theValue; return this; } /** * Adds and returns a new value for code () * *

* Definition: * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. *

*/ public CodingDt addCode() { CodingDt newType = new CodingDt(); getCode().add(newType); return newType; } /** * Adds a given new value for code () * *

* Definition: * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. *

* @param theValue The code to add (must not be null) */ public StructureDefinition addCode(CodingDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getCode().add(theValue); return this; } /** * Gets the first repetition for code (), * creating it if it does not already exist. * *

* Definition: * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. *

*/ public CodingDt getCodeFirstRep() { if (getCode().isEmpty()) { return addCode(); } return getCode().get(0); } /** * Gets the value(s) for fhirVersion (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version *

*/ public IdDt getFhirVersionElement() { if (myFhirVersion == null) { myFhirVersion = new IdDt(); } return myFhirVersion; } /** * Gets the value(s) for fhirVersion (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version *

*/ public String getFhirVersion() { return getFhirVersionElement().getValue(); } /** * Sets the value(s) for fhirVersion () * *

* Definition: * The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version *

*/ public StructureDefinition setFhirVersion(IdDt theValue) { myFhirVersion = theValue; return this; } /** * Sets the value for fhirVersion () * *

* Definition: * The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version *

*/ public StructureDefinition setFhirVersion( String theId) { myFhirVersion = new IdDt(theId); return this; } /** * Gets the value(s) for mapping (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An external specification that the content is mapped to *

*/ public java.util.List getMapping() { if (myMapping == null) { myMapping = new java.util.ArrayList(); } return myMapping; } /** * Sets the value(s) for mapping () * *

* Definition: * An external specification that the content is mapped to *

*/ public StructureDefinition setMapping(java.util.List theValue) { myMapping = theValue; return this; } /** * Adds and returns a new value for mapping () * *

* Definition: * An external specification that the content is mapped to *

*/ public Mapping addMapping() { Mapping newType = new Mapping(); getMapping().add(newType); return newType; } /** * Adds a given new value for mapping () * *

* Definition: * An external specification that the content is mapped to *

* @param theValue The mapping to add (must not be null) */ public StructureDefinition addMapping(Mapping theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getMapping().add(theValue); return this; } /** * Gets the first repetition for mapping (), * creating it if it does not already exist. * *

* Definition: * An external specification that the content is mapped to *

*/ public Mapping getMappingFirstRep() { if (getMapping().isEmpty()) { return addMapping(); } return getMapping().get(0); } /** * Gets the value(s) for kind (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Defines the kind of structure that this definition is describing *

*/ public BoundCodeDt getKindElement() { if (myKind == null) { myKind = new BoundCodeDt(StructureDefinitionKindEnum.VALUESET_BINDER); } return myKind; } /** * Gets the value(s) for kind (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Defines the kind of structure that this definition is describing *

*/ public String getKind() { return getKindElement().getValue(); } /** * Sets the value(s) for kind () * *

* Definition: * Defines the kind of structure that this definition is describing *

*/ public StructureDefinition setKind(BoundCodeDt theValue) { myKind = theValue; return this; } /** * Sets the value(s) for kind () * *

* Definition: * Defines the kind of structure that this definition is describing *

*/ public StructureDefinition setKind(StructureDefinitionKindEnum theValue) { setKind(new BoundCodeDt(StructureDefinitionKindEnum.VALUESET_BINDER, theValue)); /* getKindElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for constrainedType (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of type that is being constrained - a data type, an extension, a resource, including abstract ones. If this field is present, it indicates that the structure definition is a constraint. If it is not present, then the structure definition is the definition of a base structure *

*/ public CodeDt getConstrainedTypeElement() { if (myConstrainedType == null) { myConstrainedType = new CodeDt(); } return myConstrainedType; } /** * Gets the value(s) for constrainedType (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The type of type that is being constrained - a data type, an extension, a resource, including abstract ones. If this field is present, it indicates that the structure definition is a constraint. If it is not present, then the structure definition is the definition of a base structure *

*/ public String getConstrainedType() { return getConstrainedTypeElement().getValue(); } /** * Sets the value(s) for constrainedType () * *

* Definition: * The type of type that is being constrained - a data type, an extension, a resource, including abstract ones. If this field is present, it indicates that the structure definition is a constraint. If it is not present, then the structure definition is the definition of a base structure *

*/ public StructureDefinition setConstrainedType(CodeDt theValue) { myConstrainedType = theValue; return this; } /** * Sets the value for constrainedType () * *

* Definition: * The type of type that is being constrained - a data type, an extension, a resource, including abstract ones. If this field is present, it indicates that the structure definition is a constraint. If it is not present, then the structure definition is the definition of a base structure *

*/ public StructureDefinition setConstrainedType( String theCode) { myConstrainedType = new CodeDt(theCode); return this; } /** * Gets the value(s) for abstract (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Whether structure this definition describes is abstract or not - that is, whether an actual exchanged item can ever be of this type *

*/ 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: * Whether structure this definition describes is abstract or not - that is, whether an actual exchanged item can ever be of this type *

*/ public Boolean getAbstract() { return getAbstractElement().getValue(); } /** * Sets the value(s) for abstract () * *

* Definition: * Whether structure this definition describes is abstract or not - that is, whether an actual exchanged item can ever be of this type *

*/ public StructureDefinition setAbstract(BooleanDt theValue) { myAbstract = theValue; return this; } /** * Sets the value for abstract () * *

* Definition: * Whether structure this definition describes is abstract or not - that is, whether an actual exchanged item can ever be of this type *

*/ public StructureDefinition setAbstract( boolean theBoolean) { myAbstract = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for contextType (). * creating it if it does * not exist. Will not return null. * *

* Definition: * If this is an extension, Identifies the context within FHIR resources where the extension can be used *

*/ public BoundCodeDt getContextTypeElement() { if (myContextType == null) { myContextType = new BoundCodeDt(ExtensionContextEnum.VALUESET_BINDER); } return myContextType; } /** * Gets the value(s) for contextType (). * creating it if it does * not exist. This method may return null. * *

* Definition: * If this is an extension, Identifies the context within FHIR resources where the extension can be used *

*/ public String getContextType() { return getContextTypeElement().getValue(); } /** * Sets the value(s) for contextType () * *

* Definition: * If this is an extension, Identifies the context within FHIR resources where the extension can be used *

*/ public StructureDefinition setContextType(BoundCodeDt theValue) { myContextType = theValue; return this; } /** * Sets the value(s) for contextType () * *

* Definition: * If this is an extension, Identifies the context within FHIR resources where the extension can be used *

*/ public StructureDefinition setContextType(ExtensionContextEnum theValue) { setContextType(new BoundCodeDt(ExtensionContextEnum.VALUESET_BINDER, theValue)); /* getContextTypeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for context (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the types of resource or data type elements to which the extension can be applied *

*/ public java.util.List getContext() { if (myContext == null) { myContext = new java.util.ArrayList(); } return myContext; } /** * Sets the value(s) for context () * *

* Definition: * Identifies the types of resource or data type elements to which the extension can be applied *

*/ public StructureDefinition setContext(java.util.List theValue) { myContext = theValue; return this; } /** * Adds and returns a new value for context () * *

* Definition: * Identifies the types of resource or data type elements to which the extension can be applied *

*/ public StringDt addContext() { StringDt newType = new StringDt(); getContext().add(newType); return newType; } /** * Adds a given new value for context () * *

* Definition: * Identifies the types of resource or data type elements to which the extension can be applied *

* @param theValue The context to add (must not be null) */ public StructureDefinition addContext(StringDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getContext().add(theValue); return this; } /** * Gets the first repetition for context (), * creating it if it does not already exist. * *

* Definition: * Identifies the types of resource or data type elements to which the extension can be applied *

*/ public StringDt getContextFirstRep() { if (getContext().isEmpty()) { return addContext(); } return getContext().get(0); } /** * Adds a new value for context () * *

* Definition: * Identifies the types of resource or data type elements to which the extension can be applied *

* * @return Returns a reference to this object, to allow for simple chaining. */ public StructureDefinition addContext( String theString) { if (myContext == null) { myContext = new java.util.ArrayList(); } myContext.add(new StringDt(theString)); return this; } /** * Gets the value(s) for base (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An absolute URI that is the base structure from which this set of constraints is derived *

*/ public UriDt getBaseElement() { if (myBase == null) { myBase = new UriDt(); } return myBase; } /** * Gets the value(s) for base (). * creating it if it does * not exist. This method may return null. * *

* Definition: * An absolute URI that is the base structure from which this set of constraints is derived *

*/ public String getBase() { return getBaseElement().getValue(); } /** * Sets the value(s) for base () * *

* Definition: * An absolute URI that is the base structure from which this set of constraints is derived *

*/ public StructureDefinition setBase(UriDt theValue) { myBase = theValue; return this; } /** * Sets the value for base () * *

* Definition: * An absolute URI that is the base structure from which this set of constraints is derived *

*/ public StructureDefinition setBase( String theUri) { myBase = new UriDt(theUri); return this; } /** * Gets the value(s) for snapshot (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base StructureDefinition *

*/ public Snapshot getSnapshot() { if (mySnapshot == null) { mySnapshot = new Snapshot(); } return mySnapshot; } /** * Sets the value(s) for snapshot () * *

* Definition: * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base StructureDefinition *

*/ public StructureDefinition setSnapshot(Snapshot theValue) { mySnapshot = theValue; return this; } /** * Gets the value(s) for differential (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A differential view is expressed relative to the base StructureDefinition - a statement of differences that it applies *

*/ public Differential getDifferential() { if (myDifferential == null) { myDifferential = new Differential(); } return myDifferential; } /** * Sets the value(s) for differential () * *

* Definition: * A differential view is expressed relative to the base StructureDefinition - a statement of differences that it applies *

*/ public StructureDefinition setDifferential(Differential theValue) { myDifferential = theValue; return this; } /** * Block class for child element: StructureDefinition.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 structure definition" ) 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 structure definition *

*/ 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 structure definition *

*/ public String getName() { return getNameElement().getValue(); } /** * Sets the value(s) for name () * *

* Definition: * The name of an individual to contact regarding the structure definition *

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

* Definition: * The name of an individual to contact regarding the structure definition *

*/ 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: StructureDefinition.mapping () * *

* Definition: * An external specification that the content is mapped to *

*/ @Block() public static class Mapping extends BaseIdentifiableElement implements IResourceBlock { @Child(name="identity", type=IdDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An Internal id that is used to identify this mapping set when specific mappings are made" ) private IdDt myIdentity; @Child(name="uri", type=UriDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An absolute URI that identifies the specification that this mapping is expressed to" ) private UriDt myUri; @Child(name="name", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A name for the specification that is being mapped to" ) private StringDt myName; @Child(name="comments", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage" ) private StringDt myComments; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myUri, myName, myComments); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myUri, myName, myComments); } /** * Gets the value(s) for identity (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An Internal id that is used to identify this mapping set when specific mappings are made *

*/ public IdDt getIdentityElement() { if (myIdentity == null) { myIdentity = new IdDt(); } return myIdentity; } /** * Gets the value(s) for identity (). * creating it if it does * not exist. This method may return null. * *

* Definition: * An Internal id that is used to identify this mapping set when specific mappings are made *

*/ public String getIdentity() { return getIdentityElement().getValue(); } /** * Sets the value(s) for identity () * *

* Definition: * An Internal id that is used to identify this mapping set when specific mappings are made *

*/ public Mapping setIdentity(IdDt theValue) { myIdentity = theValue; return this; } /** * Sets the value for identity () * *

* Definition: * An Internal id that is used to identify this mapping set when specific mappings are made *

*/ public Mapping setIdentity( String theId) { myIdentity = new IdDt(theId); return this; } /** * Gets the value(s) for uri (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An absolute URI that identifies the specification that this mapping is expressed to *

*/ public UriDt getUriElement() { if (myUri == null) { myUri = new UriDt(); } return myUri; } /** * Gets the value(s) for uri (). * creating it if it does * not exist. This method may return null. * *

* Definition: * An absolute URI that identifies the specification that this mapping is expressed to *

*/ public String getUri() { return getUriElement().getValue(); } /** * Sets the value(s) for uri () * *

* Definition: * An absolute URI that identifies the specification that this mapping is expressed to *

*/ public Mapping setUri(UriDt theValue) { myUri = theValue; return this; } /** * Sets the value for uri () * *

* Definition: * An absolute URI that identifies the specification that this mapping is expressed to *

*/ public Mapping setUri( String theUri) { myUri = new UriDt(theUri); return this; } /** * Gets the value(s) for name (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A name for the specification that is being mapped to *

*/ 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 name for the specification that is being mapped to *

*/ public String getName() { return getNameElement().getValue(); } /** * Sets the value(s) for name () * *

* Definition: * A name for the specification that is being mapped to *

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

* Definition: * A name for the specification that is being mapped to *

*/ public Mapping setName( String theString) { myName = new StringDt(theString); return this; } /** * Gets the value(s) for comments (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage *

*/ public StringDt getCommentsElement() { if (myComments == null) { myComments = new StringDt(); } return myComments; } /** * Gets the value(s) for comments (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage *

*/ public String getComments() { return getCommentsElement().getValue(); } /** * Sets the value(s) for comments () * *

* Definition: * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage *

*/ public Mapping setComments(StringDt theValue) { myComments = theValue; return this; } /** * Sets the value for comments () * *

* Definition: * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage *

*/ public Mapping setComments( String theString) { myComments = new StringDt(theString); return this; } } /** * Block class for child element: StructureDefinition.snapshot () * *

* Definition: * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base StructureDefinition *

*/ @Block() public static class Snapshot extends BaseIdentifiableElement implements IResourceBlock { @Child(name="element", type=ElementDefinitionDt.class, order=0, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Captures constraints on each element within the resource" ) private java.util.List myElement; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myElement); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myElement); } /** * Gets the value(s) for element (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Captures constraints on each element within the resource *

*/ public java.util.List getElement() { if (myElement == null) { myElement = new java.util.ArrayList(); } return myElement; } /** * Sets the value(s) for element () * *

* Definition: * Captures constraints on each element within the resource *

*/ public Snapshot setElement(java.util.List theValue) { myElement = theValue; return this; } /** * Adds and returns a new value for element () * *

* Definition: * Captures constraints on each element within the resource *

*/ public ElementDefinitionDt addElement() { ElementDefinitionDt newType = new ElementDefinitionDt(); getElement().add(newType); return newType; } /** * Adds a given new value for element () * *

* Definition: * Captures constraints on each element within the resource *

* @param theValue The element to add (must not be null) */ public Snapshot addElement(ElementDefinitionDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getElement().add(theValue); return this; } /** * Gets the first repetition for element (), * creating it if it does not already exist. * *

* Definition: * Captures constraints on each element within the resource *

*/ public ElementDefinitionDt getElementFirstRep() { if (getElement().isEmpty()) { return addElement(); } return getElement().get(0); } } /** * Block class for child element: StructureDefinition.differential () * *

* Definition: * A differential view is expressed relative to the base StructureDefinition - a statement of differences that it applies *

*/ @Block() public static class Differential extends BaseIdentifiableElement implements IResourceBlock { @Child(name="element", type=ElementDefinitionDt.class, order=0, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Captures constraints on each element within the resource" ) private java.util.List myElement; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myElement); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myElement); } /** * Gets the value(s) for element (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Captures constraints on each element within the resource *

*/ public java.util.List getElement() { if (myElement == null) { myElement = new java.util.ArrayList(); } return myElement; } /** * Sets the value(s) for element () * *

* Definition: * Captures constraints on each element within the resource *

*/ public Differential setElement(java.util.List theValue) { myElement = theValue; return this; } /** * Adds and returns a new value for element () * *

* Definition: * Captures constraints on each element within the resource *

*/ public ElementDefinitionDt addElement() { ElementDefinitionDt newType = new ElementDefinitionDt(); getElement().add(newType); return newType; } /** * Adds a given new value for element () * *

* Definition: * Captures constraints on each element within the resource *

* @param theValue The element to add (must not be null) */ public Differential addElement(ElementDefinitionDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getElement().add(theValue); return this; } /** * Gets the first repetition for element (), * creating it if it does not already exist. * *

* Definition: * Captures constraints on each element within the resource *

*/ public ElementDefinitionDt getElementFirstRep() { if (getElement().isEmpty()) { return addElement(); } return getElement().get(0); } } @Override public String getResourceName() { return "StructureDefinition"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy