Class Organization
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<XON>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Organization
- All Implemented Interfaces:
Serializable
Represents an organization.
This class contains members from the HL7v2.5 XON data type.
All members of this class are allowed to be null
. When transforming
to HL7 this indicates that the values are empty. Trailing empty values are
removed from the HL7 string.
- Author:
- Jens Riemschneider, Dmytro Rud
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
Hl7v2Based.Holder<T extends Type>
-
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
Constructor Summary
ConstructorDescriptionConstructs the organization.Organization
(XON xon) Constructs the organization.Organization
(String organizationName) Constructs the organization.Organization
(String organizationName, String idNumber, AssigningAuthority assigningAuthority) Constructs the organization. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setAssigningAuthority
(AssigningAuthority assigningAuthority) void
setIdNumber
(String idNumber) void
setOrganizationName
(String organizationName) toString()
Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
-
Constructor Details
-
Organization
public Organization()Constructs the organization. -
Organization
Constructs the organization.- Parameters:
xon
- parsed HL7 v2 element.
-
Organization
Constructs the organization.- Parameters:
organizationName
- the name of the organization (XON.1).
-
Organization
public Organization(String organizationName, String idNumber, AssigningAuthority assigningAuthority) Constructs the organization.- Parameters:
organizationName
- the name of the organization (XON.1).idNumber
- the id of the organization (XON.10).assigningAuthority
- the assigning authority (XON.6).
-
-
Method Details
-
getAssigningAuthority
- Returns:
- the assigning authority (XON.6).
-
setAssigningAuthority
- Parameters:
assigningAuthority
- the assigning authority (XON.6).
-
getOrganizationName
- Returns:
- the name of the organization (XON.1).
-
setOrganizationName
- Parameters:
organizationName
- the name of the organization (XON.1).
-
getIdNumber
- Returns:
- the id of the organization (XON.10).
-
setIdNumber
- Parameters:
idNumber
- the id of the organization (XON.10).
-
equals
-
hashCode
public int hashCode() -
toString
-