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

ca.uhn.fhir.model.dstu2.resource.Conformance 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 Conformance Resource
 * ()
 *
 * 

* Definition: * A conformance statement is a set of capabilities of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation. *

* *

* Requirements: * *

* *

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

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

* Description: The uri that identifies the conformance statement
* Type: uri
* Path: Conformance.url
*

*/ @SearchParamDefinition(name="url", path="Conformance.url", description="The uri that identifies the conformance statement", type="uri" ) public static final String SP_URL = "url"; /** * Fluent Client search parameter constant for url *

* Description: The uri that identifies the conformance statement
* Type: uri
* Path: Conformance.url
*

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

* Description: The version identifier of the conformance statement
* Type: token
* Path: Conformance.version
*

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

* Description: The version identifier of the conformance statement
* Type: token
* Path: Conformance.version
*

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

* Description: Name of the conformance statement
* Type: string
* Path: Conformance.name
*

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

* Description: Name of the conformance statement
* Type: string
* Path: Conformance.name
*

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

* Description: Name of the publisher of the conformance statement
* Type: string
* Path: Conformance.publisher
*

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

* Description: Name of the publisher of the conformance statement
* Type: string
* Path: Conformance.publisher
*

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

* Description: Text search in the description of the conformance statement
* Type: string
* Path: Conformance.description
*

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

* Description: Text search in the description of the conformance statement
* Type: string
* Path: Conformance.description
*

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

* Description: The current status of the conformance statement
* Type: token
* Path: Conformance.status
*

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

* Description: The current status of the conformance statement
* Type: token
* Path: Conformance.status
*

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

* Description: The conformance statement publication date
* Type: date
* Path: Conformance.date
*

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

* Description: The conformance statement publication date
* Type: date
* Path: Conformance.date
*

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

* Description: Part of a the name of a software application
* Type: string
* Path: Conformance.software.name
*

*/ @SearchParamDefinition(name="software", path="Conformance.software.name", description="Part of a the name of a software application", type="string" ) public static final String SP_SOFTWARE = "software"; /** * Fluent Client search parameter constant for software *

* Description: Part of a the name of a software application
* Type: string
* Path: Conformance.software.name
*

*/ public static final StringClientParam SOFTWARE = new StringClientParam(SP_SOFTWARE); /** * Search parameter constant for fhirversion *

* Description: The version of FHIR
* Type: token
* Path: Conformance.version
*

*/ @SearchParamDefinition(name="fhirversion", path="Conformance.version", description="The version of FHIR", type="token" ) public static final String SP_FHIRVERSION = "fhirversion"; /** * Fluent Client search parameter constant for fhirversion *

* Description: The version of FHIR
* Type: token
* Path: Conformance.version
*

*/ public static final TokenClientParam FHIRVERSION = new TokenClientParam(SP_FHIRVERSION); /** * Search parameter constant for resource *

* Description: Name of a resource mentioned in a conformance statement
* Type: token
* Path: Conformance.rest.resource.type
*

*/ @SearchParamDefinition(name="resource", path="Conformance.rest.resource.type", description="Name of a resource mentioned in a conformance statement", type="token" ) public static final String SP_RESOURCE = "resource"; /** * Fluent Client search parameter constant for resource *

* Description: Name of a resource mentioned in a conformance statement
* Type: token
* Path: Conformance.rest.resource.type
*

*/ public static final TokenClientParam RESOURCE = new TokenClientParam(SP_RESOURCE); /** * Search parameter constant for event *

* Description: Event code in a conformance statement
* Type: token
* Path: Conformance.messaging.event.code
*

*/ @SearchParamDefinition(name="event", path="Conformance.messaging.event.code", description="Event code in a conformance statement", type="token" ) public static final String SP_EVENT = "event"; /** * Fluent Client search parameter constant for event *

* Description: Event code in a conformance statement
* Type: token
* Path: Conformance.messaging.event.code
*

*/ public static final TokenClientParam EVENT = new TokenClientParam(SP_EVENT); /** * Search parameter constant for mode *

* Description: Mode - restful (server/client) or messaging (sender/receiver)
* Type: token
* Path: Conformance.rest.mode
*

*/ @SearchParamDefinition(name="mode", path="Conformance.rest.mode", description="Mode - restful (server/client) or messaging (sender/receiver)", type="token" ) public static final String SP_MODE = "mode"; /** * Fluent Client search parameter constant for mode *

* Description: Mode - restful (server/client) or messaging (sender/receiver)
* Type: token
* Path: Conformance.rest.mode
*

*/ public static final TokenClientParam MODE = new TokenClientParam(SP_MODE); /** * Search parameter constant for profile *

* Description: A profile id invoked in a conformance statement
* Type: reference
* Path: Conformance.rest.resource.profile
*

*/ @SearchParamDefinition(name="profile", path="Conformance.rest.resource.profile", description="A profile id invoked in a conformance statement", type="reference" ) public static final String SP_PROFILE = "profile"; /** * Fluent Client search parameter constant for profile *

* Description: A profile id invoked in a conformance statement
* Type: reference
* Path: Conformance.rest.resource.profile
*

*/ public static final ReferenceClientParam PROFILE = new ReferenceClientParam(SP_PROFILE); /** * Search parameter constant for format *

* Description:
* Type: token
* Path: Conformance.format
*

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

* Description:
* Type: token
* Path: Conformance.format
*

*/ public static final TokenClientParam FORMAT = new TokenClientParam(SP_FORMAT); /** * Search parameter constant for security *

* Description:
* Type: token
* Path: Conformance.rest.security.service
*

*/ @SearchParamDefinition(name="security", path="Conformance.rest.security.service", description="", type="token" ) public static final String SP_SECURITY = "security"; /** * Fluent Client search parameter constant for security *

* Description:
* Type: token
* Path: Conformance.rest.security.service
*

*/ public static final TokenClientParam SECURITY = new TokenClientParam(SP_SECURITY); /** * Search parameter constant for supported-profile *

* Description:
* Type: reference
* Path: Conformance.profile
*

*/ @SearchParamDefinition(name="supported-profile", path="Conformance.profile", description="", type="reference" ) public static final String SP_SUPPORTED_PROFILE = "supported-profile"; /** * Fluent Client search parameter constant for supported-profile *

* Description:
* Type: reference
* Path: Conformance.profile
*

*/ public static final ReferenceClientParam SUPPORTED_PROFILE = new ReferenceClientParam(SP_SUPPORTED_PROFILE); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Conformance:profile". */ public static final Include INCLUDE_PROFILE = new Include("Conformance:profile"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Conformance:supported-profile". */ public static final Include INCLUDE_SUPPORTED_PROFILE = new Include("Conformance:supported-profile"); @Child(name="url", type=UriDt.class, order=0, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="An absolute URL that is used to identify this conformance statement 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 conformance statement is (or will be) published" ) private UriDt myUrl; @Child(name="version", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" ) private StringDt myVersion; @Child(name="name", type=StringDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A free text natural language name identifying the conformance statement" ) private StringDt myName; @Child(name="status", type=CodeDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The status of this conformance statement" ) @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=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A flag to indicate that this conformance statement is 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=5, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The name of the individual or organization that published the conformance" ) private StringDt myPublisher; @Child(name="contact", order=6, 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=7, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The date (and optionally time) when the conformance statement 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 conformance statement changes" ) private DateTimeDt myDate; @Child(name="description", type=StringDt.class, order=8, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A free text natural language description of the conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP" ) private StringDt myDescription; @Child(name="requirements", type=StringDt.class, order=9, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Explains why this conformance statement is needed and why it's been constrained as it has" ) private StringDt myRequirements; @Child(name="copyright", type=StringDt.class, order=10, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A copyright statement relating to the conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement" ) private StringDt myCopyright; @Child(name="kind", type=CodeDt.class, order=11, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase)" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/conformance-statement-kind") private BoundCodeDt myKind; @Child(name="software", order=12, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation." ) private Software mySoftware; @Child(name="implementation", order=13, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program" ) private Implementation myImplementation; @Child(name="fhirVersion", type=IdDt.class, order=14, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The version of the FHIR specification on which this conformance statement is based" ) private IdDt myFhirVersion; @Child(name="acceptUnknown", type=CodeDt.class, order=15, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A code that indicates whether the application accepts unknown elements or extensions when reading resources" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/unknown-content-code") private BoundCodeDt myAcceptUnknown; @Child(name="format", type=CodeDt.class, order=16, min=1, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A list of the formats supported by this implementation using their content types" ) private java.util.List myFormat; @Child(name="profile", order=17, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.StructureDefinition.class }) @Description( shortDefinition="", formalDefinition="A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}" ) private java.util.List myProfile; @Child(name="rest", order=18, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A definition of the restful capabilities of the solution, if any" ) private java.util.List myRest; @Child(name="messaging", order=19, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A description of the messaging capabilities of the solution" ) private java.util.List myMessaging; @Child(name="document", order=20, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A document definition" ) private java.util.List myDocument; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUrl, myVersion, myName, myStatus, myExperimental, myPublisher, myContact, myDate, myDescription, myRequirements, myCopyright, myKind, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUrl, myVersion, myName, myStatus, myExperimental, myPublisher, myContact, myDate, myDescription, myRequirements, myCopyright, myKind, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument); } /** * Gets the value(s) for url (). * creating it if it does * not exist. Will not return null. * *

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

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

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

*/ public String getUrl() { return getUrlElement().getValue(); } /** * Sets the value(s) for url () * *

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

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

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

*/ public Conformance setUrl( String theUri) { myUrl = new UriDt(theUri); return this; } /** * Gets the value(s) for version (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The identifier that is used to identify this version of the conformance statement 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 (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The identifier that is used to identify this version of the conformance statement 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 () * *

* Definition: * The identifier that is used to identify this version of the conformance statement 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 Conformance setVersion(StringDt theValue) { myVersion = theValue; return this; } /** * Sets the value for version () * *

* Definition: * The identifier that is used to identify this version of the conformance statement 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 Conformance 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 conformance statement *

*/ 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 conformance statement *

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

* Definition: * A free text natural language name identifying the conformance statement *

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

* Definition: * A free text natural language name identifying the conformance statement *

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

* Definition: * The status of this conformance statement *

*/ public BoundCodeDt getStatusElement() { if (myStatus == null) { myStatus = new BoundCodeDt(ConformanceResourceStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Gets the value(s) for status (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The status of this conformance statement *

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

* Definition: * The status of this conformance statement *

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

* Definition: * The status of this conformance statement *

*/ public Conformance setStatus(ConformanceResourceStatusEnum theValue) { setStatus(new BoundCodeDt(ConformanceResourceStatusEnum.VALUESET_BINDER, theValue)); /* getStatusElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for experimental (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A flag to indicate that this conformance statement is 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 (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A flag to indicate that this conformance statement is 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 () * *

* Definition: * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage *

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

* Definition: * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage *

*/ public Conformance setExperimental( boolean theBoolean) { myExperimental = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for publisher (). * creating it if it does * not exist. Will not return null. * *

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

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

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

*/ public String getPublisher() { return getPublisherElement().getValue(); } /** * Sets the value(s) for publisher () * *

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

*/ public Conformance setPublisher(StringDt theValue) { myPublisher = theValue; return this; } /** * Sets the value for publisher () * *

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

*/ public Conformance 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 Conformance 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 Conformance 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 (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date (and optionally time) when the conformance statement 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 conformance statement changes *

*/ public DateTimeDt getDateElement() { if (myDate == null) { myDate = new DateTimeDt(); } return myDate; } /** * Gets the value(s) for date (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The date (and optionally time) when the conformance statement 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 conformance statement changes *

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

* Definition: * The date (and optionally time) when the conformance statement 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 conformance statement changes *

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

* Definition: * The date (and optionally time) when the conformance statement 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 conformance statement changes *

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

* Definition: * The date (and optionally time) when the conformance statement 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 conformance statement changes *

*/ public Conformance 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 conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP *

*/ 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 conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP *

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

* Definition: * A free text natural language description of the conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP *

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

* Definition: * A free text natural language description of the conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP *

*/ public Conformance setDescription( String theString) { myDescription = new StringDt(theString); return this; } /** * Gets the value(s) for requirements (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Explains why this conformance statement 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 (). * creating it if it does * not exist. This method may return null. * *

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

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

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

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

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

*/ public Conformance 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 conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement *

*/ 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 conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement *

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

* Definition: * A copyright statement relating to the conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement *

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

* Definition: * A copyright statement relating to the conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement *

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

* Definition: * The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase) *

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

* Definition: * The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase) *

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

* Definition: * The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase) *

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

* Definition: * The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase) *

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

* Definition: * Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation. *

*/ public Software getSoftware() { if (mySoftware == null) { mySoftware = new Software(); } return mySoftware; } /** * Sets the value(s) for software () * *

* Definition: * Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation. *

*/ public Conformance setSoftware(Software theValue) { mySoftware = theValue; return this; } /** * Gets the value(s) for implementation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program *

*/ public Implementation getImplementation() { if (myImplementation == null) { myImplementation = new Implementation(); } return myImplementation; } /** * Sets the value(s) for implementation () * *

* Definition: * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program *

*/ public Conformance setImplementation(Implementation theValue) { myImplementation = theValue; return this; } /** * 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 conformance statement is based *

*/ 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 conformance statement is based *

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

* Definition: * The version of the FHIR specification on which this conformance statement is based *

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

* Definition: * The version of the FHIR specification on which this conformance statement is based *

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

* Definition: * A code that indicates whether the application accepts unknown elements or extensions when reading resources *

*/ public BoundCodeDt getAcceptUnknownElement() { if (myAcceptUnknown == null) { myAcceptUnknown = new BoundCodeDt(UnknownContentCodeEnum.VALUESET_BINDER); } return myAcceptUnknown; } /** * Gets the value(s) for acceptUnknown (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A code that indicates whether the application accepts unknown elements or extensions when reading resources *

*/ public String getAcceptUnknown() { return getAcceptUnknownElement().getValue(); } /** * Sets the value(s) for acceptUnknown () * *

* Definition: * A code that indicates whether the application accepts unknown elements or extensions when reading resources *

*/ public Conformance setAcceptUnknown(BoundCodeDt theValue) { myAcceptUnknown = theValue; return this; } /** * Sets the value(s) for acceptUnknown () * *

* Definition: * A code that indicates whether the application accepts unknown elements or extensions when reading resources *

*/ public Conformance setAcceptUnknown(UnknownContentCodeEnum theValue) { setAcceptUnknown(new BoundCodeDt(UnknownContentCodeEnum.VALUESET_BINDER, theValue)); /* getAcceptUnknownElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for format (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A list of the formats supported by this implementation using their content types *

*/ public java.util.List getFormat() { if (myFormat == null) { myFormat = new java.util.ArrayList(); } return myFormat; } /** * Sets the value(s) for format () * *

* Definition: * A list of the formats supported by this implementation using their content types *

*/ public Conformance setFormat(java.util.List theValue) { myFormat = theValue; return this; } /** * Adds and returns a new value for format () * *

* Definition: * A list of the formats supported by this implementation using their content types *

*/ public CodeDt addFormat() { CodeDt newType = new CodeDt(); getFormat().add(newType); return newType; } /** * Adds a given new value for format () * *

* Definition: * A list of the formats supported by this implementation using their content types *

* @param theValue The format to add (must not be null) */ public Conformance addFormat(CodeDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getFormat().add(theValue); return this; } /** * Gets the first repetition for format (), * creating it if it does not already exist. * *

* Definition: * A list of the formats supported by this implementation using their content types *

*/ public CodeDt getFormatFirstRep() { if (getFormat().isEmpty()) { return addFormat(); } return getFormat().get(0); } /** * Adds a new value for format () * *

* Definition: * A list of the formats supported by this implementation using their content types *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Conformance addFormat( String theCode) { if (myFormat == null) { myFormat = new java.util.ArrayList(); } myFormat.add(new CodeDt(theCode)); return this; } /** * Gets the value(s) for profile (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses} *

*/ public java.util.List getProfile() { if (myProfile == null) { myProfile = new java.util.ArrayList(); } return myProfile; } /** * Sets the value(s) for profile () * *

* Definition: * A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses} *

*/ public Conformance setProfile(java.util.List theValue) { myProfile = theValue; return this; } /** * Adds and returns a new value for profile () * *

* Definition: * A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses} *

*/ public ResourceReferenceDt addProfile() { ResourceReferenceDt newType = new ResourceReferenceDt(); getProfile().add(newType); return newType; } /** * Gets the value(s) for rest (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A definition of the restful capabilities of the solution, if any *

*/ public java.util.List getRest() { if (myRest == null) { myRest = new java.util.ArrayList(); } return myRest; } /** * Sets the value(s) for rest () * *

* Definition: * A definition of the restful capabilities of the solution, if any *

*/ public Conformance setRest(java.util.List theValue) { myRest = theValue; return this; } /** * Adds and returns a new value for rest () * *

* Definition: * A definition of the restful capabilities of the solution, if any *

*/ public Rest addRest() { Rest newType = new Rest(); getRest().add(newType); return newType; } /** * Adds a given new value for rest () * *

* Definition: * A definition of the restful capabilities of the solution, if any *

* @param theValue The rest to add (must not be null) */ public Conformance addRest(Rest theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getRest().add(theValue); return this; } /** * Gets the first repetition for rest (), * creating it if it does not already exist. * *

* Definition: * A definition of the restful capabilities of the solution, if any *

*/ public Rest getRestFirstRep() { if (getRest().isEmpty()) { return addRest(); } return getRest().get(0); } /** * Gets the value(s) for messaging (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A description of the messaging capabilities of the solution *

*/ public java.util.List getMessaging() { if (myMessaging == null) { myMessaging = new java.util.ArrayList(); } return myMessaging; } /** * Sets the value(s) for messaging () * *

* Definition: * A description of the messaging capabilities of the solution *

*/ public Conformance setMessaging(java.util.List theValue) { myMessaging = theValue; return this; } /** * Adds and returns a new value for messaging () * *

* Definition: * A description of the messaging capabilities of the solution *

*/ public Messaging addMessaging() { Messaging newType = new Messaging(); getMessaging().add(newType); return newType; } /** * Adds a given new value for messaging () * *

* Definition: * A description of the messaging capabilities of the solution *

* @param theValue The messaging to add (must not be null) */ public Conformance addMessaging(Messaging theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getMessaging().add(theValue); return this; } /** * Gets the first repetition for messaging (), * creating it if it does not already exist. * *

* Definition: * A description of the messaging capabilities of the solution *

*/ public Messaging getMessagingFirstRep() { if (getMessaging().isEmpty()) { return addMessaging(); } return getMessaging().get(0); } /** * Gets the value(s) for document (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A document definition *

*/ public java.util.List getDocument() { if (myDocument == null) { myDocument = new java.util.ArrayList(); } return myDocument; } /** * Sets the value(s) for document () * *

* Definition: * A document definition *

*/ public Conformance setDocument(java.util.List theValue) { myDocument = theValue; return this; } /** * Adds and returns a new value for document () * *

* Definition: * A document definition *

*/ public Document addDocument() { Document newType = new Document(); getDocument().add(newType); return newType; } /** * Adds a given new value for document () * *

* Definition: * A document definition *

* @param theValue The document to add (must not be null) */ public Conformance addDocument(Document theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getDocument().add(theValue); return this; } /** * Gets the first repetition for document (), * creating it if it does not already exist. * *

* Definition: * A document definition *

*/ public Document getDocumentFirstRep() { if (getDocument().isEmpty()) { return addDocument(); } return getDocument().get(0); } /** * Block class for child element: Conformance.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 conformance" ) 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 conformance *

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

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

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

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

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

*/ 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: Conformance.software () * *

* Definition: * Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation. *

*/ @Block() public static class Software extends BaseIdentifiableElement implements IResourceBlock { @Child(name="name", type=StringDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Name software is known by" ) private StringDt myName; @Child(name="version", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The version identifier for the software covered by this statement" ) private StringDt myVersion; @Child(name="releaseDate", type=DateTimeDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Date this version of the software released" ) private DateTimeDt myReleaseDate; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myVersion, myReleaseDate); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myVersion, myReleaseDate); } /** * Gets the value(s) for name (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Name software is known by *

*/ 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: * Name software is known by *

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

* Definition: * Name software is known by *

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

* Definition: * Name software is known by *

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

* Definition: * The version identifier for the software covered by this statement *

*/ 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 identifier for the software covered by this statement *

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

* Definition: * The version identifier for the software covered by this statement *

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

* Definition: * The version identifier for the software covered by this statement *

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

* Definition: * Date this version of the software released *

*/ public DateTimeDt getReleaseDateElement() { if (myReleaseDate == null) { myReleaseDate = new DateTimeDt(); } return myReleaseDate; } /** * Gets the value(s) for releaseDate (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Date this version of the software released *

*/ public Date getReleaseDate() { return getReleaseDateElement().getValue(); } /** * Sets the value(s) for releaseDate () * *

* Definition: * Date this version of the software released *

*/ public Software setReleaseDate(DateTimeDt theValue) { myReleaseDate = theValue; return this; } /** * Sets the value for releaseDate () * *

* Definition: * Date this version of the software released *

*/ public Software setReleaseDateWithSecondsPrecision( Date theDate) { myReleaseDate = new DateTimeDt(theDate); return this; } /** * Sets the value for releaseDate () * *

* Definition: * Date this version of the software released *

*/ public Software setReleaseDate( Date theDate, TemporalPrecisionEnum thePrecision) { myReleaseDate = new DateTimeDt(theDate, thePrecision); return this; } } /** * Block class for child element: Conformance.implementation () * *

* Definition: * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program *

*/ @Block() public static class Implementation extends BaseIdentifiableElement implements IResourceBlock { @Child(name="description", type=StringDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Information about the specific installation that this conformance statement relates to" ) private StringDt myDescription; @Child(name="url", type=UriDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces." ) private UriDt myUrl; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myUrl); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDescription, myUrl); } /** * Gets the value(s) for description (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Information about the specific installation that this conformance statement relates to *

*/ 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: * Information about the specific installation that this conformance statement relates to *

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

* Definition: * Information about the specific installation that this conformance statement relates to *

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

* Definition: * Information about the specific installation that this conformance statement relates to *

*/ public Implementation setDescription( String theString) { myDescription = new StringDt(theString); return this; } /** * Gets the value(s) for url (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. *

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

* Definition: * An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. *

*/ public String getUrl() { return getUrlElement().getValue(); } /** * Sets the value(s) for url () * *

* Definition: * An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. *

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

* Definition: * An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. *

*/ public Implementation setUrl( String theUri) { myUrl = new UriDt(theUri); return this; } } /** * Block class for child element: Conformance.rest () * *

* Definition: * A definition of the restful capabilities of the solution, if any *

*/ @Block() public static class Rest extends BaseIdentifiableElement implements IResourceBlock { @Child(name="mode", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies whether this portion of the statement is describing ability to initiate or receive restful operations" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/restful-conformance-mode") private BoundCodeDt myMode; @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Information about the system's restful capabilities that apply across all applications, such as security" ) private StringDt myDocumentation; @Child(name="security", order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Information about security implementation from an interface perspective - what a client needs to know" ) private RestSecurity mySecurity; @Child(name="resource", order=3, min=1, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A specification of the restful capabilities of the solution for a specific resource type" ) private java.util.List myResource; @Child(name="interaction", order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A specification of restful operations supported by the system" ) private java.util.List myInteraction; @Child(name="transactionMode", type=CodeDt.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A code that indicates how transactions are supported" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/transaction-mode") private BoundCodeDt myTransactionMode; @Child(name="searchParam", type=RestResourceSearchParam.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation" ) private java.util.List mySearchParam; @Child(name="operation", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Definition of an operation or a named query and with its parameters and their meaning and type" ) private java.util.List myOperation; @Child(name="compartment", type=UriDt.class, order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An absolute URI which is a reference to the definition of a compartment hosted by the system" ) private java.util.List myCompartment; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, mySecurity, myResource, myInteraction, myTransactionMode, mySearchParam, myOperation, myCompartment); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myDocumentation, mySecurity, myResource, myInteraction, myTransactionMode, mySearchParam, myOperation, myCompartment); } /** * Gets the value(s) for mode (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations *

*/ public BoundCodeDt getModeElement() { if (myMode == null) { myMode = new BoundCodeDt(RestfulConformanceModeEnum.VALUESET_BINDER); } return myMode; } /** * Gets the value(s) for mode (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations *

*/ public String getMode() { return getModeElement().getValue(); } /** * Sets the value(s) for mode () * *

* Definition: * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations *

*/ public Rest setMode(BoundCodeDt theValue) { myMode = theValue; return this; } /** * Sets the value(s) for mode () * *

* Definition: * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations *

*/ public Rest setMode(RestfulConformanceModeEnum theValue) { setMode(new BoundCodeDt(RestfulConformanceModeEnum.VALUESET_BINDER, theValue)); /* getModeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for documentation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Information about the system's restful capabilities that apply across all applications, such as security *

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

* Definition: * Information about the system's restful capabilities that apply across all applications, such as security *

*/ public String getDocumentation() { return getDocumentationElement().getValue(); } /** * Sets the value(s) for documentation () * *

* Definition: * Information about the system's restful capabilities that apply across all applications, such as security *

*/ public Rest setDocumentation(StringDt theValue) { myDocumentation = theValue; return this; } /** * Sets the value for documentation () * *

* Definition: * Information about the system's restful capabilities that apply across all applications, such as security *

*/ public Rest setDocumentation( String theString) { myDocumentation = new StringDt(theString); return this; } /** * Gets the value(s) for security (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Information about security implementation from an interface perspective - what a client needs to know *

*/ public RestSecurity getSecurity() { if (mySecurity == null) { mySecurity = new RestSecurity(); } return mySecurity; } /** * Sets the value(s) for security () * *

* Definition: * Information about security implementation from an interface perspective - what a client needs to know *

*/ public Rest setSecurity(RestSecurity theValue) { mySecurity = theValue; return this; } /** * Gets the value(s) for resource (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A specification of the restful capabilities of the solution for a specific resource type *

*/ public java.util.List getResource() { if (myResource == null) { myResource = new java.util.ArrayList(); } return myResource; } /** * Sets the value(s) for resource () * *

* Definition: * A specification of the restful capabilities of the solution for a specific resource type *

*/ public Rest setResource(java.util.List theValue) { myResource = theValue; return this; } /** * Adds and returns a new value for resource () * *

* Definition: * A specification of the restful capabilities of the solution for a specific resource type *

*/ public RestResource addResource() { RestResource newType = new RestResource(); getResource().add(newType); return newType; } /** * Adds a given new value for resource () * *

* Definition: * A specification of the restful capabilities of the solution for a specific resource type *

* @param theValue The resource to add (must not be null) */ public Rest addResource(RestResource theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getResource().add(theValue); return this; } /** * Gets the first repetition for resource (), * creating it if it does not already exist. * *

* Definition: * A specification of the restful capabilities of the solution for a specific resource type *

*/ public RestResource getResourceFirstRep() { if (getResource().isEmpty()) { return addResource(); } return getResource().get(0); } /** * Gets the value(s) for interaction (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A specification of restful operations supported by the system *

*/ public java.util.List getInteraction() { if (myInteraction == null) { myInteraction = new java.util.ArrayList(); } return myInteraction; } /** * Sets the value(s) for interaction () * *

* Definition: * A specification of restful operations supported by the system *

*/ public Rest setInteraction(java.util.List theValue) { myInteraction = theValue; return this; } /** * Adds and returns a new value for interaction () * *

* Definition: * A specification of restful operations supported by the system *

*/ public RestInteraction addInteraction() { RestInteraction newType = new RestInteraction(); getInteraction().add(newType); return newType; } /** * Adds a given new value for interaction () * *

* Definition: * A specification of restful operations supported by the system *

* @param theValue The interaction to add (must not be null) */ public Rest addInteraction(RestInteraction theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getInteraction().add(theValue); return this; } /** * Gets the first repetition for interaction (), * creating it if it does not already exist. * *

* Definition: * A specification of restful operations supported by the system *

*/ public RestInteraction getInteractionFirstRep() { if (getInteraction().isEmpty()) { return addInteraction(); } return getInteraction().get(0); } /** * Gets the value(s) for transactionMode (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code that indicates how transactions are supported *

*/ public BoundCodeDt getTransactionModeElement() { if (myTransactionMode == null) { myTransactionMode = new BoundCodeDt(TransactionModeEnum.VALUESET_BINDER); } return myTransactionMode; } /** * Gets the value(s) for transactionMode (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A code that indicates how transactions are supported *

*/ public String getTransactionMode() { return getTransactionModeElement().getValue(); } /** * Sets the value(s) for transactionMode () * *

* Definition: * A code that indicates how transactions are supported *

*/ public Rest setTransactionMode(BoundCodeDt theValue) { myTransactionMode = theValue; return this; } /** * Sets the value(s) for transactionMode () * *

* Definition: * A code that indicates how transactions are supported *

*/ public Rest setTransactionMode(TransactionModeEnum theValue) { setTransactionMode(new BoundCodeDt(TransactionModeEnum.VALUESET_BINDER, theValue)); /* getTransactionModeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for searchParam (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public java.util.List getSearchParam() { if (mySearchParam == null) { mySearchParam = new java.util.ArrayList(); } return mySearchParam; } /** * Sets the value(s) for searchParam () * *

* Definition: * Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public Rest setSearchParam(java.util.List theValue) { mySearchParam = theValue; return this; } /** * Adds and returns a new value for searchParam () * *

* Definition: * Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public RestResourceSearchParam addSearchParam() { RestResourceSearchParam newType = new RestResourceSearchParam(); getSearchParam().add(newType); return newType; } /** * Adds a given new value for searchParam () * *

* Definition: * Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

* @param theValue The searchParam to add (must not be null) */ public Rest addSearchParam(RestResourceSearchParam theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getSearchParam().add(theValue); return this; } /** * Gets the first repetition for searchParam (), * creating it if it does not already exist. * *

* Definition: * Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public RestResourceSearchParam getSearchParamFirstRep() { if (getSearchParam().isEmpty()) { return addSearchParam(); } return getSearchParam().get(0); } /** * Gets the value(s) for operation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Definition of an operation or a named query and with its parameters and their meaning and type *

*/ public java.util.List getOperation() { if (myOperation == null) { myOperation = new java.util.ArrayList(); } return myOperation; } /** * Sets the value(s) for operation () * *

* Definition: * Definition of an operation or a named query and with its parameters and their meaning and type *

*/ public Rest setOperation(java.util.List theValue) { myOperation = theValue; return this; } /** * Adds and returns a new value for operation () * *

* Definition: * Definition of an operation or a named query and with its parameters and their meaning and type *

*/ public RestOperation addOperation() { RestOperation newType = new RestOperation(); getOperation().add(newType); return newType; } /** * Adds a given new value for operation () * *

* Definition: * Definition of an operation or a named query and with its parameters and their meaning and type *

* @param theValue The operation to add (must not be null) */ public Rest addOperation(RestOperation theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getOperation().add(theValue); return this; } /** * Gets the first repetition for operation (), * creating it if it does not already exist. * *

* Definition: * Definition of an operation or a named query and with its parameters and their meaning and type *

*/ public RestOperation getOperationFirstRep() { if (getOperation().isEmpty()) { return addOperation(); } return getOperation().get(0); } /** * Gets the value(s) for compartment (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An absolute URI which is a reference to the definition of a compartment hosted by the system *

*/ public java.util.List getCompartment() { if (myCompartment == null) { myCompartment = new java.util.ArrayList(); } return myCompartment; } /** * Sets the value(s) for compartment () * *

* Definition: * An absolute URI which is a reference to the definition of a compartment hosted by the system *

*/ public Rest setCompartment(java.util.List theValue) { myCompartment = theValue; return this; } /** * Adds and returns a new value for compartment () * *

* Definition: * An absolute URI which is a reference to the definition of a compartment hosted by the system *

*/ public UriDt addCompartment() { UriDt newType = new UriDt(); getCompartment().add(newType); return newType; } /** * Adds a given new value for compartment () * *

* Definition: * An absolute URI which is a reference to the definition of a compartment hosted by the system *

* @param theValue The compartment to add (must not be null) */ public Rest addCompartment(UriDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getCompartment().add(theValue); return this; } /** * Gets the first repetition for compartment (), * creating it if it does not already exist. * *

* Definition: * An absolute URI which is a reference to the definition of a compartment hosted by the system *

*/ public UriDt getCompartmentFirstRep() { if (getCompartment().isEmpty()) { return addCompartment(); } return getCompartment().get(0); } /** * Adds a new value for compartment () * *

* Definition: * An absolute URI which is a reference to the definition of a compartment hosted by the system *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Rest addCompartment( String theUri) { if (myCompartment == null) { myCompartment = new java.util.ArrayList(); } myCompartment.add(new UriDt(theUri)); return this; } } /** * Block class for child element: Conformance.rest.security () * *

* Definition: * Information about security implementation from an interface perspective - what a client needs to know *

*/ @Block() public static class RestSecurity extends BaseIdentifiableElement implements IResourceBlock { @Child(name="cors", type=BooleanDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Server adds CORS headers when responding to requests - this enables javascript applications to use the server" ) private BooleanDt myCors; @Child(name="service", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Types of security services are supported/required by the system" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/restful-security-service") private java.util.List> myService; @Child(name="description", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="General description of how security works" ) private StringDt myDescription; @Child(name="certificate", order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Certificates associated with security profiles" ) private java.util.List myCertificate; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCors, myService, myDescription, myCertificate); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCors, myService, myDescription, myCertificate); } /** * Gets the value(s) for cors (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Server adds CORS headers when responding to requests - this enables javascript applications to use the server *

*/ public BooleanDt getCorsElement() { if (myCors == null) { myCors = new BooleanDt(); } return myCors; } /** * Gets the value(s) for cors (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Server adds CORS headers when responding to requests - this enables javascript applications to use the server *

*/ public Boolean getCors() { return getCorsElement().getValue(); } /** * Sets the value(s) for cors () * *

* Definition: * Server adds CORS headers when responding to requests - this enables javascript applications to use the server *

*/ public RestSecurity setCors(BooleanDt theValue) { myCors = theValue; return this; } /** * Sets the value for cors () * *

* Definition: * Server adds CORS headers when responding to requests - this enables javascript applications to use the server *

*/ public RestSecurity setCors( boolean theBoolean) { myCors = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for service (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Types of security services are supported/required by the system *

*/ public java.util.List> getService() { if (myService == null) { myService = new java.util.ArrayList>(); } return myService; } /** * Sets the value(s) for service () * *

* Definition: * Types of security services are supported/required by the system *

*/ public RestSecurity setService(java.util.List> theValue) { myService = theValue; return this; } /** * Add a value for service () using an enumerated type. This * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory * or contain the desirable codes. If you wish to use codes other than those which are built-in, * you may also use the {@link #addService()} method. * *

* Definition: * Types of security services are supported/required by the system *

*/ public BoundCodeableConceptDt addService(RestfulSecurityServiceEnum theValue) { BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(RestfulSecurityServiceEnum.VALUESET_BINDER, theValue); getService().add(retVal); return retVal; } /** * Gets the first repetition for service (), * creating it if it does not already exist. * *

* Definition: * Types of security services are supported/required by the system *

*/ public BoundCodeableConceptDt getServiceFirstRep() { if (getService().size() == 0) { addService(); } return getService().get(0); } /** * Add a value for service () * *

* Definition: * Types of security services are supported/required by the system *

*/ public BoundCodeableConceptDt addService() { BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(RestfulSecurityServiceEnum.VALUESET_BINDER); getService().add(retVal); return retVal; } /** * Sets the value(s), and clears any existing value(s) for service () * *

* Definition: * Types of security services are supported/required by the system *

*/ public RestSecurity setService(RestfulSecurityServiceEnum theValue) { getService().clear(); addService(theValue); return this; } /** * Gets the value(s) for description (). * creating it if it does * not exist. Will not return null. * *

* Definition: * General description of how security works *

*/ 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: * General description of how security works *

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

* Definition: * General description of how security works *

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

* Definition: * General description of how security works *

*/ public RestSecurity setDescription( String theString) { myDescription = new StringDt(theString); return this; } /** * Gets the value(s) for certificate (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Certificates associated with security profiles *

*/ public java.util.List getCertificate() { if (myCertificate == null) { myCertificate = new java.util.ArrayList(); } return myCertificate; } /** * Sets the value(s) for certificate () * *

* Definition: * Certificates associated with security profiles *

*/ public RestSecurity setCertificate(java.util.List theValue) { myCertificate = theValue; return this; } /** * Adds and returns a new value for certificate () * *

* Definition: * Certificates associated with security profiles *

*/ public RestSecurityCertificate addCertificate() { RestSecurityCertificate newType = new RestSecurityCertificate(); getCertificate().add(newType); return newType; } /** * Adds a given new value for certificate () * *

* Definition: * Certificates associated with security profiles *

* @param theValue The certificate to add (must not be null) */ public RestSecurity addCertificate(RestSecurityCertificate theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getCertificate().add(theValue); return this; } /** * Gets the first repetition for certificate (), * creating it if it does not already exist. * *

* Definition: * Certificates associated with security profiles *

*/ public RestSecurityCertificate getCertificateFirstRep() { if (getCertificate().isEmpty()) { return addCertificate(); } return getCertificate().get(0); } } /** * Block class for child element: Conformance.rest.security.certificate () * *

* Definition: * Certificates associated with security profiles *

*/ @Block() public static class RestSecurityCertificate extends BaseIdentifiableElement implements IResourceBlock { @Child(name="type", type=CodeDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Mime type for certificate" ) private CodeDt myType; @Child(name="blob", type=Base64BinaryDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Actual certificate" ) private Base64BinaryDt myBlob; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myBlob); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myBlob); } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Mime type for certificate *

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

* Definition: * Mime type for certificate *

*/ public String getType() { return getTypeElement().getValue(); } /** * Sets the value(s) for type () * *

* Definition: * Mime type for certificate *

*/ public RestSecurityCertificate setType(CodeDt theValue) { myType = theValue; return this; } /** * Sets the value for type () * *

* Definition: * Mime type for certificate *

*/ public RestSecurityCertificate setType( String theCode) { myType = new CodeDt(theCode); return this; } /** * Gets the value(s) for blob (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Actual certificate *

*/ public Base64BinaryDt getBlobElement() { if (myBlob == null) { myBlob = new Base64BinaryDt(); } return myBlob; } /** * Gets the value(s) for blob (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Actual certificate *

*/ public byte[] getBlob() { return getBlobElement().getValue(); } /** * Sets the value(s) for blob () * *

* Definition: * Actual certificate *

*/ public RestSecurityCertificate setBlob(Base64BinaryDt theValue) { myBlob = theValue; return this; } /** * Sets the value for blob () * *

* Definition: * Actual certificate *

*/ public RestSecurityCertificate setBlob( byte[] theBytes) { myBlob = new Base64BinaryDt(theBytes); return this; } } /** * Block class for child element: Conformance.rest.resource () * *

* Definition: * A specification of the restful capabilities of the solution for a specific resource type *

*/ @Block() public static class RestResource extends BaseIdentifiableElement implements IResourceBlock { @Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A type of resource exposed via the restful interface" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/resource-types") private BoundCodeDt myType; @Child(name="profile", order=1, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.StructureDefinition.class }) @Description( shortDefinition="", formalDefinition="A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses}" ) private ResourceReferenceDt myProfile; @Child(name="interaction", order=2, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies a restful operation supported by the solution" ) private java.util.List myInteraction; @Child(name="versioning", type=CodeDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/versioning-policy") private BoundCodeDt myVersioning; @Child(name="readHistory", type=BooleanDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A flag for whether the server is able to return past versions as part of the vRead operation" ) private BooleanDt myReadHistory; @Child(name="updateCreate", type=BooleanDt.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server" ) private BooleanDt myUpdateCreate; @Child(name="conditionalCreate", type=BooleanDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A flag that indicates that the server supports conditional create" ) private BooleanDt myConditionalCreate; @Child(name="conditionalUpdate", type=BooleanDt.class, order=7, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A flag that indicates that the server supports conditional update" ) private BooleanDt myConditionalUpdate; @Child(name="conditionalDelete", type=CodeDt.class, order=8, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A code that indicates how the server supports conditional delete" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/conditional-delete-status") private BoundCodeDt myConditionalDelete; @Child(name="searchInclude", type=StringDt.class, order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A list of _include values supported by the server" ) private java.util.List mySearchInclude; @Child(name="searchRevInclude", type=StringDt.class, order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A list of _revinclude (reverse include) values supported by the server" ) private java.util.List mySearchRevInclude; @Child(name="searchParam", order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation" ) private java.util.List mySearchParam; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myProfile, myInteraction, myVersioning, myReadHistory, myUpdateCreate, myConditionalCreate, myConditionalUpdate, myConditionalDelete, mySearchInclude, mySearchRevInclude, mySearchParam); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myProfile, myInteraction, myVersioning, myReadHistory, myUpdateCreate, myConditionalCreate, myConditionalUpdate, myConditionalDelete, mySearchInclude, mySearchRevInclude, mySearchParam); } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A type of resource exposed via the restful interface *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A type of resource exposed via the restful interface *

*/ public String getType() { return getTypeElement().getValue(); } /** * Sets the value(s) for type () * *

* Definition: * A type of resource exposed via the restful interface *

*/ public RestResource setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type () * *

* Definition: * A type of resource exposed via the restful interface *

*/ public RestResource setType(ResourceTypeEnum theValue) { setType(new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue)); /* getTypeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for profile (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses} *

*/ public ResourceReferenceDt getProfile() { if (myProfile == null) { myProfile = new ResourceReferenceDt(); } return myProfile; } /** * Sets the value(s) for profile () * *

* Definition: * A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses} *

*/ public RestResource setProfile(ResourceReferenceDt theValue) { myProfile = theValue; return this; } /** * Gets the value(s) for interaction (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies a restful operation supported by the solution *

*/ public java.util.List getInteraction() { if (myInteraction == null) { myInteraction = new java.util.ArrayList(); } return myInteraction; } /** * Sets the value(s) for interaction () * *

* Definition: * Identifies a restful operation supported by the solution *

*/ public RestResource setInteraction(java.util.List theValue) { myInteraction = theValue; return this; } /** * Adds and returns a new value for interaction () * *

* Definition: * Identifies a restful operation supported by the solution *

*/ public RestResourceInteraction addInteraction() { RestResourceInteraction newType = new RestResourceInteraction(); getInteraction().add(newType); return newType; } /** * Adds a given new value for interaction () * *

* Definition: * Identifies a restful operation supported by the solution *

* @param theValue The interaction to add (must not be null) */ public RestResource addInteraction(RestResourceInteraction theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getInteraction().add(theValue); return this; } /** * Gets the first repetition for interaction (), * creating it if it does not already exist. * *

* Definition: * Identifies a restful operation supported by the solution *

*/ public RestResourceInteraction getInteractionFirstRep() { if (getInteraction().isEmpty()) { return addInteraction(); } return getInteraction().get(0); } /** * Gets the value(s) for versioning (). * creating it if it does * not exist. Will not return null. * *

* Definition: * This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API *

*/ public BoundCodeDt getVersioningElement() { if (myVersioning == null) { myVersioning = new BoundCodeDt(ResourceVersionPolicyEnum.VALUESET_BINDER); } return myVersioning; } /** * Gets the value(s) for versioning (). * creating it if it does * not exist. This method may return null. * *

* Definition: * This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API *

*/ public String getVersioning() { return getVersioningElement().getValue(); } /** * Sets the value(s) for versioning () * *

* Definition: * This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API *

*/ public RestResource setVersioning(BoundCodeDt theValue) { myVersioning = theValue; return this; } /** * Sets the value(s) for versioning () * *

* Definition: * This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API *

*/ public RestResource setVersioning(ResourceVersionPolicyEnum theValue) { setVersioning(new BoundCodeDt(ResourceVersionPolicyEnum.VALUESET_BINDER, theValue)); /* getVersioningElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for readHistory (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A flag for whether the server is able to return past versions as part of the vRead operation *

*/ public BooleanDt getReadHistoryElement() { if (myReadHistory == null) { myReadHistory = new BooleanDt(); } return myReadHistory; } /** * Gets the value(s) for readHistory (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A flag for whether the server is able to return past versions as part of the vRead operation *

*/ public Boolean getReadHistory() { return getReadHistoryElement().getValue(); } /** * Sets the value(s) for readHistory () * *

* Definition: * A flag for whether the server is able to return past versions as part of the vRead operation *

*/ public RestResource setReadHistory(BooleanDt theValue) { myReadHistory = theValue; return this; } /** * Sets the value for readHistory () * *

* Definition: * A flag for whether the server is able to return past versions as part of the vRead operation *

*/ public RestResource setReadHistory( boolean theBoolean) { myReadHistory = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for updateCreate (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server *

*/ public BooleanDt getUpdateCreateElement() { if (myUpdateCreate == null) { myUpdateCreate = new BooleanDt(); } return myUpdateCreate; } /** * Gets the value(s) for updateCreate (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server *

*/ public Boolean getUpdateCreate() { return getUpdateCreateElement().getValue(); } /** * Sets the value(s) for updateCreate () * *

* Definition: * A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server *

*/ public RestResource setUpdateCreate(BooleanDt theValue) { myUpdateCreate = theValue; return this; } /** * Sets the value for updateCreate () * *

* Definition: * A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server *

*/ public RestResource setUpdateCreate( boolean theBoolean) { myUpdateCreate = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for conditionalCreate (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A flag that indicates that the server supports conditional create *

*/ public BooleanDt getConditionalCreateElement() { if (myConditionalCreate == null) { myConditionalCreate = new BooleanDt(); } return myConditionalCreate; } /** * Gets the value(s) for conditionalCreate (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A flag that indicates that the server supports conditional create *

*/ public Boolean getConditionalCreate() { return getConditionalCreateElement().getValue(); } /** * Sets the value(s) for conditionalCreate () * *

* Definition: * A flag that indicates that the server supports conditional create *

*/ public RestResource setConditionalCreate(BooleanDt theValue) { myConditionalCreate = theValue; return this; } /** * Sets the value for conditionalCreate () * *

* Definition: * A flag that indicates that the server supports conditional create *

*/ public RestResource setConditionalCreate( boolean theBoolean) { myConditionalCreate = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for conditionalUpdate (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A flag that indicates that the server supports conditional update *

*/ public BooleanDt getConditionalUpdateElement() { if (myConditionalUpdate == null) { myConditionalUpdate = new BooleanDt(); } return myConditionalUpdate; } /** * Gets the value(s) for conditionalUpdate (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A flag that indicates that the server supports conditional update *

*/ public Boolean getConditionalUpdate() { return getConditionalUpdateElement().getValue(); } /** * Sets the value(s) for conditionalUpdate () * *

* Definition: * A flag that indicates that the server supports conditional update *

*/ public RestResource setConditionalUpdate(BooleanDt theValue) { myConditionalUpdate = theValue; return this; } /** * Sets the value for conditionalUpdate () * *

* Definition: * A flag that indicates that the server supports conditional update *

*/ public RestResource setConditionalUpdate( boolean theBoolean) { myConditionalUpdate = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for conditionalDelete (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code that indicates how the server supports conditional delete *

*/ public BoundCodeDt getConditionalDeleteElement() { if (myConditionalDelete == null) { myConditionalDelete = new BoundCodeDt(ConditionalDeleteStatusEnum.VALUESET_BINDER); } return myConditionalDelete; } /** * Gets the value(s) for conditionalDelete (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A code that indicates how the server supports conditional delete *

*/ public String getConditionalDelete() { return getConditionalDeleteElement().getValue(); } /** * Sets the value(s) for conditionalDelete () * *

* Definition: * A code that indicates how the server supports conditional delete *

*/ public RestResource setConditionalDelete(BoundCodeDt theValue) { myConditionalDelete = theValue; return this; } /** * Sets the value(s) for conditionalDelete () * *

* Definition: * A code that indicates how the server supports conditional delete *

*/ public RestResource setConditionalDelete(ConditionalDeleteStatusEnum theValue) { setConditionalDelete(new BoundCodeDt(ConditionalDeleteStatusEnum.VALUESET_BINDER, theValue)); /* getConditionalDeleteElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for searchInclude (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A list of _include values supported by the server *

*/ public java.util.List getSearchInclude() { if (mySearchInclude == null) { mySearchInclude = new java.util.ArrayList(); } return mySearchInclude; } /** * Sets the value(s) for searchInclude () * *

* Definition: * A list of _include values supported by the server *

*/ public RestResource setSearchInclude(java.util.List theValue) { mySearchInclude = theValue; return this; } /** * Adds and returns a new value for searchInclude () * *

* Definition: * A list of _include values supported by the server *

*/ public StringDt addSearchInclude() { StringDt newType = new StringDt(); getSearchInclude().add(newType); return newType; } /** * Adds a given new value for searchInclude () * *

* Definition: * A list of _include values supported by the server *

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

* Definition: * A list of _include values supported by the server *

*/ public StringDt getSearchIncludeFirstRep() { if (getSearchInclude().isEmpty()) { return addSearchInclude(); } return getSearchInclude().get(0); } /** * Adds a new value for searchInclude () * *

* Definition: * A list of _include values supported by the server *

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

* Definition: * A list of _revinclude (reverse include) values supported by the server *

*/ public java.util.List getSearchRevInclude() { if (mySearchRevInclude == null) { mySearchRevInclude = new java.util.ArrayList(); } return mySearchRevInclude; } /** * Sets the value(s) for searchRevInclude () * *

* Definition: * A list of _revinclude (reverse include) values supported by the server *

*/ public RestResource setSearchRevInclude(java.util.List theValue) { mySearchRevInclude = theValue; return this; } /** * Adds and returns a new value for searchRevInclude () * *

* Definition: * A list of _revinclude (reverse include) values supported by the server *

*/ public StringDt addSearchRevInclude() { StringDt newType = new StringDt(); getSearchRevInclude().add(newType); return newType; } /** * Adds a given new value for searchRevInclude () * *

* Definition: * A list of _revinclude (reverse include) values supported by the server *

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

* Definition: * A list of _revinclude (reverse include) values supported by the server *

*/ public StringDt getSearchRevIncludeFirstRep() { if (getSearchRevInclude().isEmpty()) { return addSearchRevInclude(); } return getSearchRevInclude().get(0); } /** * Adds a new value for searchRevInclude () * *

* Definition: * A list of _revinclude (reverse include) values supported by the server *

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

* Definition: * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public java.util.List getSearchParam() { if (mySearchParam == null) { mySearchParam = new java.util.ArrayList(); } return mySearchParam; } /** * Sets the value(s) for searchParam () * *

* Definition: * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public RestResource setSearchParam(java.util.List theValue) { mySearchParam = theValue; return this; } /** * Adds and returns a new value for searchParam () * *

* Definition: * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public RestResourceSearchParam addSearchParam() { RestResourceSearchParam newType = new RestResourceSearchParam(); getSearchParam().add(newType); return newType; } /** * Adds a given new value for searchParam () * *

* Definition: * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

* @param theValue The searchParam to add (must not be null) */ public RestResource addSearchParam(RestResourceSearchParam theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getSearchParam().add(theValue); return this; } /** * Gets the first repetition for searchParam (), * creating it if it does not already exist. * *

* Definition: * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ public RestResourceSearchParam getSearchParamFirstRep() { if (getSearchParam().isEmpty()) { return addSearchParam(); } return getSearchParam().get(0); } } /** * Block class for child element: Conformance.rest.resource.interaction () * *

* Definition: * Identifies a restful operation supported by the solution *

*/ @Block() public static class RestResourceInteraction extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Coded identifier of the operation, supported by the system resource" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/type-restful-interaction") private BoundCodeDt myCode; @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'" ) private StringDt myDocumentation; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDocumentation); } /** * Gets the value(s) for code (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Coded identifier of the operation, supported by the system resource *

*/ public BoundCodeDt getCodeElement() { if (myCode == null) { myCode = new BoundCodeDt(TypeRestfulInteractionEnum.VALUESET_BINDER); } return myCode; } /** * Gets the value(s) for code (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Coded identifier of the operation, supported by the system resource *

*/ public String getCode() { return getCodeElement().getValue(); } /** * Sets the value(s) for code () * *

* Definition: * Coded identifier of the operation, supported by the system resource *

*/ public RestResourceInteraction setCode(BoundCodeDt theValue) { myCode = theValue; return this; } /** * Sets the value(s) for code () * *

* Definition: * Coded identifier of the operation, supported by the system resource *

*/ public RestResourceInteraction setCode(TypeRestfulInteractionEnum theValue) { setCode(new BoundCodeDt(TypeRestfulInteractionEnum.VALUESET_BINDER, theValue)); /* getCodeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for documentation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' *

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

* Definition: * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' *

*/ public String getDocumentation() { return getDocumentationElement().getValue(); } /** * Sets the value(s) for documentation () * *

* Definition: * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' *

*/ public RestResourceInteraction setDocumentation(StringDt theValue) { myDocumentation = theValue; return this; } /** * Sets the value for documentation () * *

* Definition: * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' *

*/ public RestResourceInteraction setDocumentation( String theString) { myDocumentation = new StringDt(theString); return this; } } /** * Block class for child element: Conformance.rest.resource.searchParam () * *

* Definition: * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation *

*/ @Block() public static class RestResourceSearchParam 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 search parameter used in the interface" ) private StringDt myName; @Child(name="definition", type=UriDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]])" ) private UriDt myDefinition; @Child(name="type", type=CodeDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The type of value a search parameter refers to, and how the content is interpreted" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/search-param-type") private BoundCodeDt myType; @Child(name="documentation", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms." ) private StringDt myDocumentation; @Child(name="target", type=CodeDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Types of resource (if a resource is referenced)" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/resource-types") private java.util.List> myTarget; @Child(name="modifier", type=CodeDt.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A modifier supported for the search parameter" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/search-modifier-code") private java.util.List> myModifier; @Child(name="chain", type=StringDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type" ) private java.util.List myChain; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition, myType, myDocumentation, myTarget, myModifier, myChain); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDefinition, myType, myDocumentation, myTarget, myModifier, myChain); } /** * Gets the value(s) for name (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the search parameter used in the interface *

*/ 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 search parameter used in the interface *

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

* Definition: * The name of the search parameter used in the interface *

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

* Definition: * The name of the search parameter used in the interface *

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

* Definition: * An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]) *

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

* Definition: * An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]) *

*/ public String getDefinition() { return getDefinitionElement().getValue(); } /** * Sets the value(s) for definition () * *

* Definition: * An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]) *

*/ public RestResourceSearchParam setDefinition(UriDt theValue) { myDefinition = theValue; return this; } /** * Sets the value for definition () * *

* Definition: * An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [[[SearchParameter.url]]]) *

*/ public RestResourceSearchParam setDefinition( String theUri) { myDefinition = new UriDt(theUri); return this; } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of value a search parameter refers to, and how the content is interpreted *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The type of value a search parameter refers to, and how the content is interpreted *

*/ public String getType() { return getTypeElement().getValue(); } /** * Sets the value(s) for type () * *

* Definition: * The type of value a search parameter refers to, and how the content is interpreted *

*/ public RestResourceSearchParam setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type () * *

* Definition: * The type of value a search parameter refers to, and how the content is interpreted *

*/ public RestResourceSearchParam setType(SearchParamTypeEnum theValue) { setType(new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER, theValue)); /* getTypeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for documentation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. *

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

* Definition: * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. *

*/ public String getDocumentation() { return getDocumentationElement().getValue(); } /** * Sets the value(s) for documentation () * *

* Definition: * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. *

*/ public RestResourceSearchParam setDocumentation(StringDt theValue) { myDocumentation = theValue; return this; } /** * Sets the value for documentation () * *

* Definition: * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. *

*/ public RestResourceSearchParam setDocumentation( String theString) { myDocumentation = new StringDt(theString); return this; } /** * Gets the value(s) for target (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Types of resource (if a resource is referenced) *

*/ public java.util.List> getTarget() { if (myTarget == null) { myTarget = new java.util.ArrayList>(); } return myTarget; } /** * Sets the value(s) for target () * *

* Definition: * Types of resource (if a resource is referenced) *

*/ public RestResourceSearchParam setTarget(java.util.List> theValue) { myTarget = theValue; return this; } /** * Add a value for target () using an enumerated type. This * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory * or contain the desirable codes. If you wish to use codes other than those which are built-in, * you may also use the {@link #addTarget()} method. * *

* Definition: * Types of resource (if a resource is referenced) *

*/ public BoundCodeDt addTarget(ResourceTypeEnum theValue) { BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue); getTarget().add(retVal); return retVal; } /** * Gets the first repetition for target (), * creating it if it does not already exist. * *

* Definition: * Types of resource (if a resource is referenced) *

*/ public BoundCodeDt getTargetFirstRep() { if (getTarget().size() == 0) { addTarget(); } return getTarget().get(0); } /** * Add a value for target () * *

* Definition: * Types of resource (if a resource is referenced) *

*/ public BoundCodeDt addTarget() { BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); getTarget().add(retVal); return retVal; } /** * Sets the value(s), and clears any existing value(s) for target () * *

* Definition: * Types of resource (if a resource is referenced) *

*/ public RestResourceSearchParam setTarget(ResourceTypeEnum theValue) { getTarget().clear(); addTarget(theValue); return this; } /** * Gets the value(s) for modifier (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A modifier supported for the search parameter *

*/ public java.util.List> getModifier() { if (myModifier == null) { myModifier = new java.util.ArrayList>(); } return myModifier; } /** * Sets the value(s) for modifier () * *

* Definition: * A modifier supported for the search parameter *

*/ public RestResourceSearchParam setModifier(java.util.List> theValue) { myModifier = theValue; return this; } /** * Add a value for modifier () using an enumerated type. This * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory * or contain the desirable codes. If you wish to use codes other than those which are built-in, * you may also use the {@link #addModifier()} method. * *

* Definition: * A modifier supported for the search parameter *

*/ public BoundCodeDt addModifier(SearchModifierCodeEnum theValue) { BoundCodeDt retVal = new BoundCodeDt(SearchModifierCodeEnum.VALUESET_BINDER, theValue); getModifier().add(retVal); return retVal; } /** * Gets the first repetition for modifier (), * creating it if it does not already exist. * *

* Definition: * A modifier supported for the search parameter *

*/ public BoundCodeDt getModifierFirstRep() { if (getModifier().size() == 0) { addModifier(); } return getModifier().get(0); } /** * Add a value for modifier () * *

* Definition: * A modifier supported for the search parameter *

*/ public BoundCodeDt addModifier() { BoundCodeDt retVal = new BoundCodeDt(SearchModifierCodeEnum.VALUESET_BINDER); getModifier().add(retVal); return retVal; } /** * Sets the value(s), and clears any existing value(s) for modifier () * *

* Definition: * A modifier supported for the search parameter *

*/ public RestResourceSearchParam setModifier(SearchModifierCodeEnum theValue) { getModifier().clear(); addModifier(theValue); return this; } /** * Gets the value(s) for chain (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type *

*/ public java.util.List getChain() { if (myChain == null) { myChain = new java.util.ArrayList(); } return myChain; } /** * Sets the value(s) for chain () * *

* Definition: * Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type *

*/ public RestResourceSearchParam setChain(java.util.List theValue) { myChain = theValue; return this; } /** * Adds and returns a new value for chain () * *

* Definition: * Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type *

*/ public StringDt addChain() { StringDt newType = new StringDt(); getChain().add(newType); return newType; } /** * Adds a given new value for chain () * *

* Definition: * Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type *

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

* Definition: * Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type *

*/ public StringDt getChainFirstRep() { if (getChain().isEmpty()) { return addChain(); } return getChain().get(0); } /** * Adds a new value for chain () * *

* Definition: * Contains the names of any search parameters which may be chained to the containing search parameter. Chained parameters may be added to search parameters of type reference, and specify that resources will only be returned if they contain a reference to a resource which matches the chained parameter value. Values for this field should be drawn from Conformance.rest.resource.searchParam.name on the target resource type *

* * @return Returns a reference to this object, to allow for simple chaining. */ public RestResourceSearchParam addChain( String theString) { if (myChain == null) { myChain = new java.util.ArrayList(); } myChain.add(new StringDt(theString)); return this; } } /** * Block class for child element: Conformance.rest.interaction () * *

* Definition: * A specification of restful operations supported by the system *

*/ @Block() public static class RestInteraction extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A coded identifier of the operation, supported by the system" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/system-restful-interaction") private BoundCodeDt myCode; @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented" ) private StringDt myDocumentation; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDocumentation); } /** * Gets the value(s) for code (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A coded identifier of the operation, supported by the system *

*/ public BoundCodeDt getCodeElement() { if (myCode == null) { myCode = new BoundCodeDt(SystemRestfulInteractionEnum.VALUESET_BINDER); } return myCode; } /** * Gets the value(s) for code (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A coded identifier of the operation, supported by the system *

*/ public String getCode() { return getCodeElement().getValue(); } /** * Sets the value(s) for code () * *

* Definition: * A coded identifier of the operation, supported by the system *

*/ public RestInteraction setCode(BoundCodeDt theValue) { myCode = theValue; return this; } /** * Sets the value(s) for code () * *

* Definition: * A coded identifier of the operation, supported by the system *

*/ public RestInteraction setCode(SystemRestfulInteractionEnum theValue) { setCode(new BoundCodeDt(SystemRestfulInteractionEnum.VALUESET_BINDER, theValue)); /* getCodeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for documentation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented *

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

* Definition: * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented *

*/ public String getDocumentation() { return getDocumentationElement().getValue(); } /** * Sets the value(s) for documentation () * *

* Definition: * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented *

*/ public RestInteraction setDocumentation(StringDt theValue) { myDocumentation = theValue; return this; } /** * Sets the value for documentation () * *

* Definition: * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented *

*/ public RestInteraction setDocumentation( String theString) { myDocumentation = new StringDt(theString); return this; } } /** * Block class for child element: Conformance.rest.operation () * *

* Definition: * Definition of an operation or a named query and with its parameters and their meaning and type *

*/ @Block() public static class RestOperation 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 a query, which is used in the _query parameter when the query is called" ) private StringDt myName; @Child(name="definition", order=1, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.OperationDefinition.class }) @Description( shortDefinition="", formalDefinition="Where the formal definition can be found" ) private ResourceReferenceDt myDefinition; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDefinition); } /** * Gets the value(s) for name (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of a query, which is used in the _query parameter when the query is called *

*/ 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 a query, which is used in the _query parameter when the query is called *

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

* Definition: * The name of a query, which is used in the _query parameter when the query is called *

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

* Definition: * The name of a query, which is used in the _query parameter when the query is called *

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

* Definition: * Where the formal definition can be found *

*/ public ResourceReferenceDt getDefinition() { if (myDefinition == null) { myDefinition = new ResourceReferenceDt(); } return myDefinition; } /** * Sets the value(s) for definition () * *

* Definition: * Where the formal definition can be found *

*/ public RestOperation setDefinition(ResourceReferenceDt theValue) { myDefinition = theValue; return this; } } /** * Block class for child element: Conformance.messaging () * *

* Definition: * A description of the messaging capabilities of the solution *

*/ @Block() public static class Messaging extends BaseIdentifiableElement implements IResourceBlock { @Child(name="endpoint", order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="An endpoint (network accessible address) to which messages and/or replies are to be sent." ) private java.util.List myEndpoint; @Child(name="reliableCache", type=UnsignedIntDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender)" ) private UnsignedIntDt myReliableCache; @Child(name="documentation", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner." ) private StringDt myDocumentation; @Child(name="event", order=3, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A description of the solution's support for an event at this end-point." ) private java.util.List myEvent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEndpoint, myReliableCache, myDocumentation, myEvent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEndpoint, myReliableCache, myDocumentation, myEvent); } /** * Gets the value(s) for endpoint (). * creating it if it does * not exist. Will not return null. * *

* Definition: * An endpoint (network accessible address) to which messages and/or replies are to be sent. *

*/ public java.util.List getEndpoint() { if (myEndpoint == null) { myEndpoint = new java.util.ArrayList(); } return myEndpoint; } /** * Sets the value(s) for endpoint () * *

* Definition: * An endpoint (network accessible address) to which messages and/or replies are to be sent. *

*/ public Messaging setEndpoint(java.util.List theValue) { myEndpoint = theValue; return this; } /** * Adds and returns a new value for endpoint () * *

* Definition: * An endpoint (network accessible address) to which messages and/or replies are to be sent. *

*/ public MessagingEndpoint addEndpoint() { MessagingEndpoint newType = new MessagingEndpoint(); getEndpoint().add(newType); return newType; } /** * Adds a given new value for endpoint () * *

* Definition: * An endpoint (network accessible address) to which messages and/or replies are to be sent. *

* @param theValue The endpoint to add (must not be null) */ public Messaging addEndpoint(MessagingEndpoint theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getEndpoint().add(theValue); return this; } /** * Gets the first repetition for endpoint (), * creating it if it does not already exist. * *

* Definition: * An endpoint (network accessible address) to which messages and/or replies are to be sent. *

*/ public MessagingEndpoint getEndpointFirstRep() { if (getEndpoint().isEmpty()) { return addEndpoint(); } return getEndpoint().get(0); } /** * Gets the value(s) for reliableCache (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) *

*/ public UnsignedIntDt getReliableCacheElement() { if (myReliableCache == null) { myReliableCache = new UnsignedIntDt(); } return myReliableCache; } /** * Gets the value(s) for reliableCache (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) *

*/ public Integer getReliableCache() { return getReliableCacheElement().getValue(); } /** * Sets the value(s) for reliableCache () * *

* Definition: * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) *

*/ public Messaging setReliableCache(UnsignedIntDt theValue) { myReliableCache = theValue; return this; } /** * Sets the value for reliableCache () * *

* Definition: * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) *

*/ public Messaging setReliableCache( int theInteger) { myReliableCache = new UnsignedIntDt(theInteger); return this; } /** * Gets the value(s) for documentation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. *

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

* Definition: * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. *

*/ public String getDocumentation() { return getDocumentationElement().getValue(); } /** * Sets the value(s) for documentation () * *

* Definition: * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. *

*/ public Messaging setDocumentation(StringDt theValue) { myDocumentation = theValue; return this; } /** * Sets the value for documentation () * *

* Definition: * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. *

*/ public Messaging setDocumentation( String theString) { myDocumentation = new StringDt(theString); return this; } /** * Gets the value(s) for event (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A description of the solution's support for an event at this end-point. *

*/ public java.util.List getEvent() { if (myEvent == null) { myEvent = new java.util.ArrayList(); } return myEvent; } /** * Sets the value(s) for event () * *

* Definition: * A description of the solution's support for an event at this end-point. *

*/ public Messaging setEvent(java.util.List theValue) { myEvent = theValue; return this; } /** * Adds and returns a new value for event () * *

* Definition: * A description of the solution's support for an event at this end-point. *

*/ public MessagingEvent addEvent() { MessagingEvent newType = new MessagingEvent(); getEvent().add(newType); return newType; } /** * Adds a given new value for event () * *

* Definition: * A description of the solution's support for an event at this end-point. *

* @param theValue The event to add (must not be null) */ public Messaging addEvent(MessagingEvent theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getEvent().add(theValue); return this; } /** * Gets the first repetition for event (), * creating it if it does not already exist. * *

* Definition: * A description of the solution's support for an event at this end-point. *

*/ public MessagingEvent getEventFirstRep() { if (getEvent().isEmpty()) { return addEvent(); } return getEvent().get(0); } } /** * Block class for child element: Conformance.messaging.endpoint () * *

* Definition: * An endpoint (network accessible address) to which messages and/or replies are to be sent. *

*/ @Block() public static class MessagingEndpoint extends BaseIdentifiableElement implements IResourceBlock { @Child(name="protocol", type=CodingDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A list of the messaging transport protocol(s) identifiers, supported by this endpoint" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/message-transport") private CodingDt myProtocol; @Child(name="address", type=UriDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier" ) private UriDt myAddress; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myProtocol, myAddress); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myProtocol, myAddress); } /** * Gets the value(s) for protocol (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A list of the messaging transport protocol(s) identifiers, supported by this endpoint *

*/ public CodingDt getProtocol() { if (myProtocol == null) { myProtocol = new CodingDt(); } return myProtocol; } /** * Sets the value(s) for protocol () * *

* Definition: * A list of the messaging transport protocol(s) identifiers, supported by this endpoint *

*/ public MessagingEndpoint setProtocol(CodingDt theValue) { myProtocol = theValue; return this; } /** * Gets the value(s) for address (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier *

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

* Definition: * The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier *

*/ public String getAddress() { return getAddressElement().getValue(); } /** * Sets the value(s) for address () * *

* Definition: * The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier *

*/ public MessagingEndpoint setAddress(UriDt theValue) { myAddress = theValue; return this; } /** * Sets the value for address () * *

* Definition: * The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier *

*/ public MessagingEndpoint setAddress( String theUri) { myAddress = new UriDt(theUri); return this; } } /** * Block class for child element: Conformance.messaging.event () * *

* Definition: * A description of the solution's support for an event at this end-point. *

*/ @Block() public static class MessagingEvent extends BaseIdentifiableElement implements IResourceBlock { @Child(name="code", type=CodingDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A coded identifier of a supported messaging event" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/message-events") private CodingDt myCode; @Child(name="category", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The impact of the content of the message" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/message-significance-category") private BoundCodeDt myCategory; @Child(name="mode", type=CodeDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The mode of this event declaration - whether application is sender or receiver" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/message-conformance-event-mode") private BoundCodeDt myMode; @Child(name="focus", type=CodeDt.class, order=3, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A resource associated with the event. This is the resource that defines the event." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/resource-types") private BoundCodeDt myFocus; @Child(name="request", order=4, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.StructureDefinition.class }) @Description( shortDefinition="", formalDefinition="Information about the request for this event" ) private ResourceReferenceDt myRequest; @Child(name="response", order=5, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.StructureDefinition.class }) @Description( shortDefinition="", formalDefinition="Information about the response for this event" ) private ResourceReferenceDt myResponse; @Child(name="documentation", type=StringDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Guidance on how this event is handled, such as internal system trigger points, business rules, etc." ) private StringDt myDocumentation; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myCategory, myMode, myFocus, myRequest, myResponse, myDocumentation); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myCategory, myMode, myFocus, myRequest, myResponse, myDocumentation); } /** * Gets the value(s) for code (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A coded identifier of a supported messaging event *

*/ public CodingDt getCode() { if (myCode == null) { myCode = new CodingDt(); } return myCode; } /** * Sets the value(s) for code () * *

* Definition: * A coded identifier of a supported messaging event *

*/ public MessagingEvent setCode(CodingDt theValue) { myCode = theValue; return this; } /** * Gets the value(s) for category (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The impact of the content of the message *

*/ public BoundCodeDt getCategoryElement() { if (myCategory == null) { myCategory = new BoundCodeDt(MessageSignificanceCategoryEnum.VALUESET_BINDER); } return myCategory; } /** * Gets the value(s) for category (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The impact of the content of the message *

*/ public String getCategory() { return getCategoryElement().getValue(); } /** * Sets the value(s) for category () * *

* Definition: * The impact of the content of the message *

*/ public MessagingEvent setCategory(BoundCodeDt theValue) { myCategory = theValue; return this; } /** * Sets the value(s) for category () * *

* Definition: * The impact of the content of the message *

*/ public MessagingEvent setCategory(MessageSignificanceCategoryEnum theValue) { setCategory(new BoundCodeDt(MessageSignificanceCategoryEnum.VALUESET_BINDER, theValue)); /* getCategoryElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for mode (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The mode of this event declaration - whether application is sender or receiver *

*/ public BoundCodeDt getModeElement() { if (myMode == null) { myMode = new BoundCodeDt(ConformanceEventModeEnum.VALUESET_BINDER); } return myMode; } /** * Gets the value(s) for mode (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The mode of this event declaration - whether application is sender or receiver *

*/ public String getMode() { return getModeElement().getValue(); } /** * Sets the value(s) for mode () * *

* Definition: * The mode of this event declaration - whether application is sender or receiver *

*/ public MessagingEvent setMode(BoundCodeDt theValue) { myMode = theValue; return this; } /** * Sets the value(s) for mode () * *

* Definition: * The mode of this event declaration - whether application is sender or receiver *

*/ public MessagingEvent setMode(ConformanceEventModeEnum theValue) { setMode(new BoundCodeDt(ConformanceEventModeEnum.VALUESET_BINDER, theValue)); /* getModeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for focus (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A resource associated with the event. This is the resource that defines the event. *

*/ public BoundCodeDt getFocusElement() { if (myFocus == null) { myFocus = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); } return myFocus; } /** * Gets the value(s) for focus (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A resource associated with the event. This is the resource that defines the event. *

*/ public String getFocus() { return getFocusElement().getValue(); } /** * Sets the value(s) for focus () * *

* Definition: * A resource associated with the event. This is the resource that defines the event. *

*/ public MessagingEvent setFocus(BoundCodeDt theValue) { myFocus = theValue; return this; } /** * Sets the value(s) for focus () * *

* Definition: * A resource associated with the event. This is the resource that defines the event. *

*/ public MessagingEvent setFocus(ResourceTypeEnum theValue) { setFocus(new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue)); /* getFocusElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for request (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Information about the request for this event *

*/ public ResourceReferenceDt getRequest() { if (myRequest == null) { myRequest = new ResourceReferenceDt(); } return myRequest; } /** * Sets the value(s) for request () * *

* Definition: * Information about the request for this event *

*/ public MessagingEvent setRequest(ResourceReferenceDt theValue) { myRequest = theValue; return this; } /** * Gets the value(s) for response (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Information about the response for this event *

*/ public ResourceReferenceDt getResponse() { if (myResponse == null) { myResponse = new ResourceReferenceDt(); } return myResponse; } /** * Sets the value(s) for response () * *

* Definition: * Information about the response for this event *

*/ public MessagingEvent setResponse(ResourceReferenceDt theValue) { myResponse = theValue; return this; } /** * Gets the value(s) for documentation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. *

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

* Definition: * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. *

*/ public String getDocumentation() { return getDocumentationElement().getValue(); } /** * Sets the value(s) for documentation () * *

* Definition: * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. *

*/ public MessagingEvent setDocumentation(StringDt theValue) { myDocumentation = theValue; return this; } /** * Sets the value for documentation () * *

* Definition: * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. *

*/ public MessagingEvent setDocumentation( String theString) { myDocumentation = new StringDt(theString); return this; } } /** * Block class for child element: Conformance.document () * *

* Definition: * A document definition *

*/ @Block() public static class Document extends BaseIdentifiableElement implements IResourceBlock { @Child(name="mode", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Mode of this document declaration - whether application is producer or consumer" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/document-mode") private BoundCodeDt myMode; @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc." ) private StringDt myDocumentation; @Child(name="profile", order=2, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.StructureDefinition.class }) @Description( shortDefinition="", formalDefinition="A constraint on a resource used in the document" ) private ResourceReferenceDt myProfile; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, myProfile); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myDocumentation, myProfile); } /** * Gets the value(s) for mode (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Mode of this document declaration - whether application is producer or consumer *

*/ public BoundCodeDt getModeElement() { if (myMode == null) { myMode = new BoundCodeDt(DocumentModeEnum.VALUESET_BINDER); } return myMode; } /** * Gets the value(s) for mode (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Mode of this document declaration - whether application is producer or consumer *

*/ public String getMode() { return getModeElement().getValue(); } /** * Sets the value(s) for mode () * *

* Definition: * Mode of this document declaration - whether application is producer or consumer *

*/ public Document setMode(BoundCodeDt theValue) { myMode = theValue; return this; } /** * Sets the value(s) for mode () * *

* Definition: * Mode of this document declaration - whether application is producer or consumer *

*/ public Document setMode(DocumentModeEnum theValue) { setMode(new BoundCodeDt(DocumentModeEnum.VALUESET_BINDER, theValue)); /* getModeElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for documentation (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. *

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

* Definition: * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. *

*/ public String getDocumentation() { return getDocumentationElement().getValue(); } /** * Sets the value(s) for documentation () * *

* Definition: * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. *

*/ public Document setDocumentation(StringDt theValue) { myDocumentation = theValue; return this; } /** * Sets the value for documentation () * *

* Definition: * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. *

*/ public Document setDocumentation( String theString) { myDocumentation = new StringDt(theString); return this; } /** * Gets the value(s) for profile (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A constraint on a resource used in the document *

*/ public ResourceReferenceDt getProfile() { if (myProfile == null) { myProfile = new ResourceReferenceDt(); } return myProfile; } /** * Sets the value(s) for profile () * *

* Definition: * A constraint on a resource used in the document *

*/ public Document setProfile(ResourceReferenceDt theValue) { myProfile = theValue; return this; } } @Override public String getResourceName() { return "Conformance"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy