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>OrderResponse</b> Resource
282 * (workflow.order)
283 *
284 * <p>
285 * <b>Definition:</b>
286 * A response to an order.
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/OrderResponse">http://hl7.org/fhir/profiles/OrderResponse</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="OrderResponse", profile="http://hl7.org/fhir/profiles/OrderResponse", id="orderresponse")
301public class OrderResponse extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource 
303    {
304
305        /**
306         * Search parameter constant for <b>request</b>
307         * <p>
308         * Description: <b></b><br>
309         * Type: <b>reference</b><br>
310         * Path: <b>OrderResponse.request</b><br>
311         * </p>
312         */
313        @SearchParamDefinition(name="request", path="OrderResponse.request", description="", type="reference" 
314, providesMembershipIn={
315 @Compartment(name="Patient")   }
316 )
317        public static final String SP_REQUEST = "request";
318
319        /**
320         * <b>Fluent Client</b> search parameter constant for <b>request</b>
321         * <p>
322         * Description: <b></b><br>
323         * Type: <b>reference</b><br>
324         * Path: <b>OrderResponse.request</b><br>
325         * </p>
326         */
327        public static final ReferenceClientParam REQUEST = new ReferenceClientParam(SP_REQUEST);
328
329        /**
330         * Search parameter constant for <b>date</b>
331         * <p>
332         * Description: <b></b><br>
333         * Type: <b>date</b><br>
334         * Path: <b>OrderResponse.date</b><br>
335         * </p>
336         */
337        @SearchParamDefinition(name="date", path="OrderResponse.date", description="", type="date" 
338 )
339        public static final String SP_DATE = "date";
340
341        /**
342         * <b>Fluent Client</b> search parameter constant for <b>date</b>
343         * <p>
344         * Description: <b></b><br>
345         * Type: <b>date</b><br>
346         * Path: <b>OrderResponse.date</b><br>
347         * </p>
348         */
349        public static final DateClientParam DATE = new DateClientParam(SP_DATE);
350
351        /**
352         * Search parameter constant for <b>who</b>
353         * <p>
354         * Description: <b></b><br>
355         * Type: <b>reference</b><br>
356         * Path: <b>OrderResponse.who</b><br>
357         * </p>
358         */
359        @SearchParamDefinition(name="who", path="OrderResponse.who", description="", type="reference" 
360, providesMembershipIn={
361 @Compartment(name="Encounter") ,  @Compartment(name="RelatedPerson")   }
362 )
363        public static final String SP_WHO = "who";
364
365        /**
366         * <b>Fluent Client</b> search parameter constant for <b>who</b>
367         * <p>
368         * Description: <b></b><br>
369         * Type: <b>reference</b><br>
370         * Path: <b>OrderResponse.who</b><br>
371         * </p>
372         */
373        public static final ReferenceClientParam WHO = new ReferenceClientParam(SP_WHO);
374
375        /**
376         * Search parameter constant for <b>code</b>
377         * <p>
378         * Description: <b></b><br>
379         * Type: <b>token</b><br>
380         * Path: <b>OrderResponse.orderStatus</b><br>
381         * </p>
382         */
383        @SearchParamDefinition(name="code", path="OrderResponse.orderStatus", description="", type="token" 
384 )
385        public static final String SP_CODE = "code";
386
387        /**
388         * <b>Fluent Client</b> search parameter constant for <b>code</b>
389         * <p>
390         * Description: <b></b><br>
391         * Type: <b>token</b><br>
392         * Path: <b>OrderResponse.orderStatus</b><br>
393         * </p>
394         */
395        public static final TokenClientParam CODE = new TokenClientParam(SP_CODE);
396
397        /**
398         * Search parameter constant for <b>fulfillment</b>
399         * <p>
400         * Description: <b></b><br>
401         * Type: <b>reference</b><br>
402         * Path: <b>OrderResponse.fulfillment</b><br>
403         * </p>
404         */
405        @SearchParamDefinition(name="fulfillment", path="OrderResponse.fulfillment", description="", type="reference" 
406 )
407        public static final String SP_FULFILLMENT = "fulfillment";
408
409        /**
410         * <b>Fluent Client</b> search parameter constant for <b>fulfillment</b>
411         * <p>
412         * Description: <b></b><br>
413         * Type: <b>reference</b><br>
414         * Path: <b>OrderResponse.fulfillment</b><br>
415         * </p>
416         */
417        public static final ReferenceClientParam FULFILLMENT = new ReferenceClientParam(SP_FULFILLMENT);
418
419        /**
420         * Search parameter constant for <b>identifier</b>
421         * <p>
422         * Description: <b>Identifiers assigned to this order by the orderer or by the receiver</b><br>
423         * Type: <b>token</b><br>
424         * Path: <b>OrderResponse.identifier</b><br>
425         * </p>
426         */
427        @SearchParamDefinition(name="identifier", path="OrderResponse.identifier", description="Identifiers assigned to this order by the orderer or by the receiver", type="token" 
428 )
429        public static final String SP_IDENTIFIER = "identifier";
430
431        /**
432         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
433         * <p>
434         * Description: <b>Identifiers assigned to this order by the orderer or by the receiver</b><br>
435         * Type: <b>token</b><br>
436         * Path: <b>OrderResponse.identifier</b><br>
437         * </p>
438         */
439        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
440
441
442        /**
443         * Constant for fluent queries to be used to add include statements. Specifies
444         * the path value of "<b>OrderResponse:fulfillment</b>".
445         */
446        public static final Include INCLUDE_FULFILLMENT = new Include("OrderResponse:fulfillment");
447
448        /**
449         * Constant for fluent queries to be used to add include statements. Specifies
450         * the path value of "<b>OrderResponse:request</b>".
451         */
452        public static final Include INCLUDE_REQUEST = new Include("OrderResponse:request");
453
454        /**
455         * Constant for fluent queries to be used to add include statements. Specifies
456         * the path value of "<b>OrderResponse:who</b>".
457         */
458        public static final Include INCLUDE_WHO = new Include("OrderResponse:who");
459
460
461        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
462        @Description(
463                shortDefinition="id",
464                formalDefinition="Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems"
465        )
466        private java.util.List<IdentifierDt> myIdentifier;
467        
468        @Child(name="request", order=1, min=1, max=1, summary=false, modifier=false, type={
469                ca.uhn.fhir.model.dstu2.resource.Order.class
470        })
471        @Description(
472                shortDefinition="",
473                formalDefinition="A reference to the order that this is in response to"
474        )
475        private ResourceReferenceDt myRequest;
476        
477        @Child(name="date", type=DateTimeDt.class, order=2, min=0, max=1, summary=false, modifier=false)        
478        @Description(
479                shortDefinition="when.recorded",
480                formalDefinition="The date and time at which this order response was made (created/posted)"
481        )
482        private DateTimeDt myDate;
483        
484        @Child(name="who", order=3, min=0, max=1, summary=false, modifier=false, type={
485                ca.uhn.fhir.model.dstu2.resource.Practitioner.class, 
486                ca.uhn.fhir.model.dstu2.resource.Organization.class, 
487                ca.uhn.fhir.model.dstu2.resource.Device.class
488        })
489        @Description(
490                shortDefinition="who.actor",
491                formalDefinition="The person, organization, or device credited with making the response"
492        )
493        private ResourceReferenceDt myWho;
494        
495        @Child(name="orderStatus", type=CodeDt.class, order=4, min=1, max=1, summary=false, modifier=true)      
496        @Description(
497                shortDefinition="",
498                formalDefinition="What this response says about the status of the original order"
499        )
500        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/order-status")
501        private BoundCodeDt<OrderStatusEnum> myOrderStatus;
502        
503        @Child(name="description", type=StringDt.class, order=5, min=0, max=1, summary=false, modifier=false)   
504        @Description(
505                shortDefinition="",
506                formalDefinition="Additional description about the response - e.g. a text description provided by a human user when making decisions about the order"
507        )
508        private StringDt myDescription;
509        
510        @Child(name="fulfillment", order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
511                IResource.class
512        })
513        @Description(
514                shortDefinition="",
515                formalDefinition="Links to resources that provide details of the outcome of performing the order; e.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order"
516        )
517        private java.util.List<ResourceReferenceDt> myFulfillment;
518        
519
520        @Override
521        public boolean isEmpty() {
522                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myRequest,  myDate,  myWho,  myOrderStatus,  myDescription,  myFulfillment);
523        }
524        
525        @Override
526        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
527                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRequest, myDate, myWho, myOrderStatus, myDescription, myFulfillment);
528        }
529
530        /**
531         * Gets the value(s) for <b>identifier</b> (id).
532         * creating it if it does
533         * not exist. Will not return <code>null</code>.
534         *
535     * <p>
536     * <b>Definition:</b>
537     * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
538     * </p> 
539         */
540        public java.util.List<IdentifierDt> getIdentifier() {  
541                if (myIdentifier == null) {
542                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
543                }
544                return myIdentifier;
545        }
546
547        /**
548         * Sets the value(s) for <b>identifier</b> (id)
549         *
550     * <p>
551     * <b>Definition:</b>
552     * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
553     * </p> 
554         */
555        public OrderResponse setIdentifier(java.util.List<IdentifierDt> theValue) {
556                myIdentifier = theValue;
557                return this;
558        }
559        
560        
561
562        /**
563         * Adds and returns a new value for <b>identifier</b> (id)
564         *
565     * <p>
566     * <b>Definition:</b>
567     * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
568     * </p> 
569         */
570        public IdentifierDt addIdentifier() {
571                IdentifierDt newType = new IdentifierDt();
572                getIdentifier().add(newType);
573                return newType; 
574        }
575
576        /**
577         * Adds a given new value for <b>identifier</b> (id)
578         *
579         * <p>
580         * <b>Definition:</b>
581         * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
582         * </p>
583         * @param theValue The identifier to add (must not be <code>null</code>)
584         */
585        public OrderResponse addIdentifier(IdentifierDt theValue) {
586                if (theValue == null) {
587                        throw new NullPointerException("theValue must not be null");
588                }
589                getIdentifier().add(theValue);
590                return this;
591        }
592
593        /**
594         * Gets the first repetition for <b>identifier</b> (id),
595         * creating it if it does not already exist.
596         *
597     * <p>
598     * <b>Definition:</b>
599     * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
600     * </p> 
601         */
602        public IdentifierDt getIdentifierFirstRep() {
603                if (getIdentifier().isEmpty()) {
604                        return addIdentifier();
605                }
606                return getIdentifier().get(0); 
607        }
608  
609        /**
610         * Gets the value(s) for <b>request</b> ().
611         * creating it if it does
612         * not exist. Will not return <code>null</code>.
613         *
614     * <p>
615     * <b>Definition:</b>
616     * A reference to the order that this is in response to
617     * </p> 
618         */
619        public ResourceReferenceDt getRequest() {  
620                if (myRequest == null) {
621                        myRequest = new ResourceReferenceDt();
622                }
623                return myRequest;
624        }
625
626        /**
627         * Sets the value(s) for <b>request</b> ()
628         *
629     * <p>
630     * <b>Definition:</b>
631     * A reference to the order that this is in response to
632     * </p> 
633         */
634        public OrderResponse setRequest(ResourceReferenceDt theValue) {
635                myRequest = theValue;
636                return this;
637        }
638        
639        
640
641  
642        /**
643         * Gets the value(s) for <b>date</b> (when.recorded).
644         * creating it if it does
645         * not exist. Will not return <code>null</code>.
646         *
647     * <p>
648     * <b>Definition:</b>
649     * The date and time at which this order response was made (created/posted)
650     * </p> 
651         */
652        public DateTimeDt getDateElement() {  
653                if (myDate == null) {
654                        myDate = new DateTimeDt();
655                }
656                return myDate;
657        }
658
659        
660        /**
661         * Gets the value(s) for <b>date</b> (when.recorded).
662         * creating it if it does
663         * not exist. This method may return <code>null</code>.
664         *
665     * <p>
666     * <b>Definition:</b>
667     * The date and time at which this order response was made (created/posted)
668     * </p> 
669         */
670        public Date getDate() {  
671                return getDateElement().getValue();
672        }
673
674        /**
675         * Sets the value(s) for <b>date</b> (when.recorded)
676         *
677     * <p>
678     * <b>Definition:</b>
679     * The date and time at which this order response was made (created/posted)
680     * </p> 
681         */
682        public OrderResponse setDate(DateTimeDt theValue) {
683                myDate = theValue;
684                return this;
685        }
686        
687        
688
689        /**
690         * Sets the value for <b>date</b> (when.recorded)
691         *
692     * <p>
693     * <b>Definition:</b>
694     * The date and time at which this order response was made (created/posted)
695     * </p> 
696         */
697        public OrderResponse setDate( Date theDate,  TemporalPrecisionEnum thePrecision) {
698                myDate = new DateTimeDt(theDate, thePrecision); 
699                return this; 
700        }
701
702        /**
703         * Sets the value for <b>date</b> (when.recorded)
704         *
705     * <p>
706     * <b>Definition:</b>
707     * The date and time at which this order response was made (created/posted)
708     * </p> 
709         */
710        public OrderResponse setDateWithSecondsPrecision( Date theDate) {
711                myDate = new DateTimeDt(theDate); 
712                return this; 
713        }
714
715 
716        /**
717         * Gets the value(s) for <b>who</b> (who.actor).
718         * creating it if it does
719         * not exist. Will not return <code>null</code>.
720         *
721     * <p>
722     * <b>Definition:</b>
723     * The person, organization, or device credited with making the response
724     * </p> 
725         */
726        public ResourceReferenceDt getWho() {  
727                if (myWho == null) {
728                        myWho = new ResourceReferenceDt();
729                }
730                return myWho;
731        }
732
733        /**
734         * Sets the value(s) for <b>who</b> (who.actor)
735         *
736     * <p>
737     * <b>Definition:</b>
738     * The person, organization, or device credited with making the response
739     * </p> 
740         */
741        public OrderResponse setWho(ResourceReferenceDt theValue) {
742                myWho = theValue;
743                return this;
744        }
745        
746        
747
748  
749        /**
750         * Gets the value(s) for <b>orderStatus</b> ().
751         * creating it if it does
752         * not exist. Will not return <code>null</code>.
753         *
754     * <p>
755     * <b>Definition:</b>
756     * What this response says about the status of the original order
757     * </p> 
758         */
759        public BoundCodeDt<OrderStatusEnum> getOrderStatusElement() {  
760                if (myOrderStatus == null) {
761                        myOrderStatus = new BoundCodeDt<OrderStatusEnum>(OrderStatusEnum.VALUESET_BINDER);
762                }
763                return myOrderStatus;
764        }
765
766        
767        /**
768         * Gets the value(s) for <b>orderStatus</b> ().
769         * creating it if it does
770         * not exist. This method may return <code>null</code>.
771         *
772     * <p>
773     * <b>Definition:</b>
774     * What this response says about the status of the original order
775     * </p> 
776         */
777        public String getOrderStatus() {  
778                return getOrderStatusElement().getValue();
779        }
780
781        /**
782         * Sets the value(s) for <b>orderStatus</b> ()
783         *
784     * <p>
785     * <b>Definition:</b>
786     * What this response says about the status of the original order
787     * </p> 
788         */
789        public OrderResponse setOrderStatus(BoundCodeDt<OrderStatusEnum> theValue) {
790                myOrderStatus = theValue;
791                return this;
792        }
793        
794        
795
796        /**
797         * Sets the value(s) for <b>orderStatus</b> ()
798         *
799     * <p>
800     * <b>Definition:</b>
801     * What this response says about the status of the original order
802     * </p> 
803         */
804        public OrderResponse setOrderStatus(OrderStatusEnum theValue) {
805                setOrderStatus(new BoundCodeDt<OrderStatusEnum>(OrderStatusEnum.VALUESET_BINDER, theValue));
806                
807/*
808                getOrderStatusElement().setValueAsEnum(theValue);
809*/
810                return this;
811        }
812
813  
814        /**
815         * Gets the value(s) for <b>description</b> ().
816         * creating it if it does
817         * not exist. Will not return <code>null</code>.
818         *
819     * <p>
820     * <b>Definition:</b>
821     * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
822     * </p> 
823         */
824        public StringDt getDescriptionElement() {  
825                if (myDescription == null) {
826                        myDescription = new StringDt();
827                }
828                return myDescription;
829        }
830
831        
832        /**
833         * Gets the value(s) for <b>description</b> ().
834         * creating it if it does
835         * not exist. This method may return <code>null</code>.
836         *
837     * <p>
838     * <b>Definition:</b>
839     * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
840     * </p> 
841         */
842        public String getDescription() {  
843                return getDescriptionElement().getValue();
844        }
845
846        /**
847         * Sets the value(s) for <b>description</b> ()
848         *
849     * <p>
850     * <b>Definition:</b>
851     * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
852     * </p> 
853         */
854        public OrderResponse setDescription(StringDt theValue) {
855                myDescription = theValue;
856                return this;
857        }
858        
859        
860
861        /**
862         * Sets the value for <b>description</b> ()
863         *
864     * <p>
865     * <b>Definition:</b>
866     * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
867     * </p> 
868         */
869        public OrderResponse setDescription( String theString) {
870                myDescription = new StringDt(theString); 
871                return this; 
872        }
873
874 
875        /**
876         * Gets the value(s) for <b>fulfillment</b> ().
877         * creating it if it does
878         * not exist. Will not return <code>null</code>.
879         *
880     * <p>
881     * <b>Definition:</b>
882     * Links to resources that provide details of the outcome of performing the order; e.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
883     * </p> 
884         */
885        public java.util.List<ResourceReferenceDt> getFulfillment() {  
886                if (myFulfillment == null) {
887                        myFulfillment = new java.util.ArrayList<ResourceReferenceDt>();
888                }
889                return myFulfillment;
890        }
891
892        /**
893         * Sets the value(s) for <b>fulfillment</b> ()
894         *
895     * <p>
896     * <b>Definition:</b>
897     * Links to resources that provide details of the outcome of performing the order; e.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
898     * </p> 
899         */
900        public OrderResponse setFulfillment(java.util.List<ResourceReferenceDt> theValue) {
901                myFulfillment = theValue;
902                return this;
903        }
904        
905        
906
907        /**
908         * Adds and returns a new value for <b>fulfillment</b> ()
909         *
910     * <p>
911     * <b>Definition:</b>
912     * Links to resources that provide details of the outcome of performing the order; e.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
913     * </p> 
914         */
915        public ResourceReferenceDt addFulfillment() {
916                ResourceReferenceDt newType = new ResourceReferenceDt();
917                getFulfillment().add(newType);
918                return newType; 
919        }
920  
921
922
923    @Override
924    public String getResourceName() {
925        return "OrderResponse";
926    }
927    
928    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
929        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
930    }
931
932
933}