ca.uhn.fhir.model.dstu2.resource.Subscription Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu2.resource;
import java.math.BigDecimal;
import java.net.URI;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;
import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
import ca.uhn.fhir.model.dstu2.composite.AddressDt;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
import ca.uhn.fhir.model.dstu2.resource.Appointment;
import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.resource.BodySite;
import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.CarePlan;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Claim;
import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Composition;
import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu2.resource.Condition;
import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.Contract;
import ca.uhn.fhir.model.dstu2.resource.Coverage;
import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
import ca.uhn.fhir.model.dstu2.resource.Encounter;
import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Goal;
import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Group;
import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu2.resource.Immunization;
import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Location;
import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
import ca.uhn.fhir.model.dstu2.resource.Media;
import ca.uhn.fhir.model.dstu2.resource.Medication;
import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Order;
import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Person;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.resource.Procedure;
import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.composite.RatioDt;
import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu2.resource.Schedule;
import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
import ca.uhn.fhir.model.dstu2.resource.Slot;
import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Specimen;
import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Substance;
import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.composite.TimingDt;
import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.composite.AgeDt;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.TimeDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR Subscription Resource
* (infrastructure.exchange)
*
*
* Definition:
* The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined \"channel\" so that another system is able to take an appropriate action.
*
*
*
* Requirements:
*
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/Subscription
*
*
*/
@ResourceDef(name="Subscription", profile="http://hl7.org/fhir/profiles/Subscription", id="subscription")
public class Subscription extends ca.uhn.fhir.model.dstu2.resource.BaseResource
implements IResource
{
/**
* Search parameter constant for status
*
* Description:
* Type: token
* Path: Subscription.status
*
*/
@SearchParamDefinition(name="status", path="Subscription.status", description="", type="token"
)
public static final String SP_STATUS = "status";
/**
* Fluent Client search parameter constant for status
*
* Description:
* Type: token
* Path: Subscription.status
*
*/
public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
/**
* Search parameter constant for type
*
* Description:
* Type: token
* Path: Subscription.channel.type
*
*/
@SearchParamDefinition(name="type", path="Subscription.channel.type", description="", type="token"
)
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description:
* Type: token
* Path: Subscription.channel.type
*
*/
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
/**
* Search parameter constant for url
*
* Description:
* Type: uri
* Path: Subscription.channel.endpoint
*
*/
@SearchParamDefinition(name="url", path="Subscription.channel.endpoint", description="", type="uri"
)
public static final String SP_URL = "url";
/**
* Fluent Client search parameter constant for url
*
* Description:
* Type: uri
* Path: Subscription.channel.endpoint
*
*/
public static final UriClientParam URL = new UriClientParam(SP_URL);
/**
* Search parameter constant for criteria
*
* Description:
* Type: string
* Path: Subscription.criteria
*
*/
@SearchParamDefinition(name="criteria", path="Subscription.criteria", description="", type="string"
)
public static final String SP_CRITERIA = "criteria";
/**
* Fluent Client search parameter constant for criteria
*
* Description:
* Type: string
* Path: Subscription.criteria
*
*/
public static final StringClientParam CRITERIA = new StringClientParam(SP_CRITERIA);
/**
* Search parameter constant for payload
*
* Description:
* Type: string
* Path: Subscription.channel.payload
*
*/
@SearchParamDefinition(name="payload", path="Subscription.channel.payload", description="", type="string"
)
public static final String SP_PAYLOAD = "payload";
/**
* Fluent Client search parameter constant for payload
*
* Description:
* Type: string
* Path: Subscription.channel.payload
*
*/
public static final StringClientParam PAYLOAD = new StringClientParam(SP_PAYLOAD);
/**
* Search parameter constant for contact
*
* Description:
* Type: token
* Path: Subscription.contact
*
*/
@SearchParamDefinition(name="contact", path="Subscription.contact", description="", type="token"
)
public static final String SP_CONTACT = "contact";
/**
* Fluent Client search parameter constant for contact
*
* Description:
* Type: token
* Path: Subscription.contact
*
*/
public static final TokenClientParam CONTACT = new TokenClientParam(SP_CONTACT);
/**
* Search parameter constant for tag
*
* Description:
* Type: token
* Path: Subscription.tag
*
*/
@SearchParamDefinition(name="tag", path="Subscription.tag", description="", type="token"
)
public static final String SP_TAG = "tag";
/**
* Fluent Client search parameter constant for tag
*
* Description:
* Type: token
* Path: Subscription.tag
*
*/
public static final TokenClientParam TAG = new TokenClientParam(SP_TAG);
@Child(name="criteria", type=StringDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The rules that the server should use to determine when to generate notifications for this subscription"
)
private StringDt myCriteria;
@Child(name="contact", type=ContactPointDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="who.focus",
formalDefinition="Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting"
)
private java.util.List myContact;
@Child(name="reason", type=StringDt.class, order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="why",
formalDefinition="A description of why this subscription is defined"
)
private StringDt myReason;
@Child(name="status", type=CodeDt.class, order=3, min=1, max=1, summary=false, modifier=true)
@Description(
shortDefinition="status",
formalDefinition="The status of the subscription, which marks the server state for managing the subscription"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/subscription-status")
private BoundCodeDt myStatus;
@Child(name="error", type=StringDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A record of the last error that occurred when the server processed a notification"
)
private StringDt myError;
@Child(name="channel", order=5, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Details where to send notifications when resources are received that meet the criteria"
)
private Channel myChannel;
@Child(name="end", type=InstantDt.class, order=6, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="when.done",
formalDefinition="The time for the server to turn the subscription off"
)
private InstantDt myEnd;
@Child(name="tag", type=CodingDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A tag to add to any resource that matches the criteria, after the subscription is processed"
)
private java.util.List myTag;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCriteria, myContact, myReason, myStatus, myError, myChannel, myEnd, myTag);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCriteria, myContact, myReason, myStatus, myError, myChannel, myEnd, myTag);
}
/**
* Gets the value(s) for criteria ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The rules that the server should use to determine when to generate notifications for this subscription
*
*/
public StringDt getCriteriaElement() {
if (myCriteria == null) {
myCriteria = new StringDt();
}
return myCriteria;
}
/**
* Gets the value(s) for criteria ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The rules that the server should use to determine when to generate notifications for this subscription
*
*/
public String getCriteria() {
return getCriteriaElement().getValue();
}
/**
* Sets the value(s) for criteria ()
*
*
* Definition:
* The rules that the server should use to determine when to generate notifications for this subscription
*
*/
public Subscription setCriteria(StringDt theValue) {
myCriteria = theValue;
return this;
}
/**
* Sets the value for criteria ()
*
*
* Definition:
* The rules that the server should use to determine when to generate notifications for this subscription
*
*/
public Subscription setCriteria( String theString) {
myCriteria = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for contact (who.focus).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
*
*/
public java.util.List getContact() {
if (myContact == null) {
myContact = new java.util.ArrayList();
}
return myContact;
}
/**
* Sets the value(s) for contact (who.focus)
*
*
* Definition:
* Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
*
*/
public Subscription setContact(java.util.List theValue) {
myContact = theValue;
return this;
}
/**
* Adds and returns a new value for contact (who.focus)
*
*
* Definition:
* Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
*
*/
public ContactPointDt addContact() {
ContactPointDt newType = new ContactPointDt();
getContact().add(newType);
return newType;
}
/**
* Adds a given new value for contact (who.focus)
*
*
* Definition:
* Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
*
* @param theValue The contact to add (must not be null
)
*/
public Subscription addContact(ContactPointDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getContact().add(theValue);
return this;
}
/**
* Gets the first repetition for contact (who.focus),
* creating it if it does not already exist.
*
*
* Definition:
* Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting
*
*/
public ContactPointDt getContactFirstRep() {
if (getContact().isEmpty()) {
return addContact();
}
return getContact().get(0);
}
/**
* Gets the value(s) for reason (why).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A description of why this subscription is defined
*
*/
public StringDt getReasonElement() {
if (myReason == null) {
myReason = new StringDt();
}
return myReason;
}
/**
* Gets the value(s) for reason (why).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A description of why this subscription is defined
*
*/
public String getReason() {
return getReasonElement().getValue();
}
/**
* Sets the value(s) for reason (why)
*
*
* Definition:
* A description of why this subscription is defined
*
*/
public Subscription setReason(StringDt theValue) {
myReason = theValue;
return this;
}
/**
* Sets the value for reason (why)
*
*
* Definition:
* A description of why this subscription is defined
*
*/
public Subscription setReason( String theString) {
myReason = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for status (status).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The status of the subscription, which marks the server state for managing the subscription
*
*/
public BoundCodeDt getStatusElement() {
if (myStatus == null) {
myStatus = new BoundCodeDt(SubscriptionStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status (status).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The status of the subscription, which marks the server state for managing the subscription
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
* The status of the subscription, which marks the server state for managing the subscription
*
*/
public Subscription setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
* The status of the subscription, which marks the server state for managing the subscription
*
*/
public Subscription setStatus(SubscriptionStatusEnum theValue) {
setStatus(new BoundCodeDt(SubscriptionStatusEnum.VALUESET_BINDER, theValue));
/*
getStatusElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for error ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A record of the last error that occurred when the server processed a notification
*
*/
public StringDt getErrorElement() {
if (myError == null) {
myError = new StringDt();
}
return myError;
}
/**
* Gets the value(s) for error ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A record of the last error that occurred when the server processed a notification
*
*/
public String getError() {
return getErrorElement().getValue();
}
/**
* Sets the value(s) for error ()
*
*
* Definition:
* A record of the last error that occurred when the server processed a notification
*
*/
public Subscription setError(StringDt theValue) {
myError = theValue;
return this;
}
/**
* Sets the value for error ()
*
*
* Definition:
* A record of the last error that occurred when the server processed a notification
*
*/
public Subscription setError( String theString) {
myError = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for channel ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Details where to send notifications when resources are received that meet the criteria
*
*/
public Channel getChannel() {
if (myChannel == null) {
myChannel = new Channel();
}
return myChannel;
}
/**
* Sets the value(s) for channel ()
*
*
* Definition:
* Details where to send notifications when resources are received that meet the criteria
*
*/
public Subscription setChannel(Channel theValue) {
myChannel = theValue;
return this;
}
/**
* Gets the value(s) for end (when.done).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The time for the server to turn the subscription off
*
*/
public InstantDt getEndElement() {
if (myEnd == null) {
myEnd = new InstantDt();
}
return myEnd;
}
/**
* Gets the value(s) for end (when.done).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The time for the server to turn the subscription off
*
*/
public Date getEnd() {
return getEndElement().getValue();
}
/**
* Sets the value(s) for end (when.done)
*
*
* Definition:
* The time for the server to turn the subscription off
*
*/
public Subscription setEnd(InstantDt theValue) {
myEnd = theValue;
return this;
}
/**
* Sets the value for end (when.done)
*
*
* Definition:
* The time for the server to turn the subscription off
*
*/
public Subscription setEndWithMillisPrecision( Date theDate) {
myEnd = new InstantDt(theDate);
return this;
}
/**
* Sets the value for end (when.done)
*
*
* Definition:
* The time for the server to turn the subscription off
*
*/
public Subscription setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
myEnd = new InstantDt(theDate, thePrecision);
return this;
}
/**
* Gets the value(s) for tag ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A tag to add to any resource that matches the criteria, after the subscription is processed
*
*/
public java.util.List getTag() {
if (myTag == null) {
myTag = new java.util.ArrayList();
}
return myTag;
}
/**
* Sets the value(s) for tag ()
*
*
* Definition:
* A tag to add to any resource that matches the criteria, after the subscription is processed
*
*/
public Subscription setTag(java.util.List theValue) {
myTag = theValue;
return this;
}
/**
* Adds and returns a new value for tag ()
*
*
* Definition:
* A tag to add to any resource that matches the criteria, after the subscription is processed
*
*/
public CodingDt addTag() {
CodingDt newType = new CodingDt();
getTag().add(newType);
return newType;
}
/**
* Adds a given new value for tag ()
*
*
* Definition:
* A tag to add to any resource that matches the criteria, after the subscription is processed
*
* @param theValue The tag to add (must not be null
)
*/
public Subscription addTag(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getTag().add(theValue);
return this;
}
/**
* Gets the first repetition for tag (),
* creating it if it does not already exist.
*
*
* Definition:
* A tag to add to any resource that matches the criteria, after the subscription is processed
*
*/
public CodingDt getTagFirstRep() {
if (getTag().isEmpty()) {
return addTag();
}
return getTag().get(0);
}
/**
* Block class for child element: Subscription.channel ()
*
*
* Definition:
* Details where to send notifications when resources are received that meet the criteria
*
*/
@Block()
public static class Channel
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The type of channel to send notifications on"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/subscription-channel-type")
private BoundCodeDt myType;
@Child(name="endpoint", type=UriDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The uri that describes the actual end-point to send messages to"
)
private UriDt myEndpoint;
@Child(name="payload", type=StringDt.class, order=2, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification"
)
private StringDt myPayload;
@Child(name="header", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Additional headers / information to send as part of the notification"
)
private StringDt myHeader;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myEndpoint, myPayload, myHeader);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myEndpoint, myPayload, myHeader);
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The type of channel to send notifications on
*
*/
public BoundCodeDt getTypeElement() {
if (myType == null) {
myType = new BoundCodeDt(SubscriptionChannelTypeEnum.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 channel to send notifications on
*
*/
public String getType() {
return getTypeElement().getValue();
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The type of channel to send notifications on
*
*/
public Channel setType(BoundCodeDt theValue) {
myType = theValue;
return this;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The type of channel to send notifications on
*
*/
public Channel setType(SubscriptionChannelTypeEnum theValue) {
setType(new BoundCodeDt(SubscriptionChannelTypeEnum.VALUESET_BINDER, theValue));
/*
getTypeElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for endpoint ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The uri that describes the actual end-point to send messages to
*
*/
public UriDt getEndpointElement() {
if (myEndpoint == null) {
myEndpoint = new UriDt();
}
return myEndpoint;
}
/**
* Gets the value(s) for endpoint ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The uri that describes the actual end-point to send messages to
*
*/
public String getEndpoint() {
return getEndpointElement().getValue();
}
/**
* Sets the value(s) for endpoint ()
*
*
* Definition:
* The uri that describes the actual end-point to send messages to
*
*/
public Channel setEndpoint(UriDt theValue) {
myEndpoint = theValue;
return this;
}
/**
* Sets the value for endpoint ()
*
*
* Definition:
* The uri that describes the actual end-point to send messages to
*
*/
public Channel setEndpoint( String theUri) {
myEndpoint = new UriDt(theUri);
return this;
}
/**
* Gets the value(s) for payload ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
*
*/
public StringDt getPayloadElement() {
if (myPayload == null) {
myPayload = new StringDt();
}
return myPayload;
}
/**
* Gets the value(s) for payload ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
*
*/
public String getPayload() {
return getPayloadElement().getValue();
}
/**
* Sets the value(s) for payload ()
*
*
* Definition:
* The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
*
*/
public Channel setPayload(StringDt theValue) {
myPayload = theValue;
return this;
}
/**
* Sets the value for payload ()
*
*
* Definition:
* The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification
*
*/
public Channel setPayload( String theString) {
myPayload = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for header ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Additional headers / information to send as part of the notification
*
*/
public StringDt getHeaderElement() {
if (myHeader == null) {
myHeader = new StringDt();
}
return myHeader;
}
/**
* Gets the value(s) for header ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Additional headers / information to send as part of the notification
*
*/
public String getHeader() {
return getHeaderElement().getValue();
}
/**
* Sets the value(s) for header ()
*
*
* Definition:
* Additional headers / information to send as part of the notification
*
*/
public Channel setHeader(StringDt theValue) {
myHeader = theValue;
return this;
}
/**
* Sets the value for header ()
*
*
* Definition:
* Additional headers / information to send as part of the notification
*
*/
public Channel setHeader( String theString) {
myHeader = new StringDt(theString);
return this;
}
}
@Override
public String getResourceName() {
return "Subscription";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
}
}