Package ca.uhn.hl7v2.model.v251.segment
Class CTD
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v251.segment.CTD
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 CTD message segment (Contact Data). This segment has the following fields:
- CTD-1: Contact Role (CE) repeating
- CTD-2: Contact Name (XPN) optional repeating
- CTD-3: Contact Address (XAD) optional repeating
- CTD-4: Contact Location (PL) optional
- CTD-5: Contact Communication Information (XTN) optional repeating
- CTD-6: Preferred Method of Contact (CE) optional
- CTD-7: Contact Identifiers (PLN) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) XAD[]Returns all repetitions of Contact Address (CTD-3).getContactAddress(int rep) Returns a specific repetition of CTD-3: "Contact Address" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Address (CTD-3).XTN[]Returns all repetitions of Contact Communication Information (CTD-5).getContactCommunicationInformation(int rep) Returns a specific repetition of CTD-5: "Contact Communication Information" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Communication Information (CTD-5).PLN[]Returns all repetitions of Contact Identifiers (CTD-7).getContactIdentifiers(int rep) Returns a specific repetition of CTD-7: "Contact Identifiers" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Identifiers (CTD-7).Returns CTD-4: "Contact Location" - creates it if necessaryXPN[]Returns all repetitions of Contact Name (CTD-2).getContactName(int rep) Returns a specific repetition of CTD-2: "Contact Name" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Name (CTD-2).CE[]Returns all repetitions of Contact Role (CTD-1).getContactRole(int rep) Returns a specific repetition of CTD-1: "Contact Role" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Role (CTD-1).CE[]Returns all repetitions of Contact Role (CTD-1).getCtd1_ContactRole(int rep) Returns a specific repetition of CTD-1: "Contact Role" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Role (CTD-1).XPN[]Returns all repetitions of Contact Name (CTD-2).getCtd2_ContactName(int rep) Returns a specific repetition of CTD-2: "Contact Name" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Name (CTD-2).XAD[]Returns all repetitions of Contact Address (CTD-3).getCtd3_ContactAddress(int rep) Returns a specific repetition of CTD-3: "Contact Address" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Address (CTD-3).Returns CTD-4: "Contact Location" - creates it if necessaryXTN[]Returns all repetitions of Contact Communication Information (CTD-5).Returns a specific repetition of CTD-5: "Contact Communication Information" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Communication Information (CTD-5).Returns CTD-6: "Preferred Method of Contact" - creates it if necessaryPLN[]Returns all repetitions of Contact Identifiers (CTD-7).getCtd7_ContactIdentifiers(int rep) Returns a specific repetition of CTD-7: "Contact Identifiers" - creates it if necessaryintReturns a count of the current number of repetitions of Contact Identifiers (CTD-7).Returns CTD-6: "Preferred Method of Contact" - creates it if necessaryinsertContactAddress(int rep) Inserts a repetition of CTD-3: "Contact Address" at a specific indexInserts a repetition of CTD-5: "Contact Communication Information" at a specific indexinsertContactIdentifiers(int rep) Inserts a repetition of CTD-7: "Contact Identifiers" at a specific indexinsertContactName(int rep) Inserts a repetition of CTD-2: "Contact Name" at a specific indexinsertContactRole(int rep) Inserts a repetition of CTD-1: "Contact Role" at a specific indexinsertCtd1_ContactRole(int rep) Inserts a repetition of CTD-1: "Contact Role" at a specific indexinsertCtd2_ContactName(int rep) Inserts a repetition of CTD-2: "Contact Name" at a specific indexinsertCtd3_ContactAddress(int rep) Inserts a repetition of CTD-3: "Contact Address" at a specific indexInserts a repetition of CTD-5: "Contact Communication Information" at a specific indexinsertCtd7_ContactIdentifiers(int rep) Inserts a repetition of CTD-7: "Contact Identifiers" at a specific indexremoveContactAddress(int rep) Removes a repetition of CTD-3: "Contact Address" at a specific indexRemoves a repetition of CTD-5: "Contact Communication Information" at a specific indexremoveContactIdentifiers(int rep) Removes a repetition of CTD-7: "Contact Identifiers" at a specific indexremoveContactName(int rep) Removes a repetition of CTD-2: "Contact Name" at a specific indexremoveContactRole(int rep) Removes a repetition of CTD-1: "Contact Role" at a specific indexremoveCtd1_ContactRole(int rep) Removes a repetition of CTD-1: "Contact Role" at a specific indexremoveCtd2_ContactName(int rep) Removes a repetition of CTD-2: "Contact Name" at a specific indexremoveCtd3_ContactAddress(int rep) Removes a repetition of CTD-3: "Contact Address" at a specific indexRemoves a repetition of CTD-5: "Contact Communication Information" at a specific indexremoveCtd7_ContactIdentifiers(int rep) Removes a repetition of CTD-7: "Contact Identifiers" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
CTD
Creates a new CTD segment
-
-
Method Details
-
getContactRole
Returns all repetitions of Contact Role (CTD-1). -
getCtd1_ContactRole
Returns all repetitions of Contact Role (CTD-1). -
getContactRoleReps
Returns a count of the current number of repetitions of Contact Role (CTD-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getContactRole
Returns a specific repetition of CTD-1: "Contact Role" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd1_ContactRole
Returns a specific repetition of CTD-1: "Contact Role" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd1_ContactRoleReps
Returns a count of the current number of repetitions of Contact Role (CTD-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertContactRole
Inserts a repetition of CTD-1: "Contact Role" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertCtd1_ContactRole
Inserts a repetition of CTD-1: "Contact Role" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeContactRole
Removes a repetition of CTD-1: "Contact Role" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeCtd1_ContactRole
Removes a repetition of CTD-1: "Contact Role" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getContactName
Returns all repetitions of Contact Name (CTD-2). -
getCtd2_ContactName
Returns all repetitions of Contact Name (CTD-2). -
getContactNameReps
Returns a count of the current number of repetitions of Contact Name (CTD-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getContactName
Returns a specific repetition of CTD-2: "Contact Name" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd2_ContactName
Returns a specific repetition of CTD-2: "Contact Name" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd2_ContactNameReps
Returns a count of the current number of repetitions of Contact Name (CTD-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertContactName
Inserts a repetition of CTD-2: "Contact Name" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertCtd2_ContactName
Inserts a repetition of CTD-2: "Contact Name" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeContactName
Removes a repetition of CTD-2: "Contact Name" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeCtd2_ContactName
Removes a repetition of CTD-2: "Contact Name" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getContactAddress
Returns all repetitions of Contact Address (CTD-3). -
getCtd3_ContactAddress
Returns all repetitions of Contact Address (CTD-3). -
getContactAddressReps
Returns a count of the current number of repetitions of Contact Address (CTD-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getContactAddress
Returns a specific repetition of CTD-3: "Contact Address" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd3_ContactAddress
Returns a specific repetition of CTD-3: "Contact Address" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd3_ContactAddressReps
Returns a count of the current number of repetitions of Contact Address (CTD-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertContactAddress
Inserts a repetition of CTD-3: "Contact Address" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertCtd3_ContactAddress
Inserts a repetition of CTD-3: "Contact Address" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeContactAddress
Removes a repetition of CTD-3: "Contact Address" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeCtd3_ContactAddress
Removes a repetition of CTD-3: "Contact Address" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getContactLocation
Returns CTD-4: "Contact Location" - creates it if necessary -
getCtd4_ContactLocation
Returns CTD-4: "Contact Location" - creates it if necessary -
getContactCommunicationInformation
Returns all repetitions of Contact Communication Information (CTD-5). -
getCtd5_ContactCommunicationInformation
Returns all repetitions of Contact Communication Information (CTD-5). -
getContactCommunicationInformationReps
Returns a count of the current number of repetitions of Contact Communication Information (CTD-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getContactCommunicationInformation
Returns a specific repetition of CTD-5: "Contact Communication Information" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd5_ContactCommunicationInformation
Returns a specific repetition of CTD-5: "Contact Communication Information" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd5_ContactCommunicationInformationReps
Returns a count of the current number of repetitions of Contact Communication Information (CTD-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertContactCommunicationInformation
Inserts a repetition of CTD-5: "Contact Communication Information" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertCtd5_ContactCommunicationInformation
Inserts a repetition of CTD-5: "Contact Communication Information" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeContactCommunicationInformation
Removes a repetition of CTD-5: "Contact Communication Information" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeCtd5_ContactCommunicationInformation
Removes a repetition of CTD-5: "Contact Communication Information" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getPreferredMethodOfContact
Returns CTD-6: "Preferred Method of Contact" - creates it if necessary -
getCtd6_PreferredMethodOfContact
Returns CTD-6: "Preferred Method of Contact" - creates it if necessary -
getContactIdentifiers
Returns all repetitions of Contact Identifiers (CTD-7). -
getCtd7_ContactIdentifiers
Returns all repetitions of Contact Identifiers (CTD-7). -
getContactIdentifiersReps
Returns a count of the current number of repetitions of Contact Identifiers (CTD-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getContactIdentifiers
Returns a specific repetition of CTD-7: "Contact Identifiers" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd7_ContactIdentifiers
Returns a specific repetition of CTD-7: "Contact Identifiers" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getCtd7_ContactIdentifiersReps
Returns a count of the current number of repetitions of Contact Identifiers (CTD-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertContactIdentifiers
Inserts a repetition of CTD-7: "Contact Identifiers" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertCtd7_ContactIdentifiers
Inserts a repetition of CTD-7: "Contact Identifiers" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeContactIdentifiers
Removes a repetition of CTD-7: "Contact Identifiers" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeCtd7_ContactIdentifiers
Removes a repetition of CTD-7: "Contact Identifiers" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-