org.milyn.edi.unedifact.d01a.MEDPRE.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d01a.MEDPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d01a.common.LINLineItem;
import java.util.List;
import org.milyn.edi.unedifact.d01a.common.CINClinicalInformation;
import org.milyn.edi.unedifact.d01a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d01a.common.PNAPartyIdentification;
import org.milyn.edi.unedifact.d01a.common.LANLanguage;
import org.milyn.edi.unedifact.d01a.common.FTXFreeText;
import org.milyn.edi.unedifact.d01a.common.RSLResult;
import org.milyn.edi.unedifact.d01a.common.CLIClinicalIntervention;
import org.milyn.edi.unedifact.d01a.common.CCICharacteristicClassId;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private LINLineItem lINLineItem;
private List cINClinicalInformation;
private List dTMDateTimePeriod;
private List pNAPartyIdentification;
private LANLanguage lANLanguage;
private List fTXFreeText;
private RSLResult rSLResult;
private List cLIClinicalIntervention;
private List cCICharacteristicClassId;
private SegmentGroup8 segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lINLineItem != null) {
nodeWriter.write("LIN");
nodeWriter.write(delimiters.getField());
lINLineItem.write(nodeWriter, delimiters);
}
if(cINClinicalInformation != null && !cINClinicalInformation.isEmpty()) {
for(CINClinicalInformation cINClinicalInformationInst : cINClinicalInformation) {
nodeWriter.write("CIN");
nodeWriter.write(delimiters.getField());
cINClinicalInformationInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyIdentificationInst.write(nodeWriter, delimiters);
}
}
if(lANLanguage != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
lANLanguage.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(rSLResult != null) {
nodeWriter.write("RSL");
nodeWriter.write(delimiters.getField());
rSLResult.write(nodeWriter, delimiters);
}
if(cLIClinicalIntervention != null && !cLIClinicalIntervention.isEmpty()) {
for(CLIClinicalIntervention cLIClinicalInterventionInst : cLIClinicalIntervention) {
nodeWriter.write("CLI");
nodeWriter.write(delimiters.getField());
cLIClinicalInterventionInst.write(nodeWriter, delimiters);
}
}
if(cCICharacteristicClassId != null && !cCICharacteristicClassId.isEmpty()) {
for(CCICharacteristicClassId cCICharacteristicClassIdInst : cCICharacteristicClassId) {
nodeWriter.write("CCI");
nodeWriter.write(delimiters.getField());
cCICharacteristicClassIdInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null) {
segmentGroup8.write(nodeWriter, delimiters);
}
}
public LINLineItem getLINLineItem() {
return lINLineItem;
}
public SegmentGroup7 setLINLineItem(LINLineItem lINLineItem) {
this.lINLineItem = lINLineItem; return this;
}
public List getCINClinicalInformation() {
return cINClinicalInformation;
}
public SegmentGroup7 setCINClinicalInformation(List cINClinicalInformation) {
this.cINClinicalInformation = cINClinicalInformation; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup7 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup7 setPNAPartyIdentification(List pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public LANLanguage getLANLanguage() {
return lANLanguage;
}
public SegmentGroup7 setLANLanguage(LANLanguage lANLanguage) {
this.lANLanguage = lANLanguage; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup7 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public RSLResult getRSLResult() {
return rSLResult;
}
public SegmentGroup7 setRSLResult(RSLResult rSLResult) {
this.rSLResult = rSLResult; return this;
}
public List getCLIClinicalIntervention() {
return cLIClinicalIntervention;
}
public SegmentGroup7 setCLIClinicalIntervention(List cLIClinicalIntervention) {
this.cLIClinicalIntervention = cLIClinicalIntervention; return this;
}
public List getCCICharacteristicClassId() {
return cCICharacteristicClassId;
}
public SegmentGroup7 setCCICharacteristicClassId(List cCICharacteristicClassId) {
this.cCICharacteristicClassId = cCICharacteristicClassId; return this;
}
public SegmentGroup8 getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(SegmentGroup8 segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}