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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the assigning authority type ID.inthashCode()static @Nullable IheCxParses a string as an IHE CX.render()Renders the instance as an IHE CX.voidsetAssigningAuthorityId(String assigningAuthorityId) Sets the assigning authority Id.voidsetIdNumber(String idNumber) Sets the Id number.toString()static booleanValidates 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
nullif the string is not a valid format.
-
validate
Validates that a string is a valid IHE CX.- Parameters:
string- The string to validate.- Returns:
trueif the string is a valid IHE CX,falseotherwise.
-
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
-