Package org.hl7.fhir.dstu2.model
Class Location
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.Location
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class Location extends DomainResource
Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocation.LocationModestatic classLocation.LocationModeEnumFactorystatic classLocation.LocationPositionComponentstatic classLocation.LocationStatusstatic classLocation.LocationStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected AddressaddressPhysical location.protected StringTypedescriptionDescription of the Location, which helps in finding or referencing the place.protected List<Identifier>identifierUnique code or number identifying the location to its users.protected ReferencemanagingOrganizationThe organization responsible for the provisioning and upkeep of the location.protected OrganizationmanagingOrganizationTargetThe actual object that is the target of the reference (The organization responsible for the provisioning and upkeep of the location.)protected Enumeration<Location.LocationMode>modeIndicates whether a resource instance represents a specific location or a class of locations.protected StringTypenameName of the location as used by humans.protected ReferencepartOfAnother Location which this Location is physically part of.protected LocationpartOfTargetThe actual object that is the target of the reference (Another Location which this Location is physically part of.)protected CodeableConceptphysicalTypePhysical form of the location, e.g.protected Location.LocationPositionComponentpositionThe absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).static StringSP_ADDRESSstatic StringSP_ADDRESSCITYstatic StringSP_ADDRESSCOUNTRYstatic StringSP_ADDRESSPOSTALCODEstatic StringSP_ADDRESSSTATEstatic StringSP_ADDRESSUSEstatic StringSP_IDENTIFIERstatic StringSP_NAMEstatic StringSP_NEARstatic StringSP_NEARDISTANCEstatic StringSP_ORGANIZATIONstatic StringSP_PARTOFstatic StringSP_STATUSstatic StringSP_TYPEprotected Enumeration<Location.LocationStatus>statusactive | suspended | inactive.protected List<ContactPoint>telecomThe contact details of communication devices available at the location.protected CodeableConcepttypeIndicates the type of function performed at the location.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Location()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
Unique code or number identifying the location to its users.
-
status
protected Enumeration<Location.LocationStatus> status
active | suspended | inactive.
-
name
protected StringType name
Name of the location as used by humans. Does not need to be unique.
-
description
protected StringType description
Description of the Location, which helps in finding or referencing the place.
-
mode
protected Enumeration<Location.LocationMode> mode
Indicates whether a resource instance represents a specific location or a class of locations.
-
type
protected CodeableConcept type
Indicates the type of function performed at the location.
-
telecom
protected List<ContactPoint> telecom
The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.
-
physicalType
protected CodeableConcept physicalType
Physical form of the location, e.g. building, room, vehicle, road.
-
position
protected Location.LocationPositionComponent position
The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).
-
managingOrganization
protected Reference managingOrganization
The organization responsible for the provisioning and upkeep of the location.
-
managingOrganizationTarget
protected Organization managingOrganizationTarget
The actual object that is the target of the reference (The organization responsible for the provisioning and upkeep of the location.)
-
partOfTarget
protected Location partOfTarget
The actual object that is the target of the reference (Another Location which this Location is physically part of.)
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_PARTOF
public static final String SP_PARTOF
- See Also:
- Constant Field Values
-
SP_NEARDISTANCE
public static final String SP_NEARDISTANCE
- See Also:
- Constant Field Values
-
SP_ADDRESS
public static final String SP_ADDRESS
- See Also:
- Constant Field Values
-
SP_ADDRESSSTATE
public static final String SP_ADDRESSSTATE
- See Also:
- Constant Field Values
-
SP_TYPE
public static final String SP_TYPE
- See Also:
- Constant Field Values
-
SP_ADDRESSPOSTALCODE
public static final String SP_ADDRESSPOSTALCODE
- See Also:
- Constant Field Values
-
SP_ADDRESSCOUNTRY
public static final String SP_ADDRESSCOUNTRY
- See Also:
- Constant Field Values
-
SP_ORGANIZATION
public static final String SP_ORGANIZATION
- See Also:
- Constant Field Values
-
SP_NAME
public static final String SP_NAME
- See Also:
- Constant Field Values
-
SP_ADDRESSUSE
public static final String SP_ADDRESSUSE
- See Also:
- Constant Field Values
-
SP_NEAR
public static final String SP_NEAR
- See Also:
- Constant Field Values
-
SP_ADDRESSCITY
public static final String SP_ADDRESSCITY
- See Also:
- Constant Field Values
-
SP_STATUS
public static final String SP_STATUS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Location
public Location()
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Unique code or number identifying the location to its users.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(Unique code or number identifying the location to its users.)
-
addIdentifier
public Location addIdentifier(Identifier t)
-
getStatusElement
public Enumeration<Location.LocationStatus> getStatusElement()
- Returns:
status(active | suspended | inactive.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public Location setStatusElement(Enumeration<Location.LocationStatus> value)
- Parameters:
value-status(active | suspended | inactive.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public Location.LocationStatus getStatus()
- Returns:
- active | suspended | inactive.
-
setStatus
public Location setStatus(Location.LocationStatus value)
- Parameters:
value- active | suspended | inactive.
-
getNameElement
public StringType getNameElement()
- Returns:
name(Name of the location as used by humans. Does not need to be unique.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
hasNameElement
public boolean hasNameElement()
-
hasName
public boolean hasName()
-
setNameElement
public Location setNameElement(StringType value)
- Parameters:
value-name(Name of the location as used by humans. Does not need to be unique.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
getName
public String getName()
- Returns:
- Name of the location as used by humans. Does not need to be unique.
-
setName
public Location setName(String value)
- Parameters:
value- Name of the location as used by humans. Does not need to be unique.
-
getDescriptionElement
public StringType getDescriptionElement()
- Returns:
description(Description of the Location, which helps in finding or referencing the place.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
hasDescriptionElement
public boolean hasDescriptionElement()
-
hasDescription
public boolean hasDescription()
-
setDescriptionElement
public Location setDescriptionElement(StringType value)
- Parameters:
value-description(Description of the Location, which helps in finding or referencing the place.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
getDescription
public String getDescription()
- Returns:
- Description of the Location, which helps in finding or referencing the place.
-
setDescription
public Location setDescription(String value)
- Parameters:
value- Description of the Location, which helps in finding or referencing the place.
-
getModeElement
public Enumeration<Location.LocationMode> getModeElement()
- Returns:
mode(Indicates whether a resource instance represents a specific location or a class of locations.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
-
hasModeElement
public boolean hasModeElement()
-
hasMode
public boolean hasMode()
-
setModeElement
public Location setModeElement(Enumeration<Location.LocationMode> value)
- Parameters:
value-mode(Indicates whether a resource instance represents a specific location or a class of locations.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
-
getMode
public Location.LocationMode getMode()
- Returns:
- Indicates whether a resource instance represents a specific location or a class of locations.
-
setMode
public Location setMode(Location.LocationMode value)
- Parameters:
value- Indicates whether a resource instance represents a specific location or a class of locations.
-
getType
public CodeableConcept getType()
- Returns:
type(Indicates the type of function performed at the location.)
-
hasType
public boolean hasType()
-
setType
public Location setType(CodeableConcept value)
- Parameters:
value-type(Indicates the type of function performed at the location.)
-
getTelecom
public List<ContactPoint> getTelecom()
- Returns:
telecom(The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.)
-
hasTelecom
public boolean hasTelecom()
-
addTelecom
public ContactPoint addTelecom()
- Returns:
telecom(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(ContactPoint t)
-
getAddress
public Address getAddress()
- Returns:
address(Physical location.)
-
hasAddress
public boolean hasAddress()
-
setAddress
public Location setAddress(Address value)
- Parameters:
value-address(Physical location.)
-
getPhysicalType
public CodeableConcept getPhysicalType()
- Returns:
physicalType(Physical form of the location, e.g. building, room, vehicle, road.)
-
hasPhysicalType
public boolean hasPhysicalType()
-
setPhysicalType
public Location setPhysicalType(CodeableConcept value)
- Parameters:
value-physicalType(Physical form of the location, e.g. building, room, vehicle, road.)
-
getPosition
public Location.LocationPositionComponent getPosition()
- Returns:
position(The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).)
-
hasPosition
public boolean hasPosition()
-
setPosition
public Location setPosition(Location.LocationPositionComponent value)
- Parameters:
value-position(The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).)
-
getManagingOrganization
public Reference getManagingOrganization()
- Returns:
managingOrganization(The organization responsible for the provisioning and upkeep of the location.)
-
hasManagingOrganization
public boolean hasManagingOrganization()
-
setManagingOrganization
public Location setManagingOrganization(Reference value)
- Parameters:
value-managingOrganization(The organization responsible for the provisioning and upkeep of the location.)
-
getManagingOrganizationTarget
public Organization getManagingOrganizationTarget()
- Returns:
managingOrganizationThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The organization responsible for the provisioning and upkeep of the location.)
-
setManagingOrganizationTarget
public Location setManagingOrganizationTarget(Organization value)
- Parameters:
value-managingOrganizationThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The organization responsible for the provisioning and upkeep of the location.)
-
getPartOf
public Reference getPartOf()
- Returns:
partOf(Another Location which this Location is physically part of.)
-
hasPartOf
public boolean hasPartOf()
-
setPartOf
public Location setPartOf(Reference value)
- Parameters:
value-partOf(Another Location which this Location is physically part of.)
-
getPartOfTarget
public Location getPartOfTarget()
- Returns:
partOfThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Another Location which this Location is physically part of.)
-
setPartOfTarget
public Location setPartOfTarget(Location value)
- Parameters:
value-partOfThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Another Location which this Location is physically part of.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Location copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-