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
public class Organization extends Hl7v2Based<XON>
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
-
Constructor Summary
Constructors Constructor Description Organization()
Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
AssigningAuthority
getAssigningAuthority()
String
getIdNumber()
String
getOrganizationName()
int
hashCode()
void
setAssigningAuthority(AssigningAuthority assigningAuthority)
void
setIdNumber(String idNumber)
void
setOrganizationName(String organizationName)
String
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 Detail
-
Organization
public Organization()
Constructs the organization.
-
Organization
public Organization(XON xon)
Constructs the organization.- Parameters:
xon
- parsed HL7 v2 element.
-
Organization
public Organization(String organizationName)
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 Detail
-
getAssigningAuthority
public AssigningAuthority getAssigningAuthority()
- Returns:
- the assigning authority (XON.6).
-
setAssigningAuthority
public void setAssigningAuthority(AssigningAuthority assigningAuthority)
- Parameters:
assigningAuthority
- the assigning authority (XON.6).
-
getOrganizationName
public String getOrganizationName()
- Returns:
- the name of the organization (XON.1).
-
setOrganizationName
public void setOrganizationName(String organizationName)
- Parameters:
organizationName
- the name of the organization (XON.1).
-
getIdNumber
public String getIdNumber()
- Returns:
- the id of the organization (XON.10).
-
setIdNumber
public void setIdNumber(String idNumber)
- Parameters:
idNumber
- the id of the organization (XON.10).
-
-