Class Organization
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<ca.uhn.hl7v2.model.v25.datatype.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 ca.uhn.hl7v2.model.Type> -
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE -
Constructor Summary
ConstructorsConstructorDescriptionConstructs the organization.Organization(ca.uhn.hl7v2.model.v25.datatype.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 TypeMethodDescriptionbooleaninthashCode()static OrganizationParses an HL7v2 string into an Organization object.voidsetAssigningAuthority(AssigningAuthority assigningAuthority) voidsetIdNumber(String idNumber) voidsetOrganizationName(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
public Organization(ca.uhn.hl7v2.model.v25.datatype.XON xon) 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
-
parse
Parses an HL7v2 string into an Organization object.- Parameters:
hl7String- HL7v2 representation of an Organization object.- Returns:
- parsed Organization object.
-
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
-