public class CTD extends AbstractSegment
Represents an HL7 CTD message segment (Contact Data). This segment has the following fields:
log
Constructor and Description |
---|
CTD(Group parent,
ModelClassFactory factory)
Creates a new CTD segment
|
Modifier and Type | Method and Description |
---|---|
protected Type |
createNewTypeWithoutReflection(int field) |
XAD[] |
getContactAddress()
Returns all repetitions of Contact Address (CTD-3).
|
XAD |
getContactAddress(int rep)
Returns a specific repetition of
CTD-3: "Contact Address" - creates it if necessary
|
int |
getContactAddressReps()
Returns a count of the current number of repetitions of Contact Address (CTD-3).
|
XTN[] |
getContactCommunicationInformation()
Returns all repetitions of Contact Communication Information (CTD-5).
|
XTN |
getContactCommunicationInformation(int rep)
Returns a specific repetition of
CTD-5: "Contact Communication Information" - creates it if necessary
|
int |
getContactCommunicationInformationReps()
Returns a count of the current number of repetitions of Contact Communication Information (CTD-5).
|
CM_PI[] |
getContactIdentifiers()
Returns all repetitions of Contact Identifiers (CTD-7).
|
CM_PI |
getContactIdentifiers(int rep)
Returns a specific repetition of
CTD-7: "Contact Identifiers" - creates it if necessary
|
int |
getContactIdentifiersReps()
Returns a count of the current number of repetitions of Contact Identifiers (CTD-7).
|
PL |
getContactLocation()
Returns
CTD-4: "Contact Location" - creates it if necessary
|
XPN[] |
getContactName()
Returns all repetitions of Contact Name (CTD-2).
|
XPN |
getContactName(int rep)
Returns a specific repetition of
CTD-2: "Contact Name" - creates it if necessary
|
int |
getContactNameReps()
Returns a count of the current number of repetitions of Contact Name (CTD-2).
|
CE |
getContactRole()
Returns
CTD-1: "Contact Role" - creates it if necessary
|
CE |
getCtd1_ContactRole()
Returns
CTD-1: "Contact Role" - creates it if necessary
|
XPN[] |
getCtd2_ContactName()
Returns all repetitions of Contact Name (CTD-2).
|
XPN |
getCtd2_ContactName(int rep)
Returns a specific repetition of
CTD-2: "Contact Name" - creates it if necessary
|
int |
getCtd2_ContactNameReps()
Returns a count of the current number of repetitions of Contact Name (CTD-2).
|
XAD[] |
getCtd3_ContactAddress()
Returns all repetitions of Contact Address (CTD-3).
|
XAD |
getCtd3_ContactAddress(int rep)
Returns a specific repetition of
CTD-3: "Contact Address" - creates it if necessary
|
int |
getCtd3_ContactAddressReps()
Returns a count of the current number of repetitions of Contact Address (CTD-3).
|
PL |
getCtd4_ContactLocation()
Returns
CTD-4: "Contact Location" - creates it if necessary
|
XTN[] |
getCtd5_ContactCommunicationInformation()
Returns all repetitions of Contact Communication Information (CTD-5).
|
XTN |
getCtd5_ContactCommunicationInformation(int rep)
Returns a specific repetition of
CTD-5: "Contact Communication Information" - creates it if necessary
|
int |
getCtd5_ContactCommunicationInformationReps()
Returns a count of the current number of repetitions of Contact Communication Information (CTD-5).
|
CE |
getCtd6_PreferredMethodOfContact()
Returns
CTD-6: "Preferred Method of Contact" - creates it if necessary
|
CM_PI[] |
getCtd7_ContactIdentifiers()
Returns all repetitions of Contact Identifiers (CTD-7).
|
CM_PI |
getCtd7_ContactIdentifiers(int rep)
Returns a specific repetition of
CTD-7: "Contact Identifiers" - creates it if necessary
|
int |
getCtd7_ContactIdentifiersReps()
Returns a count of the current number of repetitions of Contact Identifiers (CTD-7).
|
CE |
getPreferredMethodOfContact()
Returns
CTD-6: "Preferred Method of Contact" - creates it if necessary
|
XAD |
insertContactAddress(int rep)
Inserts a repetition of
CTD-3: "Contact Address" at a specific index
|
XTN |
insertContactCommunicationInformation(int rep)
Inserts a repetition of
CTD-5: "Contact Communication Information" at a specific index
|
CM_PI |
insertContactIdentifiers(int rep)
Inserts a repetition of
CTD-7: "Contact Identifiers" at a specific index
|
XPN |
insertContactName(int rep)
Inserts a repetition of
CTD-2: "Contact Name" at a specific index
|
XPN |
insertCtd2_ContactName(int rep)
Inserts a repetition of
CTD-2: "Contact Name" at a specific index
|
XAD |
insertCtd3_ContactAddress(int rep)
Inserts a repetition of
CTD-3: "Contact Address" at a specific index
|
XTN |
insertCtd5_ContactCommunicationInformation(int rep)
Inserts a repetition of
CTD-5: "Contact Communication Information" at a specific index
|
CM_PI |
insertCtd7_ContactIdentifiers(int rep)
Inserts a repetition of
CTD-7: "Contact Identifiers" at a specific index
|
XAD |
removeContactAddress(int rep)
Removes a repetition of
CTD-3: "Contact Address" at a specific index
|
XTN |
removeContactCommunicationInformation(int rep)
Removes a repetition of
CTD-5: "Contact Communication Information" at a specific index
|
CM_PI |
removeContactIdentifiers(int rep)
Removes a repetition of
CTD-7: "Contact Identifiers" at a specific index
|
XPN |
removeContactName(int rep)
Removes a repetition of
CTD-2: "Contact Name" at a specific index
|
XPN |
removeCtd2_ContactName(int rep)
Removes a repetition of
CTD-2: "Contact Name" at a specific index
|
XAD |
removeCtd3_ContactAddress(int rep)
Removes a repetition of
CTD-3: "Contact Address" at a specific index
|
XTN |
removeCtd5_ContactCommunicationInformation(int rep)
Removes a repetition of
CTD-5: "Contact Communication Information" at a specific index
|
CM_PI |
removeCtd7_ContactIdentifiers(int rep)
Removes a repetition of
CTD-7: "Contact Identifiers" at a specific index
|
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetition
getMessage, getParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getParent
public CTD(Group parent, ModelClassFactory factory)
public CE getContactRole()
public CE getCtd1_ContactRole()
public XPN[] getContactName()
public XPN[] getCtd2_ContactName()
public int getContactNameReps()
public XPN getContactName(int rep)
rep
- The repetition index (0-indexed)public XPN getCtd2_ContactName(int rep)
rep
- The repetition index (0-indexed)public int getCtd2_ContactNameReps()
public XPN insertContactName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XPN insertCtd2_ContactName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XPN removeContactName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XPN removeCtd2_ContactName(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XAD[] getContactAddress()
public XAD[] getCtd3_ContactAddress()
public int getContactAddressReps()
public XAD getContactAddress(int rep)
rep
- The repetition index (0-indexed)public XAD getCtd3_ContactAddress(int rep)
rep
- The repetition index (0-indexed)public int getCtd3_ContactAddressReps()
public XAD insertContactAddress(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XAD insertCtd3_ContactAddress(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XAD removeContactAddress(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XAD removeCtd3_ContactAddress(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public PL getContactLocation()
public PL getCtd4_ContactLocation()
public XTN[] getContactCommunicationInformation()
public XTN[] getCtd5_ContactCommunicationInformation()
public int getContactCommunicationInformationReps()
public XTN getContactCommunicationInformation(int rep)
rep
- The repetition index (0-indexed)public XTN getCtd5_ContactCommunicationInformation(int rep)
rep
- The repetition index (0-indexed)public int getCtd5_ContactCommunicationInformationReps()
public XTN insertContactCommunicationInformation(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XTN insertCtd5_ContactCommunicationInformation(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XTN removeContactCommunicationInformation(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public XTN removeCtd5_ContactCommunicationInformation(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CE getPreferredMethodOfContact()
public CE getCtd6_PreferredMethodOfContact()
public CM_PI[] getContactIdentifiers()
public CM_PI[] getCtd7_ContactIdentifiers()
public int getContactIdentifiersReps()
public CM_PI getContactIdentifiers(int rep)
rep
- The repetition index (0-indexed)public CM_PI getCtd7_ContactIdentifiers(int rep)
rep
- The repetition index (0-indexed)public int getCtd7_ContactIdentifiersReps()
public CM_PI insertContactIdentifiers(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CM_PI insertCtd7_ContactIdentifiers(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CM_PI removeContactIdentifiers(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)public CM_PI removeCtd7_ContactIdentifiers(int rep) throws HL7Exception
rep
- The repetition index (0-indexed)HL7Exception
- If the rep is invalid (below 0, or too high for the allowable repetitions)protected Type createNewTypeWithoutReflection(int field)
createNewTypeWithoutReflection
in class AbstractSegment
Copyright © 2001–2017 University Health Network. All rights reserved.