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

ca.uhn.fhir.model.dstu.resource.Location 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 Location Resource
 * (Details and position information for a physical place)
 *
 * 

* Definition: * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated *

* *

* Requirements: * *

* *

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

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

* Description:
* Type: token
* Path: Location.identifier
*

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

* Description:
* Type: token
* Path: Location.identifier
*

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

* Description: A (portion of the) name of the location
* Type: string
* Path: Location.name
*

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

* Description: A (portion of the) name of the location
* Type: string
* Path: Location.name
*

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

* Description: A code for the type of location
* Type: token
* Path: Location.type
*

*/ @SearchParamDefinition(name="type", path="Location.type", description="A code for the type of location", type="token" ) public static final String SP_TYPE = "type"; /** * Fluent Client search parameter constant for type *

* Description: A code for the type of location
* Type: token
* Path: Location.type
*

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

* Description: A (part of the) address of the location
* Type: string
* Path: Location.address
*

*/ @SearchParamDefinition(name="address", path="Location.address", description="A (part of the) address of the location", type="string" ) public static final String SP_ADDRESS = "address"; /** * Fluent Client search parameter constant for address *

* Description: A (part of the) address of the location
* Type: string
* Path: Location.address
*

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

* Description: Searches for locations with a specific kind of status
* Type: token
* Path: Location.status
*

*/ @SearchParamDefinition(name="status", path="Location.status", description="Searches for locations with a specific kind of status", type="token" ) public static final String SP_STATUS = "status"; /** * Fluent Client search parameter constant for status *

* Description: Searches for locations with a specific kind of status
* Type: token
* Path: Location.status
*

*/ public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); /** * Search parameter constant for partof *

* Description: The location of which this location is a part
* Type: reference
* Path: Location.partOf
*

*/ @SearchParamDefinition(name="partof", path="Location.partOf", description="The location of which this location is a part", type="reference" ) public static final String SP_PARTOF = "partof"; /** * Fluent Client search parameter constant for partof *

* Description: The location of which this location is a part
* Type: reference
* Path: Location.partOf
*

*/ public static final ReferenceClientParam PARTOF = new ReferenceClientParam(SP_PARTOF); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Location.partOf". */ public static final Include INCLUDE_PARTOF = new Include("Location.partOf"); /** * Search parameter constant for near *

* Description: The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)
* Type: token
* Path:
*

*/ @SearchParamDefinition(name="near", path="", description="The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)", type="token" ) public static final String SP_NEAR = "near"; /** * Fluent Client search parameter constant for near *

* Description: The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)
* Type: token
* Path:
*

*/ public static final TokenClientParam NEAR = new TokenClientParam(SP_NEAR); /** * Search parameter constant for near-distance *

* Description: A distance quantity to limit the near search to locations within a specific distance
* Type: token
* Path:
*

*/ @SearchParamDefinition(name="near-distance", path="", description="A distance quantity to limit the near search to locations within a specific distance", type="token" ) public static final String SP_NEAR_DISTANCE = "near-distance"; /** * Fluent Client search parameter constant for near-distance *

* Description: A distance quantity to limit the near search to locations within a specific distance
* Type: token
* Path:
*

*/ public static final TokenClientParam NEAR_DISTANCE = new TokenClientParam(SP_NEAR_DISTANCE); @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Unique code or number identifying the location to its users", formalDefinition="Unique code or number identifying the location to its users" ) private IdentifierDt myIdentifier; @Child(name="name", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Name of the location as used by humans", formalDefinition="Name of the location as used by humans. Does not need to be unique." ) private StringDt myName; @Child(name="description", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Description of the Location, which helps in finding or referencing the place", formalDefinition="Description of the Location, which helps in finding or referencing the place" ) private StringDt myDescription; @Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Indicates the type of function performed at the location", formalDefinition="Indicates the type of function performed at the location" ) private BoundCodeableConceptDt myType; @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) @Description( shortDefinition="Contact details of the location", formalDefinition="The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites" ) private java.util.List myTelecom; @Child(name="address", type=AddressDt.class, order=5, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Physical location", formalDefinition="" ) private AddressDt myAddress; @Child(name="physicalType", type=CodeableConceptDt.class, order=6, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Physical form of the location", formalDefinition="Physical form of the location, e.g. building, room, vehicle, road" ) private CodeableConceptDt myPhysicalType; @Child(name="position", order=7, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="The absolute geographic location", formalDefinition="The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML)" ) private Position myPosition; @Child(name="managingOrganization", order=8, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Organization.class }) @Description( shortDefinition="The organization that is responsible for the provisioning and upkeep of the location", formalDefinition="" ) private ResourceReferenceDt myManagingOrganization; @Child(name="status", type=CodeDt.class, order=9, min=0, max=1, summary=false, modifier=true) @Description( shortDefinition="active | suspended | inactive", formalDefinition="" ) private BoundCodeDt myStatus; @Child(name="partOf", order=10, min=0, max=1, summary=false, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Location.class }) @Description( shortDefinition="Another Location which this Location is physically part of", formalDefinition="" ) private ResourceReferenceDt myPartOf; @Child(name="mode", type=CodeDt.class, order=11, min=0, max=1, summary=false, modifier=true) @Description( shortDefinition="instance | kind", formalDefinition="Indicates whether a resource instance represents a specific location or a class of locations" ) private BoundCodeDt myMode; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myDescription, myType, myTelecom, myAddress, myPhysicalType, myPosition, myManagingOrganization, myStatus, myPartOf, myMode); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myDescription, myType, myTelecom, myAddress, myPhysicalType, myPosition, myManagingOrganization, myStatus, myPartOf, myMode); } /** * Gets the value(s) for identifier (Unique code or number identifying the location to its users). * creating it if it does * not exist. Will not return null. * *

* Definition: * Unique code or number identifying the location to its users *

*/ public IdentifierDt getIdentifier() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Gets the value(s) for identifier (Unique code or number identifying the location to its users). * creating it if it does * not exist. Will not return null. * *

* Definition: * Unique code or number identifying the location to its users *

*/ public IdentifierDt getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new IdentifierDt(); } return myIdentifier; } /** * Sets the value(s) for identifier (Unique code or number identifying the location to its users) * *

* Definition: * Unique code or number identifying the location to its users *

*/ public Location setIdentifier(IdentifierDt theValue) { myIdentifier = theValue; return this; } /** * Sets the value for identifier (Unique code or number identifying the location to its users) * *

* Definition: * Unique code or number identifying the location to its users *

*/ public Location setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); return this; } /** * Sets the value for identifier (Unique code or number identifying the location to its users) * *

* Definition: * Unique code or number identifying the location to its users *

*/ public Location setIdentifier( String theSystem, String theValue) { myIdentifier = new IdentifierDt(theSystem, theValue); return this; } /** * Gets the value(s) for name (Name of the location as used by humans). * creating it if it does * not exist. Will not return null. * *

* Definition: * Name of the location as used by humans. Does not need to be unique. *

*/ public StringDt getName() { if (myName == null) { myName = new StringDt(); } return myName; } /** * Gets the value(s) for name (Name of the location as used by humans). * creating it if it does * not exist. Will not return null. * *

* Definition: * Name of the location as used by humans. Does not need to be unique. *

*/ public StringDt getNameElement() { if (myName == null) { myName = new StringDt(); } return myName; } /** * Sets the value(s) for name (Name of the location as used by humans) * *

* Definition: * Name of the location as used by humans. Does not need to be unique. *

*/ public Location setName(StringDt theValue) { myName = theValue; return this; } /** * Sets the value for name (Name of the location as used by humans) * *

* Definition: * Name of the location as used by humans. Does not need to be unique. *

*/ public Location setName( String theString) { myName = new StringDt(theString); return this; } /** * Gets the value(s) for description (Description of the Location, which helps in finding or referencing the place). * creating it if it does * not exist. Will not return null. * *

* Definition: * Description of the Location, which helps in finding or referencing the place *

*/ public StringDt getDescription() { if (myDescription == null) { myDescription = new StringDt(); } return myDescription; } /** * Gets the value(s) for description (Description of the Location, which helps in finding or referencing the place). * creating it if it does * not exist. Will not return null. * *

* Definition: * Description of the Location, which helps in finding or referencing the place *

*/ public StringDt getDescriptionElement() { if (myDescription == null) { myDescription = new StringDt(); } return myDescription; } /** * Sets the value(s) for description (Description of the Location, which helps in finding or referencing the place) * *

* Definition: * Description of the Location, which helps in finding or referencing the place *

*/ public Location setDescription(StringDt theValue) { myDescription = theValue; return this; } /** * Sets the value for description (Description of the Location, which helps in finding or referencing the place) * *

* Definition: * Description of the Location, which helps in finding or referencing the place *

*/ public Location setDescription( String theString) { myDescription = new StringDt(theString); return this; } /** * Gets the value(s) for type (Indicates the type of function performed at the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the type of function performed at the location *

*/ public BoundCodeableConceptDt getType() { if (myType == null) { myType = new BoundCodeableConceptDt(LocationTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (Indicates the type of function performed at the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the type of function performed at the location *

*/ public BoundCodeableConceptDt getTypeElement() { if (myType == null) { myType = new BoundCodeableConceptDt(LocationTypeEnum.VALUESET_BINDER); } return myType; } /** * Sets the value(s) for type (Indicates the type of function performed at the location) * *

* Definition: * Indicates the type of function performed at the location *

*/ public Location setType(BoundCodeableConceptDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type (Indicates the type of function performed at the location) * *

* Definition: * Indicates the type of function performed at the location *

*/ public Location setType(LocationTypeEnum theValue) { getType().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for telecom (Contact details of the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites *

*/ public java.util.List getTelecom() { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } return myTelecom; } /** * Gets the value(s) for telecom (Contact details of the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites *

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

* Definition: * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites *

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

* Definition: * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites *

*/ public ContactDt addTelecom() { ContactDt newType = new ContactDt(); getTelecom().add(newType); return newType; } /** * Gets the first repetition for telecom (Contact details of the location), * creating it if it does not already exist. * *

* Definition: * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites *

*/ public ContactDt getTelecomFirstRep() { if (getTelecom().isEmpty()) { return addTelecom(); } return getTelecom().get(0); } /** * Adds a new value for telecom (Contact details of the location) * *

* Definition: * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Location 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 (Contact details of the location) * *

* Definition: * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Location addTelecom( String theValue) { if (myTelecom == null) { myTelecom = new java.util.ArrayList(); } myTelecom.add(new ContactDt(theValue)); return this; } /** * Gets the value(s) for address (Physical location). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public AddressDt getAddress() { if (myAddress == null) { myAddress = new AddressDt(); } return myAddress; } /** * Gets the value(s) for address (Physical location). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

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

* Definition: * *

*/ public Location setAddress(AddressDt theValue) { myAddress = theValue; return this; } /** * Gets the value(s) for physicalType (Physical form of the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * Physical form of the location, e.g. building, room, vehicle, road *

*/ public CodeableConceptDt getPhysicalType() { if (myPhysicalType == null) { myPhysicalType = new CodeableConceptDt(); } return myPhysicalType; } /** * Gets the value(s) for physicalType (Physical form of the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * Physical form of the location, e.g. building, room, vehicle, road *

*/ public CodeableConceptDt getPhysicalTypeElement() { if (myPhysicalType == null) { myPhysicalType = new CodeableConceptDt(); } return myPhysicalType; } /** * Sets the value(s) for physicalType (Physical form of the location) * *

* Definition: * Physical form of the location, e.g. building, room, vehicle, road *

*/ public Location setPhysicalType(CodeableConceptDt theValue) { myPhysicalType = theValue; return this; } /** * Gets the value(s) for position (The absolute geographic location). * creating it if it does * not exist. Will not return null. * *

* Definition: * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) *

*/ public Position getPosition() { if (myPosition == null) { myPosition = new Position(); } return myPosition; } /** * Gets the value(s) for position (The absolute geographic location). * creating it if it does * not exist. Will not return null. * *

* Definition: * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) *

*/ public Position getPositionElement() { if (myPosition == null) { myPosition = new Position(); } return myPosition; } /** * Sets the value(s) for position (The absolute geographic location) * *

* Definition: * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) *

*/ public Location setPosition(Position theValue) { myPosition = theValue; return this; } /** * Gets the value(s) for managingOrganization (The organization that is responsible for the provisioning and upkeep of the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ResourceReferenceDt getManagingOrganization() { if (myManagingOrganization == null) { myManagingOrganization = new ResourceReferenceDt(); } return myManagingOrganization; } /** * Gets the value(s) for managingOrganization (The organization that is responsible for the provisioning and upkeep of the location). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ResourceReferenceDt getManagingOrganizationElement() { if (myManagingOrganization == null) { myManagingOrganization = new ResourceReferenceDt(); } return myManagingOrganization; } /** * Sets the value(s) for managingOrganization (The organization that is responsible for the provisioning and upkeep of the location) * *

* Definition: * *

*/ public Location setManagingOrganization(ResourceReferenceDt theValue) { myManagingOrganization = theValue; return this; } /** * Gets the value(s) for status (active | suspended | inactive). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public BoundCodeDt getStatus() { if (myStatus == null) { myStatus = new BoundCodeDt(LocationStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Gets the value(s) for status (active | suspended | inactive). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public BoundCodeDt getStatusElement() { if (myStatus == null) { myStatus = new BoundCodeDt(LocationStatusEnum.VALUESET_BINDER); } return myStatus; } /** * Sets the value(s) for status (active | suspended | inactive) * *

* Definition: * *

*/ public Location setStatus(BoundCodeDt theValue) { myStatus = theValue; return this; } /** * Sets the value(s) for status (active | suspended | inactive) * *

* Definition: * *

*/ public Location setStatus(LocationStatusEnum theValue) { getStatus().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for partOf (Another Location which this Location is physically part of). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ResourceReferenceDt getPartOf() { if (myPartOf == null) { myPartOf = new ResourceReferenceDt(); } return myPartOf; } /** * Gets the value(s) for partOf (Another Location which this Location is physically part of). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public ResourceReferenceDt getPartOfElement() { if (myPartOf == null) { myPartOf = new ResourceReferenceDt(); } return myPartOf; } /** * Sets the value(s) for partOf (Another Location which this Location is physically part of) * *

* Definition: * *

*/ public Location setPartOf(ResourceReferenceDt theValue) { myPartOf = theValue; return this; } /** * Gets the value(s) for mode (instance | kind). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates whether a resource instance represents a specific location or a class of locations *

*/ public BoundCodeDt getMode() { if (myMode == null) { myMode = new BoundCodeDt(LocationModeEnum.VALUESET_BINDER); } return myMode; } /** * Gets the value(s) for mode (instance | kind). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates whether a resource instance represents a specific location or a class of locations *

*/ public BoundCodeDt getModeElement() { if (myMode == null) { myMode = new BoundCodeDt(LocationModeEnum.VALUESET_BINDER); } return myMode; } /** * Sets the value(s) for mode (instance | kind) * *

* Definition: * Indicates whether a resource instance represents a specific location or a class of locations *

*/ public Location setMode(BoundCodeDt theValue) { myMode = theValue; return this; } /** * Sets the value(s) for mode (instance | kind) * *

* Definition: * Indicates whether a resource instance represents a specific location or a class of locations *

*/ public Location setMode(LocationModeEnum theValue) { getMode().setValueAsEnum(theValue); return this; } /** * Block class for child element: Location.position (The absolute geographic location) * *

* Definition: * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) *

*/ @Block() public static class Position extends BaseIdentifiableElement implements IResourceBlock { @Child(name="longitude", type=DecimalDt.class, order=0, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Longitude as expressed in KML", formalDefinition="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)" ) private DecimalDt myLongitude; @Child(name="latitude", type=DecimalDt.class, order=1, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Latitude as expressed in KML", formalDefinition="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)" ) private DecimalDt myLatitude; @Child(name="altitude", type=DecimalDt.class, order=2, min=0, max=1, summary=false, modifier=false) @Description( shortDefinition="Altitude as expressed in KML", formalDefinition="Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below)" ) private DecimalDt myAltitude; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLongitude, myLatitude, myAltitude); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLongitude, myLatitude, myAltitude); } /** * Gets the value(s) for longitude (Longitude as expressed in KML). * creating it if it does * not exist. Will not return null. * *

* Definition: * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) *

*/ public DecimalDt getLongitude() { if (myLongitude == null) { myLongitude = new DecimalDt(); } return myLongitude; } /** * Gets the value(s) for longitude (Longitude as expressed in KML). * creating it if it does * not exist. Will not return null. * *

* Definition: * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) *

*/ public DecimalDt getLongitudeElement() { if (myLongitude == null) { myLongitude = new DecimalDt(); } return myLongitude; } /** * Sets the value(s) for longitude (Longitude as expressed in KML) * *

* Definition: * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) *

*/ public Position setLongitude(DecimalDt theValue) { myLongitude = theValue; return this; } /** * Sets the value for longitude (Longitude as expressed in KML) * *

* Definition: * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) *

*/ public Position setLongitude( long theValue) { myLongitude = new DecimalDt(theValue); return this; } /** * Sets the value for longitude (Longitude as expressed in KML) * *

* Definition: * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) *

*/ public Position setLongitude( double theValue) { myLongitude = new DecimalDt(theValue); return this; } /** * Sets the value for longitude (Longitude as expressed in KML) * *

* Definition: * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) *

*/ public Position setLongitude( java.math.BigDecimal theValue) { myLongitude = new DecimalDt(theValue); return this; } /** * Gets the value(s) for latitude (Latitude as expressed in KML). * creating it if it does * not exist. Will not return null. * *

* Definition: * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) *

*/ public DecimalDt getLatitude() { if (myLatitude == null) { myLatitude = new DecimalDt(); } return myLatitude; } /** * Gets the value(s) for latitude (Latitude as expressed in KML). * creating it if it does * not exist. Will not return null. * *

* Definition: * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) *

*/ public DecimalDt getLatitudeElement() { if (myLatitude == null) { myLatitude = new DecimalDt(); } return myLatitude; } /** * Sets the value(s) for latitude (Latitude as expressed in KML) * *

* Definition: * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) *

*/ public Position setLatitude(DecimalDt theValue) { myLatitude = theValue; return this; } /** * Sets the value for latitude (Latitude as expressed in KML) * *

* Definition: * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) *

*/ public Position setLatitude( long theValue) { myLatitude = new DecimalDt(theValue); return this; } /** * Sets the value for latitude (Latitude as expressed in KML) * *

* Definition: * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) *

*/ public Position setLatitude( double theValue) { myLatitude = new DecimalDt(theValue); return this; } /** * Sets the value for latitude (Latitude as expressed in KML) * *

* Definition: * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) *

*/ public Position setLatitude( java.math.BigDecimal theValue) { myLatitude = new DecimalDt(theValue); return this; } /** * Gets the value(s) for altitude (Altitude as expressed in KML). * creating it if it does * not exist. Will not return null. * *

* Definition: * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) *

*/ public DecimalDt getAltitude() { if (myAltitude == null) { myAltitude = new DecimalDt(); } return myAltitude; } /** * Gets the value(s) for altitude (Altitude as expressed in KML). * creating it if it does * not exist. Will not return null. * *

* Definition: * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) *

*/ public DecimalDt getAltitudeElement() { if (myAltitude == null) { myAltitude = new DecimalDt(); } return myAltitude; } /** * Sets the value(s) for altitude (Altitude as expressed in KML) * *

* Definition: * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) *

*/ public Position setAltitude(DecimalDt theValue) { myAltitude = theValue; return this; } /** * Sets the value for altitude (Altitude as expressed in KML) * *

* Definition: * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) *

*/ public Position setAltitude( long theValue) { myAltitude = new DecimalDt(theValue); return this; } /** * Sets the value for altitude (Altitude as expressed in KML) * *

* Definition: * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) *

*/ public Position setAltitude( double theValue) { myAltitude = new DecimalDt(theValue); return this; } /** * Sets the value for altitude (Altitude as expressed in KML) * *

* Definition: * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) *

*/ public Position setAltitude( java.math.BigDecimal theValue) { myAltitude = new DecimalDt(theValue); return this; } } @Override public String getResourceName() { return "Location"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy