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

ca.uhn.fhir.model.dstu2.resource.Patient Maven / Gradle / Ivy

The newest version!
















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 Patient Resource
 * (administrative.individual)
 *
 * 

* Definition: * Demographics and other administrative information about an individual or animal receiving care or other health-related services. *

* *

* Requirements: * Tracking patient is the center of the healthcare process *

* *

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

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

* Description: A patient identifier
* Type: token
* Path: Patient.identifier
*

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

* Description: A patient identifier
* Type: token
* Path: Patient.identifier
*

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

* Description: A portion of either family or given name of the patient
* Type: string
* Path: Patient.name
*

*/ @SearchParamDefinition(name="name", path="Patient.name", description="A portion of either family or given name of the patient", type="string" ) public static final String SP_NAME = "name"; /** * Fluent Client search parameter constant for name *

* Description: A portion of either family or given name of the patient
* Type: string
* Path: Patient.name
*

*/ public static final StringClientParam NAME = new StringClientParam(SP_NAME); /** * Search parameter constant for family *

* Description: A portion of the family name of the patient
* Type: string
* Path: Patient.name.family
*

*/ @SearchParamDefinition(name="family", path="Patient.name.family", description="A portion of the family name of the patient", type="string" ) public static final String SP_FAMILY = "family"; /** * Fluent Client search parameter constant for family *

* Description: A portion of the family name of the patient
* Type: string
* Path: Patient.name.family
*

*/ public static final StringClientParam FAMILY = new StringClientParam(SP_FAMILY); /** * Search parameter constant for given *

* Description: A portion of the given name of the patient
* Type: string
* Path: Patient.name.given
*

*/ @SearchParamDefinition(name="given", path="Patient.name.given", description="A portion of the given name of the patient", type="string" ) public static final String SP_GIVEN = "given"; /** * Fluent Client search parameter constant for given *

* Description: A portion of the given name of the patient
* Type: string
* Path: Patient.name.given
*

*/ public static final StringClientParam GIVEN = new StringClientParam(SP_GIVEN); /** * Search parameter constant for phonetic *

* Description: A portion of either family or given name using some kind of phonetic matching algorithm
* Type: string
* Path: Patient.name
*

*/ @SearchParamDefinition(name="phonetic", path="Patient.name", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" ) public static final String SP_PHONETIC = "phonetic"; /** * Fluent Client search parameter constant for phonetic *

* Description: A portion of either family or given name using some kind of phonetic matching algorithm
* Type: string
* Path: Patient.name
*

*/ public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC); /** * Search parameter constant for telecom *

* Description: The value in any kind of telecom details of the patient
* Type: token
* Path: Patient.telecom
*

*/ @SearchParamDefinition(name="telecom", path="Patient.telecom", description="The value in any kind of telecom details of the patient", type="token" ) public static final String SP_TELECOM = "telecom"; /** * Fluent Client search parameter constant for telecom *

* Description: The value in any kind of telecom details of the patient
* Type: token
* Path: Patient.telecom
*

*/ public static final TokenClientParam TELECOM = new TokenClientParam(SP_TELECOM); /** * Search parameter constant for phone *

* Description: A value in a phone contact
* Type: token
* Path: Patient.telecom(system=phone)
*

*/ @SearchParamDefinition(name="phone", path="Patient.telecom(system=phone)", description="A value in a phone contact", type="token" ) public static final String SP_PHONE = "phone"; /** * Fluent Client search parameter constant for phone *

* Description: A value in a phone contact
* Type: token
* Path: Patient.telecom(system=phone)
*

*/ public static final TokenClientParam PHONE = new TokenClientParam(SP_PHONE); /** * Search parameter constant for email *

* Description: A value in an email contact
* Type: token
* Path: Patient.telecom(system=email)
*

*/ @SearchParamDefinition(name="email", path="Patient.telecom(system=email)", description="A value in an email contact", type="token" ) public static final String SP_EMAIL = "email"; /** * Fluent Client search parameter constant for email *

* Description: A value in an email contact
* Type: token
* Path: Patient.telecom(system=email)
*

*/ public static final TokenClientParam EMAIL = new TokenClientParam(SP_EMAIL); /** * Search parameter constant for address *

* Description: An address in any kind of address/part of the patient
* Type: string
* Path: Patient.address
*

*/ @SearchParamDefinition(name="address", path="Patient.address", description="An address in any kind of address/part of the patient", type="string" ) public static final String SP_ADDRESS = "address"; /** * Fluent Client search parameter constant for address *

* Description: An address in any kind of address/part of the patient
* Type: string
* Path: Patient.address
*

*/ public static final StringClientParam ADDRESS = new StringClientParam(SP_ADDRESS); /** * Search parameter constant for address-city *

* Description: A city specified in an address
* Type: string
* Path: Patient.address.city
*

*/ @SearchParamDefinition(name="address-city", path="Patient.address.city", description="A city specified in an address", type="string" ) public static final String SP_ADDRESS_CITY = "address-city"; /** * Fluent Client search parameter constant for address-city *

* Description: A city specified in an address
* Type: string
* Path: Patient.address.city
*

*/ public static final StringClientParam ADDRESS_CITY = new StringClientParam(SP_ADDRESS_CITY); /** * Search parameter constant for address-state *

* Description: A state specified in an address
* Type: string
* Path: Patient.address.state
*

*/ @SearchParamDefinition(name="address-state", path="Patient.address.state", description="A state specified in an address", type="string" ) public static final String SP_ADDRESS_STATE = "address-state"; /** * Fluent Client search parameter constant for address-state *

* Description: A state specified in an address
* Type: string
* Path: Patient.address.state
*

*/ public static final StringClientParam ADDRESS_STATE = new StringClientParam(SP_ADDRESS_STATE); /** * Search parameter constant for address-postalcode *

* Description: A postalCode specified in an address
* Type: string
* Path: Patient.address.postalCode
*

*/ @SearchParamDefinition(name="address-postalcode", path="Patient.address.postalCode", description="A postalCode specified in an address", type="string" ) public static final String SP_ADDRESS_POSTALCODE = "address-postalcode"; /** * Fluent Client search parameter constant for address-postalcode *

* Description: A postalCode specified in an address
* Type: string
* Path: Patient.address.postalCode
*

*/ public static final StringClientParam ADDRESS_POSTALCODE = new StringClientParam(SP_ADDRESS_POSTALCODE); /** * Search parameter constant for address-country *

* Description: A country specified in an address
* Type: string
* Path: Patient.address.country
*

*/ @SearchParamDefinition(name="address-country", path="Patient.address.country", description="A country specified in an address", type="string" ) public static final String SP_ADDRESS_COUNTRY = "address-country"; /** * Fluent Client search parameter constant for address-country *

* Description: A country specified in an address
* Type: string
* Path: Patient.address.country
*

*/ public static final StringClientParam ADDRESS_COUNTRY = new StringClientParam(SP_ADDRESS_COUNTRY); /** * Search parameter constant for address-use *

* Description: A use code specified in an address
* Type: token
* Path: Patient.address.use
*

*/ @SearchParamDefinition(name="address-use", path="Patient.address.use", description="A use code specified in an address", type="token" ) public static final String SP_ADDRESS_USE = "address-use"; /** * Fluent Client search parameter constant for address-use *

* Description: A use code specified in an address
* Type: token
* Path: Patient.address.use
*

*/ public static final TokenClientParam ADDRESS_USE = new TokenClientParam(SP_ADDRESS_USE); /** * Search parameter constant for gender *

* Description: Gender of the patient
* Type: token
* Path: Patient.gender
*

*/ @SearchParamDefinition(name="gender", path="Patient.gender", description="Gender of the patient", type="token" ) public static final String SP_GENDER = "gender"; /** * Fluent Client search parameter constant for gender *

* Description: Gender of the patient
* Type: token
* Path: Patient.gender
*

*/ public static final TokenClientParam GENDER = new TokenClientParam(SP_GENDER); /** * Search parameter constant for language *

* Description: Language code (irrespective of use value)
* Type: token
* Path: Patient.communication.language
*

*/ @SearchParamDefinition(name="language", path="Patient.communication.language", description="Language code (irrespective of use value)", type="token" ) public static final String SP_LANGUAGE = "language"; /** * Fluent Client search parameter constant for language *

* Description: Language code (irrespective of use value)
* Type: token
* Path: Patient.communication.language
*

*/ public static final TokenClientParam LANGUAGE = new TokenClientParam(SP_LANGUAGE); /** * Search parameter constant for birthdate *

* Description: The patient's date of birth
* Type: date
* Path: Patient.birthDate
*

*/ @SearchParamDefinition(name="birthdate", path="Patient.birthDate", description="The patient's date of birth", type="date" ) public static final String SP_BIRTHDATE = "birthdate"; /** * Fluent Client search parameter constant for birthdate *

* Description: The patient's date of birth
* Type: date
* Path: Patient.birthDate
*

*/ public static final DateClientParam BIRTHDATE = new DateClientParam(SP_BIRTHDATE); /** * Search parameter constant for organization *

* Description: The organization at which this person is a patient
* Type: reference
* Path: Patient.managingOrganization
*

*/ @SearchParamDefinition(name="organization", path="Patient.managingOrganization", description="The organization at which this person is a patient", type="reference" ) public static final String SP_ORGANIZATION = "organization"; /** * Fluent Client search parameter constant for organization *

* Description: The organization at which this person is a patient
* Type: reference
* Path: Patient.managingOrganization
*

*/ public static final ReferenceClientParam ORGANIZATION = new ReferenceClientParam(SP_ORGANIZATION); /** * Search parameter constant for careprovider *

* Description: Patient's nominated care provider, could be a care manager, not the organization that manages the record
* Type: reference
* Path: Patient.careProvider
*

*/ @SearchParamDefinition(name="careprovider", path="Patient.careProvider", description="Patient's nominated care provider, could be a care manager, not the organization that manages the record", type="reference" , providesMembershipIn={ @Compartment(name="Encounter") } ) public static final String SP_CAREPROVIDER = "careprovider"; /** * Fluent Client search parameter constant for careprovider *

* Description: Patient's nominated care provider, could be a care manager, not the organization that manages the record
* Type: reference
* Path: Patient.careProvider
*

*/ public static final ReferenceClientParam CAREPROVIDER = new ReferenceClientParam(SP_CAREPROVIDER); /** * Search parameter constant for active *

* Description: Whether the patient record is active
* Type: token
* Path: Patient.active
*

*/ @SearchParamDefinition(name="active", path="Patient.active", description="Whether the patient record is active", type="token" ) public static final String SP_ACTIVE = "active"; /** * Fluent Client search parameter constant for active *

* Description: Whether the patient record is active
* Type: token
* Path: Patient.active
*

*/ public static final TokenClientParam ACTIVE = new TokenClientParam(SP_ACTIVE); /** * Search parameter constant for animal-species *

* Description: The species for animal patients
* Type: token
* Path: Patient.animal.species
*

*/ @SearchParamDefinition(name="animal-species", path="Patient.animal.species", description="The species for animal patients", type="token" ) public static final String SP_ANIMAL_SPECIES = "animal-species"; /** * Fluent Client search parameter constant for animal-species *

* Description: The species for animal patients
* Type: token
* Path: Patient.animal.species
*

*/ public static final TokenClientParam ANIMAL_SPECIES = new TokenClientParam(SP_ANIMAL_SPECIES); /** * Search parameter constant for animal-breed *

* Description: The breed for animal patients
* Type: token
* Path: Patient.animal.breed
*

*/ @SearchParamDefinition(name="animal-breed", path="Patient.animal.breed", description="The breed for animal patients", type="token" ) public static final String SP_ANIMAL_BREED = "animal-breed"; /** * Fluent Client search parameter constant for animal-breed *

* Description: The breed for animal patients
* Type: token
* Path: Patient.animal.breed
*

*/ public static final TokenClientParam ANIMAL_BREED = new TokenClientParam(SP_ANIMAL_BREED); /** * Search parameter constant for link *

* Description: All patients linked to the given patient
* Type: reference
* Path: Patient.link.other
*

*/ @SearchParamDefinition(name="link", path="Patient.link.other", description="All patients linked to the given patient", type="reference" , providesMembershipIn={ @Compartment(name="Patient") } ) public static final String SP_LINK = "link"; /** * Fluent Client search parameter constant for link *

* Description: All patients linked to the given patient
* Type: reference
* Path: Patient.link.other
*

*/ public static final ReferenceClientParam LINK = new ReferenceClientParam(SP_LINK); /** * Search parameter constant for deceased *

* Description: This patient has been marked as deceased, or as a death date entered
* Type: token
* Path: Patient.deceased[x]
*

*/ @SearchParamDefinition(name="deceased", path="Patient.deceased[x]", description="This patient has been marked as deceased, or as a death date entered", type="token" ) public static final String SP_DECEASED = "deceased"; /** * Fluent Client search parameter constant for deceased *

* Description: This patient has been marked as deceased, or as a death date entered
* Type: token
* Path: Patient.deceased[x]
*

*/ public static final TokenClientParam DECEASED = new TokenClientParam(SP_DECEASED); /** * Search parameter constant for deathdate *

* Description: The date of death has been provided and satisfies this search value
* Type: date
* Path: Patient.deceasedDateTime
*

*/ @SearchParamDefinition(name="deathdate", path="Patient.deceasedDateTime", description="The date of death has been provided and satisfies this search value", type="date" ) public static final String SP_DEATHDATE = "deathdate"; /** * Fluent Client search parameter constant for deathdate *

* Description: The date of death has been provided and satisfies this search value
* Type: date
* Path: Patient.deceasedDateTime
*

*/ public static final DateClientParam DEATHDATE = new DateClientParam(SP_DEATHDATE); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Patient:careprovider". */ public static final Include INCLUDE_CAREPROVIDER = new Include("Patient:careprovider"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Patient:link". */ public static final Include INCLUDE_LINK = new Include("Patient:link"); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Patient:organization". */ public static final Include INCLUDE_ORGANIZATION = new Include("Patient:organization"); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="id", formalDefinition="An identifier for this patient" ) private java.util.List myIdentifier; @Child(name="active", type=BooleanDt.class, order=1, min=0, max=1, summary=true, modifier=true) @Description( shortDefinition="status", formalDefinition="Whether this patient record is in active use" ) private BooleanDt myActive; @Child(name="name", type=HumanNameDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A name associated with the individual." ) private java.util.List myName; @Child(name="telecom", type=ContactPointDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted." ) private java.util.List myTelecom; @Child(name="gender", type=CodeDt.class, order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/administrative-gender") private BoundCodeDt myGender; @Child(name="birthDate", type=DateDt.class, order=5, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The date of birth for the individual" ) private DateDt myBirthDate; @Child(name="deceased", order=6, min=0, max=1, summary=true, modifier=true, type={ BooleanDt.class, DateTimeDt.class }) @Description( shortDefinition="", formalDefinition="Indicates if the individual is deceased or not" ) private IDatatype myDeceased; @Child(name="address", type=AddressDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Addresses for the individual" ) private java.util.List myAddress; @Child(name="maritalStatus", type=CodeableConceptDt.class, order=8, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="This field contains a patient's most recent marital (civil) status." ) private BoundCodeableConceptDt myMaritalStatus; @Child(name="multipleBirth", order=9, min=0, max=1, summary=false, modifier=false, type={ BooleanDt.class, IntegerDt.class }) @Description( shortDefinition="", formalDefinition="Indicates whether the patient is part of a multiple or indicates the actual birth order." ) private IDatatype myMultipleBirth; @Child(name="photo", type=AttachmentDt.class, order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Image of the patient" ) private java.util.List myPhoto; @Child(name="contact", order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A contact party (e.g. guardian, partner, friend) for the patient" ) private java.util.List myContact; @Child(name="animal", order=12, min=0, max=1, summary=true, modifier=true) @Description( shortDefinition="", formalDefinition="This patient is known to be an animal" ) private Animal myAnimal; @Child(name="communication", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Languages which may be used to communicate with the patient about his or her health" ) private java.util.List myCommunication; @Child(name="careProvider", order=14, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Organization.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class }) @Description( shortDefinition="", formalDefinition="Patient's nominated care provider" ) private java.util.List myCareProvider; @Child(name="managingOrganization", order=15, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Organization.class }) @Description( shortDefinition="", formalDefinition="Organization that is the custodian of the patient record" ) private ResourceReferenceDt myManagingOrganization; @Child(name="link", order=16, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=true) @Description( shortDefinition="", formalDefinition="Link to another patient resource that concerns the same actual patient" ) private java.util.List myLink; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myActive, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myActive, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink); } /** * Gets the value(s) for identifier (id). * creating it if it does * not exist. Will not return null. * *

* Definition: * An identifier for this patient *

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

* Definition: * An identifier for this patient *

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

* Definition: * An identifier for this patient *

*/ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; } /** * Adds a given new value for identifier (id) * *

* Definition: * An identifier for this patient *

* @param theValue The identifier to add (must not be null) */ public Patient 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: * An identifier for this patient *

*/ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Gets the value(s) for active (status). * creating it if it does * not exist. Will not return null. * *

* Definition: * Whether this patient record is in active use *

*/ public BooleanDt getActiveElement() { if (myActive == null) { myActive = new BooleanDt(); } return myActive; } /** * Gets the value(s) for active (status). * creating it if it does * not exist. This method may return null. * *

* Definition: * Whether this patient record is in active use *

*/ public Boolean getActive() { return getActiveElement().getValue(); } /** * Sets the value(s) for active (status) * *

* Definition: * Whether this patient record is in active use *

*/ public Patient setActive(BooleanDt theValue) { myActive = theValue; return this; } /** * Sets the value for active (status) * *

* Definition: * Whether this patient record is in active use *

*/ public Patient setActive( boolean theBoolean) { myActive = new BooleanDt(theBoolean); return this; } /** * Gets the value(s) for name (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A name associated with the individual. *

*/ public java.util.List getName() { if (myName == null) { myName = new java.util.ArrayList(); } return myName; } /** * Sets the value(s) for name () * *

* Definition: * A name associated with the individual. *

*/ public Patient setName(java.util.List theValue) { myName = theValue; return this; } /** * Adds and returns a new value for name () * *

* Definition: * A name associated with the individual. *

*/ public HumanNameDt addName() { HumanNameDt newType = new HumanNameDt(); getName().add(newType); return newType; } /** * Adds a given new value for name () * *

* Definition: * A name associated with the individual. *

* @param theValue The name to add (must not be null) */ public Patient addName(HumanNameDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getName().add(theValue); return this; } /** * Gets the first repetition for name (), * creating it if it does not already exist. * *

* Definition: * A name associated with the individual. *

*/ public HumanNameDt getNameFirstRep() { if (getName().isEmpty()) { return addName(); } return getName().get(0); } /** * Gets the value(s) for telecom (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. *

*/ public java.util.List getTelecom() { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } return myTelecom; } /** * Sets the value(s) for telecom () * *

* Definition: * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. *

*/ public Patient setTelecom(java.util.List theValue) { myTelecom = theValue; return this; } /** * Adds and returns a new value for telecom () * *

* Definition: * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. *

*/ public ContactPointDt addTelecom() { ContactPointDt newType = new ContactPointDt(); getTelecom().add(newType); return newType; } /** * Adds a given new value for telecom () * *

* Definition: * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. *

* @param theValue The telecom to add (must not be null) */ public Patient addTelecom(ContactPointDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getTelecom().add(theValue); return this; } /** * Gets the first repetition for telecom (), * creating it if it does not already exist. * *

* Definition: * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. *

*/ public ContactPointDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /** * Gets the value(s) for gender (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. *

*/ public BoundCodeDt getGenderElement() { if (myGender == null) { myGender = new BoundCodeDt(AdministrativeGenderEnum.VALUESET_BINDER); } return myGender; } /** * Gets the value(s) for gender (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. *

*/ public String getGender() { return getGenderElement().getValue(); } /** * Sets the value(s) for gender () * *

* Definition: * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. *

*/ public Patient setGender(BoundCodeDt theValue) { myGender = theValue; return this; } /** * Sets the value(s) for gender () * *

* Definition: * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. *

*/ public Patient setGender(AdministrativeGenderEnum theValue) { setGender(new BoundCodeDt(AdministrativeGenderEnum.VALUESET_BINDER, theValue)); /* getGenderElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for birthDate (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The date of birth for the individual *

*/ public DateDt getBirthDateElement() { if (myBirthDate == null) { myBirthDate = new DateDt(); } return myBirthDate; } /** * Gets the value(s) for birthDate (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The date of birth for the individual *

*/ public Date getBirthDate() { return getBirthDateElement().getValue(); } /** * Sets the value(s) for birthDate () * *

* Definition: * The date of birth for the individual *

*/ public Patient setBirthDate(DateDt theValue) { myBirthDate = theValue; return this; } /** * Sets the value for birthDate () * *

* Definition: * The date of birth for the individual *

*/ public Patient setBirthDateWithDayPrecision( Date theDate) { myBirthDate = new DateDt(theDate); return this; } /** * Sets the value for birthDate () * *

* Definition: * The date of birth for the individual *

*/ public Patient setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) { myBirthDate = new DateDt(theDate, thePrecision); return this; } /** * Gets the value(s) for deceased[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates if the individual is deceased or not *

*/ public IDatatype getDeceased() { return myDeceased; } /** * Sets the value(s) for deceased[x] () * *

* Definition: * Indicates if the individual is deceased or not *

*/ public Patient setDeceased(IDatatype theValue) { myDeceased = theValue; return this; } /** * Gets the value(s) for address (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Addresses for the individual *

*/ public java.util.List getAddress() { if (myAddress == null) { myAddress = new java.util.ArrayList(); } return myAddress; } /** * Sets the value(s) for address () * *

* Definition: * Addresses for the individual *

*/ public Patient setAddress(java.util.List theValue) { myAddress = theValue; return this; } /** * Adds and returns a new value for address () * *

* Definition: * Addresses for the individual *

*/ public AddressDt addAddress() { AddressDt newType = new AddressDt(); getAddress().add(newType); return newType; } /** * Adds a given new value for address () * *

* Definition: * Addresses for the individual *

* @param theValue The address to add (must not be null) */ public Patient addAddress(AddressDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getAddress().add(theValue); return this; } /** * Gets the first repetition for address (), * creating it if it does not already exist. * *

* Definition: * Addresses for the individual *

*/ public AddressDt getAddressFirstRep() { if (getAddress().isEmpty()) { return addAddress(); } return getAddress().get(0); } /** * Gets the value(s) for maritalStatus (). * creating it if it does * not exist. Will not return null. * *

* Definition: * This field contains a patient's most recent marital (civil) status. *

*/ public BoundCodeableConceptDt getMaritalStatus() { if (myMaritalStatus == null) { myMaritalStatus = new BoundCodeableConceptDt(MaritalStatusCodesEnum.VALUESET_BINDER); } return myMaritalStatus; } /** * Sets the value(s) for maritalStatus () * *

* Definition: * This field contains a patient's most recent marital (civil) status. *

*/ public Patient setMaritalStatus(BoundCodeableConceptDt theValue) { myMaritalStatus = theValue; return this; } /** * Sets the value(s) for maritalStatus () * *

* Definition: * This field contains a patient's most recent marital (civil) status. *

*/ public Patient setMaritalStatus(MaritalStatusCodesEnum theValue) { setMaritalStatus(new BoundCodeableConceptDt(MaritalStatusCodesEnum.VALUESET_BINDER, theValue)); /* getMaritalStatus().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for multipleBirth[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates whether the patient is part of a multiple or indicates the actual birth order. *

*/ public IDatatype getMultipleBirth() { return myMultipleBirth; } /** * Sets the value(s) for multipleBirth[x] () * *

* Definition: * Indicates whether the patient is part of a multiple or indicates the actual birth order. *

*/ public Patient setMultipleBirth(IDatatype theValue) { myMultipleBirth = theValue; return this; } /** * Gets the value(s) for photo (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Image of the patient *

*/ public java.util.List getPhoto() { if (myPhoto == null) { myPhoto = new java.util.ArrayList(); } return myPhoto; } /** * Sets the value(s) for photo () * *

* Definition: * Image of the patient *

*/ public Patient setPhoto(java.util.List theValue) { myPhoto = theValue; return this; } /** * Adds and returns a new value for photo () * *

* Definition: * Image of the patient *

*/ public AttachmentDt addPhoto() { AttachmentDt newType = new AttachmentDt(); getPhoto().add(newType); return newType; } /** * Adds a given new value for photo () * *

* Definition: * Image of the patient *

* @param theValue The photo to add (must not be null) */ public Patient addPhoto(AttachmentDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getPhoto().add(theValue); return this; } /** * Gets the first repetition for photo (), * creating it if it does not already exist. * *

* Definition: * Image of the patient *

*/ public AttachmentDt getPhotoFirstRep() { if (getPhoto().isEmpty()) { return addPhoto(); } return getPhoto().get(0); } /** * Gets the value(s) for contact (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A contact party (e.g. guardian, partner, friend) for the patient *

*/ public java.util.List getContact() { if (myContact == null) { myContact = new java.util.ArrayList(); } return myContact; } /** * Sets the value(s) for contact () * *

* Definition: * A contact party (e.g. guardian, partner, friend) for the patient *

*/ public Patient setContact(java.util.List theValue) { myContact = theValue; return this; } /** * Adds and returns a new value for contact () * *

* Definition: * A contact party (e.g. guardian, partner, friend) for the patient *

*/ public Contact addContact() { Contact newType = new Contact(); getContact().add(newType); return newType; } /** * Adds a given new value for contact () * *

* Definition: * A contact party (e.g. guardian, partner, friend) for the patient *

* @param theValue The contact to add (must not be null) */ public Patient addContact(Contact theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getContact().add(theValue); return this; } /** * Gets the first repetition for contact (), * creating it if it does not already exist. * *

* Definition: * A contact party (e.g. guardian, partner, friend) for the patient *

*/ public Contact getContactFirstRep() { if (getContact().isEmpty()) { return addContact(); } return getContact().get(0); } /** * Gets the value(s) for animal (). * creating it if it does * not exist. Will not return null. * *

* Definition: * This patient is known to be an animal *

*/ public Animal getAnimal() { if (myAnimal == null) { myAnimal = new Animal(); } return myAnimal; } /** * Sets the value(s) for animal () * *

* Definition: * This patient is known to be an animal *

*/ public Patient setAnimal(Animal theValue) { myAnimal = theValue; return this; } /** * Gets the value(s) for communication (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Languages which may be used to communicate with the patient about his or her health *

*/ public java.util.List getCommunication() { if (myCommunication == null) { myCommunication = new java.util.ArrayList(); } return myCommunication; } /** * Sets the value(s) for communication () * *

* Definition: * Languages which may be used to communicate with the patient about his or her health *

*/ public Patient setCommunication(java.util.List theValue) { myCommunication = theValue; return this; } /** * Adds and returns a new value for communication () * *

* Definition: * Languages which may be used to communicate with the patient about his or her health *

*/ public Communication addCommunication() { Communication newType = new Communication(); getCommunication().add(newType); return newType; } /** * Adds a given new value for communication () * *

* Definition: * Languages which may be used to communicate with the patient about his or her health *

* @param theValue The communication to add (must not be null) */ public Patient addCommunication(Communication theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getCommunication().add(theValue); return this; } /** * Gets the first repetition for communication (), * creating it if it does not already exist. * *

* Definition: * Languages which may be used to communicate with the patient about his or her health *

*/ public Communication getCommunicationFirstRep() { if (getCommunication().isEmpty()) { return addCommunication(); } return getCommunication().get(0); } /** * Gets the value(s) for careProvider (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Patient's nominated care provider *

*/ public java.util.List getCareProvider() { if (myCareProvider == null) { myCareProvider = new java.util.ArrayList(); } return myCareProvider; } /** * Sets the value(s) for careProvider () * *

* Definition: * Patient's nominated care provider *

*/ public Patient setCareProvider(java.util.List theValue) { myCareProvider = theValue; return this; } /** * Adds and returns a new value for careProvider () * *

* Definition: * Patient's nominated care provider *

*/ public ResourceReferenceDt addCareProvider() { ResourceReferenceDt newType = new ResourceReferenceDt(); getCareProvider().add(newType); return newType; } /** * Gets the value(s) for managingOrganization (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Organization that is the custodian of the patient record *

*/ public ResourceReferenceDt getManagingOrganization() { if (myManagingOrganization == null) { myManagingOrganization = new ResourceReferenceDt(); } return myManagingOrganization; } /** * Sets the value(s) for managingOrganization () * *

* Definition: * Organization that is the custodian of the patient record *

*/ public Patient setManagingOrganization(ResourceReferenceDt theValue) { myManagingOrganization = theValue; return this; } /** * Gets the value(s) for link (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Link to another patient resource that concerns the same actual patient *

*/ public java.util.List getLink() { if (myLink == null) { myLink = new java.util.ArrayList(); } return myLink; } /** * Sets the value(s) for link () * *

* Definition: * Link to another patient resource that concerns the same actual patient *

*/ public Patient setLink(java.util.List theValue) { myLink = theValue; return this; } /** * Adds and returns a new value for link () * *

* Definition: * Link to another patient resource that concerns the same actual patient *

*/ public Link addLink() { Link newType = new Link(); getLink().add(newType); return newType; } /** * Adds a given new value for link () * *

* Definition: * Link to another patient resource that concerns the same actual patient *

* @param theValue The link to add (must not be null) */ public Patient addLink(Link theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getLink().add(theValue); return this; } /** * Gets the first repetition for link (), * creating it if it does not already exist. * *

* Definition: * Link to another patient resource that concerns the same actual patient *

*/ public Link getLinkFirstRep() { if (getLink().isEmpty()) { return addLink(); } return getLink().get(0); } /** * Block class for child element: Patient.contact () * *

* Definition: * A contact party (e.g. guardian, partner, friend) for the patient *

*/ @Block() public static class Contact extends BaseIdentifiableElement implements IResourceBlock { @Child(name="relationship", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The nature of the relationship between the patient and the contact person" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/valueset-patient-contact-relationship") private java.util.List myRelationship; @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A name associated with the contact person" ) private HumanNameDt myName; @Child(name="telecom", type=ContactPointDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="A contact detail for the person, e.g. a telephone number or an email address." ) private java.util.List myTelecom; @Child(name="address", type=AddressDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Address for the contact person" ) private AddressDt myAddress; @Child(name="gender", type=CodeDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/administrative-gender") private BoundCodeDt myGender; @Child(name="organization", order=5, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu2.resource.Organization.class }) @Description( shortDefinition="", formalDefinition="Organization on behalf of which the contact is acting or for which the contact is working." ) private ResourceReferenceDt myOrganization; @Child(name="period", type=PeriodDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The period during which this contact person or organization is valid to be contacted relating to this patient" ) private PeriodDt myPeriod; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelationship, myName, myTelecom, myAddress, myGender, myOrganization, myPeriod); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRelationship, myName, myTelecom, myAddress, myGender, myOrganization, myPeriod); } /** * Gets the value(s) for relationship (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The nature of the relationship between the patient and the contact person *

*/ public java.util.List getRelationship() { if (myRelationship == null) { myRelationship = new java.util.ArrayList(); } return myRelationship; } /** * Sets the value(s) for relationship () * *

* Definition: * The nature of the relationship between the patient and the contact person *

*/ public Contact setRelationship(java.util.List theValue) { myRelationship = theValue; return this; } /** * Adds and returns a new value for relationship () * *

* Definition: * The nature of the relationship between the patient and the contact person *

*/ public CodeableConceptDt addRelationship() { CodeableConceptDt newType = new CodeableConceptDt(); getRelationship().add(newType); return newType; } /** * Adds a given new value for relationship () * *

* Definition: * The nature of the relationship between the patient and the contact person *

* @param theValue The relationship to add (must not be null) */ public Contact addRelationship(CodeableConceptDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getRelationship().add(theValue); return this; } /** * Gets the first repetition for relationship (), * creating it if it does not already exist. * *

* Definition: * The nature of the relationship between the patient and the contact person *

*/ public CodeableConceptDt getRelationshipFirstRep() { if (getRelationship().isEmpty()) { return addRelationship(); } return getRelationship().get(0); } /** * Gets the value(s) for name (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A name associated with the contact person *

*/ public HumanNameDt getName() { if (myName == null) { myName = new HumanNameDt(); } return myName; } /** * Sets the value(s) for name () * *

* Definition: * A name associated with the contact person *

*/ public Contact setName(HumanNameDt theValue) { myName = theValue; return this; } /** * Gets the value(s) for telecom (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A contact detail for the person, e.g. a telephone number or an email address. *

*/ public java.util.List getTelecom() { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } return myTelecom; } /** * Sets the value(s) for telecom () * *

* Definition: * A contact detail for the person, e.g. a telephone number or an email address. *

*/ public Contact setTelecom(java.util.List theValue) { myTelecom = theValue; return this; } /** * Adds and returns a new value for telecom () * *

* Definition: * A contact detail for the person, e.g. a telephone number or an email address. *

*/ public ContactPointDt addTelecom() { ContactPointDt newType = new ContactPointDt(); getTelecom().add(newType); return newType; } /** * Adds a given new value for telecom () * *

* Definition: * A contact detail for the person, e.g. a telephone number or an email address. *

* @param theValue The telecom to add (must not be null) */ public Contact addTelecom(ContactPointDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getTelecom().add(theValue); return this; } /** * Gets the first repetition for telecom (), * creating it if it does not already exist. * *

* Definition: * A contact detail for the person, e.g. a telephone number or an email address. *

*/ public ContactPointDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /** * Gets the value(s) for address (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Address for the contact person *

*/ public AddressDt getAddress() { if (myAddress == null) { myAddress = new AddressDt(); } return myAddress; } /** * Sets the value(s) for address () * *

* Definition: * Address for the contact person *

*/ public Contact setAddress(AddressDt theValue) { myAddress = theValue; return this; } /** * Gets the value(s) for gender (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes. *

*/ public BoundCodeDt getGenderElement() { if (myGender == null) { myGender = new BoundCodeDt(AdministrativeGenderEnum.VALUESET_BINDER); } return myGender; } /** * Gets the value(s) for gender (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes. *

*/ public String getGender() { return getGenderElement().getValue(); } /** * Sets the value(s) for gender () * *

* Definition: * Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes. *

*/ public Contact setGender(BoundCodeDt theValue) { myGender = theValue; return this; } /** * Sets the value(s) for gender () * *

* Definition: * Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes. *

*/ public Contact setGender(AdministrativeGenderEnum theValue) { setGender(new BoundCodeDt(AdministrativeGenderEnum.VALUESET_BINDER, theValue)); /* getGenderElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for organization (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Organization on behalf of which the contact is acting or for which the contact is working. *

*/ public ResourceReferenceDt getOrganization() { if (myOrganization == null) { myOrganization = new ResourceReferenceDt(); } return myOrganization; } /** * Sets the value(s) for organization () * *

* Definition: * Organization on behalf of which the contact is acting or for which the contact is working. *

*/ public Contact setOrganization(ResourceReferenceDt theValue) { myOrganization = theValue; return this; } /** * Gets the value(s) for period (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The period during which this contact person or organization is valid to be contacted relating to this patient *

*/ public PeriodDt getPeriod() { if (myPeriod == null) { myPeriod = new PeriodDt(); } return myPeriod; } /** * Sets the value(s) for period () * *

* Definition: * The period during which this contact person or organization is valid to be contacted relating to this patient *

*/ public Contact setPeriod(PeriodDt theValue) { myPeriod = theValue; return this; } } /** * Block class for child element: Patient.animal () * *

* Definition: * This patient is known to be an animal *

*/ @Block() public static class Animal extends BaseIdentifiableElement implements IResourceBlock { @Child(name="species", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies the high level taxonomic categorization of the kind of animal" ) private CodeableConceptDt mySpecies; @Child(name="breed", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies the detailed categorization of the kind of animal." ) private CodeableConceptDt myBreed; @Child(name="genderStatus", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates the current state of the animal's reproductive organs" ) private CodeableConceptDt myGenderStatus; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySpecies, myBreed, myGenderStatus); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySpecies, myBreed, myGenderStatus); } /** * Gets the value(s) for species (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the high level taxonomic categorization of the kind of animal *

*/ public CodeableConceptDt getSpecies() { if (mySpecies == null) { mySpecies = new CodeableConceptDt(); } return mySpecies; } /** * Sets the value(s) for species () * *

* Definition: * Identifies the high level taxonomic categorization of the kind of animal *

*/ public Animal setSpecies(CodeableConceptDt theValue) { mySpecies = theValue; return this; } /** * Gets the value(s) for breed (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies the detailed categorization of the kind of animal. *

*/ public CodeableConceptDt getBreed() { if (myBreed == null) { myBreed = new CodeableConceptDt(); } return myBreed; } /** * Sets the value(s) for breed () * *

* Definition: * Identifies the detailed categorization of the kind of animal. *

*/ public Animal setBreed(CodeableConceptDt theValue) { myBreed = theValue; return this; } /** * Gets the value(s) for genderStatus (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the current state of the animal's reproductive organs *

*/ public CodeableConceptDt getGenderStatus() { if (myGenderStatus == null) { myGenderStatus = new CodeableConceptDt(); } return myGenderStatus; } /** * Sets the value(s) for genderStatus () * *

* Definition: * Indicates the current state of the animal's reproductive organs *

*/ public Animal setGenderStatus(CodeableConceptDt theValue) { myGenderStatus = theValue; return this; } } /** * Block class for child element: Patient.communication () * *

* Definition: * Languages which may be used to communicate with the patient about his or her health *

*/ @Block() public static class Communication extends BaseIdentifiableElement implements IResourceBlock { @Child(name="language", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English" ) private CodeableConceptDt myLanguage; @Child(name="preferred", type=BooleanDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates whether or not the patient prefers this language (over other languages he masters up a certain level)" ) private BooleanDt myPreferred; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLanguage, myPreferred); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLanguage, myPreferred); } /** * Gets the value(s) for language (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English *

*/ public CodeableConceptDt getLanguage() { if (myLanguage == null) { myLanguage = new CodeableConceptDt(); } return myLanguage; } /** * Sets the value(s) for language () * *

* Definition: * The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English *

*/ public Communication setLanguage(CodeableConceptDt theValue) { myLanguage = theValue; return this; } /** * Gets the value(s) for preferred (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates whether or not the patient prefers this language (over other languages he masters up a certain level) *

*/ public BooleanDt getPreferredElement() { if (myPreferred == null) { myPreferred = new BooleanDt(); } return myPreferred; } /** * Gets the value(s) for preferred (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Indicates whether or not the patient prefers this language (over other languages he masters up a certain level) *

*/ public Boolean getPreferred() { return getPreferredElement().getValue(); } /** * Sets the value(s) for preferred () * *

* Definition: * Indicates whether or not the patient prefers this language (over other languages he masters up a certain level) *

*/ public Communication setPreferred(BooleanDt theValue) { myPreferred = theValue; return this; } /** * Sets the value for preferred () * *

* Definition: * Indicates whether or not the patient prefers this language (over other languages he masters up a certain level) *

*/ public Communication setPreferred( boolean theBoolean) { myPreferred = new BooleanDt(theBoolean); return this; } } /** * Block class for child element: Patient.link () * *

* Definition: * Link to another patient resource that concerns the same actual patient *

*/ @Block() public static class Link extends BaseIdentifiableElement implements IResourceBlock { @Child(name="other", order=0, min=1, max=1, summary=false, modifier=true, type={ ca.uhn.fhir.model.dstu2.resource.Patient.class }) @Description( shortDefinition="", formalDefinition="The other patient resource that the link refers to" ) private ResourceReferenceDt myOther; @Child(name="type", type=CodeDt.class, order=1, min=1, max=1, summary=false, modifier=true) @Description( shortDefinition="", formalDefinition="The type of link between this patient resource and another patient resource." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/link-type") private BoundCodeDt myType; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOther, myType); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOther, myType); } /** * Gets the value(s) for other (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The other patient resource that the link refers to *

*/ public ResourceReferenceDt getOther() { if (myOther == null) { myOther = new ResourceReferenceDt(); } return myOther; } /** * Sets the value(s) for other () * *

* Definition: * The other patient resource that the link refers to *

*/ public Link setOther(ResourceReferenceDt theValue) { myOther = theValue; return this; } /** * Gets the value(s) for type (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The type of link between this patient resource and another patient resource. *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(LinkTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The type of link between this patient resource and another patient resource. *

*/ public String getType() { return getTypeElement().getValue(); } /** * Sets the value(s) for type () * *

* Definition: * The type of link between this patient resource and another patient resource. *

*/ public Link setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type () * *

* Definition: * The type of link between this patient resource and another patient resource. *

*/ public Link setType(LinkTypeEnum theValue) { setType(new BoundCodeDt(LinkTypeEnum.VALUESET_BINDER, theValue)); /* getTypeElement().setValueAsEnum(theValue); */ return this; } } @Override public String getResourceName() { return "Patient"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy