ca.uhn.fhir.model.dstu2.resource.Encounter Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu2.resource;
import java.math.BigDecimal;
import java.net.URI;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;
import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
import ca.uhn.fhir.model.dstu2.composite.AddressDt;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
import ca.uhn.fhir.model.dstu2.resource.Appointment;
import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.resource.BodySite;
import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.CarePlan;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Claim;
import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Composition;
import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu2.resource.Condition;
import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.Contract;
import ca.uhn.fhir.model.dstu2.resource.Coverage;
import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
import ca.uhn.fhir.model.dstu2.resource.Encounter;
import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Goal;
import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Group;
import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu2.resource.Immunization;
import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Location;
import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
import ca.uhn.fhir.model.dstu2.resource.Media;
import ca.uhn.fhir.model.dstu2.resource.Medication;
import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Observation;
import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Order;
import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Person;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.resource.Procedure;
import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.composite.RatioDt;
import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu2.resource.Schedule;
import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
import ca.uhn.fhir.model.dstu2.resource.Slot;
import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Specimen;
import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.Substance;
import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.composite.TimingDt;
import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.composite.AgeDt;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.TimeDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR Encounter Resource
* (workflow.encounter)
*
*
* Definition:
* An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
*
*
*
* Requirements:
*
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/Encounter
*
*
*/
@ResourceDef(name="Encounter", profile="http://hl7.org/fhir/profiles/Encounter", id="encounter")
public class Encounter extends ca.uhn.fhir.model.dstu2.resource.BaseResource
implements IResource
{
/**
* Search parameter constant for identifier
*
* Description:
* Type: token
* Path: Encounter.identifier
*
*/
@SearchParamDefinition(name="identifier", path="Encounter.identifier", description="", type="token"
)
public static final String SP_IDENTIFIER = "identifier";
/**
* Fluent Client search parameter constant for identifier
*
* Description:
* Type: token
* Path: Encounter.identifier
*
*/
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter constant for status
*
* Description:
* Type: token
* Path: Encounter.status
*
*/
@SearchParamDefinition(name="status", path="Encounter.status", description="", type="token"
)
public static final String SP_STATUS = "status";
/**
* Fluent Client search parameter constant for status
*
* Description:
* Type: token
* Path: Encounter.status
*
*/
public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
/**
* Search parameter constant for date
*
* Description: A date within the period the Encounter lasted
* Type: date
* Path: Encounter.period
*
*/
@SearchParamDefinition(name="date", path="Encounter.period", description="A date within the period the Encounter lasted", type="date"
)
public static final String SP_DATE = "date";
/**
* Fluent Client search parameter constant for date
*
* Description: A date within the period the Encounter lasted
* Type: date
* Path: Encounter.period
*
*/
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
/**
* Search parameter constant for patient
*
* Description:
* Type: reference
* Path: Encounter.patient
*
*/
@SearchParamDefinition(name="patient", path="Encounter.patient", description="", type="reference"
, providesMembershipIn={
@Compartment(name="Patient") }
, target={
ca.uhn.fhir.model.dstu2.resource.Patient.class }
)
public static final String SP_PATIENT = "patient";
/**
* Fluent Client search parameter constant for patient
*
* Description:
* Type: reference
* Path: Encounter.patient
*
*/
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
/**
* Search parameter constant for appointment
*
* Description:
* Type: reference
* Path: Encounter.appointment
*
*/
@SearchParamDefinition(name="appointment", path="Encounter.appointment", description="", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.Appointment.class }
)
public static final String SP_APPOINTMENT = "appointment";
/**
* Fluent Client search parameter constant for appointment
*
* Description:
* Type: reference
* Path: Encounter.appointment
*
*/
public static final ReferenceClientParam APPOINTMENT = new ReferenceClientParam(SP_APPOINTMENT);
/**
* Search parameter constant for length
*
* Description: Length of encounter in days
* Type: number
* Path: Encounter.length
*
*/
@SearchParamDefinition(name="length", path="Encounter.length", description="Length of encounter in days", type="number"
)
public static final String SP_LENGTH = "length";
/**
* Fluent Client search parameter constant for length
*
* Description: Length of encounter in days
* Type: number
* Path: Encounter.length
*
*/
public static final NumberClientParam LENGTH = new NumberClientParam(SP_LENGTH);
/**
* Search parameter constant for reason
*
* Description:
* Type: token
* Path: Encounter.reason
*
*/
@SearchParamDefinition(name="reason", path="Encounter.reason", description="", type="token"
)
public static final String SP_REASON = "reason";
/**
* Fluent Client search parameter constant for reason
*
* Description:
* Type: token
* Path: Encounter.reason
*
*/
public static final TokenClientParam REASON = new TokenClientParam(SP_REASON);
/**
* Search parameter constant for indication
*
* Description:
* Type: reference
* Path: Encounter.indication
*
*/
@SearchParamDefinition(name="indication", path="Encounter.indication", description="", type="reference"
)
public static final String SP_INDICATION = "indication";
/**
* Fluent Client search parameter constant for indication
*
* Description:
* Type: reference
* Path: Encounter.indication
*
*/
public static final ReferenceClientParam INDICATION = new ReferenceClientParam(SP_INDICATION);
/**
* Search parameter constant for condition
*
* Description:
* Type: reference
* Path: Encounter.indication
*
*/
@SearchParamDefinition(name="condition", path="Encounter.indication", description="", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.Condition.class }
)
public static final String SP_CONDITION = "condition";
/**
* Fluent Client search parameter constant for condition
*
* Description:
* Type: reference
* Path: Encounter.indication
*
*/
public static final ReferenceClientParam CONDITION = new ReferenceClientParam(SP_CONDITION);
/**
* Search parameter constant for procedure
*
* Description:
* Type: reference
* Path: Encounter.indication
*
*/
@SearchParamDefinition(name="procedure", path="Encounter.indication", description="", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.Procedure.class }
)
public static final String SP_PROCEDURE = "procedure";
/**
* Fluent Client search parameter constant for procedure
*
* Description:
* Type: reference
* Path: Encounter.indication
*
*/
public static final ReferenceClientParam PROCEDURE = new ReferenceClientParam(SP_PROCEDURE);
/**
* Search parameter constant for location
*
* Description:
* Type: reference
* Path: Encounter.location.location
*
*/
@SearchParamDefinition(name="location", path="Encounter.location.location", description="", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.Location.class }
)
public static final String SP_LOCATION = "location";
/**
* Fluent Client search parameter constant for location
*
* Description:
* Type: reference
* Path: Encounter.location.location
*
*/
public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION);
/**
* Search parameter constant for location-period
*
* Description:
* Type: date
* Path: Encounter.location.period
*
*/
@SearchParamDefinition(name="location-period", path="Encounter.location.period", description="", type="date"
)
public static final String SP_LOCATION_PERIOD = "location-period";
/**
* Fluent Client search parameter constant for location-period
*
* Description:
* Type: date
* Path: Encounter.location.period
*
*/
public static final DateClientParam LOCATION_PERIOD = new DateClientParam(SP_LOCATION_PERIOD);
/**
* Search parameter constant for type
*
* Description:
* Type: token
* Path: Encounter.type
*
*/
@SearchParamDefinition(name="type", path="Encounter.type", description="", type="token"
)
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description:
* Type: token
* Path: Encounter.type
*
*/
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
/**
* Search parameter constant for special-arrangement
*
* Description:
* Type: token
* Path: Encounter.hospitalization.specialArrangement
*
*/
@SearchParamDefinition(name="special-arrangement", path="Encounter.hospitalization.specialArrangement", description="", type="token"
)
public static final String SP_SPECIAL_ARRANGEMENT = "special-arrangement";
/**
* Fluent Client search parameter constant for special-arrangement
*
* Description:
* Type: token
* Path: Encounter.hospitalization.specialArrangement
*
*/
public static final TokenClientParam SPECIAL_ARRANGEMENT = new TokenClientParam(SP_SPECIAL_ARRANGEMENT);
/**
* Search parameter constant for part-of
*
* Description:
* Type: reference
* Path: Encounter.partOf
*
*/
@SearchParamDefinition(name="part-of", path="Encounter.partOf", description="", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.Encounter.class }
)
public static final String SP_PART_OF = "part-of";
/**
* Fluent Client search parameter constant for part-of
*
* Description:
* Type: reference
* Path: Encounter.partOf
*
*/
public static final ReferenceClientParam PART_OF = new ReferenceClientParam(SP_PART_OF);
/**
* Search parameter constant for participant
*
* Description:
* Type: reference
* Path: Encounter.participant.individual
*
*/
@SearchParamDefinition(name="participant", path="Encounter.participant.individual", description="", type="reference"
, providesMembershipIn={
@Compartment(name="RelatedPerson") , @Compartment(name="Practitioner") }
)
public static final String SP_PARTICIPANT = "participant";
/**
* Fluent Client search parameter constant for participant
*
* Description:
* Type: reference
* Path: Encounter.participant.individual
*
*/
public static final ReferenceClientParam PARTICIPANT = new ReferenceClientParam(SP_PARTICIPANT);
/**
* Search parameter constant for participant-type
*
* Description:
* Type: token
* Path: Encounter.participant.type
*
*/
@SearchParamDefinition(name="participant-type", path="Encounter.participant.type", description="", type="token"
)
public static final String SP_PARTICIPANT_TYPE = "participant-type";
/**
* Fluent Client search parameter constant for participant-type
*
* Description:
* Type: token
* Path: Encounter.participant.type
*
*/
public static final TokenClientParam PARTICIPANT_TYPE = new TokenClientParam(SP_PARTICIPANT_TYPE);
/**
* Search parameter constant for episodeofcare
*
* Description:
* Type: reference
* Path: Encounter.episodeOfCare
*
*/
@SearchParamDefinition(name="episodeofcare", path="Encounter.episodeOfCare", description="", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare.class }
)
public static final String SP_EPISODEOFCARE = "episodeofcare";
/**
* Fluent Client search parameter constant for episodeofcare
*
* Description:
* Type: reference
* Path: Encounter.episodeOfCare
*
*/
public static final ReferenceClientParam EPISODEOFCARE = new ReferenceClientParam(SP_EPISODEOFCARE);
/**
* Search parameter constant for incomingreferral
*
* Description:
* Type: reference
* Path: Encounter.incomingReferral
*
*/
@SearchParamDefinition(name="incomingreferral", path="Encounter.incomingReferral", description="", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.ReferralRequest.class }
)
public static final String SP_INCOMINGREFERRAL = "incomingreferral";
/**
* Fluent Client search parameter constant for incomingreferral
*
* Description:
* Type: reference
* Path: Encounter.incomingReferral
*
*/
public static final ReferenceClientParam INCOMINGREFERRAL = new ReferenceClientParam(SP_INCOMINGREFERRAL);
/**
* Search parameter constant for practitioner
*
* Description:
* Type: reference
* Path: Encounter.participant.individual
*
*/
@SearchParamDefinition(name="practitioner", path="Encounter.participant.individual", description="", type="reference"
, providesMembershipIn={
@Compartment(name="Practitioner") }
, target={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class }
)
public static final String SP_PRACTITIONER = "practitioner";
/**
* Fluent Client search parameter constant for practitioner
*
* Description:
* Type: reference
* Path: Encounter.participant.individual
*
*/
public static final ReferenceClientParam PRACTITIONER = new ReferenceClientParam(SP_PRACTITIONER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:appointment".
*/
public static final Include INCLUDE_APPOINTMENT = new Include("Encounter:appointment");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:condition".
*/
public static final Include INCLUDE_CONDITION = new Include("Encounter:condition");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:episodeofcare".
*/
public static final Include INCLUDE_EPISODEOFCARE = new Include("Encounter:episodeofcare");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:incomingreferral".
*/
public static final Include INCLUDE_INCOMINGREFERRAL = new Include("Encounter:incomingreferral");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:indication".
*/
public static final Include INCLUDE_INDICATION = new Include("Encounter:indication");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:location".
*/
public static final Include INCLUDE_LOCATION = new Include("Encounter:location");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:part-of".
*/
public static final Include INCLUDE_PART_OF = new Include("Encounter:part-of");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:participant".
*/
public static final Include INCLUDE_PARTICIPANT = new Include("Encounter:participant");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:patient".
*/
public static final Include INCLUDE_PATIENT = new Include("Encounter:patient");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:practitioner".
*/
public static final Include INCLUDE_PRACTITIONER = new Include("Encounter:practitioner");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter:procedure".
*/
public static final Include INCLUDE_PROCEDURE = new Include("Encounter:procedure");
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="id",
formalDefinition=""
)
private java.util.List myIdentifier;
@Child(name="status", type=CodeDt.class, order=1, min=1, max=1, summary=true, modifier=true)
@Description(
shortDefinition="status",
formalDefinition=""
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/encounter-state")
private BoundCodeDt myStatus;
@Child(name="statusHistory", order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them"
)
private java.util.List myStatusHistory;
@Child(name="class", type=CodeDt.class, order=3, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="class",
formalDefinition=""
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/encounter-class")
private BoundCodeDt myClassElement;
@Child(name="type", type=CodeableConceptDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="class",
formalDefinition="Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)"
)
private java.util.List myType;
@Child(name="priority", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="grade",
formalDefinition=""
)
private CodeableConceptDt myPriority;
@Child(name="patient", order=6, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Patient.class
})
@Description(
shortDefinition="who.focus",
formalDefinition=""
)
private ResourceReferenceDt myPatient;
@Child(name="episodeOfCare", order=7, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare.class
})
@Description(
shortDefinition="context",
formalDefinition="Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years)"
)
private java.util.List myEpisodeOfCare;
@Child(name="incomingReferral", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.ReferralRequest.class
})
@Description(
shortDefinition="",
formalDefinition="The referral request this encounter satisfies (incoming referral)"
)
private java.util.List myIncomingReferral;
@Child(name="participant", order=9, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The list of people responsible for providing the service"
)
private java.util.List myParticipant;
@Child(name="appointment", order=10, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Appointment.class
})
@Description(
shortDefinition="",
formalDefinition=""
)
private ResourceReferenceDt myAppointment;
@Child(name="period", type=PeriodDt.class, order=11, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="when.done",
formalDefinition="The start and end time of the encounter"
)
private PeriodDt myPeriod;
@Child(name="length", type=DurationDt.class, order=12, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Quantity of time the encounter lasted. This excludes the time during leaves of absence."
)
private DurationDt myLength;
@Child(name="reason", type=CodeableConceptDt.class, order=13, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="why",
formalDefinition="Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis"
)
private java.util.List myReason;
@Child(name="indication", order=14, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Condition.class,
ca.uhn.fhir.model.dstu2.resource.Procedure.class
})
@Description(
shortDefinition="why",
formalDefinition="Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure"
)
private java.util.List myIndication;
@Child(name="hospitalization", order=15, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
private Hospitalization myHospitalization;
@Child(name="location", order=16, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="List of locations where the patient has been during this encounter"
)
private java.util.List myLocation;
@Child(name="serviceProvider", order=17, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Organization.class
})
@Description(
shortDefinition="",
formalDefinition="An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization."
)
private ResourceReferenceDt myServiceProvider;
@Child(name="partOf", order=18, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Encounter.class
})
@Description(
shortDefinition="",
formalDefinition="Another Encounter of which this encounter is a part of (administratively or in time)."
)
private ResourceReferenceDt myPartOf;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myStatusHistory, myClassElement, myType, myPriority, myPatient, myEpisodeOfCare, myIncomingReferral, myParticipant, myAppointment, myPeriod, myLength, myReason, myIndication, myHospitalization, myLocation, myServiceProvider, myPartOf);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myStatusHistory, myClassElement, myType, myPriority, myPatient, myEpisodeOfCare, myIncomingReferral, myParticipant, myAppointment, myPeriod, myLength, myReason, myIndication, myHospitalization, myLocation, myServiceProvider, myPartOf);
}
/**
* Gets the value(s) for identifier (id).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (id)
*
*
* Definition:
*
*
*/
public Encounter setIdentifier(java.util.List theValue) {
myIdentifier = theValue;
return this;
}
/**
* Adds and returns a new value for identifier (id)
*
*
* Definition:
*
*
*/
public IdentifierDt addIdentifier() {
IdentifierDt newType = new IdentifierDt();
getIdentifier().add(newType);
return newType;
}
/**
* Adds a given new value for identifier (id)
*
*
* Definition:
*
*
* @param theValue The identifier to add (must not be null
)
*/
public Encounter addIdentifier(IdentifierDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getIdentifier().add(theValue);
return this;
}
/**
* Gets the first repetition for identifier (id),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public IdentifierDt getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
return addIdentifier();
}
return getIdentifier().get(0);
}
/**
* Gets the value(s) for status (status).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public BoundCodeDt getStatusElement() {
if (myStatus == null) {
myStatus = new BoundCodeDt(EncounterStateEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status (status).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
*
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
*
*
*/
public Encounter setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
*
*
*/
public Encounter setStatus(EncounterStateEnum theValue) {
setStatus(new BoundCodeDt(EncounterStateEnum.VALUESET_BINDER, theValue));
/*
getStatusElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for statusHistory ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them
*
*/
public java.util.List getStatusHistory() {
if (myStatusHistory == null) {
myStatusHistory = new java.util.ArrayList();
}
return myStatusHistory;
}
/**
* Sets the value(s) for statusHistory ()
*
*
* Definition:
* The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them
*
*/
public Encounter setStatusHistory(java.util.List theValue) {
myStatusHistory = theValue;
return this;
}
/**
* Adds and returns a new value for statusHistory ()
*
*
* Definition:
* The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them
*
*/
public StatusHistory addStatusHistory() {
StatusHistory newType = new StatusHistory();
getStatusHistory().add(newType);
return newType;
}
/**
* Adds a given new value for statusHistory ()
*
*
* Definition:
* The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them
*
* @param theValue The statusHistory to add (must not be null
)
*/
public Encounter addStatusHistory(StatusHistory theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getStatusHistory().add(theValue);
return this;
}
/**
* Gets the first repetition for statusHistory (),
* creating it if it does not already exist.
*
*
* Definition:
* The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them
*
*/
public StatusHistory getStatusHistoryFirstRep() {
if (getStatusHistory().isEmpty()) {
return addStatusHistory();
}
return getStatusHistory().get(0);
}
/**
* Gets the value(s) for class (class).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public BoundCodeDt getClassElementElement() {
if (myClassElement == null) {
myClassElement = new BoundCodeDt(EncounterClassEnum.VALUESET_BINDER);
}
return myClassElement;
}
/**
* Gets the value(s) for class (class).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
*
*
*/
public String getClassElement() {
return getClassElementElement().getValue();
}
/**
* Sets the value(s) for class (class)
*
*
* Definition:
*
*
*/
public Encounter setClassElement(BoundCodeDt theValue) {
myClassElement = theValue;
return this;
}
/**
* Sets the value(s) for class (class)
*
*
* Definition:
*
*
*/
public Encounter setClassElement(EncounterClassEnum theValue) {
setClassElement(new BoundCodeDt(EncounterClassEnum.VALUESET_BINDER, theValue));
/*
getClassElementElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for type (class).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
*/
public java.util.List getType() {
if (myType == null) {
myType = new java.util.ArrayList();
}
return myType;
}
/**
* Sets the value(s) for type (class)
*
*
* Definition:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
*/
public Encounter setType(java.util.List theValue) {
myType = theValue;
return this;
}
/**
* Adds and returns a new value for type (class)
*
*
* Definition:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
*/
public CodeableConceptDt addType() {
CodeableConceptDt newType = new CodeableConceptDt();
getType().add(newType);
return newType;
}
/**
* Adds a given new value for type (class)
*
*
* Definition:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
* @param theValue The type to add (must not be null
)
*/
public Encounter addType(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getType().add(theValue);
return this;
}
/**
* Gets the first repetition for type (class),
* creating it if it does not already exist.
*
*
* Definition:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
*/
public CodeableConceptDt getTypeFirstRep() {
if (getType().isEmpty()) {
return addType();
}
return getType().get(0);
}
/**
* Gets the value(s) for priority (grade).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getPriority() {
if (myPriority == null) {
myPriority = new CodeableConceptDt();
}
return myPriority;
}
/**
* Sets the value(s) for priority (grade)
*
*
* Definition:
*
*
*/
public Encounter setPriority(CodeableConceptDt theValue) {
myPriority = theValue;
return this;
}
/**
* Gets the value(s) for patient (who.focus).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getPatient() {
if (myPatient == null) {
myPatient = new ResourceReferenceDt();
}
return myPatient;
}
/**
* Sets the value(s) for patient (who.focus)
*
*
* Definition:
*
*
*/
public Encounter setPatient(ResourceReferenceDt theValue) {
myPatient = theValue;
return this;
}
/**
* Gets the value(s) for episodeOfCare (context).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years)
*
*/
public java.util.List getEpisodeOfCare() {
if (myEpisodeOfCare == null) {
myEpisodeOfCare = new java.util.ArrayList();
}
return myEpisodeOfCare;
}
/**
* Sets the value(s) for episodeOfCare (context)
*
*
* Definition:
* Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years)
*
*/
public Encounter setEpisodeOfCare(java.util.List theValue) {
myEpisodeOfCare = theValue;
return this;
}
/**
* Adds and returns a new value for episodeOfCare (context)
*
*
* Definition:
* Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years)
*
*/
public ResourceReferenceDt addEpisodeOfCare() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getEpisodeOfCare().add(newType);
return newType;
}
/**
* Gets the value(s) for incomingReferral ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The referral request this encounter satisfies (incoming referral)
*
*/
public java.util.List getIncomingReferral() {
if (myIncomingReferral == null) {
myIncomingReferral = new java.util.ArrayList();
}
return myIncomingReferral;
}
/**
* Sets the value(s) for incomingReferral ()
*
*
* Definition:
* The referral request this encounter satisfies (incoming referral)
*
*/
public Encounter setIncomingReferral(java.util.List theValue) {
myIncomingReferral = theValue;
return this;
}
/**
* Adds and returns a new value for incomingReferral ()
*
*
* Definition:
* The referral request this encounter satisfies (incoming referral)
*
*/
public ResourceReferenceDt addIncomingReferral() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getIncomingReferral().add(newType);
return newType;
}
/**
* Gets the value(s) for participant ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The list of people responsible for providing the service
*
*/
public java.util.List getParticipant() {
if (myParticipant == null) {
myParticipant = new java.util.ArrayList();
}
return myParticipant;
}
/**
* Sets the value(s) for participant ()
*
*
* Definition:
* The list of people responsible for providing the service
*
*/
public Encounter setParticipant(java.util.List theValue) {
myParticipant = theValue;
return this;
}
/**
* Adds and returns a new value for participant ()
*
*
* Definition:
* The list of people responsible for providing the service
*
*/
public Participant addParticipant() {
Participant newType = new Participant();
getParticipant().add(newType);
return newType;
}
/**
* Adds a given new value for participant ()
*
*
* Definition:
* The list of people responsible for providing the service
*
* @param theValue The participant to add (must not be null
)
*/
public Encounter addParticipant(Participant theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getParticipant().add(theValue);
return this;
}
/**
* Gets the first repetition for participant (),
* creating it if it does not already exist.
*
*
* Definition:
* The list of people responsible for providing the service
*
*/
public Participant getParticipantFirstRep() {
if (getParticipant().isEmpty()) {
return addParticipant();
}
return getParticipant().get(0);
}
/**
* Gets the value(s) for appointment ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getAppointment() {
if (myAppointment == null) {
myAppointment = new ResourceReferenceDt();
}
return myAppointment;
}
/**
* Sets the value(s) for appointment ()
*
*
* Definition:
*
*
*/
public Encounter setAppointment(ResourceReferenceDt theValue) {
myAppointment = theValue;
return this;
}
/**
* Gets the value(s) for period (when.done).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The start and end time of the encounter
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period (when.done)
*
*
* Definition:
* The start and end time of the encounter
*
*/
public Encounter setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Gets the value(s) for length ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Quantity of time the encounter lasted. This excludes the time during leaves of absence.
*
*/
public DurationDt getLength() {
if (myLength == null) {
myLength = new DurationDt();
}
return myLength;
}
/**
* Sets the value(s) for length ()
*
*
* Definition:
* Quantity of time the encounter lasted. This excludes the time during leaves of absence.
*
*/
public Encounter setLength(DurationDt theValue) {
myLength = theValue;
return this;
}
/**
* Gets the value(s) for reason (why).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis
*
*/
public java.util.List getReason() {
if (myReason == null) {
myReason = new java.util.ArrayList();
}
return myReason;
}
/**
* Sets the value(s) for reason (why)
*
*
* Definition:
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis
*
*/
public Encounter setReason(java.util.List theValue) {
myReason = theValue;
return this;
}
/**
* Adds and returns a new value for reason (why)
*
*
* Definition:
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis
*
*/
public CodeableConceptDt addReason() {
CodeableConceptDt newType = new CodeableConceptDt();
getReason().add(newType);
return newType;
}
/**
* Adds a given new value for reason (why)
*
*
* Definition:
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis
*
* @param theValue The reason to add (must not be null
)
*/
public Encounter addReason(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getReason().add(theValue);
return this;
}
/**
* Gets the first repetition for reason (why),
* creating it if it does not already exist.
*
*
* Definition:
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis
*
*/
public CodeableConceptDt getReasonFirstRep() {
if (getReason().isEmpty()) {
return addReason();
}
return getReason().get(0);
}
/**
* Gets the value(s) for indication (why).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure
*
*/
public java.util.List getIndication() {
if (myIndication == null) {
myIndication = new java.util.ArrayList();
}
return myIndication;
}
/**
* Sets the value(s) for indication (why)
*
*
* Definition:
* Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure
*
*/
public Encounter setIndication(java.util.List theValue) {
myIndication = theValue;
return this;
}
/**
* Adds and returns a new value for indication (why)
*
*
* Definition:
* Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure
*
*/
public ResourceReferenceDt addIndication() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getIndication().add(newType);
return newType;
}
/**
* Gets the value(s) for hospitalization ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public Hospitalization getHospitalization() {
if (myHospitalization == null) {
myHospitalization = new Hospitalization();
}
return myHospitalization;
}
/**
* Sets the value(s) for hospitalization ()
*
*
* Definition:
*
*
*/
public Encounter setHospitalization(Hospitalization theValue) {
myHospitalization = theValue;
return this;
}
/**
* Gets the value(s) for location ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* List of locations where the patient has been during this encounter
*
*/
public java.util.List getLocation() {
if (myLocation == null) {
myLocation = new java.util.ArrayList();
}
return myLocation;
}
/**
* Sets the value(s) for location ()
*
*
* Definition:
* List of locations where the patient has been during this encounter
*
*/
public Encounter setLocation(java.util.List theValue) {
myLocation = theValue;
return this;
}
/**
* Adds and returns a new value for location ()
*
*
* Definition:
* List of locations where the patient has been during this encounter
*
*/
public Location addLocation() {
Location newType = new Location();
getLocation().add(newType);
return newType;
}
/**
* Adds a given new value for location ()
*
*
* Definition:
* List of locations where the patient has been during this encounter
*
* @param theValue The location to add (must not be null
)
*/
public Encounter addLocation(Location theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getLocation().add(theValue);
return this;
}
/**
* Gets the first repetition for location (),
* creating it if it does not already exist.
*
*
* Definition:
* List of locations where the patient has been during this encounter
*
*/
public Location getLocationFirstRep() {
if (getLocation().isEmpty()) {
return addLocation();
}
return getLocation().get(0);
}
/**
* Gets the value(s) for serviceProvider ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization.
*
*/
public ResourceReferenceDt getServiceProvider() {
if (myServiceProvider == null) {
myServiceProvider = new ResourceReferenceDt();
}
return myServiceProvider;
}
/**
* Sets the value(s) for serviceProvider ()
*
*
* Definition:
* An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization.
*
*/
public Encounter setServiceProvider(ResourceReferenceDt theValue) {
myServiceProvider = theValue;
return this;
}
/**
* Gets the value(s) for partOf ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Another Encounter of which this encounter is a part of (administratively or in time).
*
*/
public ResourceReferenceDt getPartOf() {
if (myPartOf == null) {
myPartOf = new ResourceReferenceDt();
}
return myPartOf;
}
/**
* Sets the value(s) for partOf ()
*
*
* Definition:
* Another Encounter of which this encounter is a part of (administratively or in time).
*
*/
public Encounter setPartOf(ResourceReferenceDt theValue) {
myPartOf = theValue;
return this;
}
/**
* Block class for child element: Encounter.statusHistory ()
*
*
* Definition:
* The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them
*
*/
@Block()
public static class StatusHistory
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="status", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/encounter-state")
private BoundCodeDt myStatus;
@Child(name="period", type=PeriodDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
private PeriodDt myPeriod;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myPeriod);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStatus, myPeriod);
}
/**
* Gets the value(s) for status ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public BoundCodeDt getStatusElement() {
if (myStatus == null) {
myStatus = new BoundCodeDt(EncounterStateEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
*
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
*
*
*/
public StatusHistory setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
*
*
*/
public StatusHistory setStatus(EncounterStateEnum theValue) {
setStatus(new BoundCodeDt(EncounterStateEnum.VALUESET_BINDER, theValue));
/*
getStatusElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for period ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period ()
*
*
* Definition:
*
*
*/
public StatusHistory setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
}
/**
* Block class for child element: Encounter.participant ()
*
*
* Definition:
* The list of people responsible for providing the service
*
*/
@Block()
public static class Participant
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="type", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Role of participant in encounter"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-encounter-participant-type")
private java.util.List> myType;
@Child(name="period", type=PeriodDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The period of time that the specified participant was present during the encounter. These can overlap or be sub-sets of the overall encounters period"
)
private PeriodDt myPeriod;
@Child(name="individual", order=2, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class,
ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class
})
@Description(
shortDefinition="who",
formalDefinition=""
)
private ResourceReferenceDt myIndividual;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myPeriod, myIndividual);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myPeriod, myIndividual);
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Role of participant in encounter
*
*/
public java.util.List> getType() {
if (myType == null) {
myType = new java.util.ArrayList>();
}
return myType;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* Role of participant in encounter
*
*/
public Participant setType(java.util.List> theValue) {
myType = theValue;
return this;
}
/**
* Add a value for type () 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 #addType()} method.
*
*
* Definition:
* Role of participant in encounter
*
*/
public BoundCodeableConceptDt addType(ParticipantTypeEnum theValue) {
BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER, theValue);
getType().add(retVal);
return retVal;
}
/**
* Gets the first repetition for type (),
* creating it if it does not already exist.
*
*
* Definition:
* Role of participant in encounter
*
*/
public BoundCodeableConceptDt getTypeFirstRep() {
if (getType().size() == 0) {
addType();
}
return getType().get(0);
}
/**
* Add a value for type ()
*
*
* Definition:
* Role of participant in encounter
*
*/
public BoundCodeableConceptDt addType() {
BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER);
getType().add(retVal);
return retVal;
}
/**
* Sets the value(s), and clears any existing value(s) for type ()
*
*
* Definition:
* Role of participant in encounter
*
*/
public Participant setType(ParticipantTypeEnum theValue) {
getType().clear();
addType(theValue);
return this;
}
/**
* Gets the value(s) for period ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The period of time that the specified participant was present during the encounter. These can overlap or be sub-sets of the overall encounters period
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period ()
*
*
* Definition:
* The period of time that the specified participant was present during the encounter. These can overlap or be sub-sets of the overall encounters period
*
*/
public Participant setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Gets the value(s) for individual (who).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getIndividual() {
if (myIndividual == null) {
myIndividual = new ResourceReferenceDt();
}
return myIndividual;
}
/**
* Sets the value(s) for individual (who)
*
*
* Definition:
*
*
*/
public Participant setIndividual(ResourceReferenceDt theValue) {
myIndividual = theValue;
return this;
}
}
/**
* Block class for child element: Encounter.hospitalization ()
*
*
* Definition:
*
*
*/
@Block()
public static class Hospitalization
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="preAdmissionIdentifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
private IdentifierDt myPreAdmissionIdentifier;
@Child(name="origin", order=1, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Location.class
})
@Description(
shortDefinition="",
formalDefinition=""
)
private ResourceReferenceDt myOrigin;
@Child(name="admitSource", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-encounter-admit-source")
private BoundCodeableConceptDt myAdmitSource;
@Child(name="admittingDiagnosis", order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Condition.class
})
@Description(
shortDefinition="",
formalDefinition="The admitting diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter"
)
private java.util.List myAdmittingDiagnosis;
@Child(name="reAdmission", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Whether this hospitalization is a readmission and why if known"
)
private CodeableConceptDt myReAdmission;
@Child(name="dietPreference", type=CodeableConceptDt.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
private java.util.List myDietPreference;
@Child(name="specialCourtesy", type=CodeableConceptDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-encounter-special-courtesy")
private java.util.List mySpecialCourtesy;
@Child(name="specialArrangement", type=CodeableConceptDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-encounter-special-arrangements")
private java.util.List mySpecialArrangement;
@Child(name="destination", order=8, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Location.class
})
@Description(
shortDefinition="",
formalDefinition=""
)
private ResourceReferenceDt myDestination;
@Child(name="dischargeDisposition", type=CodeableConceptDt.class, order=9, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-encounter-discharge-disposition")
private CodeableConceptDt myDischargeDisposition;
@Child(name="dischargeDiagnosis", order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Condition.class
})
@Description(
shortDefinition="",
formalDefinition=""
)
private java.util.List myDischargeDiagnosis;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPreAdmissionIdentifier, myOrigin, myAdmitSource, myAdmittingDiagnosis, myReAdmission, myDietPreference, mySpecialCourtesy, mySpecialArrangement, myDestination, myDischargeDisposition, myDischargeDiagnosis);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPreAdmissionIdentifier, myOrigin, myAdmitSource, myAdmittingDiagnosis, myReAdmission, myDietPreference, mySpecialCourtesy, mySpecialArrangement, myDestination, myDischargeDisposition, myDischargeDiagnosis);
}
/**
* Gets the value(s) for preAdmissionIdentifier ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public IdentifierDt getPreAdmissionIdentifier() {
if (myPreAdmissionIdentifier == null) {
myPreAdmissionIdentifier = new IdentifierDt();
}
return myPreAdmissionIdentifier;
}
/**
* Sets the value(s) for preAdmissionIdentifier ()
*
*
* Definition:
*
*
*/
public Hospitalization setPreAdmissionIdentifier(IdentifierDt theValue) {
myPreAdmissionIdentifier = theValue;
return this;
}
/**
* Gets the value(s) for origin ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getOrigin() {
if (myOrigin == null) {
myOrigin = new ResourceReferenceDt();
}
return myOrigin;
}
/**
* Sets the value(s) for origin ()
*
*
* Definition:
*
*
*/
public Hospitalization setOrigin(ResourceReferenceDt theValue) {
myOrigin = theValue;
return this;
}
/**
* Gets the value(s) for admitSource ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public BoundCodeableConceptDt getAdmitSource() {
if (myAdmitSource == null) {
myAdmitSource = new BoundCodeableConceptDt(AdmitSourceEnum.VALUESET_BINDER);
}
return myAdmitSource;
}
/**
* Sets the value(s) for admitSource ()
*
*
* Definition:
*
*
*/
public Hospitalization setAdmitSource(BoundCodeableConceptDt theValue) {
myAdmitSource = theValue;
return this;
}
/**
* Sets the value(s) for admitSource ()
*
*
* Definition:
*
*
*/
public Hospitalization setAdmitSource(AdmitSourceEnum theValue) {
setAdmitSource(new BoundCodeableConceptDt(AdmitSourceEnum.VALUESET_BINDER, theValue));
/*
getAdmitSource().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for admittingDiagnosis ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The admitting diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter
*
*/
public java.util.List getAdmittingDiagnosis() {
if (myAdmittingDiagnosis == null) {
myAdmittingDiagnosis = new java.util.ArrayList();
}
return myAdmittingDiagnosis;
}
/**
* Sets the value(s) for admittingDiagnosis ()
*
*
* Definition:
* The admitting diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter
*
*/
public Hospitalization setAdmittingDiagnosis(java.util.List theValue) {
myAdmittingDiagnosis = theValue;
return this;
}
/**
* Adds and returns a new value for admittingDiagnosis ()
*
*
* Definition:
* The admitting diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter
*
*/
public ResourceReferenceDt addAdmittingDiagnosis() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getAdmittingDiagnosis().add(newType);
return newType;
}
/**
* Gets the value(s) for reAdmission ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Whether this hospitalization is a readmission and why if known
*
*/
public CodeableConceptDt getReAdmission() {
if (myReAdmission == null) {
myReAdmission = new CodeableConceptDt();
}
return myReAdmission;
}
/**
* Sets the value(s) for reAdmission ()
*
*
* Definition:
* Whether this hospitalization is a readmission and why if known
*
*/
public Hospitalization setReAdmission(CodeableConceptDt theValue) {
myReAdmission = theValue;
return this;
}
/**
* Gets the value(s) for dietPreference ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getDietPreference() {
if (myDietPreference == null) {
myDietPreference = new java.util.ArrayList();
}
return myDietPreference;
}
/**
* Sets the value(s) for dietPreference ()
*
*
* Definition:
*
*
*/
public Hospitalization setDietPreference(java.util.List theValue) {
myDietPreference = theValue;
return this;
}
/**
* Adds and returns a new value for dietPreference ()
*
*
* Definition:
*
*
*/
public CodeableConceptDt addDietPreference() {
CodeableConceptDt newType = new CodeableConceptDt();
getDietPreference().add(newType);
return newType;
}
/**
* Adds a given new value for dietPreference ()
*
*
* Definition:
*
*
* @param theValue The dietPreference to add (must not be null
)
*/
public Hospitalization addDietPreference(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getDietPreference().add(theValue);
return this;
}
/**
* Gets the first repetition for dietPreference (),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getDietPreferenceFirstRep() {
if (getDietPreference().isEmpty()) {
return addDietPreference();
}
return getDietPreference().get(0);
}
/**
* Gets the value(s) for specialCourtesy ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getSpecialCourtesy() {
if (mySpecialCourtesy == null) {
mySpecialCourtesy = new java.util.ArrayList();
}
return mySpecialCourtesy;
}
/**
* Sets the value(s) for specialCourtesy ()
*
*
* Definition:
*
*
*/
public Hospitalization setSpecialCourtesy(java.util.List theValue) {
mySpecialCourtesy = theValue;
return this;
}
/**
* Adds and returns a new value for specialCourtesy ()
*
*
* Definition:
*
*
*/
public CodeableConceptDt addSpecialCourtesy() {
CodeableConceptDt newType = new CodeableConceptDt();
getSpecialCourtesy().add(newType);
return newType;
}
/**
* Adds a given new value for specialCourtesy ()
*
*
* Definition:
*
*
* @param theValue The specialCourtesy to add (must not be null
)
*/
public Hospitalization addSpecialCourtesy(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getSpecialCourtesy().add(theValue);
return this;
}
/**
* Gets the first repetition for specialCourtesy (),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getSpecialCourtesyFirstRep() {
if (getSpecialCourtesy().isEmpty()) {
return addSpecialCourtesy();
}
return getSpecialCourtesy().get(0);
}
/**
* Gets the value(s) for specialArrangement ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getSpecialArrangement() {
if (mySpecialArrangement == null) {
mySpecialArrangement = new java.util.ArrayList();
}
return mySpecialArrangement;
}
/**
* Sets the value(s) for specialArrangement ()
*
*
* Definition:
*
*
*/
public Hospitalization setSpecialArrangement(java.util.List theValue) {
mySpecialArrangement = theValue;
return this;
}
/**
* Adds and returns a new value for specialArrangement ()
*
*
* Definition:
*
*
*/
public CodeableConceptDt addSpecialArrangement() {
CodeableConceptDt newType = new CodeableConceptDt();
getSpecialArrangement().add(newType);
return newType;
}
/**
* Adds a given new value for specialArrangement ()
*
*
* Definition:
*
*
* @param theValue The specialArrangement to add (must not be null
)
*/
public Hospitalization addSpecialArrangement(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getSpecialArrangement().add(theValue);
return this;
}
/**
* Gets the first repetition for specialArrangement (),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getSpecialArrangementFirstRep() {
if (getSpecialArrangement().isEmpty()) {
return addSpecialArrangement();
}
return getSpecialArrangement().get(0);
}
/**
* Gets the value(s) for destination ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getDestination() {
if (myDestination == null) {
myDestination = new ResourceReferenceDt();
}
return myDestination;
}
/**
* Sets the value(s) for destination ()
*
*
* Definition:
*
*
*/
public Hospitalization setDestination(ResourceReferenceDt theValue) {
myDestination = theValue;
return this;
}
/**
* Gets the value(s) for dischargeDisposition ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getDischargeDisposition() {
if (myDischargeDisposition == null) {
myDischargeDisposition = new CodeableConceptDt();
}
return myDischargeDisposition;
}
/**
* Sets the value(s) for dischargeDisposition ()
*
*
* Definition:
*
*
*/
public Hospitalization setDischargeDisposition(CodeableConceptDt theValue) {
myDischargeDisposition = theValue;
return this;
}
/**
* Gets the value(s) for dischargeDiagnosis ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getDischargeDiagnosis() {
if (myDischargeDiagnosis == null) {
myDischargeDiagnosis = new java.util.ArrayList();
}
return myDischargeDiagnosis;
}
/**
* Sets the value(s) for dischargeDiagnosis ()
*
*
* Definition:
*
*
*/
public Hospitalization setDischargeDiagnosis(java.util.List theValue) {
myDischargeDiagnosis = theValue;
return this;
}
/**
* Adds and returns a new value for dischargeDiagnosis ()
*
*
* Definition:
*
*
*/
public ResourceReferenceDt addDischargeDiagnosis() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getDischargeDiagnosis().add(newType);
return newType;
}
}
/**
* Block class for child element: Encounter.location ()
*
*
* Definition:
* List of locations where the patient has been during this encounter
*
*/
@Block()
public static class Location
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="location", order=0, min=1, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Location.class
})
@Description(
shortDefinition="where",
formalDefinition="The location where the encounter takes place"
)
private ResourceReferenceDt myLocation;
@Child(name="status", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/encounter-location-status")
private BoundCodeDt myStatus;
@Child(name="period", type=PeriodDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition=""
)
private PeriodDt myPeriod;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLocation, myStatus, myPeriod);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLocation, myStatus, myPeriod);
}
/**
* Gets the value(s) for location (where).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The location where the encounter takes place
*
*/
public ResourceReferenceDt getLocation() {
if (myLocation == null) {
myLocation = new ResourceReferenceDt();
}
return myLocation;
}
/**
* Sets the value(s) for location (where)
*
*
* Definition:
* The location where the encounter takes place
*
*/
public Location setLocation(ResourceReferenceDt theValue) {
myLocation = theValue;
return this;
}
/**
* Gets the value(s) for status ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time
*
*/
public BoundCodeDt getStatusElement() {
if (myStatus == null) {
myStatus = new BoundCodeDt(EncounterLocationStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
* The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time
*
*/
public Location setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
* The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time
*
*/
public Location setStatus(EncounterLocationStatusEnum theValue) {
setStatus(new BoundCodeDt(EncounterLocationStatusEnum.VALUESET_BINDER, theValue));
/*
getStatusElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for period ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period ()
*
*
* Definition:
*
*
*/
public Location setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
}
@Override
public String getResourceName() {
return "Encounter";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
}
}