public class MFE extends Segment
The Technical Steward for the MFE segment is CQ.
Represents an HL7 MFE message segment. This segment has the following fields:
MFE-1: Record-Level Event Code (ID)Required
MFE-2: MFN Control ID (ST)Conditional
MFE-3: Effective Date/Time (DTM)Optional
MFE-4: Primary Key Value - MFE (Varies)Required
MFE-5: Primary Key Value Type (ID)Required
MFE-6: Entered Date/Time (DTM)Optional
MFE-7: Entered By (XCN)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 |
|---|
MFE()
Constructs the MFE segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addprimaryKeyValueMFE(IDataType objPrimaryKeyValueMFE)
Add the Primary Key Value MFE.
|
void |
addPrimaryKeyValueType(ID objtempPrimaryKeyValueType)
Add the Primary Key Value Type.
|
void |
addPrimaryKeyValueType(java.lang.String strCharacterSet)
Add the Primary Key Value Type.
|
DTM |
getEffectiveDateTime()
Retrieves the Effective Date Time.
|
XCN |
getEnteredBy()
Retrieves the Entered By.
|
DTM |
getEnteredDateTime()
Retrieves the Entered Date/Time.
|
ST |
getMFNControlID()
Retrieves the MFN Control ID.
|
ISingleCollection<IDataType> |
getPrimaryKeyValueMFE()
Retrieves the Primary Key Value MFE.
|
ISingleCollection<ID> |
getPrimaryKeyValueType()
Retrieves the Primary Key Value Type.
|
ID |
getRecordLevelEventCode()
Retrieves the Record Level Event Code.
|
int |
parse(java.lang.String strSegmentStream,
IDelimiter objIDelimiter)
Parses HL7 Segment Strings from any Stream into HL7 Segment object.
|
void |
setEffectiveDateTime(DTM objeffectiveDateTime)
Sets the Effective Date Time
|
void |
setEffectiveDateTime(java.lang.String strTime)
Set the Effective Date Time.
|
void |
setEnteredBy(java.lang.String strIDNumber,
FN objFamilyName,
java.lang.String strGivenName,
java.lang.String strSecondAndFurtherGivenNamesOrInitialsThereof,
java.lang.String strSuffix,
java.lang.String strPrefix,
CWE objSourceTable,
HD objAssigningAuthority,
java.lang.String strNameTypeCode,
java.lang.String strIdentifierCheckDigit,
java.lang.String strCheckDigitScheme,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
CWE objNameContext,
java.lang.String strNameAssemblyOrder,
java.lang.String strEffectiveDate,
java.lang.String strExpirationDate,
java.lang.String strProfessionalSuffix,
CWE objAssigningJurisdiction,
CWE objAssigningAgencyOrDepratment,
java.lang.String strSecurityCheck,
java.lang.String strSecurityCheckScheme)
Set the Entered By.
|
void |
setEnteredBy(XCN objEnteredBy)
Set the Entered By.
|
void |
setEnteredDateTime(DTM objEnteredDateTime)
Set the Entered Date/Time.
|
void |
setEnteredDateTime(java.lang.String strTime)
Set the Entered Date/Time.
|
void |
setMFNControlID(ST objmFNControlID)
Set the MFN Control ID.
|
void |
setMFNControlID(java.lang.String strAccidentDecription)
Set the MFN Control ID.
|
void |
setprimaryKeyValueMFE(ISingleCollection<IDataType> objPrimaryKeyValueMFEList)
Set the Primary Key Value MFE.
|
void |
setPrimaryKeyValueType(ISingleCollection<ID> objtempPrimaryKeyValueTypeList)
Set the Primary Key Value Type.
|
void |
setRecordLevelEventCode(ID objrecordLevelEventCode)
Set the Record Level Event Code.
|
void |
setRecordLevelEventCode(java.lang.String strQueryResponseStatus)
Set the Record Level Event Code.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic DTM getEffectiveDateTime()
public ST getMFNControlID()
public ISingleCollection<IDataType> getPrimaryKeyValueMFE()
public ISingleCollection<ID> getPrimaryKeyValueType()
public ID getRecordLevelEventCode()
public DTM getEnteredDateTime()
public XCN getEnteredBy()
public void addprimaryKeyValueMFE(IDataType objPrimaryKeyValueMFE)
objPrimaryKeyValueMFE - Used as PrimaryKeyValueMFE.public void setprimaryKeyValueMFE(ISingleCollection<IDataType> objPrimaryKeyValueMFEList)
objPrimaryKeyValueMFEList - List Used as PrimaryKeyValueMFE.public void setEffectiveDateTime(java.lang.String strTime)
strTime - Specifies a point in time using a 24-hour clock notation.strDegreeOfPrecision - The degree of precision of the time stamp .Suggested Values Y,L,D,H,M,S [Refer to HL7 Table 0529].public void setEffectiveDateTime(DTM objeffectiveDateTime)
objeffectiveDateTime - object of Effective Date Timepublic void setMFNControlID(java.lang.String strAccidentDecription)
strAccidentDecription - Used as AccidentDecription.public void setMFNControlID(ST objmFNControlID)
objmFNControlID - object of MFN Control ID.public void addPrimaryKeyValueType(java.lang.String strCharacterSet)
strCharacterSet - USed as CharacterSet.public void addPrimaryKeyValueType(ID objtempPrimaryKeyValueType)
objtempPrimaryKeyValueType - object of Primary Key Value Type.public void setPrimaryKeyValueType(ISingleCollection<ID> objtempPrimaryKeyValueTypeList)
objtempPrimaryKeyValueTypeList - List of Primary Key Value Type.public void setRecordLevelEventCode(java.lang.String strQueryResponseStatus)
strQueryResponseStatus - Used as QueryResponseStatus.public void setRecordLevelEventCode(ID objrecordLevelEventCode)
objrecordLevelEventCode - object of Record Level Event Code.public void setEnteredBy(java.lang.String strIDNumber,
FN objFamilyName,
java.lang.String strGivenName,
java.lang.String strSecondAndFurtherGivenNamesOrInitialsThereof,
java.lang.String strSuffix,
java.lang.String strPrefix,
CWE objSourceTable,
HD objAssigningAuthority,
java.lang.String strNameTypeCode,
java.lang.String strIdentifierCheckDigit,
java.lang.String strCheckDigitScheme,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
CWE objNameContext,
java.lang.String strNameAssemblyOrder,
java.lang.String strEffectiveDate,
java.lang.String strExpirationDate,
java.lang.String strProfessionalSuffix,
CWE objAssigningJurisdiction,
CWE objAssigningAgencyOrDepratment,
java.lang.String strSecurityCheck,
java.lang.String strSecurityCheckScheme)
strIDNumber - Refers to the coded ID according to a user-defined tableobjFamilyName - Specifies the surname of a person.strGivenName - Specifies First name.strSecondAndFurtherGivenNamesOrInitialsThereof - Specifies multiple middle names that may be included by
separating them with spaces.strSuffix - Used to specify a name suffix (e.g., Jr. or III).strPrefix - Used to specify a name prefix (e.g., Dr.).strSourceTable - Used as the HL7 identifier for the user-defined table of values for this component. [Refer User-defined Table 0297 - CN ID.]objAssigningAuthority - Specifies a unique identifier of the system (or organization or agency of department)
that creates the data. [Refer User-defined Table 0363 - Assigning authority]strNameTypeCode - Specifies a code that represents the type of name.strIdentifierCheckDigit - Specifies part of the identifying number used in the sending application.strCheckDigitScheme - Specifies the code identifying the check digit scheme employed.[Refer HL7 Table 0061 - Check digit scheme].strIdentifierTypeCode - Specifies A code corresponding to the type of identifier.[Refer HL7 Table 0203 - Identifier type].objAssigningFacility - Specifies the place or location identifier where the identifier was first assigned to the personstrNameRepresentationCode - Provides an indication of the representation provided by the data item.objNameContext - Designates the context in which a name is used. [Refer User-defined Table 0448 ]strNameAssemblyOrder - Specifies a code that represents the preferred display order of the components of this person name. Suggested values are G,F[Refer table 0444.]strEffectiveDate - Specifies the first date, if known, on which the address is valid and active.strExpirationDate - Specifies the last date, if known, on which the address is valid and active.strProfessionalSuffix - Used to specify an abbreviation, or a string of abbreviations, denoting qualifications that support the person's profession, (e.g., licenses).objAssigningJurisdiction - Specifies the geo-political body that assigned the identifier.objAssigningAgencyOrDepratment - Specifies the agency or department that assigned the identifierstrSecurityCheck - Specifies the version code that may be assigned to the person identifierstrSecurityCheckScheme - Specifies the check digit scheme.public void setEnteredBy(XCN objEnteredBy)
objEnteredBy - public int parse(java.lang.String strSegmentStream,
IDelimiter objIDelimiter)
throws InvalidSegmentException,
java.io.IOException
parse in interface ISegmentparse in class SegmentstrHL7segmentString - Object of HL7Stream.objIDelimiter - Object of class Delimiter.InvalidSegmentException - Thrown when Segment Validation Fails.java.io.IOException - Signals that an I/O exception of some sort has occurred.public void setEnteredDateTime(java.lang.String strTime)
strTime - The point in timepublic void setEnteredDateTime(DTM objEnteredDateTime)
objEnteredDateTime - public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails