001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017package ca.uhn.fhir.model.dstu2.resource;
018
019import java.math.BigDecimal;
020import java.net.URI;
021import java.util.*;
022import ca.uhn.fhir.model.api.*;
023import ca.uhn.fhir.model.api.annotation.*;
024import ca.uhn.fhir.rest.gclient.*;
025
026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
028import ca.uhn.fhir.model.dstu2.composite.AddressDt;
029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
041import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
042import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
043import ca.uhn.fhir.model.dstu2.resource.Appointment;
044import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
045import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
046import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
047import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
048import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
049import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
050import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
053import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
054import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
055import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
056import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
057import ca.uhn.fhir.model.dstu2.resource.BodySite;
058import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
059import ca.uhn.fhir.model.dstu2.resource.CarePlan;
060import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
061import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
062import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
063import ca.uhn.fhir.model.dstu2.resource.Claim;
064import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
065import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
066import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
067import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
068import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
069import ca.uhn.fhir.model.dstu2.composite.CodingDt;
070import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
071import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
072import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
073import ca.uhn.fhir.model.dstu2.resource.Composition;
074import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
075import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
076import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
077import ca.uhn.fhir.model.dstu2.resource.Condition;
078import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
079import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
080import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
081import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
082import ca.uhn.fhir.model.dstu2.resource.Conformance;
083import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
084import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
085import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
086import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
087import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
088import ca.uhn.fhir.model.dstu2.resource.Contract;
089import ca.uhn.fhir.model.dstu2.resource.Coverage;
090import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
091import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
092import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
093import ca.uhn.fhir.model.dstu2.resource.Device;
094import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
095import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
096import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
097import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
098import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
099import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
100import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
101import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
102import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
103import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
104import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
105import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
106import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
107import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
108import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
109import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
110import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
111import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
112import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
113import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
114import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
115import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
116import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
117import ca.uhn.fhir.model.dstu2.resource.Encounter;
118import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
119import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
120import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
121import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
122import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
123import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
124import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
125import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
126import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
127import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
128import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
129import ca.uhn.fhir.model.dstu2.resource.Goal;
130import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
131import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
132import ca.uhn.fhir.model.dstu2.resource.Group;
133import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
134import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
135import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
136import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
137import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
138import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
139import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
140import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
141import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
142import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
143import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
144import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
145import ca.uhn.fhir.model.dstu2.resource.Immunization;
146import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
147import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
148import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
149import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
150import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
151import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
152import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
153import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
154import ca.uhn.fhir.model.dstu2.resource.Location;
155import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
156import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
157import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
158import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
159import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
160import ca.uhn.fhir.model.dstu2.resource.Media;
161import ca.uhn.fhir.model.dstu2.resource.Medication;
162import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
163import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
164import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
165import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
166import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
167import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
168import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
169import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
170import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
171import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
172import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
173import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
174import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
175import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
176import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
177import ca.uhn.fhir.model.dstu2.resource.Observation;
178import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
179import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
180import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
181import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
182import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
183import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
184import ca.uhn.fhir.model.dstu2.resource.Order;
185import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
186import ca.uhn.fhir.model.dstu2.resource.Organization;
187import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
188import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
189import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
190import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
191import ca.uhn.fhir.model.dstu2.resource.Patient;
192import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
193import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
194import ca.uhn.fhir.model.dstu2.resource.Person;
195import ca.uhn.fhir.model.dstu2.resource.Practitioner;
196import ca.uhn.fhir.model.dstu2.resource.Procedure;
197import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
198import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
199import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
200import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
201import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
202import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
203import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
204import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
205import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
206import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
207import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
208import ca.uhn.fhir.model.dstu2.composite.RangeDt;
209import ca.uhn.fhir.model.dstu2.composite.RatioDt;
210import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
211import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
212import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
213import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
214import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
215import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
216import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
217import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
218import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
219import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
220import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
221import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
222import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
223import ca.uhn.fhir.model.dstu2.resource.Schedule;
224import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
225import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
226import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
227import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
228import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
229import ca.uhn.fhir.model.dstu2.resource.Slot;
230import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
231import ca.uhn.fhir.model.dstu2.resource.Specimen;
232import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
233import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
234import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
235import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
236import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
237import ca.uhn.fhir.model.dstu2.resource.Substance;
238import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
239import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
240import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
241import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
242import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
243import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
244import ca.uhn.fhir.model.dstu2.composite.TimingDt;
245import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
246import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
247import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
248import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
249import ca.uhn.fhir.model.dstu2.resource.ValueSet;
250import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
251import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
252import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
253import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
254import ca.uhn.fhir.model.api.IResource;
255import ca.uhn.fhir.model.dstu2.composite.AgeDt;
256import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
257import ca.uhn.fhir.model.dstu2.composite.DurationDt;
258import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
259import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
260import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
261import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
262import ca.uhn.fhir.model.primitive.Base64BinaryDt;
263import ca.uhn.fhir.model.primitive.BooleanDt;
264import ca.uhn.fhir.model.primitive.BoundCodeDt;
265import ca.uhn.fhir.model.primitive.CodeDt;
266import ca.uhn.fhir.model.primitive.DateDt;
267import ca.uhn.fhir.model.primitive.DateTimeDt;
268import ca.uhn.fhir.model.primitive.DecimalDt;
269import ca.uhn.fhir.model.primitive.IdDt;
270import ca.uhn.fhir.model.primitive.InstantDt;
271import ca.uhn.fhir.model.primitive.IntegerDt;
272import ca.uhn.fhir.model.primitive.OidDt;
273import ca.uhn.fhir.model.primitive.PositiveIntDt;
274import ca.uhn.fhir.model.primitive.StringDt;
275import ca.uhn.fhir.model.primitive.TimeDt;
276import ca.uhn.fhir.model.primitive.UnsignedIntDt;
277import ca.uhn.fhir.model.primitive.UriDt;
278
279
280/**
281 * HAPI/FHIR <b>ProcessResponse</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * This resource provides processing status, errors and notes from the processing of a resource.
287 * </p> 
288 *
289 * <p>
290 * <b>Requirements:</b>
291 * 
292 * </p> 
293 *
294 * <p>
295 * <b>Profile Definition:</b>
296 * <a href="http://hl7.org/fhir/profiles/ProcessResponse">http://hl7.org/fhir/profiles/ProcessResponse</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="ProcessResponse", profile="http://hl7.org/fhir/profiles/ProcessResponse", id="processresponse")
301public class ProcessResponse extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource 
303    {
304
305        /**
306         * Search parameter constant for <b>identifier</b>
307         * <p>
308         * Description: <b>The business identifier of the Explanation of Benefit</b><br>
309         * Type: <b>token</b><br>
310         * Path: <b>ProcessResponse.identifier</b><br>
311         * </p>
312         */
313        @SearchParamDefinition(name="identifier", path="ProcessResponse.identifier", description="The business identifier of the Explanation of Benefit", type="token" 
314 )
315        public static final String SP_IDENTIFIER = "identifier";
316
317        /**
318         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
319         * <p>
320         * Description: <b>The business identifier of the Explanation of Benefit</b><br>
321         * Type: <b>token</b><br>
322         * Path: <b>ProcessResponse.identifier</b><br>
323         * </p>
324         */
325        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
326
327        /**
328         * Search parameter constant for <b>request</b>
329         * <p>
330         * Description: <b>The reference to the claim</b><br>
331         * Type: <b>reference</b><br>
332         * Path: <b>ProcessResponse.request</b><br>
333         * </p>
334         */
335        @SearchParamDefinition(name="request", path="ProcessResponse.request", description="The reference to the claim", type="reference" 
336 )
337        public static final String SP_REQUEST = "request";
338
339        /**
340         * <b>Fluent Client</b> search parameter constant for <b>request</b>
341         * <p>
342         * Description: <b>The reference to the claim</b><br>
343         * Type: <b>reference</b><br>
344         * Path: <b>ProcessResponse.request</b><br>
345         * </p>
346         */
347        public static final ReferenceClientParam REQUEST = new ReferenceClientParam(SP_REQUEST);
348
349        /**
350         * Search parameter constant for <b>organization</b>
351         * <p>
352         * Description: <b>The organization who generated this resource</b><br>
353         * Type: <b>reference</b><br>
354         * Path: <b>ProcessResponse.organization</b><br>
355         * </p>
356         */
357        @SearchParamDefinition(name="organization", path="ProcessResponse.organization", description="The organization who generated this resource", type="reference" 
358 )
359        public static final String SP_ORGANIZATION = "organization";
360
361        /**
362         * <b>Fluent Client</b> search parameter constant for <b>organization</b>
363         * <p>
364         * Description: <b>The organization who generated this resource</b><br>
365         * Type: <b>reference</b><br>
366         * Path: <b>ProcessResponse.organization</b><br>
367         * </p>
368         */
369        public static final ReferenceClientParam ORGANIZATION = new ReferenceClientParam(SP_ORGANIZATION);
370
371        /**
372         * Search parameter constant for <b>requestprovider</b>
373         * <p>
374         * Description: <b>The Provider who is responsible the request transaction</b><br>
375         * Type: <b>reference</b><br>
376         * Path: <b>ProcessResponse.requestProvider</b><br>
377         * </p>
378         */
379        @SearchParamDefinition(name="requestprovider", path="ProcessResponse.requestProvider", description="The Provider who is responsible the request transaction", type="reference" 
380, providesMembershipIn={
381 @Compartment(name="Patient")   }
382 )
383        public static final String SP_REQUESTPROVIDER = "requestprovider";
384
385        /**
386         * <b>Fluent Client</b> search parameter constant for <b>requestprovider</b>
387         * <p>
388         * Description: <b>The Provider who is responsible the request transaction</b><br>
389         * Type: <b>reference</b><br>
390         * Path: <b>ProcessResponse.requestProvider</b><br>
391         * </p>
392         */
393        public static final ReferenceClientParam REQUESTPROVIDER = new ReferenceClientParam(SP_REQUESTPROVIDER);
394
395        /**
396         * Search parameter constant for <b>requestorganization</b>
397         * <p>
398         * Description: <b>The Organization who is responsible the request transaction</b><br>
399         * Type: <b>reference</b><br>
400         * Path: <b>ProcessResponse.requestOrganization</b><br>
401         * </p>
402         */
403        @SearchParamDefinition(name="requestorganization", path="ProcessResponse.requestOrganization", description="The Organization who is responsible the request transaction", type="reference" 
404 )
405        public static final String SP_REQUESTORGANIZATION = "requestorganization";
406
407        /**
408         * <b>Fluent Client</b> search parameter constant for <b>requestorganization</b>
409         * <p>
410         * Description: <b>The Organization who is responsible the request transaction</b><br>
411         * Type: <b>reference</b><br>
412         * Path: <b>ProcessResponse.requestOrganization</b><br>
413         * </p>
414         */
415        public static final ReferenceClientParam REQUESTORGANIZATION = new ReferenceClientParam(SP_REQUESTORGANIZATION);
416
417
418        /**
419         * Constant for fluent queries to be used to add include statements. Specifies
420         * the path value of "<b>ProcessResponse:organization</b>".
421         */
422        public static final Include INCLUDE_ORGANIZATION = new Include("ProcessResponse:organization");
423
424        /**
425         * Constant for fluent queries to be used to add include statements. Specifies
426         * the path value of "<b>ProcessResponse:request</b>".
427         */
428        public static final Include INCLUDE_REQUEST = new Include("ProcessResponse:request");
429
430        /**
431         * Constant for fluent queries to be used to add include statements. Specifies
432         * the path value of "<b>ProcessResponse:requestorganization</b>".
433         */
434        public static final Include INCLUDE_REQUESTORGANIZATION = new Include("ProcessResponse:requestorganization");
435
436        /**
437         * Constant for fluent queries to be used to add include statements. Specifies
438         * the path value of "<b>ProcessResponse:requestprovider</b>".
439         */
440        public static final Include INCLUDE_REQUESTPROVIDER = new Include("ProcessResponse:requestprovider");
441
442
443        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
444        @Description(
445                shortDefinition="",
446                formalDefinition="The Response business identifier"
447        )
448        private java.util.List<IdentifierDt> myIdentifier;
449        
450        @Child(name="request", order=1, min=0, max=1, summary=false, modifier=false, type={
451                IResource.class
452        })
453        @Description(
454                shortDefinition="",
455                formalDefinition="Original request resource reference"
456        )
457        private ResourceReferenceDt myRequest;
458        
459        @Child(name="outcome", type=CodingDt.class, order=2, min=0, max=1, summary=false, modifier=false)       
460        @Description(
461                shortDefinition="",
462                formalDefinition="Transaction status: error, complete, held."
463        )
464        private CodingDt myOutcome;
465        
466        @Child(name="disposition", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)   
467        @Description(
468                shortDefinition="",
469                formalDefinition="A description of the status of the adjudication or processing."
470        )
471        private StringDt myDisposition;
472        
473        @Child(name="ruleset", type=CodingDt.class, order=4, min=0, max=1, summary=false, modifier=false)       
474        @Description(
475                shortDefinition="",
476                formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources."
477        )
478        private CodingDt myRuleset;
479        
480        @Child(name="originalRuleset", type=CodingDt.class, order=5, min=0, max=1, summary=false, modifier=false)       
481        @Description(
482                shortDefinition="",
483                formalDefinition="The style (standard) and version of the original material which was converted into this resource."
484        )
485        private CodingDt myOriginalRuleset;
486        
487        @Child(name="created", type=DateTimeDt.class, order=6, min=0, max=1, summary=false, modifier=false)     
488        @Description(
489                shortDefinition="",
490                formalDefinition="The date when the enclosed suite of services were performed or completed"
491        )
492        private DateTimeDt myCreated;
493        
494        @Child(name="organization", order=7, min=0, max=1, summary=false, modifier=false, type={
495                ca.uhn.fhir.model.dstu2.resource.Organization.class
496        })
497        @Description(
498                shortDefinition="",
499                formalDefinition="The organization who produced this adjudicated response."
500        )
501        private ResourceReferenceDt myOrganization;
502        
503        @Child(name="requestProvider", order=8, min=0, max=1, summary=false, modifier=false, type={
504                ca.uhn.fhir.model.dstu2.resource.Practitioner.class
505        })
506        @Description(
507                shortDefinition="",
508                formalDefinition="The practitioner who is responsible for the services rendered to the patient."
509        )
510        private ResourceReferenceDt myRequestProvider;
511        
512        @Child(name="requestOrganization", order=9, min=0, max=1, summary=false, modifier=false, type={
513                ca.uhn.fhir.model.dstu2.resource.Organization.class
514        })
515        @Description(
516                shortDefinition="",
517                formalDefinition="The organization which is responsible for the services rendered to the patient."
518        )
519        private ResourceReferenceDt myRequestOrganization;
520        
521        @Child(name="form", type=CodingDt.class, order=10, min=0, max=1, summary=false, modifier=false) 
522        @Description(
523                shortDefinition="",
524                formalDefinition="The form to be used for printing the content."
525        )
526        private CodingDt myForm;
527        
528        @Child(name="notes", order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)   
529        @Description(
530                shortDefinition="",
531                formalDefinition="Suite of processing note or additional requirements is the processing has been held."
532        )
533        private java.util.List<Notes> myNotes;
534        
535        @Child(name="error", type=CodingDt.class, order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
536        @Description(
537                shortDefinition="",
538                formalDefinition="Processing errors."
539        )
540        private java.util.List<CodingDt> myError;
541        
542
543        @Override
544        public boolean isEmpty() {
545                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myRequest,  myOutcome,  myDisposition,  myRuleset,  myOriginalRuleset,  myCreated,  myOrganization,  myRequestProvider,  myRequestOrganization,  myForm,  myNotes,  myError);
546        }
547        
548        @Override
549        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
550                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRequest, myOutcome, myDisposition, myRuleset, myOriginalRuleset, myCreated, myOrganization, myRequestProvider, myRequestOrganization, myForm, myNotes, myError);
551        }
552
553        /**
554         * Gets the value(s) for <b>identifier</b> ().
555         * creating it if it does
556         * not exist. Will not return <code>null</code>.
557         *
558     * <p>
559     * <b>Definition:</b>
560     * The Response business identifier
561     * </p> 
562         */
563        public java.util.List<IdentifierDt> getIdentifier() {  
564                if (myIdentifier == null) {
565                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
566                }
567                return myIdentifier;
568        }
569
570        /**
571         * Sets the value(s) for <b>identifier</b> ()
572         *
573     * <p>
574     * <b>Definition:</b>
575     * The Response business identifier
576     * </p> 
577         */
578        public ProcessResponse setIdentifier(java.util.List<IdentifierDt> theValue) {
579                myIdentifier = theValue;
580                return this;
581        }
582        
583        
584
585        /**
586         * Adds and returns a new value for <b>identifier</b> ()
587         *
588     * <p>
589     * <b>Definition:</b>
590     * The Response business identifier
591     * </p> 
592         */
593        public IdentifierDt addIdentifier() {
594                IdentifierDt newType = new IdentifierDt();
595                getIdentifier().add(newType);
596                return newType; 
597        }
598
599        /**
600         * Adds a given new value for <b>identifier</b> ()
601         *
602         * <p>
603         * <b>Definition:</b>
604         * The Response business identifier
605         * </p>
606         * @param theValue The identifier to add (must not be <code>null</code>)
607         */
608        public ProcessResponse addIdentifier(IdentifierDt theValue) {
609                if (theValue == null) {
610                        throw new NullPointerException("theValue must not be null");
611                }
612                getIdentifier().add(theValue);
613                return this;
614        }
615
616        /**
617         * Gets the first repetition for <b>identifier</b> (),
618         * creating it if it does not already exist.
619         *
620     * <p>
621     * <b>Definition:</b>
622     * The Response business identifier
623     * </p> 
624         */
625        public IdentifierDt getIdentifierFirstRep() {
626                if (getIdentifier().isEmpty()) {
627                        return addIdentifier();
628                }
629                return getIdentifier().get(0); 
630        }
631  
632        /**
633         * Gets the value(s) for <b>request</b> ().
634         * creating it if it does
635         * not exist. Will not return <code>null</code>.
636         *
637     * <p>
638     * <b>Definition:</b>
639     * Original request resource reference
640     * </p> 
641         */
642        public ResourceReferenceDt getRequest() {  
643                if (myRequest == null) {
644                        myRequest = new ResourceReferenceDt();
645                }
646                return myRequest;
647        }
648
649        /**
650         * Sets the value(s) for <b>request</b> ()
651         *
652     * <p>
653     * <b>Definition:</b>
654     * Original request resource reference
655     * </p> 
656         */
657        public ProcessResponse setRequest(ResourceReferenceDt theValue) {
658                myRequest = theValue;
659                return this;
660        }
661        
662        
663
664  
665        /**
666         * Gets the value(s) for <b>outcome</b> ().
667         * creating it if it does
668         * not exist. Will not return <code>null</code>.
669         *
670     * <p>
671     * <b>Definition:</b>
672     * Transaction status: error, complete, held.
673     * </p> 
674         */
675        public CodingDt getOutcome() {  
676                if (myOutcome == null) {
677                        myOutcome = new CodingDt();
678                }
679                return myOutcome;
680        }
681
682        /**
683         * Sets the value(s) for <b>outcome</b> ()
684         *
685     * <p>
686     * <b>Definition:</b>
687     * Transaction status: error, complete, held.
688     * </p> 
689         */
690        public ProcessResponse setOutcome(CodingDt theValue) {
691                myOutcome = theValue;
692                return this;
693        }
694        
695        
696
697  
698        /**
699         * Gets the value(s) for <b>disposition</b> ().
700         * creating it if it does
701         * not exist. Will not return <code>null</code>.
702         *
703     * <p>
704     * <b>Definition:</b>
705     * A description of the status of the adjudication or processing.
706     * </p> 
707         */
708        public StringDt getDispositionElement() {  
709                if (myDisposition == null) {
710                        myDisposition = new StringDt();
711                }
712                return myDisposition;
713        }
714
715        
716        /**
717         * Gets the value(s) for <b>disposition</b> ().
718         * creating it if it does
719         * not exist. This method may return <code>null</code>.
720         *
721     * <p>
722     * <b>Definition:</b>
723     * A description of the status of the adjudication or processing.
724     * </p> 
725         */
726        public String getDisposition() {  
727                return getDispositionElement().getValue();
728        }
729
730        /**
731         * Sets the value(s) for <b>disposition</b> ()
732         *
733     * <p>
734     * <b>Definition:</b>
735     * A description of the status of the adjudication or processing.
736     * </p> 
737         */
738        public ProcessResponse setDisposition(StringDt theValue) {
739                myDisposition = theValue;
740                return this;
741        }
742        
743        
744
745        /**
746         * Sets the value for <b>disposition</b> ()
747         *
748     * <p>
749     * <b>Definition:</b>
750     * A description of the status of the adjudication or processing.
751     * </p> 
752         */
753        public ProcessResponse setDisposition( String theString) {
754                myDisposition = new StringDt(theString); 
755                return this; 
756        }
757
758 
759        /**
760         * Gets the value(s) for <b>ruleset</b> ().
761         * creating it if it does
762         * not exist. Will not return <code>null</code>.
763         *
764     * <p>
765     * <b>Definition:</b>
766     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
767     * </p> 
768         */
769        public CodingDt getRuleset() {  
770                if (myRuleset == null) {
771                        myRuleset = new CodingDt();
772                }
773                return myRuleset;
774        }
775
776        /**
777         * Sets the value(s) for <b>ruleset</b> ()
778         *
779     * <p>
780     * <b>Definition:</b>
781     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
782     * </p> 
783         */
784        public ProcessResponse setRuleset(CodingDt theValue) {
785                myRuleset = theValue;
786                return this;
787        }
788        
789        
790
791  
792        /**
793         * Gets the value(s) for <b>originalRuleset</b> ().
794         * creating it if it does
795         * not exist. Will not return <code>null</code>.
796         *
797     * <p>
798     * <b>Definition:</b>
799     * The style (standard) and version of the original material which was converted into this resource.
800     * </p> 
801         */
802        public CodingDt getOriginalRuleset() {  
803                if (myOriginalRuleset == null) {
804                        myOriginalRuleset = new CodingDt();
805                }
806                return myOriginalRuleset;
807        }
808
809        /**
810         * Sets the value(s) for <b>originalRuleset</b> ()
811         *
812     * <p>
813     * <b>Definition:</b>
814     * The style (standard) and version of the original material which was converted into this resource.
815     * </p> 
816         */
817        public ProcessResponse setOriginalRuleset(CodingDt theValue) {
818                myOriginalRuleset = theValue;
819                return this;
820        }
821        
822        
823
824  
825        /**
826         * Gets the value(s) for <b>created</b> ().
827         * creating it if it does
828         * not exist. Will not return <code>null</code>.
829         *
830     * <p>
831     * <b>Definition:</b>
832     * The date when the enclosed suite of services were performed or completed
833     * </p> 
834         */
835        public DateTimeDt getCreatedElement() {  
836                if (myCreated == null) {
837                        myCreated = new DateTimeDt();
838                }
839                return myCreated;
840        }
841
842        
843        /**
844         * Gets the value(s) for <b>created</b> ().
845         * creating it if it does
846         * not exist. This method may return <code>null</code>.
847         *
848     * <p>
849     * <b>Definition:</b>
850     * The date when the enclosed suite of services were performed or completed
851     * </p> 
852         */
853        public Date getCreated() {  
854                return getCreatedElement().getValue();
855        }
856
857        /**
858         * Sets the value(s) for <b>created</b> ()
859         *
860     * <p>
861     * <b>Definition:</b>
862     * The date when the enclosed suite of services were performed or completed
863     * </p> 
864         */
865        public ProcessResponse setCreated(DateTimeDt theValue) {
866                myCreated = theValue;
867                return this;
868        }
869        
870        
871
872        /**
873         * Sets the value for <b>created</b> ()
874         *
875     * <p>
876     * <b>Definition:</b>
877     * The date when the enclosed suite of services were performed or completed
878     * </p> 
879         */
880        public ProcessResponse setCreatedWithSecondsPrecision( Date theDate) {
881                myCreated = new DateTimeDt(theDate); 
882                return this; 
883        }
884
885        /**
886         * Sets the value for <b>created</b> ()
887         *
888     * <p>
889     * <b>Definition:</b>
890     * The date when the enclosed suite of services were performed or completed
891     * </p> 
892         */
893        public ProcessResponse setCreated( Date theDate,  TemporalPrecisionEnum thePrecision) {
894                myCreated = new DateTimeDt(theDate, thePrecision); 
895                return this; 
896        }
897
898 
899        /**
900         * Gets the value(s) for <b>organization</b> ().
901         * creating it if it does
902         * not exist. Will not return <code>null</code>.
903         *
904     * <p>
905     * <b>Definition:</b>
906     * The organization who produced this adjudicated response.
907     * </p> 
908         */
909        public ResourceReferenceDt getOrganization() {  
910                if (myOrganization == null) {
911                        myOrganization = new ResourceReferenceDt();
912                }
913                return myOrganization;
914        }
915
916        /**
917         * Sets the value(s) for <b>organization</b> ()
918         *
919     * <p>
920     * <b>Definition:</b>
921     * The organization who produced this adjudicated response.
922     * </p> 
923         */
924        public ProcessResponse setOrganization(ResourceReferenceDt theValue) {
925                myOrganization = theValue;
926                return this;
927        }
928        
929        
930
931  
932        /**
933         * Gets the value(s) for <b>requestProvider</b> ().
934         * creating it if it does
935         * not exist. Will not return <code>null</code>.
936         *
937     * <p>
938     * <b>Definition:</b>
939     * The practitioner who is responsible for the services rendered to the patient.
940     * </p> 
941         */
942        public ResourceReferenceDt getRequestProvider() {  
943                if (myRequestProvider == null) {
944                        myRequestProvider = new ResourceReferenceDt();
945                }
946                return myRequestProvider;
947        }
948
949        /**
950         * Sets the value(s) for <b>requestProvider</b> ()
951         *
952     * <p>
953     * <b>Definition:</b>
954     * The practitioner who is responsible for the services rendered to the patient.
955     * </p> 
956         */
957        public ProcessResponse setRequestProvider(ResourceReferenceDt theValue) {
958                myRequestProvider = theValue;
959                return this;
960        }
961        
962        
963
964  
965        /**
966         * Gets the value(s) for <b>requestOrganization</b> ().
967         * creating it if it does
968         * not exist. Will not return <code>null</code>.
969         *
970     * <p>
971     * <b>Definition:</b>
972     * The organization which is responsible for the services rendered to the patient.
973     * </p> 
974         */
975        public ResourceReferenceDt getRequestOrganization() {  
976                if (myRequestOrganization == null) {
977                        myRequestOrganization = new ResourceReferenceDt();
978                }
979                return myRequestOrganization;
980        }
981
982        /**
983         * Sets the value(s) for <b>requestOrganization</b> ()
984         *
985     * <p>
986     * <b>Definition:</b>
987     * The organization which is responsible for the services rendered to the patient.
988     * </p> 
989         */
990        public ProcessResponse setRequestOrganization(ResourceReferenceDt theValue) {
991                myRequestOrganization = theValue;
992                return this;
993        }
994        
995        
996
997  
998        /**
999         * Gets the value(s) for <b>form</b> ().
1000         * creating it if it does
1001         * not exist. Will not return <code>null</code>.
1002         *
1003     * <p>
1004     * <b>Definition:</b>
1005     * The form to be used for printing the content.
1006     * </p> 
1007         */
1008        public CodingDt getForm() {  
1009                if (myForm == null) {
1010                        myForm = new CodingDt();
1011                }
1012                return myForm;
1013        }
1014
1015        /**
1016         * Sets the value(s) for <b>form</b> ()
1017         *
1018     * <p>
1019     * <b>Definition:</b>
1020     * The form to be used for printing the content.
1021     * </p> 
1022         */
1023        public ProcessResponse setForm(CodingDt theValue) {
1024                myForm = theValue;
1025                return this;
1026        }
1027        
1028        
1029
1030  
1031        /**
1032         * Gets the value(s) for <b>notes</b> ().
1033         * creating it if it does
1034         * not exist. Will not return <code>null</code>.
1035         *
1036     * <p>
1037     * <b>Definition:</b>
1038     * Suite of processing note or additional requirements is the processing has been held.
1039     * </p> 
1040         */
1041        public java.util.List<Notes> getNotes() {  
1042                if (myNotes == null) {
1043                        myNotes = new java.util.ArrayList<Notes>();
1044                }
1045                return myNotes;
1046        }
1047
1048        /**
1049         * Sets the value(s) for <b>notes</b> ()
1050         *
1051     * <p>
1052     * <b>Definition:</b>
1053     * Suite of processing note or additional requirements is the processing has been held.
1054     * </p> 
1055         */
1056        public ProcessResponse setNotes(java.util.List<Notes> theValue) {
1057                myNotes = theValue;
1058                return this;
1059        }
1060        
1061        
1062
1063        /**
1064         * Adds and returns a new value for <b>notes</b> ()
1065         *
1066     * <p>
1067     * <b>Definition:</b>
1068     * Suite of processing note or additional requirements is the processing has been held.
1069     * </p> 
1070         */
1071        public Notes addNotes() {
1072                Notes newType = new Notes();
1073                getNotes().add(newType);
1074                return newType; 
1075        }
1076
1077        /**
1078         * Adds a given new value for <b>notes</b> ()
1079         *
1080         * <p>
1081         * <b>Definition:</b>
1082         * Suite of processing note or additional requirements is the processing has been held.
1083         * </p>
1084         * @param theValue The notes to add (must not be <code>null</code>)
1085         */
1086        public ProcessResponse addNotes(Notes theValue) {
1087                if (theValue == null) {
1088                        throw new NullPointerException("theValue must not be null");
1089                }
1090                getNotes().add(theValue);
1091                return this;
1092        }
1093
1094        /**
1095         * Gets the first repetition for <b>notes</b> (),
1096         * creating it if it does not already exist.
1097         *
1098     * <p>
1099     * <b>Definition:</b>
1100     * Suite of processing note or additional requirements is the processing has been held.
1101     * </p> 
1102         */
1103        public Notes getNotesFirstRep() {
1104                if (getNotes().isEmpty()) {
1105                        return addNotes();
1106                }
1107                return getNotes().get(0); 
1108        }
1109  
1110        /**
1111         * Gets the value(s) for <b>error</b> ().
1112         * creating it if it does
1113         * not exist. Will not return <code>null</code>.
1114         *
1115     * <p>
1116     * <b>Definition:</b>
1117     * Processing errors.
1118     * </p> 
1119         */
1120        public java.util.List<CodingDt> getError() {  
1121                if (myError == null) {
1122                        myError = new java.util.ArrayList<CodingDt>();
1123                }
1124                return myError;
1125        }
1126
1127        /**
1128         * Sets the value(s) for <b>error</b> ()
1129         *
1130     * <p>
1131     * <b>Definition:</b>
1132     * Processing errors.
1133     * </p> 
1134         */
1135        public ProcessResponse setError(java.util.List<CodingDt> theValue) {
1136                myError = theValue;
1137                return this;
1138        }
1139        
1140        
1141
1142        /**
1143         * Adds and returns a new value for <b>error</b> ()
1144         *
1145     * <p>
1146     * <b>Definition:</b>
1147     * Processing errors.
1148     * </p> 
1149         */
1150        public CodingDt addError() {
1151                CodingDt newType = new CodingDt();
1152                getError().add(newType);
1153                return newType; 
1154        }
1155
1156        /**
1157         * Adds a given new value for <b>error</b> ()
1158         *
1159         * <p>
1160         * <b>Definition:</b>
1161         * Processing errors.
1162         * </p>
1163         * @param theValue The error to add (must not be <code>null</code>)
1164         */
1165        public ProcessResponse addError(CodingDt theValue) {
1166                if (theValue == null) {
1167                        throw new NullPointerException("theValue must not be null");
1168                }
1169                getError().add(theValue);
1170                return this;
1171        }
1172
1173        /**
1174         * Gets the first repetition for <b>error</b> (),
1175         * creating it if it does not already exist.
1176         *
1177     * <p>
1178     * <b>Definition:</b>
1179     * Processing errors.
1180     * </p> 
1181         */
1182        public CodingDt getErrorFirstRep() {
1183                if (getError().isEmpty()) {
1184                        return addError();
1185                }
1186                return getError().get(0); 
1187        }
1188  
1189        /**
1190         * Block class for child element: <b>ProcessResponse.notes</b> ()
1191         *
1192     * <p>
1193     * <b>Definition:</b>
1194     * Suite of processing note or additional requirements is the processing has been held.
1195     * </p> 
1196         */
1197        @Block()        
1198        public static class Notes 
1199            extends  BaseIdentifiableElement  
1200            implements IResourceBlock {
1201        
1202        @Child(name="type", type=CodingDt.class, order=0, min=0, max=1, summary=false, modifier=false)  
1203        @Description(
1204                shortDefinition="",
1205                formalDefinition="The note purpose: Print/Display."
1206        )
1207        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/note-type")
1208        private CodingDt myType;
1209        
1210        @Child(name="text", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false)  
1211        @Description(
1212                shortDefinition="",
1213                formalDefinition="The note text."
1214        )
1215        private StringDt myText;
1216        
1217
1218        @Override
1219        public boolean isEmpty() {
1220                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myType,  myText);
1221        }
1222        
1223        @Override
1224        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1225                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myText);
1226        }
1227
1228        /**
1229         * Gets the value(s) for <b>type</b> ().
1230         * creating it if it does
1231         * not exist. Will not return <code>null</code>.
1232         *
1233     * <p>
1234     * <b>Definition:</b>
1235     * The note purpose: Print/Display.
1236     * </p> 
1237         */
1238        public CodingDt getType() {  
1239                if (myType == null) {
1240                        myType = new CodingDt();
1241                }
1242                return myType;
1243        }
1244
1245        /**
1246         * Sets the value(s) for <b>type</b> ()
1247         *
1248     * <p>
1249     * <b>Definition:</b>
1250     * The note purpose: Print/Display.
1251     * </p> 
1252         */
1253        public Notes setType(CodingDt theValue) {
1254                myType = theValue;
1255                return this;
1256        }
1257        
1258        
1259
1260  
1261        /**
1262         * Gets the value(s) for <b>text</b> ().
1263         * creating it if it does
1264         * not exist. Will not return <code>null</code>.
1265         *
1266     * <p>
1267     * <b>Definition:</b>
1268     * The note text.
1269     * </p> 
1270         */
1271        public StringDt getTextElement() {  
1272                if (myText == null) {
1273                        myText = new StringDt();
1274                }
1275                return myText;
1276        }
1277
1278        
1279        /**
1280         * Gets the value(s) for <b>text</b> ().
1281         * creating it if it does
1282         * not exist. This method may return <code>null</code>.
1283         *
1284     * <p>
1285     * <b>Definition:</b>
1286     * The note text.
1287     * </p> 
1288         */
1289        public String getText() {  
1290                return getTextElement().getValue();
1291        }
1292
1293        /**
1294         * Sets the value(s) for <b>text</b> ()
1295         *
1296     * <p>
1297     * <b>Definition:</b>
1298     * The note text.
1299     * </p> 
1300         */
1301        public Notes setText(StringDt theValue) {
1302                myText = theValue;
1303                return this;
1304        }
1305        
1306        
1307
1308        /**
1309         * Sets the value for <b>text</b> ()
1310         *
1311     * <p>
1312     * <b>Definition:</b>
1313     * The note text.
1314     * </p> 
1315         */
1316        public Notes setText( String theString) {
1317                myText = new StringDt(theString); 
1318                return this; 
1319        }
1320
1321 
1322
1323
1324        }
1325
1326
1327
1328
1329    @Override
1330    public String getResourceName() {
1331        return "ProcessResponse";
1332    }
1333    
1334    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1335        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1336    }
1337
1338
1339}