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

ca.uhn.fhir.model.dstu.resource.Immunization Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
















package ca.uhn.fhir.model.dstu.resource;


import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;

import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.resource.Appointment;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.resource.Availability;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.resource.CarePlan;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu.resource.Condition;
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Device;
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Encounter;
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
import ca.uhn.fhir.model.dstu.resource.Group;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu.resource.Immunization;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu.resource.Location;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu.resource.Media;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Medication;
import ca.uhn.fhir.model.dstu.resource.MedicationAdministration;
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu.resource.Microarray;
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
import ca.uhn.fhir.model.dstu.resource.Observation;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu.resource.Order;
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Patient;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.resource.Practitioner;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.dstu.resource.Procedure;
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Profile;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
import ca.uhn.fhir.model.dstu.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.composite.ScheduleDt;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.dstu.resource.Slot;
import ca.uhn.fhir.model.dstu.resource.Specimen;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.resource.Substance;
import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu.composite.AgeDt;
import ca.uhn.fhir.model.dstu.composite.DurationDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.resource.Binary;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.IdrefDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;


/**
 * HAPI/FHIR Immunization Resource
 * (Immunization event information)
 *
 * 

* Definition: * Immunization event information *

* *

* Requirements: * *

* *

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

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

* Description: Vaccination Administration / Refusal Date
* Type: date
* Path: Immunization.date
*

*/ @SearchParamDefinition(name="date", path="Immunization.date", description="Vaccination Administration / Refusal Date", type="date" ) public static final String SP_DATE = "date"; /** * Fluent Client search parameter constant for date *

* Description: Vaccination Administration / Refusal Date
* Type: date
* Path: Immunization.date
*

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

* Description:
* Type: number
* Path: Immunization.vaccinationProtocol.doseSequence
*

*/ @SearchParamDefinition(name="dose-sequence", path="Immunization.vaccinationProtocol.doseSequence", description="", type="number" ) public static final String SP_DOSE_SEQUENCE = "dose-sequence"; /** * Fluent Client search parameter constant for dose-sequence *

* Description:
* Type: number
* Path: Immunization.vaccinationProtocol.doseSequence
*

*/ public static final NumberClientParam DOSE_SEQUENCE = new NumberClientParam(SP_DOSE_SEQUENCE); /** * Search parameter constant for identifier *

* Description:
* Type: token
* Path: Immunization.identifier
*

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

* Description:
* Type: token
* Path: Immunization.identifier
*

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

* Description: The service delivery location or facility in which the vaccine was / was to be administered
* Type: reference
* Path: Immunization.location
*

*/ @SearchParamDefinition(name="location", path="Immunization.location", description="The service delivery location or facility in which the vaccine was / was to be administered", type="reference" ) public static final String SP_LOCATION = "location"; /** * Fluent Client search parameter constant for location *

* Description: The service delivery location or facility in which the vaccine was / was to be administered
* Type: reference
* Path: Immunization.location
*

*/ public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Immunization.location". */ public static final Include INCLUDE_LOCATION = new Include("Immunization.location"); /** * Search parameter constant for lot-number *

* Description: Vaccine Lot Number
* Type: string
* Path: Immunization.lotNumber
*

*/ @SearchParamDefinition(name="lot-number", path="Immunization.lotNumber", description="Vaccine Lot Number", type="string" ) public static final String SP_LOT_NUMBER = "lot-number"; /** * Fluent Client search parameter constant for lot-number *

* Description: Vaccine Lot Number
* Type: string
* Path: Immunization.lotNumber
*

*/ public static final StringClientParam LOT_NUMBER = new StringClientParam(SP_LOT_NUMBER); /** * Search parameter constant for manufacturer *

* Description: Vaccine Manufacturer
* Type: reference
* Path: Immunization.manufacturer
*

*/ @SearchParamDefinition(name="manufacturer", path="Immunization.manufacturer", description="Vaccine Manufacturer", type="reference" ) public static final String SP_MANUFACTURER = "manufacturer"; /** * Fluent Client search parameter constant for manufacturer *

* Description: Vaccine Manufacturer
* Type: reference
* Path: Immunization.manufacturer
*

*/ public static final ReferenceClientParam MANUFACTURER = new ReferenceClientParam(SP_MANUFACTURER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Immunization.manufacturer". */ public static final Include INCLUDE_MANUFACTURER = new Include("Immunization.manufacturer"); /** * Search parameter constant for performer *

* Description: The practitioner who administered the vaccination
* Type: reference
* Path: Immunization.performer
*

*/ @SearchParamDefinition(name="performer", path="Immunization.performer", description="The practitioner who administered the vaccination", type="reference" ) public static final String SP_PERFORMER = "performer"; /** * Fluent Client search parameter constant for performer *

* Description: The practitioner who administered the vaccination
* Type: reference
* Path: Immunization.performer
*

*/ public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Immunization.performer". */ public static final Include INCLUDE_PERFORMER = new Include("Immunization.performer"); /** * Search parameter constant for reaction *

* Description:
* Type: reference
* Path: Immunization.reaction.detail
*

*/ @SearchParamDefinition(name="reaction", path="Immunization.reaction.detail", description="", type="reference" ) public static final String SP_REACTION = "reaction"; /** * Fluent Client search parameter constant for reaction *

* Description:
* Type: reference
* Path: Immunization.reaction.detail
*

*/ public static final ReferenceClientParam REACTION = new ReferenceClientParam(SP_REACTION); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Immunization.reaction.detail". */ public static final Include INCLUDE_REACTION_DETAIL = new Include("Immunization.reaction.detail"); /** * Search parameter constant for reaction-date *

* Description:
* Type: date
* Path: Immunization.reaction.date
*

*/ @SearchParamDefinition(name="reaction-date", path="Immunization.reaction.date", description="", type="date" ) public static final String SP_REACTION_DATE = "reaction-date"; /** * Fluent Client search parameter constant for reaction-date *

* Description:
* Type: date
* Path: Immunization.reaction.date
*

*/ public static final DateClientParam REACTION_DATE = new DateClientParam(SP_REACTION_DATE); /** * Search parameter constant for reason *

* Description:
* Type: token
* Path: Immunization.explanation.reason
*

*/ @SearchParamDefinition(name="reason", path="Immunization.explanation.reason", description="", type="token" ) public static final String SP_REASON = "reason"; /** * Fluent Client search parameter constant for reason *

* Description:
* Type: token
* Path: Immunization.explanation.reason
*

*/ public static final TokenClientParam REASON = new TokenClientParam(SP_REASON); /** * Search parameter constant for refusal-reason *

* Description: Explanation of refusal / exemption
* Type: token
* Path: Immunization.explanation.refusalReason
*

*/ @SearchParamDefinition(name="refusal-reason", path="Immunization.explanation.refusalReason", description="Explanation of refusal / exemption", type="token" ) public static final String SP_REFUSAL_REASON = "refusal-reason"; /** * Fluent Client search parameter constant for refusal-reason *

* Description: Explanation of refusal / exemption
* Type: token
* Path: Immunization.explanation.refusalReason
*

*/ public static final TokenClientParam REFUSAL_REASON = new TokenClientParam(SP_REFUSAL_REASON); /** * Search parameter constant for refused *

* Description:
* Type: token
* Path: Immunization.refusedIndicator
*

*/ @SearchParamDefinition(name="refused", path="Immunization.refusedIndicator", description="", type="token" ) public static final String SP_REFUSED = "refused"; /** * Fluent Client search parameter constant for refused *

* Description:
* Type: token
* Path: Immunization.refusedIndicator
*

*/ public static final TokenClientParam REFUSED = new TokenClientParam(SP_REFUSED); /** * Search parameter constant for requester *

* Description: The practitioner who ordered the vaccination
* Type: reference
* Path: Immunization.requester
*

*/ @SearchParamDefinition(name="requester", path="Immunization.requester", description="The practitioner who ordered the vaccination", type="reference" ) public static final String SP_REQUESTER = "requester"; /** * Fluent Client search parameter constant for requester *

* Description: The practitioner who ordered the vaccination
* Type: reference
* Path: Immunization.requester
*

*/ public static final ReferenceClientParam REQUESTER = new ReferenceClientParam(SP_REQUESTER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Immunization.requester". */ public static final Include INCLUDE_REQUESTER = new Include("Immunization.requester"); /** * Search parameter constant for subject *

* Description: The subject of the vaccination event / refusal
* Type: reference
* Path: Immunization.subject
*

*/ @SearchParamDefinition(name="subject", path="Immunization.subject", description="The subject of the vaccination event / refusal", type="reference" ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

* Description: The subject of the vaccination event / refusal
* Type: reference
* Path: Immunization.subject
*

*/ public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Immunization.subject". */ public static final Include INCLUDE_SUBJECT = new Include("Immunization.subject"); /** * Search parameter constant for vaccine-type *

* Description: Vaccine Product Type Administered
* Type: token
* Path: Immunization.vaccineType
*

*/ @SearchParamDefinition(name="vaccine-type", path="Immunization.vaccineType", description="Vaccine Product Type Administered", type="token" ) public static final String SP_VACCINE_TYPE = "vaccine-type"; /** * Fluent Client search parameter constant for vaccine-type *

* Description: Vaccine Product Type Administered
* Type: token
* Path: Immunization.vaccineType
*

*/ public static final TokenClientParam VACCINE_TYPE = new TokenClientParam(SP_VACCINE_TYPE); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Business identifier", formalDefinition="A unique identifier assigned to this adverse reaction record." ) private java.util.List myIdentifier; @Child(name="date", type=DateTimeDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Vaccination administration date", formalDefinition="Date vaccine administered or was to be administered" ) private DateTimeDt myDate; @Child(name="vaccineType", type=CodeableConceptDt.class, order=2, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Vaccine product administered", formalDefinition="Vaccine that was administered or was to be administered" ) private CodeableConceptDt myVaccineType; @Child(name="subject", order=3, min=1, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Patient.class }) @Description( shortDefinition="Who was immunized?", formalDefinition="The patient to whom the vaccine was to be administered" ) private ResourceReferenceDt mySubject; @Child(name="refusedIndicator", type=BooleanDt.class, order=4, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Was immunization refused?", formalDefinition="Indicates if the vaccination was refused." ) private BooleanDt myRefusedIndicator; @Child(name="reported", type=BooleanDt.class, order=5, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Is this a self-reported record?", formalDefinition="True if this administration was reported rather than directly administered." ) private BooleanDt myReported; @Child(name="performer", order=6, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class }) @Description( shortDefinition="Who administered vaccine?", formalDefinition="Clinician who administered the vaccine" ) private ResourceReferenceDt myPerformer; @Child(name="requester", order=7, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class }) @Description( shortDefinition="Who ordered vaccination?", formalDefinition="Clinician who ordered the vaccination" ) private ResourceReferenceDt myRequester; @Child(name="manufacturer", order=8, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Organization.class }) @Description( shortDefinition="Vaccine manufacturer", formalDefinition="Name of vaccine manufacturer" ) private ResourceReferenceDt myManufacturer; @Child(name="location", order=9, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Location.class }) @Description( shortDefinition="Where did vaccination occur?", formalDefinition="The service delivery location where the vaccine administration occurred." ) private ResourceReferenceDt myLocation; @Child(name="lotNumber", type=StringDt.class, order=10, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Vaccine lot number", formalDefinition="Lot number of the vaccine product" ) private StringDt myLotNumber; @Child(name="expirationDate", type=DateDt.class, order=11, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Vaccine expiration date", formalDefinition="Date vaccine batch expires" ) private DateDt myExpirationDate; @Child(name="site", type=CodeableConceptDt.class, order=12, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Body site vaccine was administered", formalDefinition="Body site where vaccine was administered" ) private CodeableConceptDt mySite; @Child(name="route", type=CodeableConceptDt.class, order=13, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="How vaccine entered body", formalDefinition="The path by which the vaccine product is taken into the body." ) private BoundCodeableConceptDt myRoute; @Child(name="doseQuantity", type=QuantityDt.class, order=14, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Amount of vaccine administered", formalDefinition="The quantity of vaccine product that was administered" ) private QuantityDt myDoseQuantity; @Child(name="explanation", order=15, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Administration / refusal reasons", formalDefinition="Reasons why a vaccine was administered or refused" ) private Explanation myExplanation; @Child(name="reaction", order=16, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Details of a reaction that follows immunization", formalDefinition="Categorical data indicating that an adverse event is associated in time to an immunization" ) private java.util.List myReaction; @Child(name="vaccinationProtocol", order=17, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="What protocol was followed", formalDefinition="Contains information about the protocol(s) under which the vaccine was administered" ) private java.util.List myVaccinationProtocol; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDate, myVaccineType, mySubject, myRefusedIndicator, myReported, myPerformer, myRequester, myManufacturer, myLocation, myLotNumber, myExpirationDate, mySite, myRoute, myDoseQuantity, myExplanation, myReaction, myVaccinationProtocol); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDate, myVaccineType, mySubject, myRefusedIndicator, myReported, myPerformer, myRequester, myManufacturer, myLocation, myLotNumber, myExpirationDate, mySite, myRoute, myDoseQuantity, myExplanation, myReaction, myVaccinationProtocol); } /** * Gets the value(s) for identifier (Business identifier). * creating it if it does * not exist. Will not return null. * *

* Definition: * A unique identifier assigned to this adverse reaction record. *

*/ public java.util.List getIdentifier() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Gets the value(s) for identifier (Business identifier). * creating it if it does * not exist. Will not return null. * *

* Definition: * A unique identifier assigned to this adverse reaction record. *

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

* Definition: * A unique identifier assigned to this adverse reaction record. *

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

* Definition: * A unique identifier assigned to this adverse reaction record. *

*/ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; } /** * Gets the first repetition for identifier (Business identifier), * creating it if it does not already exist. * *

* Definition: * A unique identifier assigned to this adverse reaction record. *

*/ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Adds a new value for identifier (Business identifier) * *

* Definition: * A unique identifier assigned to this adverse reaction record. *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Immunization addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); return this; } /** * Adds a new value for identifier (Business identifier) * *

* Definition: * A unique identifier assigned to this adverse reaction record. *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Immunization addIdentifier( String theSystem, String theValue) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theSystem, theValue)); return this; } /** * Gets the value(s) for date (Vaccination administration date). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date vaccine administered or was to be administered *

*/ public DateTimeDt getDate() { if (myDate == null) { myDate = new DateTimeDt(); } return myDate; } /** * Gets the value(s) for date (Vaccination administration date). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date vaccine administered or was to be administered *

*/ public DateTimeDt getDateElement() { if (myDate == null) { myDate = new DateTimeDt(); } return myDate; } /** * Sets the value(s) for date (Vaccination administration date) * *

* Definition: * Date vaccine administered or was to be administered *

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

* Definition: * Date vaccine administered or was to be administered *

*/ public Immunization setDate( Date theDate, TemporalPrecisionEnum thePrecision) { myDate = new DateTimeDt(theDate, thePrecision); return this; } /** * Sets the value for date (Vaccination administration date) * *

* Definition: * Date vaccine administered or was to be administered *

*/ public Immunization setDateWithSecondsPrecision( Date theDate) { myDate = new DateTimeDt(theDate); return this; } /** * Gets the value(s) for vaccineType (Vaccine product administered). * creating it if it does * not exist. Will not return null. * *

* Definition: * Vaccine that was administered or was to be administered *

*/ public CodeableConceptDt getVaccineType() { if (myVaccineType == null) { myVaccineType = new CodeableConceptDt(); } return myVaccineType; } /** * Gets the value(s) for vaccineType (Vaccine product administered). * creating it if it does * not exist. Will not return null. * *

* Definition: * Vaccine that was administered or was to be administered *

*/ public CodeableConceptDt getVaccineTypeElement() { if (myVaccineType == null) { myVaccineType = new CodeableConceptDt(); } return myVaccineType; } /** * Sets the value(s) for vaccineType (Vaccine product administered) * *

* Definition: * Vaccine that was administered or was to be administered *

*/ public Immunization setVaccineType(CodeableConceptDt theValue) { myVaccineType = theValue; return this; } /** * Gets the value(s) for subject (Who was immunized?). * creating it if it does * not exist. Will not return null. * *

* Definition: * The patient to whom the vaccine was to be administered *

*/ public ResourceReferenceDt getSubject() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Gets the value(s) for subject (Who was immunized?). * creating it if it does * not exist. Will not return null. * *

* Definition: * The patient to whom the vaccine was to be administered *

*/ public ResourceReferenceDt getSubjectElement() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Sets the value(s) for subject (Who was immunized?) * *

* Definition: * The patient to whom the vaccine was to be administered *

*/ public Immunization setSubject(ResourceReferenceDt theValue) { mySubject = theValue; return this; } /** * Gets the value(s) for refusedIndicator (Was immunization refused?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates if the vaccination was refused. *

*/ public BooleanDt getRefusedIndicator() { if (myRefusedIndicator == null) { myRefusedIndicator = new BooleanDt(); } return myRefusedIndicator; } /** * Gets the value(s) for refusedIndicator (Was immunization refused?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates if the vaccination was refused. *

*/ public BooleanDt getRefusedIndicatorElement() { if (myRefusedIndicator == null) { myRefusedIndicator = new BooleanDt(); } return myRefusedIndicator; } /** * Sets the value(s) for refusedIndicator (Was immunization refused?) * *

* Definition: * Indicates if the vaccination was refused. *

*/ public Immunization setRefusedIndicator(BooleanDt theValue) { myRefusedIndicator = theValue; return this; } /** * Sets the value for refusedIndicator (Was immunization refused?) * *

* Definition: * Indicates if the vaccination was refused. *

*/ public Immunization setRefusedIndicator( boolean theBoolean) { myRefusedIndicator = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for reported (Is this a self-reported record?). * creating it if it does * not exist. Will not return null. * *

* Definition: * True if this administration was reported rather than directly administered. *

*/ public BooleanDt getReported() { if (myReported == null) { myReported = new BooleanDt(); } return myReported; } /** * Gets the value(s) for reported (Is this a self-reported record?). * creating it if it does * not exist. Will not return null. * *

* Definition: * True if this administration was reported rather than directly administered. *

*/ public BooleanDt getReportedElement() { if (myReported == null) { myReported = new BooleanDt(); } return myReported; } /** * Sets the value(s) for reported (Is this a self-reported record?) * *

* Definition: * True if this administration was reported rather than directly administered. *

*/ public Immunization setReported(BooleanDt theValue) { myReported = theValue; return this; } /** * Sets the value for reported (Is this a self-reported record?) * *

* Definition: * True if this administration was reported rather than directly administered. *

*/ public Immunization setReported( boolean theBoolean) { myReported = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for performer (Who administered vaccine?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Clinician who administered the vaccine *

*/ public ResourceReferenceDt getPerformer() { if (myPerformer == null) { myPerformer = new ResourceReferenceDt(); } return myPerformer; } /** * Gets the value(s) for performer (Who administered vaccine?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Clinician who administered the vaccine *

*/ public ResourceReferenceDt getPerformerElement() { if (myPerformer == null) { myPerformer = new ResourceReferenceDt(); } return myPerformer; } /** * Sets the value(s) for performer (Who administered vaccine?) * *

* Definition: * Clinician who administered the vaccine *

*/ public Immunization setPerformer(ResourceReferenceDt theValue) { myPerformer = theValue; return this; } /** * Gets the value(s) for requester (Who ordered vaccination?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Clinician who ordered the vaccination *

*/ public ResourceReferenceDt getRequester() { if (myRequester == null) { myRequester = new ResourceReferenceDt(); } return myRequester; } /** * Gets the value(s) for requester (Who ordered vaccination?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Clinician who ordered the vaccination *

*/ public ResourceReferenceDt getRequesterElement() { if (myRequester == null) { myRequester = new ResourceReferenceDt(); } return myRequester; } /** * Sets the value(s) for requester (Who ordered vaccination?) * *

* Definition: * Clinician who ordered the vaccination *

*/ public Immunization setRequester(ResourceReferenceDt theValue) { myRequester = theValue; return this; } /** * Gets the value(s) for manufacturer (Vaccine manufacturer). * creating it if it does * not exist. Will not return null. * *

* Definition: * Name of vaccine manufacturer *

*/ public ResourceReferenceDt getManufacturer() { if (myManufacturer == null) { myManufacturer = new ResourceReferenceDt(); } return myManufacturer; } /** * Gets the value(s) for manufacturer (Vaccine manufacturer). * creating it if it does * not exist. Will not return null. * *

* Definition: * Name of vaccine manufacturer *

*/ public ResourceReferenceDt getManufacturerElement() { if (myManufacturer == null) { myManufacturer = new ResourceReferenceDt(); } return myManufacturer; } /** * Sets the value(s) for manufacturer (Vaccine manufacturer) * *

* Definition: * Name of vaccine manufacturer *

*/ public Immunization setManufacturer(ResourceReferenceDt theValue) { myManufacturer = theValue; return this; } /** * Gets the value(s) for location (Where did vaccination occur?). * creating it if it does * not exist. Will not return null. * *

* Definition: * The service delivery location where the vaccine administration occurred. *

*/ public ResourceReferenceDt getLocation() { if (myLocation == null) { myLocation = new ResourceReferenceDt(); } return myLocation; } /** * Gets the value(s) for location (Where did vaccination occur?). * creating it if it does * not exist. Will not return null. * *

* Definition: * The service delivery location where the vaccine administration occurred. *

*/ public ResourceReferenceDt getLocationElement() { if (myLocation == null) { myLocation = new ResourceReferenceDt(); } return myLocation; } /** * Sets the value(s) for location (Where did vaccination occur?) * *

* Definition: * The service delivery location where the vaccine administration occurred. *

*/ public Immunization setLocation(ResourceReferenceDt theValue) { myLocation = theValue; return this; } /** * Gets the value(s) for lotNumber (Vaccine lot number). * creating it if it does * not exist. Will not return null. * *

* Definition: * Lot number of the vaccine product *

*/ public StringDt getLotNumber() { if (myLotNumber == null) { myLotNumber = new StringDt(); } return myLotNumber; } /** * Gets the value(s) for lotNumber (Vaccine lot number). * creating it if it does * not exist. Will not return null. * *

* Definition: * Lot number of the vaccine product *

*/ public StringDt getLotNumberElement() { if (myLotNumber == null) { myLotNumber = new StringDt(); } return myLotNumber; } /** * Sets the value(s) for lotNumber (Vaccine lot number) * *

* Definition: * Lot number of the vaccine product *

*/ public Immunization setLotNumber(StringDt theValue) { myLotNumber = theValue; return this; } /** * Sets the value for lotNumber (Vaccine lot number) * *

* Definition: * Lot number of the vaccine product *

*/ public Immunization setLotNumber( String theString) { myLotNumber = new StringDt(theString); return this; } /** * Gets the value(s) for expirationDate (Vaccine expiration date). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date vaccine batch expires *

*/ public DateDt getExpirationDate() { if (myExpirationDate == null) { myExpirationDate = new DateDt(); } return myExpirationDate; } /** * Gets the value(s) for expirationDate (Vaccine expiration date). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date vaccine batch expires *

*/ public DateDt getExpirationDateElement() { if (myExpirationDate == null) { myExpirationDate = new DateDt(); } return myExpirationDate; } /** * Sets the value(s) for expirationDate (Vaccine expiration date) * *

* Definition: * Date vaccine batch expires *

*/ public Immunization setExpirationDate(DateDt theValue) { myExpirationDate = theValue; return this; } /** * Sets the value for expirationDate (Vaccine expiration date) * *

* Definition: * Date vaccine batch expires *

*/ public Immunization setExpirationDate( Date theDate, TemporalPrecisionEnum thePrecision) { myExpirationDate = new DateDt(theDate, thePrecision); return this; } /** * Sets the value for expirationDate (Vaccine expiration date) * *

* Definition: * Date vaccine batch expires *

*/ public Immunization setExpirationDateWithDayPrecision( Date theDate) { myExpirationDate = new DateDt(theDate); return this; } /** * Gets the value(s) for site (Body site vaccine was administered). * creating it if it does * not exist. Will not return null. * *

* Definition: * Body site where vaccine was administered *

*/ public CodeableConceptDt getSite() { if (mySite == null) { mySite = new CodeableConceptDt(); } return mySite; } /** * Gets the value(s) for site (Body site vaccine was administered). * creating it if it does * not exist. Will not return null. * *

* Definition: * Body site where vaccine was administered *

*/ public CodeableConceptDt getSiteElement() { if (mySite == null) { mySite = new CodeableConceptDt(); } return mySite; } /** * Sets the value(s) for site (Body site vaccine was administered) * *

* Definition: * Body site where vaccine was administered *

*/ public Immunization setSite(CodeableConceptDt theValue) { mySite = theValue; return this; } /** * Gets the value(s) for route (How vaccine entered body). * creating it if it does * not exist. Will not return null. * *

* Definition: * The path by which the vaccine product is taken into the body. *

*/ public BoundCodeableConceptDt getRoute() { if (myRoute == null) { myRoute = new BoundCodeableConceptDt(ImmunizationRouteCodesEnum.VALUESET_BINDER); } return myRoute; } /** * Gets the value(s) for route (How vaccine entered body). * creating it if it does * not exist. Will not return null. * *

* Definition: * The path by which the vaccine product is taken into the body. *

*/ public BoundCodeableConceptDt getRouteElement() { if (myRoute == null) { myRoute = new BoundCodeableConceptDt(ImmunizationRouteCodesEnum.VALUESET_BINDER); } return myRoute; } /** * Sets the value(s) for route (How vaccine entered body) * *

* Definition: * The path by which the vaccine product is taken into the body. *

*/ public Immunization setRoute(BoundCodeableConceptDt theValue) { myRoute = theValue; return this; } /** * Sets the value(s) for route (How vaccine entered body) * *

* Definition: * The path by which the vaccine product is taken into the body. *

*/ public Immunization setRoute(ImmunizationRouteCodesEnum theValue) { getRoute().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for doseQuantity (Amount of vaccine administered). * creating it if it does * not exist. Will not return null. * *

* Definition: * The quantity of vaccine product that was administered *

*/ public QuantityDt getDoseQuantity() { if (myDoseQuantity == null) { myDoseQuantity = new QuantityDt(); } return myDoseQuantity; } /** * Gets the value(s) for doseQuantity (Amount of vaccine administered). * creating it if it does * not exist. Will not return null. * *

* Definition: * The quantity of vaccine product that was administered *

*/ public QuantityDt getDoseQuantityElement() { if (myDoseQuantity == null) { myDoseQuantity = new QuantityDt(); } return myDoseQuantity; } /** * Sets the value(s) for doseQuantity (Amount of vaccine administered) * *

* Definition: * The quantity of vaccine product that was administered *

*/ public Immunization setDoseQuantity(QuantityDt theValue) { myDoseQuantity = theValue; return this; } /** * Sets the value for doseQuantity (Amount of vaccine administered) * *

* Definition: * The quantity of vaccine product that was administered *

*/ public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { myDoseQuantity = new QuantityDt(theComparator, theValue, theUnits); return this; } /** * Sets the value for doseQuantity (Amount of vaccine administered) * *

* Definition: * The quantity of vaccine product that was administered *

*/ public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { myDoseQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); return this; } /** * Sets the value for doseQuantity (Amount of vaccine administered) * *

* Definition: * The quantity of vaccine product that was administered *

*/ public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { myDoseQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); return this; } /** * Sets the value for doseQuantity (Amount of vaccine administered) * *

* Definition: * The quantity of vaccine product that was administered *

*/ public Immunization setDoseQuantity( double theValue) { myDoseQuantity = new QuantityDt(theValue); return this; } /** * Sets the value for doseQuantity (Amount of vaccine administered) * *

* Definition: * The quantity of vaccine product that was administered *

*/ public Immunization setDoseQuantity( long theValue) { myDoseQuantity = new QuantityDt(theValue); return this; } /** * Sets the value for doseQuantity (Amount of vaccine administered) * *

* Definition: * The quantity of vaccine product that was administered *

*/ public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { myDoseQuantity = new QuantityDt(theComparator, theValue, theUnits); return this; } /** * Gets the value(s) for explanation (Administration / refusal reasons). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reasons why a vaccine was administered or refused *

*/ public Explanation getExplanation() { if (myExplanation == null) { myExplanation = new Explanation(); } return myExplanation; } /** * Gets the value(s) for explanation (Administration / refusal reasons). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reasons why a vaccine was administered or refused *

*/ public Explanation getExplanationElement() { if (myExplanation == null) { myExplanation = new Explanation(); } return myExplanation; } /** * Sets the value(s) for explanation (Administration / refusal reasons) * *

* Definition: * Reasons why a vaccine was administered or refused *

*/ public Immunization setExplanation(Explanation theValue) { myExplanation = theValue; return this; } /** * Gets the value(s) for reaction (Details of a reaction that follows immunization). * creating it if it does * not exist. Will not return null. * *

* Definition: * Categorical data indicating that an adverse event is associated in time to an immunization *

*/ public java.util.List getReaction() { if (myReaction == null) { myReaction = new java.util.ArrayList(); } return myReaction; } /** * Gets the value(s) for reaction (Details of a reaction that follows immunization). * creating it if it does * not exist. Will not return null. * *

* Definition: * Categorical data indicating that an adverse event is associated in time to an immunization *

*/ public java.util.List getReactionElement() { if (myReaction == null) { myReaction = new java.util.ArrayList(); } return myReaction; } /** * Sets the value(s) for reaction (Details of a reaction that follows immunization) * *

* Definition: * Categorical data indicating that an adverse event is associated in time to an immunization *

*/ public Immunization setReaction(java.util.List theValue) { myReaction = theValue; return this; } /** * Adds and returns a new value for reaction (Details of a reaction that follows immunization) * *

* Definition: * Categorical data indicating that an adverse event is associated in time to an immunization *

*/ public Reaction addReaction() { Reaction newType = new Reaction(); getReaction().add(newType); return newType; } /** * Gets the first repetition for reaction (Details of a reaction that follows immunization), * creating it if it does not already exist. * *

* Definition: * Categorical data indicating that an adverse event is associated in time to an immunization *

*/ public Reaction getReactionFirstRep() { if (getReaction().isEmpty()) { return addReaction(); } return getReaction().get(0); } /** * Gets the value(s) for vaccinationProtocol (What protocol was followed). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contains information about the protocol(s) under which the vaccine was administered *

*/ public java.util.List getVaccinationProtocol() { if (myVaccinationProtocol == null) { myVaccinationProtocol = new java.util.ArrayList(); } return myVaccinationProtocol; } /** * Gets the value(s) for vaccinationProtocol (What protocol was followed). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contains information about the protocol(s) under which the vaccine was administered *

*/ public java.util.List getVaccinationProtocolElement() { if (myVaccinationProtocol == null) { myVaccinationProtocol = new java.util.ArrayList(); } return myVaccinationProtocol; } /** * Sets the value(s) for vaccinationProtocol (What protocol was followed) * *

* Definition: * Contains information about the protocol(s) under which the vaccine was administered *

*/ public Immunization setVaccinationProtocol(java.util.List theValue) { myVaccinationProtocol = theValue; return this; } /** * Adds and returns a new value for vaccinationProtocol (What protocol was followed) * *

* Definition: * Contains information about the protocol(s) under which the vaccine was administered *

*/ public VaccinationProtocol addVaccinationProtocol() { VaccinationProtocol newType = new VaccinationProtocol(); getVaccinationProtocol().add(newType); return newType; } /** * Gets the first repetition for vaccinationProtocol (What protocol was followed), * creating it if it does not already exist. * *

* Definition: * Contains information about the protocol(s) under which the vaccine was administered *

*/ public VaccinationProtocol getVaccinationProtocolFirstRep() { if (getVaccinationProtocol().isEmpty()) { return addVaccinationProtocol(); } return getVaccinationProtocol().get(0); } /** * Block class for child element: Immunization.explanation (Administration / refusal reasons) * *

* Definition: * Reasons why a vaccine was administered or refused *

*/ @Block() public static class Explanation extends BaseIdentifiableElement implements IResourceBlock { @Child(name="reason", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Why immunization occurred", formalDefinition="Reasons why a vaccine was administered" ) private java.util.List> myReason; @Child(name="refusalReason", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Why immunization did not occur", formalDefinition="Refusal or exemption reasons" ) private java.util.List myRefusalReason; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReason, myRefusalReason); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReason, myRefusalReason); } /** * Gets the value(s) for reason (Why immunization occurred). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reasons why a vaccine was administered *

*/ public java.util.List> getReason() { if (myReason == null) { myReason = new java.util.ArrayList>(); } return myReason; } /** * Gets the value(s) for reason (Why immunization occurred). * creating it if it does * not exist. Will not return null. * *

* Definition: * Reasons why a vaccine was administered *

*/ public java.util.List> getReasonElement() { if (myReason == null) { myReason = new java.util.ArrayList>(); } return myReason; } /** * Sets the value(s) for reason (Why immunization occurred) * *

* Definition: * Reasons why a vaccine was administered *

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

* Definition: * Reasons why a vaccine was administered *

*/ public BoundCodeableConceptDt addReason(ImmunizationReasonCodesEnum theValue) { BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ImmunizationReasonCodesEnum.VALUESET_BINDER, theValue); getReason().add(retVal); return retVal; } /** * Gets the first repetition for reason (Why immunization occurred), * creating it if it does not already exist. * *

* Definition: * Reasons why a vaccine was administered *

*/ public BoundCodeableConceptDt getReasonFirstRep() { if (getReason().size() == 0) { addReason(); } return getReason().get(0); } /** * Add a value for reason (Why immunization occurred) * *

* Definition: * Reasons why a vaccine was administered *

*/ public BoundCodeableConceptDt addReason() { BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ImmunizationReasonCodesEnum.VALUESET_BINDER); getReason().add(retVal); return retVal; } /** * Sets the value(s), and clears any existing value(s) for reason (Why immunization occurred) * *

* Definition: * Reasons why a vaccine was administered *

*/ public Explanation setReason(ImmunizationReasonCodesEnum theValue) { getReason().clear(); addReason(theValue); return this; } /** * Gets the value(s) for refusalReason (Why immunization did not occur). * creating it if it does * not exist. Will not return null. * *

* Definition: * Refusal or exemption reasons *

*/ public java.util.List getRefusalReason() { if (myRefusalReason == null) { myRefusalReason = new java.util.ArrayList(); } return myRefusalReason; } /** * Gets the value(s) for refusalReason (Why immunization did not occur). * creating it if it does * not exist. Will not return null. * *

* Definition: * Refusal or exemption reasons *

*/ public java.util.List getRefusalReasonElement() { if (myRefusalReason == null) { myRefusalReason = new java.util.ArrayList(); } return myRefusalReason; } /** * Sets the value(s) for refusalReason (Why immunization did not occur) * *

* Definition: * Refusal or exemption reasons *

*/ public Explanation setRefusalReason(java.util.List theValue) { myRefusalReason = theValue; return this; } /** * Adds and returns a new value for refusalReason (Why immunization did not occur) * *

* Definition: * Refusal or exemption reasons *

*/ public CodeableConceptDt addRefusalReason() { CodeableConceptDt newType = new CodeableConceptDt(); getRefusalReason().add(newType); return newType; } /** * Gets the first repetition for refusalReason (Why immunization did not occur), * creating it if it does not already exist. * *

* Definition: * Refusal or exemption reasons *

*/ public CodeableConceptDt getRefusalReasonFirstRep() { if (getRefusalReason().isEmpty()) { return addRefusalReason(); } return getRefusalReason().get(0); } } /** * Block class for child element: Immunization.reaction (Details of a reaction that follows immunization) * *

* Definition: * Categorical data indicating that an adverse event is associated in time to an immunization *

*/ @Block() public static class Reaction extends BaseIdentifiableElement implements IResourceBlock { @Child(name="date", type=DateTimeDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="When did reaction start?", formalDefinition="Date of reaction to the immunization" ) private DateTimeDt myDate; @Child(name="detail", order=1, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.AdverseReaction.class, ca.uhn.fhir.model.dstu.resource.Observation.class }) @Description( shortDefinition="Additional information on reaction", formalDefinition="Details of the reaction" ) private ResourceReferenceDt myDetail; @Child(name="reported", type=BooleanDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Was reaction self-reported?", formalDefinition="Self-reported indicator" ) private BooleanDt myReported; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDate, myDetail, myReported); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDate, myDetail, myReported); } /** * Gets the value(s) for date (When did reaction start?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date of reaction to the immunization *

*/ public DateTimeDt getDate() { if (myDate == null) { myDate = new DateTimeDt(); } return myDate; } /** * Gets the value(s) for date (When did reaction start?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Date of reaction to the immunization *

*/ public DateTimeDt getDateElement() { if (myDate == null) { myDate = new DateTimeDt(); } return myDate; } /** * Sets the value(s) for date (When did reaction start?) * *

* Definition: * Date of reaction to the immunization *

*/ public Reaction setDate(DateTimeDt theValue) { myDate = theValue; return this; } /** * Sets the value for date (When did reaction start?) * *

* Definition: * Date of reaction to the immunization *

*/ public Reaction setDate( Date theDate, TemporalPrecisionEnum thePrecision) { myDate = new DateTimeDt(theDate, thePrecision); return this; } /** * Sets the value for date (When did reaction start?) * *

* Definition: * Date of reaction to the immunization *

*/ public Reaction setDateWithSecondsPrecision( Date theDate) { myDate = new DateTimeDt(theDate); return this; } /** * Gets the value(s) for detail (Additional information on reaction). * creating it if it does * not exist. Will not return null. * *

* Definition: * Details of the reaction *

*/ public ResourceReferenceDt getDetail() { if (myDetail == null) { myDetail = new ResourceReferenceDt(); } return myDetail; } /** * Gets the value(s) for detail (Additional information on reaction). * creating it if it does * not exist. Will not return null. * *

* Definition: * Details of the reaction *

*/ public ResourceReferenceDt getDetailElement() { if (myDetail == null) { myDetail = new ResourceReferenceDt(); } return myDetail; } /** * Sets the value(s) for detail (Additional information on reaction) * *

* Definition: * Details of the reaction *

*/ public Reaction setDetail(ResourceReferenceDt theValue) { myDetail = theValue; return this; } /** * Gets the value(s) for reported (Was reaction self-reported?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Self-reported indicator *

*/ public BooleanDt getReported() { if (myReported == null) { myReported = new BooleanDt(); } return myReported; } /** * Gets the value(s) for reported (Was reaction self-reported?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Self-reported indicator *

*/ public BooleanDt getReportedElement() { if (myReported == null) { myReported = new BooleanDt(); } return myReported; } /** * Sets the value(s) for reported (Was reaction self-reported?) * *

* Definition: * Self-reported indicator *

*/ public Reaction setReported(BooleanDt theValue) { myReported = theValue; return this; } /** * Sets the value for reported (Was reaction self-reported?) * *

* Definition: * Self-reported indicator *

*/ public Reaction setReported( boolean theBoolean) { myReported = new BooleanDt(theBoolean); return this; } } /** * Block class for child element: Immunization.vaccinationProtocol (What protocol was followed) * *

* Definition: * Contains information about the protocol(s) under which the vaccine was administered *

*/ @Block() public static class VaccinationProtocol extends BaseIdentifiableElement implements IResourceBlock { @Child(name="doseSequence", type=IntegerDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="What dose number within series?", formalDefinition="Nominal position in a series" ) private IntegerDt myDoseSequence; @Child(name="description", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Details of vaccine protocol", formalDefinition="Contains the description about the protocol under which the vaccine was administered" ) private StringDt myDescription; @Child(name="authority", order=2, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Organization.class }) @Description( shortDefinition="Who is responsible for protocol", formalDefinition="Indicates the authority who published the protocol? E.g. ACIP" ) private ResourceReferenceDt myAuthority; @Child(name="series", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Name of vaccine series", formalDefinition="One possible path to achieve presumed immunity against a disease - within the context of an authority" ) private StringDt mySeries; @Child(name="seriesDoses", type=IntegerDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Recommended number of doses for immunity", formalDefinition="The recommended number of doses to achieve immunity." ) private IntegerDt mySeriesDoses; @Child(name="doseTarget", type=CodeableConceptDt.class, order=5, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Disease immunized against", formalDefinition="The targeted disease" ) private CodeableConceptDt myDoseTarget; @Child(name="doseStatus", type=CodeableConceptDt.class, order=6, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Does dose count towards immunity?", formalDefinition="Indicates if the immunization event should \"count\" against the protocol." ) private CodeableConceptDt myDoseStatus; @Child(name="doseStatusReason", type=CodeableConceptDt.class, order=7, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Why does does count/not count?", formalDefinition="Provides an explanation as to why a immunization event should or should not count against the protocol." ) private CodeableConceptDt myDoseStatusReason; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDoseSequence, myDescription, myAuthority, mySeries, mySeriesDoses, myDoseTarget, myDoseStatus, myDoseStatusReason); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDoseSequence, myDescription, myAuthority, mySeries, mySeriesDoses, myDoseTarget, myDoseStatus, myDoseStatusReason); } /** * Gets the value(s) for doseSequence (What dose number within series?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Nominal position in a series *

*/ public IntegerDt getDoseSequence() { if (myDoseSequence == null) { myDoseSequence = new IntegerDt(); } return myDoseSequence; } /** * Gets the value(s) for doseSequence (What dose number within series?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Nominal position in a series *

*/ public IntegerDt getDoseSequenceElement() { if (myDoseSequence == null) { myDoseSequence = new IntegerDt(); } return myDoseSequence; } /** * Sets the value(s) for doseSequence (What dose number within series?) * *

* Definition: * Nominal position in a series *

*/ public VaccinationProtocol setDoseSequence(IntegerDt theValue) { myDoseSequence = theValue; return this; } /** * Sets the value for doseSequence (What dose number within series?) * *

* Definition: * Nominal position in a series *

*/ public VaccinationProtocol setDoseSequence( int theInteger) { myDoseSequence = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for description (Details of vaccine protocol). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contains the description about the protocol under which the vaccine was administered *

*/ public StringDt getDescription() { if (myDescription == null) { myDescription = new StringDt(); } return myDescription; } /** * Gets the value(s) for description (Details of vaccine protocol). * creating it if it does * not exist. Will not return null. * *

* Definition: * Contains the description about the protocol under which the vaccine was administered *

*/ public StringDt getDescriptionElement() { if (myDescription == null) { myDescription = new StringDt(); } return myDescription; } /** * Sets the value(s) for description (Details of vaccine protocol) * *

* Definition: * Contains the description about the protocol under which the vaccine was administered *

*/ public VaccinationProtocol setDescription(StringDt theValue) { myDescription = theValue; return this; } /** * Sets the value for description (Details of vaccine protocol) * *

* Definition: * Contains the description about the protocol under which the vaccine was administered *

*/ public VaccinationProtocol setDescription( String theString) { myDescription = new StringDt(theString); return this; } /** * Gets the value(s) for authority (Who is responsible for protocol). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the authority who published the protocol? E.g. ACIP *

*/ public ResourceReferenceDt getAuthority() { if (myAuthority == null) { myAuthority = new ResourceReferenceDt(); } return myAuthority; } /** * Gets the value(s) for authority (Who is responsible for protocol). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the authority who published the protocol? E.g. ACIP *

*/ public ResourceReferenceDt getAuthorityElement() { if (myAuthority == null) { myAuthority = new ResourceReferenceDt(); } return myAuthority; } /** * Sets the value(s) for authority (Who is responsible for protocol) * *

* Definition: * Indicates the authority who published the protocol? E.g. ACIP *

*/ public VaccinationProtocol setAuthority(ResourceReferenceDt theValue) { myAuthority = theValue; return this; } /** * Gets the value(s) for series (Name of vaccine series). * creating it if it does * not exist. Will not return null. * *

* Definition: * One possible path to achieve presumed immunity against a disease - within the context of an authority *

*/ public StringDt getSeries() { if (mySeries == null) { mySeries = new StringDt(); } return mySeries; } /** * Gets the value(s) for series (Name of vaccine series). * creating it if it does * not exist. Will not return null. * *

* Definition: * One possible path to achieve presumed immunity against a disease - within the context of an authority *

*/ public StringDt getSeriesElement() { if (mySeries == null) { mySeries = new StringDt(); } return mySeries; } /** * Sets the value(s) for series (Name of vaccine series) * *

* Definition: * One possible path to achieve presumed immunity against a disease - within the context of an authority *

*/ public VaccinationProtocol setSeries(StringDt theValue) { mySeries = theValue; return this; } /** * Sets the value for series (Name of vaccine series) * *

* Definition: * One possible path to achieve presumed immunity against a disease - within the context of an authority *

*/ public VaccinationProtocol setSeries( String theString) { mySeries = new StringDt(theString); return this; } /** * Gets the value(s) for seriesDoses (Recommended number of doses for immunity). * creating it if it does * not exist. Will not return null. * *

* Definition: * The recommended number of doses to achieve immunity. *

*/ public IntegerDt getSeriesDoses() { if (mySeriesDoses == null) { mySeriesDoses = new IntegerDt(); } return mySeriesDoses; } /** * Gets the value(s) for seriesDoses (Recommended number of doses for immunity). * creating it if it does * not exist. Will not return null. * *

* Definition: * The recommended number of doses to achieve immunity. *

*/ public IntegerDt getSeriesDosesElement() { if (mySeriesDoses == null) { mySeriesDoses = new IntegerDt(); } return mySeriesDoses; } /** * Sets the value(s) for seriesDoses (Recommended number of doses for immunity) * *

* Definition: * The recommended number of doses to achieve immunity. *

*/ public VaccinationProtocol setSeriesDoses(IntegerDt theValue) { mySeriesDoses = theValue; return this; } /** * Sets the value for seriesDoses (Recommended number of doses for immunity) * *

* Definition: * The recommended number of doses to achieve immunity. *

*/ public VaccinationProtocol setSeriesDoses( int theInteger) { mySeriesDoses = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for doseTarget (Disease immunized against). * creating it if it does * not exist. Will not return null. * *

* Definition: * The targeted disease *

*/ public CodeableConceptDt getDoseTarget() { if (myDoseTarget == null) { myDoseTarget = new CodeableConceptDt(); } return myDoseTarget; } /** * Gets the value(s) for doseTarget (Disease immunized against). * creating it if it does * not exist. Will not return null. * *

* Definition: * The targeted disease *

*/ public CodeableConceptDt getDoseTargetElement() { if (myDoseTarget == null) { myDoseTarget = new CodeableConceptDt(); } return myDoseTarget; } /** * Sets the value(s) for doseTarget (Disease immunized against) * *

* Definition: * The targeted disease *

*/ public VaccinationProtocol setDoseTarget(CodeableConceptDt theValue) { myDoseTarget = theValue; return this; } /** * Gets the value(s) for doseStatus (Does dose count towards immunity?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates if the immunization event should \"count\" against the protocol. *

*/ public CodeableConceptDt getDoseStatus() { if (myDoseStatus == null) { myDoseStatus = new CodeableConceptDt(); } return myDoseStatus; } /** * Gets the value(s) for doseStatus (Does dose count towards immunity?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates if the immunization event should \"count\" against the protocol. *

*/ public CodeableConceptDt getDoseStatusElement() { if (myDoseStatus == null) { myDoseStatus = new CodeableConceptDt(); } return myDoseStatus; } /** * Sets the value(s) for doseStatus (Does dose count towards immunity?) * *

* Definition: * Indicates if the immunization event should \"count\" against the protocol. *

*/ public VaccinationProtocol setDoseStatus(CodeableConceptDt theValue) { myDoseStatus = theValue; return this; } /** * Gets the value(s) for doseStatusReason (Why does does count/not count?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Provides an explanation as to why a immunization event should or should not count against the protocol. *

*/ public CodeableConceptDt getDoseStatusReason() { if (myDoseStatusReason == null) { myDoseStatusReason = new CodeableConceptDt(); } return myDoseStatusReason; } /** * Gets the value(s) for doseStatusReason (Why does does count/not count?). * creating it if it does * not exist. Will not return null. * *

* Definition: * Provides an explanation as to why a immunization event should or should not count against the protocol. *

*/ public CodeableConceptDt getDoseStatusReasonElement() { if (myDoseStatusReason == null) { myDoseStatusReason = new CodeableConceptDt(); } return myDoseStatusReason; } /** * Sets the value(s) for doseStatusReason (Why does does count/not count?) * *

* Definition: * Provides an explanation as to why a immunization event should or should not count against the protocol. *

*/ public VaccinationProtocol setDoseStatusReason(CodeableConceptDt theValue) { myDoseStatusReason = theValue; return this; } } @Override public String getResourceName() { return "Immunization"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy