Class IheCx
java.lang.Object
org.projecthusky.common.utils.datatypes.IheCx
Model of an IHE CX, based on an HL7 v2.5 CX.
- Author:
- Quentin Ligier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the assigning authority type ID.int
hashCode()
static @Nullable IheCx
Parses a string as an IHE CX.render()
Renders the instance as an IHE CX.void
setAssigningAuthorityId
(String assigningAuthorityId) Sets the assigning authority Id.void
setIdNumber
(String idNumber) Sets the Id number.toString()
static boolean
Validates that a string is a valid IHE CX.
-
Constructor Details
-
IheCx
Constructs a new IHE CX.- Parameters:
idNumber
- The Id number.assigningAuthorityId
- The assigning authority identifier.
-
-
Method Details
-
parse
Parses a string as an IHE CX.- Parameters:
string
- The string to parse.- Returns:
- the parsed IHE CX or
null
if the string is not a valid format.
-
validate
Validates that a string is a valid IHE CX.- Parameters:
string
- The string to validate.- Returns:
true
if the string is a valid IHE CX,false
otherwise.
-
getIdNumber
-
setIdNumber
Sets the Id number.- Parameters:
idNumber
- the Id number, as a non-null, non-blank string.
-
getAssigningAuthorityId
-
setAssigningAuthorityId
Sets the assigning authority Id.- Parameters:
assigningAuthorityId
- the assigning authority Id, as a non-null, non-blank string.
-
getAssigningAuthorityTypeId
Returns the assigning authority type ID. -
render
Renders the instance as an IHE CX. -
equals
-
hashCode
public int hashCode() -
toString
-