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

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

There is a newer version: 7.6.1
Show newest version
















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


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

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


/**
 * HAPI/FHIR Patient Resource
 * (Information about a person or animal receiving health care services)
 *
 * 

* Definition: * Demographics and other administrative information about a person 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.dstu.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:
*

*/ @SearchParamDefinition(name="phonetic", path="", 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:
*

*/ 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: string
* Path: Patient.telecom
*

*/ @SearchParamDefinition(name="telecom", path="Patient.telecom", description="The value in any kind of telecom details of the patient", type="string" ) 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: string
* Path: Patient.telecom
*

*/ public static final StringClientParam TELECOM = new StringClientParam(SP_TELECOM); /** * 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 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
*

*/ @SearchParamDefinition(name="language", path="Patient.communication", 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
*

*/ 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 provider *

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

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

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

*/ public static final ReferenceClientParam PROVIDER = new ReferenceClientParam(SP_PROVIDER); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Patient.managingOrganization". */ public static final Include INCLUDE_MANAGINGORGANIZATION = new Include("Patient.managingOrganization"); /** * 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" ) 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); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Patient.link.other". */ public static final Include INCLUDE_LINK_OTHER = new Include("Patient.link.other"); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="An identifier for the person as this patient", formalDefinition="An identifier that applies to this person as a patient" ) private java.util.List myIdentifier; @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="A name associated with the patient", formalDefinition="A name associated with the individual." ) private java.util.List myName; @Child(name="telecom", type=ContactDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="A contact detail for the individual", 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=CodeableConceptDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Gender for administrative purposes", formalDefinition="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes." ) private BoundCodeableConceptDt myGender; @Child(name="birthDate", type=DateTimeDt.class, order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="The date and time of birth for the individual", formalDefinition="The date and time of birth for the individual" ) private DateTimeDt myBirthDate; @Child(name="deceased", order=5, min=0, max=1, summary=true, modifier=true, type={ BooleanDt.class, DateTimeDt.class }) @Description( shortDefinition="Indicates if the individual is deceased or not", formalDefinition="Indicates if the individual is deceased or not" ) private IDatatype myDeceased; @Child(name="address", type=AddressDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="Addresses for the individual", formalDefinition="Addresses for the individual" ) private java.util.List myAddress; @Child(name="maritalStatus", type=CodeableConceptDt.class, order=7, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Marital (civil) status of a person", formalDefinition="This field contains a patient's most recent marital (civil) status." ) private BoundCodeableConceptDt myMaritalStatus; @Child(name="multipleBirth", order=8, min=0, max=1, summary=true, modifier=false, type={ BooleanDt.class, IntegerDt.class }) @Description( shortDefinition="Whether patient is part of a multiple birth", 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=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Image of the person", formalDefinition="Image of the person" ) private java.util.List myPhoto; @Child(name="contact", order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="A contact party (e.g. guardian, partner, friend) for the patient", formalDefinition="A contact party (e.g. guardian, partner, friend) for the patient" ) private java.util.List myContact; @Child(name="animal", order=11, min=0, max=1, summary=true, modifier=true) @Description( shortDefinition="If this patient is an animal (non-human)", formalDefinition="This element has a value if the patient is an animal" ) private Animal myAnimal; @Child(name="communication", type=CodeableConceptDt.class, order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Languages which may be used to communicate with the patient about his or her health", 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=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Organization.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class }) @Description( shortDefinition="Patient's nominated care provider", formalDefinition="Patient's nominated care provider" ) private java.util.List myCareProvider; @Child(name="managingOrganization", order=14, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Organization.class }) @Description( shortDefinition="Organization that is the custodian of the patient record", formalDefinition="Organization that is the custodian of the patient record" ) private ResourceReferenceDt myManagingOrganization; @Child(name="link", order=15, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=true) @Description( shortDefinition="Link to another patient resource that concerns the same actual person", formalDefinition="Link to another patient resource that concerns the same actual person" ) private java.util.List myLink; @Child(name="active", type=BooleanDt.class, order=16, min=0, max=1, summary=true, modifier=true) @Description( shortDefinition="Whether this patient's record is in active use", formalDefinition="Whether this patient record is in active use" ) private BooleanDt myActive; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive); } /** * Gets the value(s) for identifier (An identifier for the person as this patient). * creating it if it does * not exist. Will not return null. * *

* Definition: * An identifier that applies to this person as a patient *

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

* Definition: * An identifier that applies to this person as a patient *

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

* Definition: * An identifier that applies to this person as a patient *

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

* Definition: * An identifier that applies to this person as a patient *

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

* Definition: * An identifier that applies to this person as a patient *

*/ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Adds a new value for identifier (An identifier for the person as this patient) * *

* Definition: * An identifier that applies to this person as a patient *

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

* Definition: * An identifier that applies to this person as a patient *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Patient addIdentifier( String theSystem, String theValue) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theSystem, theValue)); return this; } /** * Gets the value(s) for name (A name associated with the patient). * 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; } /** * Gets the value(s) for name (A name associated with the patient). * creating it if it does * not exist. Will not return null. * *

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

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

* 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 (A name associated with the patient) * *

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

*/ public HumanNameDt addName() { HumanNameDt newType = new HumanNameDt(); getName().add(newType); return newType; } /** * Gets the first repetition for name (A name associated with the patient), * 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 (A contact detail for the individual). * 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; } /** * Gets the value(s) for telecom (A contact detail for the individual). * 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 getTelecomElement() { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } return myTelecom; } /** * Sets the value(s) for telecom (A contact detail for the individual) * *

* 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 (A contact detail for the individual) * *

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

*/ public ContactDt addTelecom() { ContactDt newType = new ContactDt(); getTelecom().add(newType); return newType; } /** * Gets the first repetition for telecom (A contact detail for the individual), * 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 ContactDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /** * Adds a new value for telecom (A contact detail for the individual) * *

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

* * @return Returns a reference to this object, to allow for simple chaining. */ public Patient addTelecom( ContactUseEnum theContactUse, String theValue) { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } myTelecom.add(new ContactDt(theContactUse, theValue)); return this; } /** * Adds a new value for telecom (A contact detail for the individual) * *

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

* * @return Returns a reference to this object, to allow for simple chaining. */ public Patient addTelecom( String theValue) { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } myTelecom.add(new ContactDt(theValue)); return this; } /** * Gets the value(s) for gender (Gender for administrative purposes). * 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 BoundCodeableConceptDt getGender() { if (myGender == null) { myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); } return myGender; } /** * Gets the value(s) for gender (Gender for administrative purposes). * 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 BoundCodeableConceptDt getGenderElement() { if (myGender == null) { myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); } return myGender; } /** * Sets the value(s) for gender (Gender for administrative purposes) * *

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

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

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

*/ public Patient setGender(AdministrativeGenderCodesEnum theValue) { getGender().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for birthDate (The date and time of birth for the individual). * creating it if it does * not exist. Will not return null. * *

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

*/ public DateTimeDt getBirthDate() { if (myBirthDate == null) { myBirthDate = new DateTimeDt(); } return myBirthDate; } /** * Gets the value(s) for birthDate (The date and time of birth for the individual). * creating it if it does * not exist. Will not return null. * *

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

*/ public DateTimeDt getBirthDateElement() { if (myBirthDate == null) { myBirthDate = new DateTimeDt(); } return myBirthDate; } /** * Sets the value(s) for birthDate (The date and time of birth for the individual) * *

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

*/ public Patient setBirthDate(DateTimeDt theValue) { myBirthDate = theValue; return this; } /** * Sets the value for birthDate (The date and time of birth for the individual) * *

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

*/ public Patient setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) { myBirthDate = new DateTimeDt(theDate, thePrecision); return this; } /** * Sets the value for birthDate (The date and time of birth for the individual) * *

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

*/ public Patient setBirthDateWithSecondsPrecision( Date theDate) { myBirthDate = new DateTimeDt(theDate); return this; } /** * Gets the value(s) for deceased[x] (Indicates if the individual is deceased or not). * 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; } /** * Gets the value(s) for deceased[x] (Indicates if the individual is deceased or not). * creating it if it does * not exist. Will not return null. * *

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

*/ public IDatatype getDeceasedElement() { return myDeceased; } /** * Sets the value(s) for deceased[x] (Indicates if the individual is deceased or not) * *

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

*/ public Patient setDeceased(IDatatype theValue) { myDeceased = theValue; return this; } /** * Gets the value(s) for address (Addresses for the individual). * 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; } /** * Gets the value(s) for address (Addresses for the individual). * creating it if it does * not exist. Will not return null. * *

* Definition: * Addresses for the individual *

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

* Definition: * Addresses for the individual *

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

* Definition: * Addresses for the individual *

*/ public AddressDt addAddress() { AddressDt newType = new AddressDt(); getAddress().add(newType); return newType; } /** * Gets the first repetition for address (Addresses for the individual), * 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 (Marital (civil) status of a person). * 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; } /** * Gets the value(s) for maritalStatus (Marital (civil) status of a person). * 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 getMaritalStatusElement() { if (myMaritalStatus == null) { myMaritalStatus = new BoundCodeableConceptDt(MaritalStatusCodesEnum.VALUESET_BINDER); } return myMaritalStatus; } /** * Sets the value(s) for maritalStatus (Marital (civil) status of a person) * *

* 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 (Marital (civil) status of a person) * *

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

*/ public Patient setMaritalStatus(MaritalStatusCodesEnum theValue) { getMaritalStatus().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for multipleBirth[x] (Whether patient is part of a multiple birth). * 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; } /** * Gets the value(s) for multipleBirth[x] (Whether patient is part of a multiple birth). * 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 getMultipleBirthElement() { return myMultipleBirth; } /** * Sets the value(s) for multipleBirth[x] (Whether patient is part of a multiple birth) * *

* 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 (Image of the person). * creating it if it does * not exist. Will not return null. * *

* Definition: * Image of the person *

*/ public java.util.List getPhoto() { if (myPhoto == null) { myPhoto = new java.util.ArrayList(); } return myPhoto; } /** * Gets the value(s) for photo (Image of the person). * creating it if it does * not exist. Will not return null. * *

* Definition: * Image of the person *

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

* Definition: * Image of the person *

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

* Definition: * Image of the person *

*/ public AttachmentDt addPhoto() { AttachmentDt newType = new AttachmentDt(); getPhoto().add(newType); return newType; } /** * Gets the first repetition for photo (Image of the person), * creating it if it does not already exist. * *

* Definition: * Image of the person *

*/ public AttachmentDt getPhotoFirstRep() { if (getPhoto().isEmpty()) { return addPhoto(); } return getPhoto().get(0); } /** * Gets the value(s) for contact (A contact party (e.g. guardian, partner, friend) for the patient). * 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; } /** * Gets the value(s) for contact (A contact party (e.g. guardian, partner, friend) for the patient). * 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 getContactElement() { if (myContact == null) { myContact = new java.util.ArrayList(); } return myContact; } /** * Sets the value(s) for contact (A contact party (e.g. guardian, partner, friend) for the patient) * *

* 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 (A contact party (e.g. guardian, partner, friend) for the patient) * *

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

*/ public Contact addContact() { Contact newType = new Contact(); getContact().add(newType); return newType; } /** * Gets the first repetition for contact (A contact party (e.g. guardian, partner, friend) for the patient), * 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 (If this patient is an animal (non-human)). * creating it if it does * not exist. Will not return null. * *

* Definition: * This element has a value if the patient is an animal *

*/ public Animal getAnimal() { if (myAnimal == null) { myAnimal = new Animal(); } return myAnimal; } /** * Gets the value(s) for animal (If this patient is an animal (non-human)). * creating it if it does * not exist. Will not return null. * *

* Definition: * This element has a value if the patient is an animal *

*/ public Animal getAnimalElement() { if (myAnimal == null) { myAnimal = new Animal(); } return myAnimal; } /** * Sets the value(s) for animal (If this patient is an animal (non-human)) * *

* Definition: * This element has a value if the patient is an animal *

*/ public Patient setAnimal(Animal theValue) { myAnimal = theValue; return this; } /** * Gets the value(s) for communication (Languages which may be used to communicate with the patient about his or her health). * 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; } /** * Gets the value(s) for communication (Languages which may be used to communicate with the patient about his or her health). * 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 getCommunicationElement() { if (myCommunication == null) { myCommunication = new java.util.ArrayList(); } return myCommunication; } /** * Sets the value(s) for communication (Languages which may be used to communicate with the patient about his or her health) * *

* 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 (Languages which may be used to communicate with the patient about his or her health) * *

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

*/ public CodeableConceptDt addCommunication() { CodeableConceptDt newType = new CodeableConceptDt(); getCommunication().add(newType); return newType; } /** * Gets the first repetition for communication (Languages which may be used to communicate with the patient about his or her health), * 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 CodeableConceptDt getCommunicationFirstRep() { if (getCommunication().isEmpty()) { return addCommunication(); } return getCommunication().get(0); } /** * Gets the value(s) for careProvider (Patient's nominated care provider). * 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; } /** * Gets the value(s) for careProvider (Patient's nominated care provider). * creating it if it does * not exist. Will not return null. * *

* Definition: * Patient's nominated care provider *

*/ public java.util.List getCareProviderElement() { if (myCareProvider == null) { myCareProvider = new java.util.ArrayList(); } return myCareProvider; } /** * Sets the value(s) for careProvider (Patient's nominated care provider) * *

* 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 (Patient's nominated care provider) * *

* Definition: * Patient's nominated care provider *

*/ public ResourceReferenceDt addCareProvider() { ResourceReferenceDt newType = new ResourceReferenceDt(); getCareProvider().add(newType); return newType; } /** * Gets the value(s) for managingOrganization (Organization that is the custodian of the patient record). * 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; } /** * Gets the value(s) for managingOrganization (Organization that is the custodian of the patient record). * creating it if it does * not exist. Will not return null. * *

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

*/ public ResourceReferenceDt getManagingOrganizationElement() { if (myManagingOrganization == null) { myManagingOrganization = new ResourceReferenceDt(); } return myManagingOrganization; } /** * Sets the value(s) for managingOrganization (Organization that is the custodian of the patient record) * *

* 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 (Link to another patient resource that concerns the same actual person). * creating it if it does * not exist. Will not return null. * *

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

*/ public java.util.List getLink() { if (myLink == null) { myLink = new java.util.ArrayList(); } return myLink; } /** * Gets the value(s) for link (Link to another patient resource that concerns the same actual person). * creating it if it does * not exist. Will not return null. * *

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

*/ public java.util.List getLinkElement() { if (myLink == null) { myLink = new java.util.ArrayList(); } return myLink; } /** * Sets the value(s) for link (Link to another patient resource that concerns the same actual person) * *

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

*/ public Patient setLink(java.util.List theValue) { myLink = theValue; return this; } /** * Adds and returns a new value for link (Link to another patient resource that concerns the same actual person) * *

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

*/ public Link addLink() { Link newType = new Link(); getLink().add(newType); return newType; } /** * Gets the first repetition for link (Link to another patient resource that concerns the same actual person), * creating it if it does not already exist. * *

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

*/ public Link getLinkFirstRep() { if (getLink().isEmpty()) { return addLink(); } return getLink().get(0); } /** * Gets the value(s) for active (Whether this patient's record is in active use). * creating it if it does * not exist. Will not return null. * *

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

*/ public BooleanDt getActive() { if (myActive == null) { myActive = new BooleanDt(); } return myActive; } /** * Gets the value(s) for active (Whether this patient's record is in active use). * 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; } /** * Sets the value(s) for active (Whether this patient's record is in active use) * *

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

*/ public Patient setActive(BooleanDt theValue) { myActive = theValue; return this; } /** * Sets the value for active (Whether this patient's record is in active use) * *

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

*/ public Patient setActive( boolean theBoolean) { myActive = new BooleanDt(theBoolean); return this; } /** * Block class for child element: Patient.contact (A contact party (e.g. guardian, partner, friend) for the patient) * *

* 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="The kind of relationship", formalDefinition="The nature of the relationship between the patient and the contact person" ) private java.util.List myRelationship; @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="A name associated with the person", formalDefinition="A name associated with the person" ) private HumanNameDt myName; @Child(name="telecom", type=ContactDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="A contact detail for the person", 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="Address for the contact person", formalDefinition="Address for the contact person" ) private AddressDt myAddress; @Child(name="gender", type=CodeableConceptDt.class, order=4, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Gender for administrative purposes", formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." ) private BoundCodeableConceptDt myGender; @Child(name="organization", order=5, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Organization.class }) @Description( shortDefinition="Organization that is associated with the contact", formalDefinition="Organization on behalf of which the contact is acting or for which the contact is working." ) private ResourceReferenceDt myOrganization; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelationship, myName, myTelecom, myAddress, myGender, myOrganization); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRelationship, myName, myTelecom, myAddress, myGender, myOrganization); } /** * Gets the value(s) for relationship (The kind of 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; } /** * Gets the value(s) for relationship (The kind of 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 getRelationshipElement() { if (myRelationship == null) { myRelationship = new java.util.ArrayList(); } return myRelationship; } /** * Sets the value(s) for relationship (The kind of 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 (The kind of 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; } /** * Gets the first repetition for relationship (The kind of 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 (A name associated with the person). * creating it if it does * not exist. Will not return null. * *

* Definition: * A name associated with the person *

*/ public HumanNameDt getName() { if (myName == null) { myName = new HumanNameDt(); } return myName; } /** * Gets the value(s) for name (A name associated with the person). * creating it if it does * not exist. Will not return null. * *

* Definition: * A name associated with the person *

*/ public HumanNameDt getNameElement() { if (myName == null) { myName = new HumanNameDt(); } return myName; } /** * Sets the value(s) for name (A name associated with the person) * *

* Definition: * A name associated with the person *

*/ public Contact setName(HumanNameDt theValue) { myName = theValue; return this; } /** * Gets the value(s) for telecom (A contact detail for the person). * 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; } /** * Gets the value(s) for telecom (A contact detail for the person). * 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 getTelecomElement() { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } return myTelecom; } /** * Sets the value(s) for telecom (A contact detail for the person) * *

* 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 (A contact detail for the person) * *

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

*/ public ContactDt addTelecom() { ContactDt newType = new ContactDt(); getTelecom().add(newType); return newType; } /** * Gets the first repetition for telecom (A contact detail for the person), * 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 ContactDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /** * Adds a new value for telecom (A contact detail for the person) * *

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

* * @return Returns a reference to this object, to allow for simple chaining. */ public Contact addTelecom( ContactUseEnum theContactUse, String theValue) { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } myTelecom.add(new ContactDt(theContactUse, theValue)); return this; } /** * Adds a new value for telecom (A contact detail for the person) * *

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

* * @return Returns a reference to this object, to allow for simple chaining. */ public Contact addTelecom( String theValue) { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } myTelecom.add(new ContactDt(theValue)); return this; } /** * Gets the value(s) for address (Address for the contact person). * 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; } /** * Gets the value(s) for address (Address for the contact person). * creating it if it does * not exist. Will not return null. * *

* Definition: * Address for the contact person *

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

* Definition: * Address for the contact person *

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

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

*/ public BoundCodeableConceptDt getGender() { if (myGender == null) { myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); } return myGender; } /** * Gets the value(s) for gender (Gender for administrative purposes). * creating it if it does * not exist. Will not return null. * *

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

*/ public BoundCodeableConceptDt getGenderElement() { if (myGender == null) { myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); } return myGender; } /** * Sets the value(s) for gender (Gender for administrative purposes) * *

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

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

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

*/ public Contact setGender(AdministrativeGenderCodesEnum theValue) { getGender().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for organization (Organization that is associated with the contact). * 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; } /** * Gets the value(s) for organization (Organization that is associated with the contact). * 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 getOrganizationElement() { if (myOrganization == null) { myOrganization = new ResourceReferenceDt(); } return myOrganization; } /** * Sets the value(s) for organization (Organization that is associated with the contact) * *

* 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; } } /** * Block class for child element: Patient.animal (If this patient is an animal (non-human)) * *

* Definition: * This element has a value if the patient is 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="E.g. Dog, Cow", formalDefinition="Identifies the high level categorization of the kind of animal" ) private BoundCodeableConceptDt mySpecies; @Child(name="breed", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="E.g. Poodle, Angus", 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="E.g. Neutered, Intact", 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 (E.g. Dog, Cow). * creating it if it does * not exist. Will not return null. * *

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

*/ public BoundCodeableConceptDt getSpecies() { if (mySpecies == null) { mySpecies = new BoundCodeableConceptDt(AnimalSpeciesEnum.VALUESET_BINDER); } return mySpecies; } /** * Gets the value(s) for species (E.g. Dog, Cow). * creating it if it does * not exist. Will not return null. * *

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

*/ public BoundCodeableConceptDt getSpeciesElement() { if (mySpecies == null) { mySpecies = new BoundCodeableConceptDt(AnimalSpeciesEnum.VALUESET_BINDER); } return mySpecies; } /** * Sets the value(s) for species (E.g. Dog, Cow) * *

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

*/ public Animal setSpecies(BoundCodeableConceptDt theValue) { mySpecies = theValue; return this; } /** * Sets the value(s) for species (E.g. Dog, Cow) * *

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

*/ public Animal setSpecies(AnimalSpeciesEnum theValue) { getSpecies().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for breed (E.g. Poodle, Angus). * 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; } /** * Gets the value(s) for breed (E.g. Poodle, Angus). * creating it if it does * not exist. Will not return null. * *

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

*/ public CodeableConceptDt getBreedElement() { if (myBreed == null) { myBreed = new CodeableConceptDt(); } return myBreed; } /** * Sets the value(s) for breed (E.g. Poodle, Angus) * *

* 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 (E.g. Neutered, Intact). * 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; } /** * Gets the value(s) for genderStatus (E.g. Neutered, Intact). * creating it if it does * not exist. Will not return null. * *

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

*/ public CodeableConceptDt getGenderStatusElement() { if (myGenderStatus == null) { myGenderStatus = new CodeableConceptDt(); } return myGenderStatus; } /** * Sets the value(s) for genderStatus (E.g. Neutered, Intact) * *

* 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.link (Link to another patient resource that concerns the same actual person) * *

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

*/ @Block() public static class Link extends BaseIdentifiableElement implements IResourceBlock { @Child(name="other", order=0, min=1, max=1, summary=true, modifier=true, type={ ca.uhn.fhir.model.dstu.resource.Patient.class }) @Description( shortDefinition="The other patient resource that the link refers to", 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=true, modifier=true) @Description( shortDefinition="replace | refer | seealso - type of link", formalDefinition="The type of link between this patient resource and another patient resource." ) 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 (The other patient resource that the link refers to). * 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; } /** * Gets the value(s) for other (The other patient resource that the link refers to). * creating it if it does * not exist. Will not return null. * *

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

*/ public ResourceReferenceDt getOtherElement() { if (myOther == null) { myOther = new ResourceReferenceDt(); } return myOther; } /** * Sets the value(s) for other (The other patient resource that the link refers to) * *

* 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 (replace | refer | seealso - type of link). * 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 getType() { if (myType == null) { myType = new BoundCodeDt(LinkTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (replace | refer | seealso - type of link). * 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; } /** * Sets the value(s) for type (replace | refer | seealso - type of link) * *

* 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 (replace | refer | seealso - type of link) * *

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

*/ public Link setType(LinkTypeEnum theValue) { getType().setValueAsEnum(theValue); return this; } } @Override public String getResourceName() { return "Patient"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy