org.milyn.edi.unedifact.d99b.MEDREQ.SegmentGroup2 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.MEDREQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.FinancialChargesAllocation;
import org.milyn.edi.unedifact.d99b.common.GeneralIndicator;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.Reference;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.Priority;
import org.milyn.edi.unedifact.d99b.common.ClinicalInformation;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import org.milyn.edi.unedifact.d99b.common.Language;
import org.milyn.edi.unedifact.d99b.common.Package;
import org.milyn.edi.unedifact.d99b.common.InformationRequired;
import org.milyn.edi.unedifact.d99b.common.TestMethod;
import org.milyn.edi.unedifact.d99b.common.HandlingInstructions;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup2 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private FinancialChargesAllocation financialChargesAllocation;
private GeneralIndicator generalIndicator;
private List reference;
private List dateTimePeriod;
private Priority priority;
private List clinicalInformation;
private List freeText;
private List language;
private Package _package;
private InformationRequired informationRequired;
private List testMethod;
private HandlingInstructions handlingInstructions;
private List segmentGroup3;
private List segmentGroup4;
private List segmentGroup5;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(financialChargesAllocation != null) {
nodeWriter.write("FCA");
nodeWriter.write(delimiters.getField());
financialChargesAllocation.write(nodeWriter, delimiters);
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(priority != null) {
nodeWriter.write("PTY");
nodeWriter.write(delimiters.getField());
priority.write(nodeWriter, delimiters);
}
if(clinicalInformation != null && !clinicalInformation.isEmpty()) {
for(ClinicalInformation clinicalInformationInst : clinicalInformation) {
nodeWriter.write("CIN");
nodeWriter.write(delimiters.getField());
clinicalInformationInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(language != null && !language.isEmpty()) {
for(Language languageInst : language) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
languageInst.write(nodeWriter, delimiters);
}
}
if(_package != null) {
nodeWriter.write("PAC");
nodeWriter.write(delimiters.getField());
_package.write(nodeWriter, delimiters);
}
if(informationRequired != null) {
nodeWriter.write("IRQ");
nodeWriter.write(delimiters.getField());
informationRequired.write(nodeWriter, delimiters);
}
if(testMethod != null && !testMethod.isEmpty()) {
for(TestMethod testMethodInst : testMethod) {
nodeWriter.write("TEM");
nodeWriter.write(delimiters.getField());
testMethodInst.write(nodeWriter, delimiters);
}
}
if(handlingInstructions != null) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructions.write(nodeWriter, delimiters);
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
}
public FinancialChargesAllocation getFinancialChargesAllocation() {
return financialChargesAllocation;
}
public SegmentGroup2 setFinancialChargesAllocation(FinancialChargesAllocation financialChargesAllocation) {
this.financialChargesAllocation = financialChargesAllocation; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup2 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup2 setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup2 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Priority getPriority() {
return priority;
}
public SegmentGroup2 setPriority(Priority priority) {
this.priority = priority; return this;
}
public List getClinicalInformation() {
return clinicalInformation;
}
public SegmentGroup2 setClinicalInformation(List clinicalInformation) {
this.clinicalInformation = clinicalInformation; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup2 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getLanguage() {
return language;
}
public SegmentGroup2 setLanguage(List language) {
this.language = language; return this;
}
public Package get_package() {
return _package;
}
public SegmentGroup2 set_package(Package _package) {
this._package = _package; return this;
}
public InformationRequired getInformationRequired() {
return informationRequired;
}
public SegmentGroup2 setInformationRequired(InformationRequired informationRequired) {
this.informationRequired = informationRequired; return this;
}
public List getTestMethod() {
return testMethod;
}
public SegmentGroup2 setTestMethod(List testMethod) {
this.testMethod = testMethod; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup2 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup2 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup2 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}