public class AFF extends Segment
The AFF segment adds detailed information regarding professional affiliations with which the staff member identified by the STF segment is/was associated.
Represents an HL7 AFF message segment. This segment has the following fields:
AFF-1: Set ID _ AFF (SI)Required
AFF-2: Professional Organization (XON)Required
AFF-3: Professional Organization Address (XAD)Optional
AFF-4: Professional Organization Affiliation Date Range (DR)Optional
AFF-5: Professional Affiliation Additional Information (ST)Optional
This class provides mechanism to validate message against HL7 v 2.8.2 standard. The class provides accessors & mutators for the elements mentioned above. The class has validate method which validates Message against HL7 v 2.8.2 standard.
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
AFF()
Constructs the AFF segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProfessionalOrganizationAffiliationDateRange(DR objProfessionalOrganizationAffiliationDateRange)
Add the Professional Organization Affiliation Date Range.
|
void |
addProfessionalOrganizationAffiliationDateRange(DTM objRangeStartDateTime,
DTM objRangeEndDateTime)
Add the Professional Organization Affiliation Date Range.
|
ST |
getProfessionalAffiliationAdditionalInformation()
Retrieves the Professional Affiliation Additional Information.
|
XON |
getProfessionalOrganization()
Retrieves the Professional Organization.
|
XAD |
getProfessionalOrganizationAddress()
Retrieves the Professional Organization Address.
|
ISingleCollection<DR> |
getProfessionalOrganizationAffiliationDateRange()
Retrieves the Professional Organization Affiliation Date Range.
|
SI |
getSetID_AFF()
Retrieves the Set ID AFF.
|
void |
setProfessionalAffiliationAdditionalInformation(ST objProfessionalAffiliationAdditionalInformation) |
void |
setProfessionalAffiliationAdditionalInformation(java.lang.String strProfessionalAffiliationAdditionalInformation)
Set the Professional Affiliation Additional Information.
|
void |
setProfessionalOrganization(java.lang.String strOrganizationName,
CWE objOrganizationNameTypeCode,
HD objAssigningAuthority,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
java.lang.String strOrganizationIdentifier)
Set the Professional Organization.
|
void |
setProfessionalOrganization(XON objProfessionalOrganization)
Set the Professional Organization.
|
void |
setProfessionalOrganizationAddress(SAD objStreetAddress,
java.lang.String strOtherDesignation,
java.lang.String strCity,
java.lang.String strStateOrProvince,
java.lang.String strZipOrPostalCode,
java.lang.String strCountry,
java.lang.String strAddressType,
java.lang.String strOtherGeographicDesignation,
CWE objCountyParishCode,
CWE objCensusTract,
java.lang.String strAddressRepresentationCode,
DTM objEffectiveDate,
DTM objExpirationDate,
CWE objEXpirationReason,
java.lang.String strTemporaryIndicator,
java.lang.String strBadAddressIndicator,
java.lang.String strAddressUsage,
java.lang.String strAddressee,
java.lang.String strComment,
java.lang.String strPreferenceOrder,
CWE objProtectionCode,
EI objAddressIdentifier)
Set the Professional Organization Address.
|
void |
setProfessionalOrganizationAddress(XAD objProfessionalOrganizationAddress)
Set the Professional Organization Address.
|
void |
setProfessionalOrganizationAffiliationDateRange(ISingleCollection<DR> objProfessionalOrganizationAffiliationDateRangeList)
Set the Professional Organization Affiliation Date Range.
|
void |
setSetID_AFF(SI objSetID_AFF)
Set the Set ID AFF.
|
void |
setSetID_AFF(java.lang.String strSetID_AFF)
Set the Set ID AFF.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic ST getProfessionalAffiliationAdditionalInformation()
public XON getProfessionalOrganization()
public XAD getProfessionalOrganizationAddress()
public ISingleCollection<DR> getProfessionalOrganizationAffiliationDateRange()
public SI getSetID_AFF()
public void setSetID_AFF(java.lang.String strSetID_AFF)
strSetID_AFF - This field contains the number that identifies AFF transaction.public void setSetID_AFF(SI objSetID_AFF)
objSetID_AFF - Object of Set ID AFF.public void setProfessionalOrganization(java.lang.String strOrganizationName,
CWE objOrganizationNameTypeCode,
HD objAssigningAuthority,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
java.lang.String strOrganizationIdentifier)
strOrganizationName - Specifies name of the specified organization.objOrganizationNameTypeCode - Specifies a code that represents the type of name i.e., legal name, display name.
Suggested Values A,L,D,SL.[Refer to table No.0204]objAssigningAuthority - Specifies The assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.strIdentifierTypeCode - Specifies a code corresponding to the type of identifier.objAssigningFacility - Specifies The place or location identifier where the identifier was first assigned to the person.strNameRepresentationCode - Specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]strOrganizationIdentifier - This component contains the sequence of characters (the code) that uniquely
identifies the item being referenced by XON.1 Organization Name.
This component replaces XON.3 ID Number as of v 2.5.public void setProfessionalOrganization(XON objProfessionalOrganization)
objProfessionalOrganization - Object of Professional Organization.public void setProfessionalOrganizationAddress(SAD objStreetAddress, java.lang.String strOtherDesignation, java.lang.String strCity, java.lang.String strStateOrProvince, java.lang.String strZipOrPostalCode, java.lang.String strCountry, java.lang.String strAddressType, java.lang.String strOtherGeographicDesignation, CWE objCountyParishCode, CWE objCensusTract, java.lang.String strAddressRepresentationCode, DTM objEffectiveDate, DTM objExpirationDate, CWE objEXpirationReason, java.lang.String strTemporaryIndicator, java.lang.String strBadAddressIndicator, java.lang.String strAddressUsage, java.lang.String strAddressee, java.lang.String strComment, java.lang.String strPreferenceOrder, CWE objProtectionCode, EI objAddressIdentifier)
objStreetAddress - Specifies the street address.strOtherDesignation - Specifies the Second line of address.strCity - The city, or district or place where the addressee is located.strStateOrProvince - Specifies the state or province where the addressee is located.strZipOrPostalCode - Specifies the zip or postal code where the addressee is located.strCountry - Specifies the country where the addressee is located.strAddressType - Specifies the kind or type of address.strOtherGeographicDesignation - Specifies any other geographic designation.objCountyParishCode - Specifies a code that represents the county in which the specified address resides.objCensusTract - Specifies a code that represents the census tract in which the specified address resides.strAddressRepresentationCode - Specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]objEffectiveDate - It is The first date, if known, on which the address is valid and active.objExpirationDate - It is The last date, if known, on which the address is valid and active.objExpirationReason - indicates why this address was marked as ended.strTemporaryIndicator - indicates whether address is considered temporary .strBadAddressIndicator - indicates whether it is possible to contact the owning entity.strAddressUsage - indicates how the address is intended to be used.strAddressee - indicates the name of the person whose address is intended to be used.strComment - indicated descriptive informationstrPreferenceOrder - preference orderobjProtectionCode - indicates that an address need to be protectedobjAddressIdentifier - indicates a unique identifier for addresspublic void setProfessionalOrganizationAddress(XAD objProfessionalOrganizationAddress)
objProfessionalOrganizationAddress - Object of Professional Organization Address.public void addProfessionalOrganizationAffiliationDateRange(DTM objRangeStartDateTime, DTM objRangeEndDateTime)
objRangeStartDateTime - Specifies the earliest date/time (time stamp) in the specified range.objRangeEndDateTime - Specifies the latest date/time in the specified range.public void addProfessionalOrganizationAffiliationDateRange(DR objProfessionalOrganizationAffiliationDateRange)
objProfessionalOrganizationAffiliationDateRange - Object of Professional Organization Affiliation Date Range.public void setProfessionalOrganizationAffiliationDateRange(ISingleCollection<DR> objProfessionalOrganizationAffiliationDateRangeList)
objProfessionalOrganizationAffiliationDateRangeList - List of Professional Organization Affiliation Date Range.public void setProfessionalAffiliationAdditionalInformation(java.lang.String strProfessionalAffiliationAdditionalInformation)
strProfessionalAffiliationAdditionalInformation - String value of PriorityARQpublic void setProfessionalAffiliationAdditionalInformation(ST objProfessionalAffiliationAdditionalInformation)
public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - If Segment Validation fails.