Class Location
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Location
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Location extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for Location complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Location"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}LocationStatus" minOccurs="0"/> <element name="name" type="{http://hl7.org/fhir}string" minOccurs="0"/> <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/> <element name="mode" type="{http://hl7.org/fhir}LocationMode" minOccurs="0"/> <element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="telecom" type="{http://hl7.org/fhir}ContactPoint" maxOccurs="unbounded" minOccurs="0"/> <element name="address" type="{http://hl7.org/fhir}Address" minOccurs="0"/> <element name="physicalType" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="position" type="{http://hl7.org/fhir}Location.Position" minOccurs="0"/> <element name="managingOrganization" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="partOf" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Addressaddressprotected Stringdescriptionprotected java.util.List<Identifier>identifierprotected ReferencemanagingOrganizationprotected LocationModemodeprotected Stringnameprotected ReferencepartOfprotected CodeableConceptphysicalTypeprotected LocationPositionpositionprotected LocationStatusstatusprotected java.util.List<ContactPoint>telecomprotected CodeableConcepttype-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Location()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)AddressgetAddress()Gets the value of the address property.StringgetDescription()Gets the value of the description property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.ReferencegetManagingOrganization()Gets the value of the managingOrganization property.LocationModegetMode()Gets the value of the mode property.StringgetName()Gets the value of the name property.ReferencegetPartOf()Gets the value of the partOf property.CodeableConceptgetPhysicalType()Gets the value of the physicalType property.LocationPositiongetPosition()Gets the value of the position property.LocationStatusgetStatus()Gets the value of the status property.java.util.List<ContactPoint>getTelecom()Gets the value of the telecom property.CodeableConceptgetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAddress(Address value)Sets the value of the address property.voidsetDescription(String value)Sets the value of the description property.voidsetManagingOrganization(Reference value)Sets the value of the managingOrganization property.voidsetMode(LocationMode value)Sets the value of the mode property.voidsetName(String value)Sets the value of the name property.voidsetPartOf(Reference value)Sets the value of the partOf property.voidsetPhysicalType(CodeableConcept value)Sets the value of the physicalType property.voidsetPosition(LocationPosition value)Sets the value of the position property.voidsetStatus(LocationStatus value)Sets the value of the status property.voidsetType(CodeableConcept value)Sets the value of the type property.java.lang.StringtoString()LocationwithAddress(Address value)LocationwithContained(java.util.Collection<ResourceContainer> values)LocationwithContained(ResourceContainer... values)LocationwithDescription(String value)LocationwithExtension(java.util.Collection<Extension> values)LocationwithExtension(Extension... values)LocationwithId(Id value)LocationwithIdentifier(java.util.Collection<Identifier> values)LocationwithIdentifier(Identifier... values)LocationwithImplicitRules(Uri value)LocationwithLanguage(Code value)LocationwithManagingOrganization(Reference value)LocationwithMeta(Meta value)LocationwithMode(LocationMode value)LocationwithModifierExtension(java.util.Collection<Extension> values)LocationwithModifierExtension(Extension... values)LocationwithName(String value)LocationwithPartOf(Reference value)LocationwithPhysicalType(CodeableConcept value)LocationwithPosition(LocationPosition value)LocationwithStatus(LocationStatus value)LocationwithTelecom(java.util.Collection<ContactPoint> values)LocationwithTelecom(ContactPoint... values)LocationwithText(Narrative value)LocationwithType(CodeableConcept value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
status
protected LocationStatus status
-
name
protected String name
-
description
protected String description
-
mode
protected LocationMode mode
-
type
protected CodeableConcept type
-
telecom
protected java.util.List<ContactPoint> telecom
-
address
protected Address address
-
physicalType
protected CodeableConcept physicalType
-
position
protected LocationPosition position
-
managingOrganization
protected Reference managingOrganization
-
partOf
protected Reference partOf
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getStatus
public LocationStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
LocationStatus
-
setStatus
public void setStatus(LocationStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isLocationStatus
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getMode
public LocationMode getMode()
Gets the value of the mode property.- Returns:
- possible object is
LocationMode
-
setMode
public void setMode(LocationMode value)
Sets the value of the mode property.- Parameters:
value- allowed object isLocationMode
-
getType
public CodeableConcept getType()
Gets the value of the type property.- Returns:
- possible object is
CodeableConcept
-
setType
public void setType(CodeableConcept value)
Sets the value of the type property.- Parameters:
value- allowed object isCodeableConcept
-
getTelecom
public java.util.List<ContactPoint> getTelecom()
Gets the value of the telecom property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the telecom property.For example, to add a new item, do as follows:
getTelecom().add(newItem);Objects of the following type(s) are allowed in the list
ContactPoint
-
getAddress
public Address getAddress()
Gets the value of the address property.- Returns:
- possible object is
Address
-
setAddress
public void setAddress(Address value)
Sets the value of the address property.- Parameters:
value- allowed object isAddress
-
getPhysicalType
public CodeableConcept getPhysicalType()
Gets the value of the physicalType property.- Returns:
- possible object is
CodeableConcept
-
setPhysicalType
public void setPhysicalType(CodeableConcept value)
Sets the value of the physicalType property.- Parameters:
value- allowed object isCodeableConcept
-
getPosition
public LocationPosition getPosition()
Gets the value of the position property.- Returns:
- possible object is
LocationPosition
-
setPosition
public void setPosition(LocationPosition value)
Sets the value of the position property.- Parameters:
value- allowed object isLocationPosition
-
getManagingOrganization
public Reference getManagingOrganization()
Gets the value of the managingOrganization property.- Returns:
- possible object is
Reference
-
setManagingOrganization
public void setManagingOrganization(Reference value)
Sets the value of the managingOrganization property.- Parameters:
value- allowed object isReference
-
getPartOf
public Reference getPartOf()
Gets the value of the partOf property.- Returns:
- possible object is
Reference
-
setPartOf
public void setPartOf(Reference value)
Sets the value of the partOf property.- Parameters:
value- allowed object isReference
-
withIdentifier
public Location withIdentifier(Identifier... values)
-
withIdentifier
public Location withIdentifier(java.util.Collection<Identifier> values)
-
withStatus
public Location withStatus(LocationStatus value)
-
withMode
public Location withMode(LocationMode value)
-
withType
public Location withType(CodeableConcept value)
-
withTelecom
public Location withTelecom(ContactPoint... values)
-
withTelecom
public Location withTelecom(java.util.Collection<ContactPoint> values)
-
withPhysicalType
public Location withPhysicalType(CodeableConcept value)
-
withPosition
public Location withPosition(LocationPosition value)
-
withText
public Location withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Location withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Location withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Location withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Location withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Location withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Location withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Location withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Location withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Location withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Location withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-