
ca.uhn.fhir.model.dstu.resource.Encounter Maven / Gradle / Ivy
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 Encounter Resource
* (An interaction during which services are provided to the patient)
*
*
* 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.dstu.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 subject
*
* Description:
* Type: reference
* Path: Encounter.subject
*
*/
@SearchParamDefinition(name="subject", path="Encounter.subject", description="", type="reference" )
public static final String SP_SUBJECT = "subject";
/**
* Fluent Client search parameter constant for subject
*
* Description:
* Type: reference
* Path: Encounter.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 "Encounter.subject".
*/
public static final Include INCLUDE_SUBJECT = new Include("Encounter.subject");
/**
* 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 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);
/**
* 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");
/**
* Search parameter constant for location
*
* Description:
* Type: reference
* Path: Encounter.location.location
*
*/
@SearchParamDefinition(name="location", path="Encounter.location.location", description="", type="reference" )
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);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "Encounter.location.location".
*/
public static final Include INCLUDE_LOCATION_LOCATION = new Include("Encounter.location.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);
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="Identifier(s) by which this encounter is known",
formalDefinition=""
)
private java.util.List myIdentifier;
@Child(name="status", type=CodeDt.class, order=1, min=1, max=1, summary=true, modifier=true)
@Description(
shortDefinition="planned | in progress | onleave | finished | cancelled",
formalDefinition=""
)
private BoundCodeDt myStatus;
@Child(name="class", type=CodeDt.class, order=2, min=1, max=1, summary=true, modifier=true)
@Description(
shortDefinition="inpatient | outpatient | ambulatory | emergency +",
formalDefinition=""
)
private BoundCodeDt myClassElement;
@Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="Specific type of encounter",
formalDefinition="Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)"
)
private java.util.List> myType;
@Child(name="subject", order=4, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Patient.class })
@Description(
shortDefinition="The patient present at the encounter",
formalDefinition=""
)
private ResourceReferenceDt mySubject;
@Child(name="participant", order=5, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="List of participants involved in the encounter",
formalDefinition="The main practitioner responsible for providing the service"
)
private java.util.List myParticipant;
@Child(name="period", type=PeriodDt.class, order=6, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="The start and end time of the encounter",
formalDefinition="The start and end time of the encounter"
)
private PeriodDt myPeriod;
@Child(name="length", type=DurationDt.class, order=7, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Quantity of time the encounter lasted",
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=8, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="Reason the encounter takes place (code)",
formalDefinition="Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis."
)
private CodeableConceptDt myReason;
@Child(name="indication", order=9, min=0, max=1, summary=false, modifier=false, type={
IResource.class })
@Description(
shortDefinition="Reason the encounter takes place (resource)",
formalDefinition="Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis."
)
private ResourceReferenceDt myIndication;
@Child(name="priority", type=CodeableConceptDt.class, order=10, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Indicates the urgency of the encounter",
formalDefinition=""
)
private CodeableConceptDt myPriority;
@Child(name="hospitalization", order=11, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Details about an admission to a clinic",
formalDefinition="Details about an admission to a clinic"
)
private Hospitalization myHospitalization;
@Child(name="location", order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="List of locations the patient has been at",
formalDefinition="List of locations at which the patient has been"
)
private java.util.List myLocation;
@Child(name="serviceProvider", order=13, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Organization.class })
@Description(
shortDefinition="Department or team providing care",
formalDefinition=""
)
private ResourceReferenceDt myServiceProvider;
@Child(name="partOf", order=14, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Encounter.class })
@Description(
shortDefinition="Another Encounter this encounter is part of",
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, myClassElement, myType, mySubject, myParticipant, myPeriod, myLength, myReason, myIndication, myPriority, myHospitalization, myLocation, myServiceProvider, myPartOf);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myClassElement, myType, mySubject, myParticipant, myPeriod, myLength, myReason, myIndication, myPriority, myHospitalization, myLocation, myServiceProvider, myPartOf);
}
/**
* Gets the value(s) for identifier (Identifier(s) by which this encounter is known).
* 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;
}
/**
* Gets the value(s) for identifier (Identifier(s) by which this encounter is known).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getIdentifierElement() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (Identifier(s) by which this encounter is known)
*
*
* Definition:
*
*
*/
public Encounter setIdentifier(java.util.List theValue) {
myIdentifier = theValue;
return this;
}
/**
* Adds and returns a new value for identifier (Identifier(s) by which this encounter is known)
*
*
* Definition:
*
*
*/
public IdentifierDt addIdentifier() {
IdentifierDt newType = new IdentifierDt();
getIdentifier().add(newType);
return newType;
}
/**
* Gets the first repetition for identifier (Identifier(s) by which this encounter is known),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public IdentifierDt getIdentifierFirstRep() {
if (getIdentifier().isEmpty()) {
return addIdentifier();
}
return getIdentifier().get(0);
}
/**
* Adds a new value for identifier (Identifier(s) by which this encounter is known)
*
*
* Definition:
*
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Encounter 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 (Identifier(s) by which this encounter is known)
*
*
* Definition:
*
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Encounter 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 status (planned | in progress | onleave | finished | cancelled).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public BoundCodeDt getStatus() {
if (myStatus == null) {
myStatus = new BoundCodeDt(EncounterStateEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status (planned | in progress | onleave | finished | cancelled).
* 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;
}
/**
* Sets the value(s) for status (planned | in progress | onleave | finished | cancelled)
*
*
* Definition:
*
*
*/
public Encounter setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status (planned | in progress | onleave | finished | cancelled)
*
*
* Definition:
*
*
*/
public Encounter setStatus(EncounterStateEnum theValue) {
getStatus().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for class (inpatient | outpatient | ambulatory | emergency +).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public BoundCodeDt getClassElement() {
if (myClassElement == null) {
myClassElement = new BoundCodeDt(EncounterClassEnum.VALUESET_BINDER);
}
return myClassElement;
}
/**
* Gets the value(s) for class (inpatient | outpatient | ambulatory | emergency +).
* 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;
}
/**
* Sets the value(s) for class (inpatient | outpatient | ambulatory | emergency +)
*
*
* Definition:
*
*
*/
public Encounter setClassElement(BoundCodeDt theValue) {
myClassElement = theValue;
return this;
}
/**
* Sets the value(s) for class (inpatient | outpatient | ambulatory | emergency +)
*
*
* Definition:
*
*
*/
public Encounter setClassElement(EncounterClassEnum theValue) {
getClassElement().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for type (Specific type of encounter).
* 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;
}
/**
* Gets the value(s) for type (Specific type of encounter).
* 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> getTypeElement() {
if (myType == null) {
myType = new java.util.ArrayList>();
}
return myType;
}
/**
* Sets the value(s) for type (Specific type of encounter)
*
*
* 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;
}
/**
* Add a value for type (Specific type of encounter) 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:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
*/
public BoundCodeableConceptDt addType(EncounterTypeEnum theValue) {
BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(EncounterTypeEnum.VALUESET_BINDER, theValue);
getType().add(retVal);
return retVal;
}
/**
* Gets the first repetition for type (Specific type of encounter),
* 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 BoundCodeableConceptDt getTypeFirstRep() {
if (getType().size() == 0) {
addType();
}
return getType().get(0);
}
/**
* Add a value for type (Specific type of encounter)
*
*
* Definition:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
*/
public BoundCodeableConceptDt addType() {
BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(EncounterTypeEnum.VALUESET_BINDER);
getType().add(retVal);
return retVal;
}
/**
* Sets the value(s), and clears any existing value(s) for type (Specific type of encounter)
*
*
* Definition:
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
*
*/
public Encounter setType(EncounterTypeEnum theValue) {
getType().clear();
addType(theValue);
return this;
}
/**
* Gets the value(s) for subject (The patient present at the encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getSubject() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Gets the value(s) for subject (The patient present at the encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getSubjectElement() {
if (mySubject == null) {
mySubject = new ResourceReferenceDt();
}
return mySubject;
}
/**
* Sets the value(s) for subject (The patient present at the encounter)
*
*
* Definition:
*
*
*/
public Encounter setSubject(ResourceReferenceDt theValue) {
mySubject = theValue;
return this;
}
/**
* Gets the value(s) for participant (List of participants involved in the encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The main practitioner responsible for providing the service
*
*/
public java.util.List getParticipant() {
if (myParticipant == null) {
myParticipant = new java.util.ArrayList();
}
return myParticipant;
}
/**
* Gets the value(s) for participant (List of participants involved in the encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The main practitioner responsible for providing the service
*
*/
public java.util.List getParticipantElement() {
if (myParticipant == null) {
myParticipant = new java.util.ArrayList();
}
return myParticipant;
}
/**
* Sets the value(s) for participant (List of participants involved in the encounter)
*
*
* Definition:
* The main practitioner responsible for providing the service
*
*/
public Encounter setParticipant(java.util.List theValue) {
myParticipant = theValue;
return this;
}
/**
* Adds and returns a new value for participant (List of participants involved in the encounter)
*
*
* Definition:
* The main practitioner responsible for providing the service
*
*/
public Participant addParticipant() {
Participant newType = new Participant();
getParticipant().add(newType);
return newType;
}
/**
* Gets the first repetition for participant (List of participants involved in the encounter),
* creating it if it does not already exist.
*
*
* Definition:
* The main practitioner responsible for providing the service
*
*/
public Participant getParticipantFirstRep() {
if (getParticipant().isEmpty()) {
return addParticipant();
}
return getParticipant().get(0);
}
/**
* Gets the value(s) for period (The start and end time of the encounter).
* 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;
}
/**
* Gets the value(s) for period (The start and end time of the encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The start and end time of the encounter
*
*/
public PeriodDt getPeriodElement() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period (The start and end time of the encounter)
*
*
* Definition:
* The start and end time of the encounter
*
*/
public Encounter setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Gets the value(s) for length (Quantity of time the encounter lasted).
* 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;
}
/**
* Gets the value(s) for length (Quantity of time the encounter lasted).
* 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 getLengthElement() {
if (myLength == null) {
myLength = new DurationDt();
}
return myLength;
}
/**
* Sets the value(s) for length (Quantity of time the encounter lasted)
*
*
* 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 (Reason the encounter takes place (code)).
* 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 CodeableConceptDt getReason() {
if (myReason == null) {
myReason = new CodeableConceptDt();
}
return myReason;
}
/**
* Gets the value(s) for reason (Reason the encounter takes place (code)).
* 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 CodeableConceptDt getReasonElement() {
if (myReason == null) {
myReason = new CodeableConceptDt();
}
return myReason;
}
/**
* Sets the value(s) for reason (Reason the encounter takes place (code))
*
*
* Definition:
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.
*
*/
public Encounter setReason(CodeableConceptDt theValue) {
myReason = theValue;
return this;
}
/**
* Gets the value(s) for indication (Reason the encounter takes place (resource)).
* 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.
*
*/
public ResourceReferenceDt getIndication() {
if (myIndication == null) {
myIndication = new ResourceReferenceDt();
}
return myIndication;
}
/**
* Gets the value(s) for indication (Reason the encounter takes place (resource)).
* 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.
*
*/
public ResourceReferenceDt getIndicationElement() {
if (myIndication == null) {
myIndication = new ResourceReferenceDt();
}
return myIndication;
}
/**
* Sets the value(s) for indication (Reason the encounter takes place (resource))
*
*
* Definition:
* Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis.
*
*/
public Encounter setIndication(ResourceReferenceDt theValue) {
myIndication = theValue;
return this;
}
/**
* Gets the value(s) for priority (Indicates the urgency of the encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getPriority() {
if (myPriority == null) {
myPriority = new CodeableConceptDt();
}
return myPriority;
}
/**
* Gets the value(s) for priority (Indicates the urgency of the encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getPriorityElement() {
if (myPriority == null) {
myPriority = new CodeableConceptDt();
}
return myPriority;
}
/**
* Sets the value(s) for priority (Indicates the urgency of the encounter)
*
*
* Definition:
*
*
*/
public Encounter setPriority(CodeableConceptDt theValue) {
myPriority = theValue;
return this;
}
/**
* Gets the value(s) for hospitalization (Details about an admission to a clinic).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Details about an admission to a clinic
*
*/
public Hospitalization getHospitalization() {
if (myHospitalization == null) {
myHospitalization = new Hospitalization();
}
return myHospitalization;
}
/**
* Gets the value(s) for hospitalization (Details about an admission to a clinic).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Details about an admission to a clinic
*
*/
public Hospitalization getHospitalizationElement() {
if (myHospitalization == null) {
myHospitalization = new Hospitalization();
}
return myHospitalization;
}
/**
* Sets the value(s) for hospitalization (Details about an admission to a clinic)
*
*
* Definition:
* Details about an admission to a clinic
*
*/
public Encounter setHospitalization(Hospitalization theValue) {
myHospitalization = theValue;
return this;
}
/**
* Gets the value(s) for location (List of locations the patient has been at).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* List of locations at which the patient has been
*
*/
public java.util.List getLocation() {
if (myLocation == null) {
myLocation = new java.util.ArrayList();
}
return myLocation;
}
/**
* Gets the value(s) for location (List of locations the patient has been at).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* List of locations at which the patient has been
*
*/
public java.util.List getLocationElement() {
if (myLocation == null) {
myLocation = new java.util.ArrayList();
}
return myLocation;
}
/**
* Sets the value(s) for location (List of locations the patient has been at)
*
*
* Definition:
* List of locations at which the patient has been
*
*/
public Encounter setLocation(java.util.List theValue) {
myLocation = theValue;
return this;
}
/**
* Adds and returns a new value for location (List of locations the patient has been at)
*
*
* Definition:
* List of locations at which the patient has been
*
*/
public Location addLocation() {
Location newType = new Location();
getLocation().add(newType);
return newType;
}
/**
* Gets the first repetition for location (List of locations the patient has been at),
* creating it if it does not already exist.
*
*
* Definition:
* List of locations at which the patient has been
*
*/
public Location getLocationFirstRep() {
if (getLocation().isEmpty()) {
return addLocation();
}
return getLocation().get(0);
}
/**
* Gets the value(s) for serviceProvider (Department or team providing care).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getServiceProvider() {
if (myServiceProvider == null) {
myServiceProvider = new ResourceReferenceDt();
}
return myServiceProvider;
}
/**
* Gets the value(s) for serviceProvider (Department or team providing care).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getServiceProviderElement() {
if (myServiceProvider == null) {
myServiceProvider = new ResourceReferenceDt();
}
return myServiceProvider;
}
/**
* Sets the value(s) for serviceProvider (Department or team providing care)
*
*
* Definition:
*
*
*/
public Encounter setServiceProvider(ResourceReferenceDt theValue) {
myServiceProvider = theValue;
return this;
}
/**
* Gets the value(s) for partOf (Another Encounter this encounter is part of).
* 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;
}
/**
* Gets the value(s) for partOf (Another Encounter this encounter is part of).
* 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 getPartOfElement() {
if (myPartOf == null) {
myPartOf = new ResourceReferenceDt();
}
return myPartOf;
}
/**
* Sets the value(s) for partOf (Another Encounter this encounter is part of)
*
*
* 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.participant (List of participants involved in the encounter)
*
*
* Definition:
* The main practitioner 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="Role of participant in encounter",
formalDefinition=""
)
private java.util.List> myType;
@Child(name="individual", order=1, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class })
@Description(
shortDefinition="Persons involved in the encounter other than the patient",
formalDefinition=""
)
private ResourceReferenceDt myIndividual;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myIndividual);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myIndividual);
}
/**
* Gets the value(s) for type (Role of participant in encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List> getType() {
if (myType == null) {
myType = new java.util.ArrayList>();
}
return myType;
}
/**
* Gets the value(s) for type (Role of participant in encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List> getTypeElement() {
if (myType == null) {
myType = new java.util.ArrayList>();
}
return myType;
}
/**
* Sets the value(s) for type (Role of participant in encounter)
*
*
* Definition:
*
*
*/
public Participant setType(java.util.List> theValue) {
myType = theValue;
return this;
}
/**
* Add a value for type (Role of participant in encounter) 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:
*
*
*/
public BoundCodeableConceptDt addType(ParticipantTypeEnum theValue) {
BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER, theValue);
getType().add(retVal);
return retVal;
}
/**
* Gets the first repetition for type (Role of participant in encounter),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public BoundCodeableConceptDt getTypeFirstRep() {
if (getType().size() == 0) {
addType();
}
return getType().get(0);
}
/**
* Add a value for type (Role of participant in encounter)
*
*
* Definition:
*
*
*/
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 (Role of participant in encounter)
*
*
* Definition:
*
*
*/
public Participant setType(ParticipantTypeEnum theValue) {
getType().clear();
addType(theValue);
return this;
}
/**
* Gets the value(s) for individual (Persons involved in the encounter other than the patient).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getIndividual() {
if (myIndividual == null) {
myIndividual = new ResourceReferenceDt();
}
return myIndividual;
}
/**
* Gets the value(s) for individual (Persons involved in the encounter other than the patient).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getIndividualElement() {
if (myIndividual == null) {
myIndividual = new ResourceReferenceDt();
}
return myIndividual;
}
/**
* Sets the value(s) for individual (Persons involved in the encounter other than the patient)
*
*
* Definition:
*
*
*/
public Participant setIndividual(ResourceReferenceDt theValue) {
myIndividual = theValue;
return this;
}
}
/**
* Block class for child element: Encounter.hospitalization (Details about an admission to a clinic)
*
*
* Definition:
* Details about an admission to a clinic
*
*/
@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="Pre-admission identifier",
formalDefinition=""
)
private IdentifierDt myPreAdmissionIdentifier;
@Child(name="origin", order=1, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Location.class })
@Description(
shortDefinition="The location from which the patient came before admission",
formalDefinition=""
)
private ResourceReferenceDt myOrigin;
@Child(name="admitSource", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="From where patient was admitted (physician referral, transfer)",
formalDefinition=""
)
private BoundCodeableConceptDt myAdmitSource;
@Child(name="period", type=PeriodDt.class, order=3, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Period during which the patient was admitted",
formalDefinition="Period during which the patient was admitted"
)
private PeriodDt myPeriod;
@Child(name="accomodation", order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Where the patient stays during this encounter",
formalDefinition=""
)
private java.util.List myAccomodation;
@Child(name="diet", type=CodeableConceptDt.class, order=5, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Dietary restrictions for the patient",
formalDefinition="Dietary restrictions for the patient"
)
private CodeableConceptDt myDiet;
@Child(name="specialCourtesy", type=CodeableConceptDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="Special courtesies (VIP, board member)",
formalDefinition=""
)
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="Wheelchair, translator, stretcher, etc",
formalDefinition=""
)
private java.util.List mySpecialArrangement;
@Child(name="destination", order=8, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Location.class })
@Description(
shortDefinition="Location to which the patient is discharged",
formalDefinition=""
)
private ResourceReferenceDt myDestination;
@Child(name="dischargeDisposition", type=CodeableConceptDt.class, order=9, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Category or kind of location after discharge",
formalDefinition=""
)
private CodeableConceptDt myDischargeDisposition;
@Child(name="dischargeDiagnosis", order=10, min=0, max=1, summary=false, modifier=false, type={
IResource.class })
@Description(
shortDefinition="The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete",
formalDefinition=""
)
private ResourceReferenceDt myDischargeDiagnosis;
@Child(name="reAdmission", type=BooleanDt.class, order=11, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Is this hospitalization a readmission?",
formalDefinition="Whether this hospitalization is a readmission"
)
private BooleanDt myReAdmission;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPreAdmissionIdentifier, myOrigin, myAdmitSource, myPeriod, myAccomodation, myDiet, mySpecialCourtesy, mySpecialArrangement, myDestination, myDischargeDisposition, myDischargeDiagnosis, myReAdmission);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPreAdmissionIdentifier, myOrigin, myAdmitSource, myPeriod, myAccomodation, myDiet, mySpecialCourtesy, mySpecialArrangement, myDestination, myDischargeDisposition, myDischargeDiagnosis, myReAdmission);
}
/**
* Gets the value(s) for preAdmissionIdentifier (Pre-admission identifier).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public IdentifierDt getPreAdmissionIdentifier() {
if (myPreAdmissionIdentifier == null) {
myPreAdmissionIdentifier = new IdentifierDt();
}
return myPreAdmissionIdentifier;
}
/**
* Gets the value(s) for preAdmissionIdentifier (Pre-admission identifier).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public IdentifierDt getPreAdmissionIdentifierElement() {
if (myPreAdmissionIdentifier == null) {
myPreAdmissionIdentifier = new IdentifierDt();
}
return myPreAdmissionIdentifier;
}
/**
* Sets the value(s) for preAdmissionIdentifier (Pre-admission identifier)
*
*
* Definition:
*
*
*/
public Hospitalization setPreAdmissionIdentifier(IdentifierDt theValue) {
myPreAdmissionIdentifier = theValue;
return this;
}
/**
* Sets the value for preAdmissionIdentifier (Pre-admission identifier)
*
*
* Definition:
*
*
*/
public Hospitalization setPreAdmissionIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
myPreAdmissionIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel);
return this;
}
/**
* Sets the value for preAdmissionIdentifier (Pre-admission identifier)
*
*
* Definition:
*
*
*/
public Hospitalization setPreAdmissionIdentifier( String theSystem, String theValue) {
myPreAdmissionIdentifier = new IdentifierDt(theSystem, theValue);
return this;
}
/**
* Gets the value(s) for origin (The location from which the patient came before admission).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getOrigin() {
if (myOrigin == null) {
myOrigin = new ResourceReferenceDt();
}
return myOrigin;
}
/**
* Gets the value(s) for origin (The location from which the patient came before admission).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getOriginElement() {
if (myOrigin == null) {
myOrigin = new ResourceReferenceDt();
}
return myOrigin;
}
/**
* Sets the value(s) for origin (The location from which the patient came before admission)
*
*
* Definition:
*
*
*/
public Hospitalization setOrigin(ResourceReferenceDt theValue) {
myOrigin = theValue;
return this;
}
/**
* Gets the value(s) for admitSource (From where patient was admitted (physician referral, transfer)).
* 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;
}
/**
* Gets the value(s) for admitSource (From where patient was admitted (physician referral, transfer)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public BoundCodeableConceptDt getAdmitSourceElement() {
if (myAdmitSource == null) {
myAdmitSource = new BoundCodeableConceptDt(AdmitSourceEnum.VALUESET_BINDER);
}
return myAdmitSource;
}
/**
* Sets the value(s) for admitSource (From where patient was admitted (physician referral, transfer))
*
*
* Definition:
*
*
*/
public Hospitalization setAdmitSource(BoundCodeableConceptDt theValue) {
myAdmitSource = theValue;
return this;
}
/**
* Sets the value(s) for admitSource (From where patient was admitted (physician referral, transfer))
*
*
* Definition:
*
*
*/
public Hospitalization setAdmitSource(AdmitSourceEnum theValue) {
getAdmitSource().setValueAsEnum(theValue);
return this;
}
/**
* Gets the value(s) for period (Period during which the patient was admitted).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Period during which the patient was admitted
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Gets the value(s) for period (Period during which the patient was admitted).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Period during which the patient was admitted
*
*/
public PeriodDt getPeriodElement() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period (Period during which the patient was admitted)
*
*
* Definition:
* Period during which the patient was admitted
*
*/
public Hospitalization setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Gets the value(s) for accomodation (Where the patient stays during this encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getAccomodation() {
if (myAccomodation == null) {
myAccomodation = new java.util.ArrayList();
}
return myAccomodation;
}
/**
* Gets the value(s) for accomodation (Where the patient stays during this encounter).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getAccomodationElement() {
if (myAccomodation == null) {
myAccomodation = new java.util.ArrayList();
}
return myAccomodation;
}
/**
* Sets the value(s) for accomodation (Where the patient stays during this encounter)
*
*
* Definition:
*
*
*/
public Hospitalization setAccomodation(java.util.List theValue) {
myAccomodation = theValue;
return this;
}
/**
* Adds and returns a new value for accomodation (Where the patient stays during this encounter)
*
*
* Definition:
*
*
*/
public HospitalizationAccomodation addAccomodation() {
HospitalizationAccomodation newType = new HospitalizationAccomodation();
getAccomodation().add(newType);
return newType;
}
/**
* Gets the first repetition for accomodation (Where the patient stays during this encounter),
* creating it if it does not already exist.
*
*
* Definition:
*
*
*/
public HospitalizationAccomodation getAccomodationFirstRep() {
if (getAccomodation().isEmpty()) {
return addAccomodation();
}
return getAccomodation().get(0);
}
/**
* Gets the value(s) for diet (Dietary restrictions for the patient).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Dietary restrictions for the patient
*
*/
public CodeableConceptDt getDiet() {
if (myDiet == null) {
myDiet = new CodeableConceptDt();
}
return myDiet;
}
/**
* Gets the value(s) for diet (Dietary restrictions for the patient).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Dietary restrictions for the patient
*
*/
public CodeableConceptDt getDietElement() {
if (myDiet == null) {
myDiet = new CodeableConceptDt();
}
return myDiet;
}
/**
* Sets the value(s) for diet (Dietary restrictions for the patient)
*
*
* Definition:
* Dietary restrictions for the patient
*
*/
public Hospitalization setDiet(CodeableConceptDt theValue) {
myDiet = theValue;
return this;
}
/**
* Gets the value(s) for specialCourtesy (Special courtesies (VIP, board member)).
* 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;
}
/**
* Gets the value(s) for specialCourtesy (Special courtesies (VIP, board member)).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getSpecialCourtesyElement() {
if (mySpecialCourtesy == null) {
mySpecialCourtesy = new java.util.ArrayList();
}
return mySpecialCourtesy;
}
/**
* Sets the value(s) for specialCourtesy (Special courtesies (VIP, board member))
*
*
* Definition:
*
*
*/
public Hospitalization setSpecialCourtesy(java.util.List theValue) {
mySpecialCourtesy = theValue;
return this;
}
/**
* Adds and returns a new value for specialCourtesy (Special courtesies (VIP, board member))
*
*
* Definition:
*
*
*/
public CodeableConceptDt addSpecialCourtesy() {
CodeableConceptDt newType = new CodeableConceptDt();
getSpecialCourtesy().add(newType);
return newType;
}
/**
* Gets the first repetition for specialCourtesy (Special courtesies (VIP, board member)),
* 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 (Wheelchair, translator, stretcher, etc).
* 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;
}
/**
* Gets the value(s) for specialArrangement (Wheelchair, translator, stretcher, etc).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public java.util.List getSpecialArrangementElement() {
if (mySpecialArrangement == null) {
mySpecialArrangement = new java.util.ArrayList();
}
return mySpecialArrangement;
}
/**
* Sets the value(s) for specialArrangement (Wheelchair, translator, stretcher, etc)
*
*
* Definition:
*
*
*/
public Hospitalization setSpecialArrangement(java.util.List theValue) {
mySpecialArrangement = theValue;
return this;
}
/**
* Adds and returns a new value for specialArrangement (Wheelchair, translator, stretcher, etc)
*
*
* Definition:
*
*
*/
public CodeableConceptDt addSpecialArrangement() {
CodeableConceptDt newType = new CodeableConceptDt();
getSpecialArrangement().add(newType);
return newType;
}
/**
* Gets the first repetition for specialArrangement (Wheelchair, translator, stretcher, etc),
* 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 (Location to which the patient is discharged).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getDestination() {
if (myDestination == null) {
myDestination = new ResourceReferenceDt();
}
return myDestination;
}
/**
* Gets the value(s) for destination (Location to which the patient is discharged).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getDestinationElement() {
if (myDestination == null) {
myDestination = new ResourceReferenceDt();
}
return myDestination;
}
/**
* Sets the value(s) for destination (Location to which the patient is discharged)
*
*
* Definition:
*
*
*/
public Hospitalization setDestination(ResourceReferenceDt theValue) {
myDestination = theValue;
return this;
}
/**
* Gets the value(s) for dischargeDisposition (Category or kind of location after discharge).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getDischargeDisposition() {
if (myDischargeDisposition == null) {
myDischargeDisposition = new CodeableConceptDt();
}
return myDischargeDisposition;
}
/**
* Gets the value(s) for dischargeDisposition (Category or kind of location after discharge).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public CodeableConceptDt getDischargeDispositionElement() {
if (myDischargeDisposition == null) {
myDischargeDisposition = new CodeableConceptDt();
}
return myDischargeDisposition;
}
/**
* Sets the value(s) for dischargeDisposition (Category or kind of location after discharge)
*
*
* Definition:
*
*
*/
public Hospitalization setDischargeDisposition(CodeableConceptDt theValue) {
myDischargeDisposition = theValue;
return this;
}
/**
* Gets the value(s) for dischargeDiagnosis (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getDischargeDiagnosis() {
if (myDischargeDiagnosis == null) {
myDischargeDiagnosis = new ResourceReferenceDt();
}
return myDischargeDiagnosis;
}
/**
* Gets the value(s) for dischargeDiagnosis (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getDischargeDiagnosisElement() {
if (myDischargeDiagnosis == null) {
myDischargeDiagnosis = new ResourceReferenceDt();
}
return myDischargeDiagnosis;
}
/**
* Sets the value(s) for dischargeDiagnosis (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete)
*
*
* Definition:
*
*
*/
public Hospitalization setDischargeDiagnosis(ResourceReferenceDt theValue) {
myDischargeDiagnosis = theValue;
return this;
}
/**
* Gets the value(s) for reAdmission (Is this hospitalization a readmission?).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Whether this hospitalization is a readmission
*
*/
public BooleanDt getReAdmission() {
if (myReAdmission == null) {
myReAdmission = new BooleanDt();
}
return myReAdmission;
}
/**
* Gets the value(s) for reAdmission (Is this hospitalization a readmission?).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Whether this hospitalization is a readmission
*
*/
public BooleanDt getReAdmissionElement() {
if (myReAdmission == null) {
myReAdmission = new BooleanDt();
}
return myReAdmission;
}
/**
* Sets the value(s) for reAdmission (Is this hospitalization a readmission?)
*
*
* Definition:
* Whether this hospitalization is a readmission
*
*/
public Hospitalization setReAdmission(BooleanDt theValue) {
myReAdmission = theValue;
return this;
}
/**
* Sets the value for reAdmission (Is this hospitalization a readmission?)
*
*
* Definition:
* Whether this hospitalization is a readmission
*
*/
public Hospitalization setReAdmission( boolean theBoolean) {
myReAdmission = new BooleanDt(theBoolean);
return this;
}
}
/**
* Block class for child element: Encounter.hospitalization.accomodation (Where the patient stays during this encounter)
*
*
* Definition:
*
*
*/
@Block()
public static class HospitalizationAccomodation
extends BaseIdentifiableElement implements IResourceBlock {
@Child(name="bed", order=0, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu.resource.Location.class })
@Description(
shortDefinition="The bed that is assigned to the patient",
formalDefinition=""
)
private ResourceReferenceDt myBed;
@Child(name="period", type=PeriodDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Period during which the patient was assigned the bed",
formalDefinition=""
)
private PeriodDt myPeriod;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myBed, myPeriod);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myBed, myPeriod);
}
/**
* Gets the value(s) for bed (The bed that is assigned to the patient).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getBed() {
if (myBed == null) {
myBed = new ResourceReferenceDt();
}
return myBed;
}
/**
* Gets the value(s) for bed (The bed that is assigned to the patient).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public ResourceReferenceDt getBedElement() {
if (myBed == null) {
myBed = new ResourceReferenceDt();
}
return myBed;
}
/**
* Sets the value(s) for bed (The bed that is assigned to the patient)
*
*
* Definition:
*
*
*/
public HospitalizationAccomodation setBed(ResourceReferenceDt theValue) {
myBed = theValue;
return this;
}
/**
* Gets the value(s) for period (Period during which the patient was assigned the bed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Gets the value(s) for period (Period during which the patient was assigned the bed).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public PeriodDt getPeriodElement() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period (Period during which the patient was assigned the bed)
*
*
* Definition:
*
*
*/
public HospitalizationAccomodation setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
}
/**
* Block class for child element: Encounter.location (List of locations the patient has been at)
*
*
* Definition:
* List of locations at which the patient has been
*
*/
@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.dstu.resource.Location.class })
@Description(
shortDefinition="Location the encounter takes place",
formalDefinition="The location where the encounter takes place"
)
private ResourceReferenceDt myLocation;
@Child(name="period", type=PeriodDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="Time period during which the patient was present at the location",
formalDefinition=""
)
private PeriodDt myPeriod;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLocation, myPeriod);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLocation, myPeriod);
}
/**
* Gets the value(s) for location (Location the encounter takes place).
* 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;
}
/**
* Gets the value(s) for location (Location the encounter takes place).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The location where the encounter takes place
*
*/
public ResourceReferenceDt getLocationElement() {
if (myLocation == null) {
myLocation = new ResourceReferenceDt();
}
return myLocation;
}
/**
* Sets the value(s) for location (Location the encounter takes place)
*
*
* Definition:
* The location where the encounter takes place
*
*/
public Location setLocation(ResourceReferenceDt theValue) {
myLocation = theValue;
return this;
}
/**
* Gets the value(s) for period (Time period during which the patient was present at the location).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Gets the value(s) for period (Time period during which the patient was present at the location).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
*
*
*/
public PeriodDt getPeriodElement() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period (Time period during which the patient was present at the location)
*
*
* 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.DSTU1;
}
}