public class HL7BatchFile extends java.lang.Object implements IHL7BatchFile
| Constructor and Description |
|---|
HL7BatchFile()
Instantiates HL7BatchFile
|
HL7BatchFile(FHS objFHS,
FTS objFTS,
ISingleCollection<IHL7Batch> objHL7BatchCollection)
Instantiates HL7Batch batch with header and trailer segment provided.
|
| Modifier and Type | Method and Description |
|---|---|
FHS |
getBatchFileHeader()
Gets the batch file header.
|
FTS |
getBatchFileTrailer()
Gets the batch file trailer.
|
ISingleCollection<IHL7Batch> |
getHL7BatchCollection()
Gets the HL7Batch collection.
|
void |
setBatchFileHeader(FHS objBatchFileHeader)
Sets the batch file header.
|
void |
setBatchFileTrailer(FTS objBatchFileTrailer)
Sets the batch file trailer.
|
void |
setHL7BatchCollection(ISingleCollection<IHL7Batch> objHL7BatchCollection)
Sets the HL7Batch collection.
|
boolean |
validate()
Validates HL7 BatchFile objects.
|
public HL7BatchFile()
public HL7BatchFile(FHS objFHS, FTS objFTS, ISingleCollection<IHL7Batch> objHL7BatchCollection)
objFHS - Specified batch file header segmentobjFTS - Specified batch file trailer segmentobjHL7BatchCollection - Message Batch to be inserted in Batch file.public FHS getBatchFileHeader()
getBatchFileHeader in interface IHL7BatchFilepublic void setBatchFileHeader(FHS objBatchFileHeader)
setBatchFileHeader in interface IHL7BatchFileobjBatchFileHeader - the new batch file headerpublic FTS getBatchFileTrailer()
getBatchFileTrailer in interface IHL7BatchFilepublic void setBatchFileTrailer(FTS objBatchFileTrailer)
setBatchFileTrailer in interface IHL7BatchFileobjBatchFileTrailer - the new batch file trailerpublic ISingleCollection<IHL7Batch> getHL7BatchCollection()
getHL7BatchCollection in interface IHL7BatchFilepublic void setHL7BatchCollection(ISingleCollection<IHL7Batch> objHL7BatchCollection)
setHL7BatchCollection in interface IHL7BatchFileobjHL7BatchCollection - the new HL7Batch collectionpublic boolean validate()
throws BatchException
validate in interface IHL7BatchFileBatchException - the invalid HL7Batch exception