ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare 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 EpisodeOfCare Resource
* (workflow.encounter)
*
*
* Definition:
* An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.
*
*
*
* Requirements:
*
*
*
*
* Profile Definition:
* http://hl7.org/fhir/profiles/EpisodeOfCare
*
*
*/
@ResourceDef(name="EpisodeOfCare", profile="http://hl7.org/fhir/profiles/EpisodeOfCare", id="episodeofcare")
public class EpisodeOfCare extends ca.uhn.fhir.model.dstu2.resource.BaseResource
implements IResource
{
/**
* Search parameter constant for patient
*
* Description:
* Type: reference
* Path: EpisodeOfCare.patient
*
*/
@SearchParamDefinition(name="patient", path="EpisodeOfCare.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: EpisodeOfCare.patient
*
*/
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
/**
* Search parameter constant for identifier
*
* Description:
* Type: token
* Path: EpisodeOfCare.identifier
*
*/
@SearchParamDefinition(name="identifier", path="EpisodeOfCare.identifier", description="", type="token"
)
public static final String SP_IDENTIFIER = "identifier";
/**
* Fluent Client search parameter constant for identifier
*
* Description:
* Type: token
* Path: EpisodeOfCare.identifier
*
*/
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter constant for status
*
* Description: The current status of the Episode of Care as provided (does not check the status history collection)
* Type: token
* Path: EpisodeOfCare.status
*
*/
@SearchParamDefinition(name="status", path="EpisodeOfCare.status", description="The current status of the Episode of Care as provided (does not check the status history collection)", type="token"
)
public static final String SP_STATUS = "status";
/**
* Fluent Client search parameter constant for status
*
* Description: The current status of the Episode of Care as provided (does not check the status history collection)
* Type: token
* Path: EpisodeOfCare.status
*
*/
public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
/**
* Search parameter constant for organization
*
* Description: The organization that has assumed the specific responsibilities of this EpisodeOfCare
* Type: reference
* Path: EpisodeOfCare.managingOrganization
*
*/
@SearchParamDefinition(name="organization", path="EpisodeOfCare.managingOrganization", description="The organization that has assumed the specific responsibilities of this EpisodeOfCare", type="reference"
, target={
ca.uhn.fhir.model.dstu2.resource.Organization.class }
)
public static final String SP_ORGANIZATION = "organization";
/**
* Fluent Client search parameter constant for organization
*
* Description: The organization that has assumed the specific responsibilities of this EpisodeOfCare
* Type: reference
* Path: EpisodeOfCare.managingOrganization
*
*/
public static final ReferenceClientParam ORGANIZATION = new ReferenceClientParam(SP_ORGANIZATION);
/**
* Search parameter constant for date
*
* Description: The provided date search value falls within the episode of care's period
* Type: date
* Path: EpisodeOfCare.period
*
*/
@SearchParamDefinition(name="date", path="EpisodeOfCare.period", description="The provided date search value falls within the episode of care's period", type="date"
)
public static final String SP_DATE = "date";
/**
* Fluent Client search parameter constant for date
*
* Description: The provided date search value falls within the episode of care's period
* Type: date
* Path: EpisodeOfCare.period
*
*/
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
/**
* Search parameter constant for type
*
* Description:
* Type: token
* Path: EpisodeOfCare.type
*
*/
@SearchParamDefinition(name="type", path="EpisodeOfCare.type", description="", type="token"
)
public static final String SP_TYPE = "type";
/**
* Fluent Client search parameter constant for type
*
* Description:
* Type: token
* Path: EpisodeOfCare.type
*
*/
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
/**
* Search parameter constant for condition
*
* Description:
* Type: reference
* Path: EpisodeOfCare.condition
*
*/
@SearchParamDefinition(name="condition", path="EpisodeOfCare.condition", 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: EpisodeOfCare.condition
*
*/
public static final ReferenceClientParam CONDITION = new ReferenceClientParam(SP_CONDITION);
/**
* Search parameter constant for incomingreferral
*
* Description: Incoming Referral Request
* Type: reference
* Path: EpisodeOfCare.referralRequest
*
*/
@SearchParamDefinition(name="incomingreferral", path="EpisodeOfCare.referralRequest", description="Incoming Referral Request", 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: Incoming Referral Request
* Type: reference
* Path: EpisodeOfCare.referralRequest
*
*/
public static final ReferenceClientParam INCOMINGREFERRAL = new ReferenceClientParam(SP_INCOMINGREFERRAL);
/**
* Search parameter constant for care-manager
*
* Description:
* Type: reference
* Path: EpisodeOfCare.careManager
*
*/
@SearchParamDefinition(name="care-manager", path="EpisodeOfCare.careManager", description="", type="reference"
, providesMembershipIn={
@Compartment(name="Encounter") }
, target={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class }
)
public static final String SP_CARE_MANAGER = "care-manager";
/**
* Fluent Client search parameter constant for care-manager
*
* Description:
* Type: reference
* Path: EpisodeOfCare.careManager
*
*/
public static final ReferenceClientParam CARE_MANAGER = new ReferenceClientParam(SP_CARE_MANAGER);
/**
* Search parameter constant for team-member
*
* Description: A Practitioner or Organization allocated to the care team for this EpisodeOfCare
* Type: reference
* Path: EpisodeOfCare.careTeam.member
*
*/
@SearchParamDefinition(name="team-member", path="EpisodeOfCare.careTeam.member", description="A Practitioner or Organization allocated to the care team for this EpisodeOfCare", type="reference"
, providesMembershipIn={
@Compartment(name="Encounter") }
)
public static final String SP_TEAM_MEMBER = "team-member";
/**
* Fluent Client search parameter constant for team-member
*
* Description: A Practitioner or Organization allocated to the care team for this EpisodeOfCare
* Type: reference
* Path: EpisodeOfCare.careTeam.member
*
*/
public static final ReferenceClientParam TEAM_MEMBER = new ReferenceClientParam(SP_TEAM_MEMBER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "EpisodeOfCare:care-manager".
*/
public static final Include INCLUDE_CARE_MANAGER = new Include("EpisodeOfCare:care-manager");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "EpisodeOfCare:condition".
*/
public static final Include INCLUDE_CONDITION = new Include("EpisodeOfCare:condition");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "EpisodeOfCare:incomingreferral".
*/
public static final Include INCLUDE_INCOMINGREFERRAL = new Include("EpisodeOfCare:incomingreferral");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "EpisodeOfCare:organization".
*/
public static final Include INCLUDE_ORGANIZATION = new Include("EpisodeOfCare:organization");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "EpisodeOfCare:patient".
*/
public static final Include INCLUDE_PATIENT = new Include("EpisodeOfCare:patient");
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "EpisodeOfCare:team-member".
*/
public static final Include INCLUDE_TEAM_MEMBER = new Include("EpisodeOfCare:team-member");
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="id",
formalDefinition="Identifier(s) by which this EpisodeOfCare is known"
)
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="planned | waitlist | active | onhold | finished | cancelled"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/episode-of-care-status")
private BoundCodeDt myStatus;
@Child(name="statusHistory", order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)"
)
private java.util.List myStatusHistory;
@Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="class",
formalDefinition="A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care"
)
private java.util.List myType;
@Child(name="condition", order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Condition.class
})
@Description(
shortDefinition="what",
formalDefinition="A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for"
)
private java.util.List myCondition;
@Child(name="patient", order=5, min=1, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Patient.class
})
@Description(
shortDefinition="who.focus",
formalDefinition="The patient that this EpisodeOfCare applies to"
)
private ResourceReferenceDt myPatient;
@Child(name="managingOrganization", order=6, min=0, max=1, summary=true, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Organization.class
})
@Description(
shortDefinition="",
formalDefinition="The organization that has assumed the specific responsibilities for the specified duration"
)
private ResourceReferenceDt myManagingOrganization;
@Child(name="period", type=PeriodDt.class, order=7, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="when.init",
formalDefinition="The interval during which the managing organization assumes the defined responsibility"
)
private PeriodDt myPeriod;
@Child(name="referralRequest", order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.ReferralRequest.class
})
@Description(
shortDefinition="",
formalDefinition="Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals"
)
private java.util.List myReferralRequest;
@Child(name="careManager", order=9, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class
})
@Description(
shortDefinition="",
formalDefinition="The practitioner that is the care manager/care co-ordinator for this patient"
)
private ResourceReferenceDt myCareManager;
@Child(name="careTeam", order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The list of practitioners that may be facilitating this episode of care for specific purposes"
)
private java.util.List myCareTeam;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myStatusHistory, myType, myCondition, myPatient, myManagingOrganization, myPeriod, myReferralRequest, myCareManager, myCareTeam);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myStatusHistory, myType, myCondition, myPatient, myManagingOrganization, myPeriod, myReferralRequest, myCareManager, myCareTeam);
}
/**
* Gets the value(s) for identifier (id).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifier(s) by which this EpisodeOfCare is known
*
*/
public java.util.List getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new java.util.ArrayList();
}
return myIdentifier;
}
/**
* Sets the value(s) for identifier (id)
*
*
* Definition:
* Identifier(s) by which this EpisodeOfCare is known
*
*/
public EpisodeOfCare setIdentifier(java.util.List theValue) {
myIdentifier = theValue;
return this;
}
/**
* Adds and returns a new value for identifier (id)
*
*
* Definition:
* Identifier(s) by which this EpisodeOfCare is known
*
*/
public IdentifierDt addIdentifier() {
IdentifierDt newType = new IdentifierDt();
getIdentifier().add(newType);
return newType;
}
/**
* Adds a given new value for identifier (id)
*
*
* Definition:
* Identifier(s) by which this EpisodeOfCare is known
*
* @param theValue The identifier to add (must not be null
)
*/
public EpisodeOfCare 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:
* Identifier(s) by which this EpisodeOfCare is known
*
*/
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:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public BoundCodeDt getStatusElement() {
if (myStatus == null) {
myStatus = new BoundCodeDt(EpisodeOfCareStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status (status).
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public EpisodeOfCare setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status (status)
*
*
* Definition:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public EpisodeOfCare setStatus(EpisodeOfCareStatusEnum theValue) {
setStatus(new BoundCodeDt(EpisodeOfCareStatusEnum.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 history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)
*
*/
public java.util.List getStatusHistory() {
if (myStatusHistory == null) {
myStatusHistory = new java.util.ArrayList();
}
return myStatusHistory;
}
/**
* Sets the value(s) for statusHistory ()
*
*
* Definition:
* The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)
*
*/
public EpisodeOfCare setStatusHistory(java.util.List theValue) {
myStatusHistory = theValue;
return this;
}
/**
* Adds and returns a new value for statusHistory ()
*
*
* Definition:
* The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)
*
*/
public StatusHistory addStatusHistory() {
StatusHistory newType = new StatusHistory();
getStatusHistory().add(newType);
return newType;
}
/**
* Adds a given new value for statusHistory ()
*
*
* Definition:
* The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)
*
* @param theValue The statusHistory to add (must not be null
)
*/
public EpisodeOfCare 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 history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)
*
*/
public StatusHistory getStatusHistoryFirstRep() {
if (getStatusHistory().isEmpty()) {
return addStatusHistory();
}
return getStatusHistory().get(0);
}
/**
* Gets the value(s) for type (class).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care
*
*/
public java.util.List getType() {
if (myType == null) {
myType = new java.util.ArrayList();
}
return myType;
}
/**
* Sets the value(s) for type (class)
*
*
* Definition:
* A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care
*
*/
public EpisodeOfCare setType(java.util.List theValue) {
myType = theValue;
return this;
}
/**
* Adds and returns a new value for type (class)
*
*
* Definition:
* A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care
*
*/
public CodeableConceptDt addType() {
CodeableConceptDt newType = new CodeableConceptDt();
getType().add(newType);
return newType;
}
/**
* Adds a given new value for type (class)
*
*
* Definition:
* A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care
*
* @param theValue The type to add (must not be null
)
*/
public EpisodeOfCare 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:
* A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care
*
*/
public CodeableConceptDt getTypeFirstRep() {
if (getType().isEmpty()) {
return addType();
}
return getType().get(0);
}
/**
* Gets the value(s) for condition (what).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for
*
*/
public java.util.List getCondition() {
if (myCondition == null) {
myCondition = new java.util.ArrayList();
}
return myCondition;
}
/**
* Sets the value(s) for condition (what)
*
*
* Definition:
* A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for
*
*/
public EpisodeOfCare setCondition(java.util.List theValue) {
myCondition = theValue;
return this;
}
/**
* Adds and returns a new value for condition (what)
*
*
* Definition:
* A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for
*
*/
public ResourceReferenceDt addCondition() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getCondition().add(newType);
return newType;
}
/**
* Gets the value(s) for patient (who.focus).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The patient that this EpisodeOfCare applies to
*
*/
public ResourceReferenceDt getPatient() {
if (myPatient == null) {
myPatient = new ResourceReferenceDt();
}
return myPatient;
}
/**
* Sets the value(s) for patient (who.focus)
*
*
* Definition:
* The patient that this EpisodeOfCare applies to
*
*/
public EpisodeOfCare setPatient(ResourceReferenceDt theValue) {
myPatient = theValue;
return this;
}
/**
* Gets the value(s) for managingOrganization ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The organization that has assumed the specific responsibilities for the specified duration
*
*/
public ResourceReferenceDt getManagingOrganization() {
if (myManagingOrganization == null) {
myManagingOrganization = new ResourceReferenceDt();
}
return myManagingOrganization;
}
/**
* Sets the value(s) for managingOrganization ()
*
*
* Definition:
* The organization that has assumed the specific responsibilities for the specified duration
*
*/
public EpisodeOfCare setManagingOrganization(ResourceReferenceDt theValue) {
myManagingOrganization = theValue;
return this;
}
/**
* Gets the value(s) for period (when.init).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The interval during which the managing organization assumes the defined responsibility
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period (when.init)
*
*
* Definition:
* The interval during which the managing organization assumes the defined responsibility
*
*/
public EpisodeOfCare setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Gets the value(s) for referralRequest ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals
*
*/
public java.util.List getReferralRequest() {
if (myReferralRequest == null) {
myReferralRequest = new java.util.ArrayList();
}
return myReferralRequest;
}
/**
* Sets the value(s) for referralRequest ()
*
*
* Definition:
* Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals
*
*/
public EpisodeOfCare setReferralRequest(java.util.List theValue) {
myReferralRequest = theValue;
return this;
}
/**
* Adds and returns a new value for referralRequest ()
*
*
* Definition:
* Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals
*
*/
public ResourceReferenceDt addReferralRequest() {
ResourceReferenceDt newType = new ResourceReferenceDt();
getReferralRequest().add(newType);
return newType;
}
/**
* Gets the value(s) for careManager ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The practitioner that is the care manager/care co-ordinator for this patient
*
*/
public ResourceReferenceDt getCareManager() {
if (myCareManager == null) {
myCareManager = new ResourceReferenceDt();
}
return myCareManager;
}
/**
* Sets the value(s) for careManager ()
*
*
* Definition:
* The practitioner that is the care manager/care co-ordinator for this patient
*
*/
public EpisodeOfCare setCareManager(ResourceReferenceDt theValue) {
myCareManager = theValue;
return this;
}
/**
* Gets the value(s) for careTeam ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The list of practitioners that may be facilitating this episode of care for specific purposes
*
*/
public java.util.List getCareTeam() {
if (myCareTeam == null) {
myCareTeam = new java.util.ArrayList();
}
return myCareTeam;
}
/**
* Sets the value(s) for careTeam ()
*
*
* Definition:
* The list of practitioners that may be facilitating this episode of care for specific purposes
*
*/
public EpisodeOfCare setCareTeam(java.util.List theValue) {
myCareTeam = theValue;
return this;
}
/**
* Adds and returns a new value for careTeam ()
*
*
* Definition:
* The list of practitioners that may be facilitating this episode of care for specific purposes
*
*/
public CareTeam addCareTeam() {
CareTeam newType = new CareTeam();
getCareTeam().add(newType);
return newType;
}
/**
* Adds a given new value for careTeam ()
*
*
* Definition:
* The list of practitioners that may be facilitating this episode of care for specific purposes
*
* @param theValue The careTeam to add (must not be null
)
*/
public EpisodeOfCare addCareTeam(CareTeam theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getCareTeam().add(theValue);
return this;
}
/**
* Gets the first repetition for careTeam (),
* creating it if it does not already exist.
*
*
* Definition:
* The list of practitioners that may be facilitating this episode of care for specific purposes
*
*/
public CareTeam getCareTeamFirstRep() {
if (getCareTeam().isEmpty()) {
return addCareTeam();
}
return getCareTeam().get(0);
}
/**
* Block class for child element: EpisodeOfCare.statusHistory ()
*
*
* Definition:
* The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource)
*
*/
@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="planned | waitlist | active | onhold | finished | cancelled"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/episode-of-care-status")
private BoundCodeDt myStatus;
@Child(name="period", type=PeriodDt.class, order=1, min=1, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The period during this EpisodeOfCare that the specific status applied"
)
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:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public BoundCodeDt getStatusElement() {
if (myStatus == null) {
myStatus = new BoundCodeDt(EpisodeOfCareStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
/**
* Gets the value(s) for status ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public String getStatus() {
return getStatusElement().getValue();
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public StatusHistory setStatus(BoundCodeDt theValue) {
myStatus = theValue;
return this;
}
/**
* Sets the value(s) for status ()
*
*
* Definition:
* planned | waitlist | active | onhold | finished | cancelled
*
*/
public StatusHistory setStatus(EpisodeOfCareStatusEnum theValue) {
setStatus(new BoundCodeDt(EpisodeOfCareStatusEnum.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:
* The period during this EpisodeOfCare that the specific status applied
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period ()
*
*
* Definition:
* The period during this EpisodeOfCare that the specific status applied
*
*/
public StatusHistory setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
}
/**
* Block class for child element: EpisodeOfCare.careTeam ()
*
*
* Definition:
* The list of practitioners that may be facilitating this episode of care for specific purposes
*
*/
@Block()
public static class CareTeam
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="role", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The role this team member is taking within this episode of care"
)
private java.util.List myRole;
@Child(name="period", type=PeriodDt.class, order=1, min=0, max=1, summary=false, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The period of time this practitioner is performing some role within the episode of care"
)
private PeriodDt myPeriod;
@Child(name="member", order=2, min=0, max=1, summary=false, modifier=false, type={
ca.uhn.fhir.model.dstu2.resource.Practitioner.class,
ca.uhn.fhir.model.dstu2.resource.Organization.class
})
@Description(
shortDefinition="who",
formalDefinition="The practitioner (or Organization) within the team"
)
private ResourceReferenceDt myMember;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myPeriod, myMember);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myPeriod, myMember);
}
/**
* Gets the value(s) for role ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The role this team member is taking within this episode of care
*
*/
public java.util.List getRole() {
if (myRole == null) {
myRole = new java.util.ArrayList();
}
return myRole;
}
/**
* Sets the value(s) for role ()
*
*
* Definition:
* The role this team member is taking within this episode of care
*
*/
public CareTeam setRole(java.util.List theValue) {
myRole = theValue;
return this;
}
/**
* Adds and returns a new value for role ()
*
*
* Definition:
* The role this team member is taking within this episode of care
*
*/
public CodeableConceptDt addRole() {
CodeableConceptDt newType = new CodeableConceptDt();
getRole().add(newType);
return newType;
}
/**
* Adds a given new value for role ()
*
*
* Definition:
* The role this team member is taking within this episode of care
*
* @param theValue The role to add (must not be null
)
*/
public CareTeam addRole(CodeableConceptDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getRole().add(theValue);
return this;
}
/**
* Gets the first repetition for role (),
* creating it if it does not already exist.
*
*
* Definition:
* The role this team member is taking within this episode of care
*
*/
public CodeableConceptDt getRoleFirstRep() {
if (getRole().isEmpty()) {
return addRole();
}
return getRole().get(0);
}
/**
* Gets the value(s) for period ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The period of time this practitioner is performing some role within the episode of care
*
*/
public PeriodDt getPeriod() {
if (myPeriod == null) {
myPeriod = new PeriodDt();
}
return myPeriod;
}
/**
* Sets the value(s) for period ()
*
*
* Definition:
* The period of time this practitioner is performing some role within the episode of care
*
*/
public CareTeam setPeriod(PeriodDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Gets the value(s) for member (who).
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The practitioner (or Organization) within the team
*
*/
public ResourceReferenceDt getMember() {
if (myMember == null) {
myMember = new ResourceReferenceDt();
}
return myMember;
}
/**
* Sets the value(s) for member (who)
*
*
* Definition:
* The practitioner (or Organization) within the team
*
*/
public CareTeam setMember(ResourceReferenceDt theValue) {
myMember = theValue;
return this;
}
}
@Override
public String getResourceName() {
return "EpisodeOfCare";
}
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
}
}