Class Location
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.Location
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
public class Location extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Location Resource (administrative.entity)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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocation.PositionBlock class for child element: Location.position ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.StringClientParamADDRESSFluent Client search parameter constant for addressstatic ca.uhn.fhir.rest.gclient.StringClientParamADDRESS_CITYFluent Client search parameter constant for address-citystatic ca.uhn.fhir.rest.gclient.StringClientParamADDRESS_COUNTRYFluent Client search parameter constant for address-countrystatic ca.uhn.fhir.rest.gclient.StringClientParamADDRESS_POSTALCODEFluent Client search parameter constant for address-postalcodestatic ca.uhn.fhir.rest.gclient.StringClientParamADDRESS_STATEFluent Client search parameter constant for address-statestatic ca.uhn.fhir.rest.gclient.TokenClientParamADDRESS_USEFluent Client search parameter constant for address-usestatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_ORGANIZATIONConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PARTOFConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.StringClientParamNAMEFluent Client search parameter constant for namestatic ca.uhn.fhir.rest.gclient.TokenClientParamNEARFluent Client search parameter constant for nearstatic ca.uhn.fhir.rest.gclient.TokenClientParamNEAR_DISTANCEFluent Client search parameter constant for near-distancestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamORGANIZATIONFluent Client search parameter constant for organizationstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPARTOFFluent Client search parameter constant for partofstatic StringSP_ADDRESSSearch parameter constant for addressstatic StringSP_ADDRESS_CITYSearch parameter constant for address-citystatic StringSP_ADDRESS_COUNTRYSearch parameter constant for address-countrystatic StringSP_ADDRESS_POSTALCODESearch parameter constant for address-postalcodestatic StringSP_ADDRESS_STATESearch parameter constant for address-statestatic StringSP_ADDRESS_USESearch parameter constant for address-usestatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_NAMESearch parameter constant for namestatic StringSP_NEARSearch parameter constant for nearstatic StringSP_NEAR_DISTANCESearch parameter constant for near-distancestatic StringSP_ORGANIZATIONSearch parameter constant for organizationstatic StringSP_PARTOFSearch parameter constant for partofstatic StringSP_STATUSSearch parameter constant for statusstatic StringSP_TYPESearch parameter constant for typestatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.TokenClientParamTYPEFluent Client search parameter constant for type-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Location()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifierDtaddIdentifier()Adds and returns a new value for identifier (id)LocationaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier (id)ContactPointDtaddTelecom()Adds and returns a new value for telecom ()LocationaddTelecom(ContactPointDt theValue)Adds a given new value for telecom ()AddressDtgetAddress()Gets the value(s) for address ().<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)StringgetDescription()Gets the value(s) for description ().ca.uhn.fhir.model.primitive.StringDtgetDescriptionElement()Gets the value(s) for description ().List<IdentifierDt>getIdentifier()Gets the value(s) for identifier (id).IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (id), creating it if it does not already exist.ResourceReferenceDtgetManagingOrganization()Gets the value(s) for managingOrganization ().StringgetMode()Gets the value(s) for mode (class).ca.uhn.fhir.model.primitive.BoundCodeDt<LocationModeEnum>getModeElement()Gets the value(s) for mode (class).StringgetName()Gets the value(s) for name ().ca.uhn.fhir.model.primitive.StringDtgetNameElement()Gets the value(s) for name ().ResourceReferenceDtgetPartOf()Gets the value(s) for partOf ().CodeableConceptDtgetPhysicalType()Gets the value(s) for physicalType (class).Location.PositiongetPosition()Gets the value(s) for position ().StringgetResourceName()StringgetStatus()Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt<LocationStatusEnum>getStatusElement()Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()List<ContactPointDt>getTelecom()Gets the value(s) for telecom ().ContactPointDtgetTelecomFirstRep()Gets the first repetition for telecom (), creating it if it does not already exist.BoundCodeableConceptDt<LocationTypeEnum>getType()Gets the value(s) for type (class).booleanisEmpty()LocationsetAddress(AddressDt theValue)Sets the value(s) for address ()LocationsetDescription(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for description ()LocationsetDescription(String theString)Sets the value for description ()LocationsetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier (id)LocationsetManagingOrganization(ResourceReferenceDt theValue)Sets the value(s) for managingOrganization ()LocationsetMode(LocationModeEnum theValue)Sets the value(s) for mode (class)LocationsetMode(ca.uhn.fhir.model.primitive.BoundCodeDt<LocationModeEnum> theValue)Sets the value(s) for mode (class)LocationsetName(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for name ()LocationsetName(String theString)Sets the value for name ()LocationsetPartOf(ResourceReferenceDt theValue)Sets the value(s) for partOf ()LocationsetPhysicalType(CodeableConceptDt theValue)Sets the value(s) for physicalType (class)LocationsetPosition(Location.Position theValue)Sets the value(s) for position ()LocationsetStatus(LocationStatusEnum theValue)Sets the value(s) for status (status)LocationsetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<LocationStatusEnum> theValue)Sets the value(s) for status (status)LocationsetTelecom(List<ContactPointDt> theValue)Sets the value(s) for telecom ()LocationsetType(BoundCodeableConceptDt<LocationTypeEnum> theValue)Sets the value(s) for type (class)LocationsetType(LocationTypeEnum theValue)Sets the value(s) for type (class)-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription:
Type: token
Path: Location.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription:
Type: token
Path: Location.identifier
-
SP_NAME
public static final String SP_NAME
Search parameter constant for nameDescription: A (portion of the) name of the location
Type: string
Path: Location.name
- See Also:
- Constant Field Values
-
NAME
public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME
Fluent Client search parameter constant for nameDescription: A (portion of the) name of the location
Type: string
Path: Location.name
-
SP_TYPE
public static final String SP_TYPE
Search parameter constant for typeDescription: A code for the type of location
Type: token
Path: Location.type
- See Also:
- Constant Field Values
-
TYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
Fluent Client search parameter constant for typeDescription: A code for the type of location
Type: token
Path: Location.type
-
SP_ADDRESS
public static final String SP_ADDRESS
Search parameter constant for addressDescription: A (part of the) address of the location
Type: string
Path: Location.address
- See Also:
- Constant Field Values
-
ADDRESS
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS
Fluent Client search parameter constant for addressDescription: A (part of the) address of the location
Type: string
Path: Location.address
-
SP_ADDRESS_CITY
public static final String SP_ADDRESS_CITY
Search parameter constant for address-cityDescription: A city specified in an address
Type: string
Path: Location.address.city
- See Also:
- Constant Field Values
-
ADDRESS_CITY
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_CITY
Fluent Client search parameter constant for address-cityDescription: A city specified in an address
Type: string
Path: Location.address.city
-
SP_ADDRESS_STATE
public static final String SP_ADDRESS_STATE
Search parameter constant for address-stateDescription: A state specified in an address
Type: string
Path: Location.address.state
- See Also:
- Constant Field Values
-
ADDRESS_STATE
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_STATE
Fluent Client search parameter constant for address-stateDescription: A state specified in an address
Type: string
Path: Location.address.state
-
SP_ADDRESS_POSTALCODE
public static final String SP_ADDRESS_POSTALCODE
Search parameter constant for address-postalcodeDescription: A postal code specified in an address
Type: string
Path: Location.address.postalCode
- See Also:
- Constant Field Values
-
ADDRESS_POSTALCODE
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_POSTALCODE
Fluent Client search parameter constant for address-postalcodeDescription: A postal code specified in an address
Type: string
Path: Location.address.postalCode
-
SP_ADDRESS_COUNTRY
public static final String SP_ADDRESS_COUNTRY
Search parameter constant for address-countryDescription: A country specified in an address
Type: string
Path: Location.address.country
- See Also:
- Constant Field Values
-
ADDRESS_COUNTRY
public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS_COUNTRY
Fluent Client search parameter constant for address-countryDescription: A country specified in an address
Type: string
Path: Location.address.country
-
SP_ADDRESS_USE
public static final String SP_ADDRESS_USE
Search parameter constant for address-useDescription: A use code specified in an address
Type: token
Path: Location.address.use
- See Also:
- Constant Field Values
-
ADDRESS_USE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE
Fluent Client search parameter constant for address-useDescription: A use code specified in an address
Type: token
Path: Location.address.use
-
SP_STATUS
public static final String SP_STATUS
Search parameter constant for statusDescription: Searches for locations with a specific kind of status
Type: token
Path: Location.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: Searches for locations with a specific kind of status
Type: token
Path: Location.status
-
SP_PARTOF
public static final String SP_PARTOF
Search parameter constant for partofDescription: The location of which this location is a part
Type: reference
Path: Location.partOf
- See Also:
- Constant Field Values
-
PARTOF
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTOF
Fluent Client search parameter constant for partofDescription: The location of which this location is a part
Type: reference
Path: Location.partOf
-
SP_NEAR
public static final String SP_NEAR
Search parameter constant for nearDescription: The coordinates expressed as [lat],[long] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)
Type: token
Path: Location.position
- See Also:
- Constant Field Values
-
NEAR
public static final ca.uhn.fhir.rest.gclient.TokenClientParam NEAR
Fluent Client search parameter constant for nearDescription: The coordinates expressed as [lat],[long] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)
Type: token
Path: Location.position
-
SP_NEAR_DISTANCE
public static final String SP_NEAR_DISTANCE
Search parameter constant for near-distanceDescription: A distance quantity to limit the near search to locations within a specific distance
Type: token
Path: Location.position
- See Also:
- Constant Field Values
-
NEAR_DISTANCE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam NEAR_DISTANCE
Fluent Client search parameter constant for near-distanceDescription: A distance quantity to limit the near search to locations within a specific distance
Type: token
Path: Location.position
-
SP_ORGANIZATION
public static final String SP_ORGANIZATION
Search parameter constant for organizationDescription: Searches for locations that are managed by the provided organization
Type: reference
Path: Location.managingOrganization
- See Also:
- Constant Field Values
-
ORGANIZATION
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION
Fluent Client search parameter constant for organizationDescription: Searches for locations that are managed by the provided organization
Type: reference
Path: Location.managingOrganization
-
INCLUDE_ORGANIZATION
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION
Constant for fluent queries to be used to add include statements. Specifies the path value of "Location:organization".
-
INCLUDE_PARTOF
public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTOF
Constant for fluent queries to be used to add include statements. Specifies the path value of "Location:partof".
-
-
Constructor Detail
-
Location
public Location()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull.Definition: Unique code or number identifying the location to its users
-
setIdentifier
public Location setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (id)Definition: Unique code or number identifying the location to its users
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier (id)Definition: Unique code or number identifying the location to its users
-
addIdentifier
public Location addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier (id)Definition: Unique code or number identifying the location to its users
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (id), creating it if it does not already exist.Definition: Unique code or number identifying the location to its users
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<LocationStatusEnum> getStatusElement()
Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull.Definition:
-
getStatus
public String getStatus()
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull.Definition:
-
setStatus
public Location setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<LocationStatusEnum> theValue)
Sets the value(s) for status (status)Definition:
-
setStatus
public Location setStatus(LocationStatusEnum theValue)
Sets the value(s) for status (status)Definition:
-
getNameElement
public ca.uhn.fhir.model.primitive.StringDt getNameElement()
Gets the value(s) for name (). creating it if it does not exist. Will not returnnull.Definition: Name of the location as used by humans. Does not need to be unique.
-
getName
public String getName()
Gets the value(s) for name (). creating it if it does not exist. This method may returnnull.Definition: Name of the location as used by humans. Does not need to be unique.
-
setName
public Location setName(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for name ()Definition: Name of the location as used by humans. Does not need to be unique.
-
setName
public Location setName(String theString)
Sets the value for name ()Definition: Name of the location as used by humans. Does not need to be unique.
-
getDescriptionElement
public ca.uhn.fhir.model.primitive.StringDt getDescriptionElement()
Gets the value(s) for description (). creating it if it does not exist. Will not returnnull.Definition: Description of the Location, which helps in finding or referencing the place
-
getDescription
public String getDescription()
Gets the value(s) for description (). creating it if it does not exist. This method may returnnull.Definition: Description of the Location, which helps in finding or referencing the place
-
setDescription
public Location setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for description ()Definition: Description of the Location, which helps in finding or referencing the place
-
setDescription
public Location setDescription(String theString)
Sets the value for description ()Definition: Description of the Location, which helps in finding or referencing the place
-
getModeElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<LocationModeEnum> getModeElement()
Gets the value(s) for mode (class). creating it if it does not exist. Will not returnnull.Definition: Indicates whether a resource instance represents a specific location or a class of locations
-
getMode
public String getMode()
Gets the value(s) for mode (class). creating it if it does not exist. This method may returnnull.Definition: Indicates whether a resource instance represents a specific location or a class of locations
-
setMode
public Location setMode(ca.uhn.fhir.model.primitive.BoundCodeDt<LocationModeEnum> theValue)
Sets the value(s) for mode (class)Definition: Indicates whether a resource instance represents a specific location or a class of locations
-
setMode
public Location setMode(LocationModeEnum theValue)
Sets the value(s) for mode (class)Definition: Indicates whether a resource instance represents a specific location or a class of locations
-
getType
public BoundCodeableConceptDt<LocationTypeEnum> getType()
Gets the value(s) for type (class). creating it if it does not exist. Will not returnnull.Definition: Indicates the type of function performed at the location
-
setType
public Location setType(BoundCodeableConceptDt<LocationTypeEnum> theValue)
Sets the value(s) for type (class)Definition: Indicates the type of function performed at the location
-
setType
public Location setType(LocationTypeEnum theValue)
Sets the value(s) for type (class)Definition: Indicates the type of function performed at the location
-
getTelecom
public List<ContactPointDt> getTelecom()
Gets the value(s) for telecom (). creating it if it does not exist. Will not returnnull.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
-
setTelecom
public Location setTelecom(List<ContactPointDt> theValue)
Sets the value(s) for telecom ()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
-
addTelecom
public ContactPointDt addTelecom()
Adds and returns a new value for telecom ()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
-
addTelecom
public Location addTelecom(ContactPointDt theValue)
Adds a given new value for telecom ()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
- Parameters:
theValue- The telecom to add (must not benull)
-
getTelecomFirstRep
public ContactPointDt getTelecomFirstRep()
Gets the first repetition for telecom (), 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
-
getAddress
public AddressDt getAddress()
Gets the value(s) for address (). creating it if it does not exist. Will not returnnull.Definition:
-
setAddress
public Location setAddress(AddressDt theValue)
Sets the value(s) for address ()Definition:
-
getPhysicalType
public CodeableConceptDt getPhysicalType()
Gets the value(s) for physicalType (class). creating it if it does not exist. Will not returnnull.Definition: Physical form of the location, e.g. building, room, vehicle, road
-
setPhysicalType
public Location setPhysicalType(CodeableConceptDt theValue)
Sets the value(s) for physicalType (class)Definition: Physical form of the location, e.g. building, room, vehicle, road
-
getPosition
public Location.Position getPosition()
Gets the value(s) for position (). creating it if it does not exist. Will not returnnull.Definition: The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)
-
setPosition
public Location setPosition(Location.Position theValue)
Sets the value(s) for position ()Definition: The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML)
-
getManagingOrganization
public ResourceReferenceDt getManagingOrganization()
Gets the value(s) for managingOrganization (). creating it if it does not exist. Will not returnnull.Definition: The organization responsible for the provisioning and upkeep of the location
-
setManagingOrganization
public Location setManagingOrganization(ResourceReferenceDt theValue)
Sets the value(s) for managingOrganization ()Definition: The organization responsible for the provisioning and upkeep of the location
-
getPartOf
public ResourceReferenceDt getPartOf()
Gets the value(s) for partOf (). creating it if it does not exist. Will not returnnull.Definition: Another Location which this Location is physically part of
-
setPartOf
public Location setPartOf(ResourceReferenceDt theValue)
Sets the value(s) for partOf ()Definition: Another Location which this Location is physically part of
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-