org.milyn.edi.unedifact.d05a.MEDRPT.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.MEDRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.CLIClinicalIntervention;
import org.milyn.edi.unedifact.d05a.common.IMDItemDescription;
import org.milyn.edi.unedifact.d05a.common.DSGDosageAdministration;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import org.milyn.edi.unedifact.d05a.common.QTYQuantity;
import org.milyn.edi.unedifact.d05a.common.INPPartiesAndInstruction;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup15 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CLIClinicalIntervention cLIClinicalIntervention;
private IMDItemDescription iMDItemDescription;
private DSGDosageAdministration dSGDosageAdministration;
private List dTMDateTimePeriod;
private List fTXFreeText;
private QTYQuantity qTYQuantity;
private List iNPPartiesAndInstruction;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cLIClinicalIntervention != null) {
nodeWriter.write("CLI");
nodeWriter.write(delimiters.getField());
cLIClinicalIntervention.write(nodeWriter, delimiters);
}
if(iMDItemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescription.write(nodeWriter, delimiters);
}
if(dSGDosageAdministration != null) {
nodeWriter.write("DSG");
nodeWriter.write(delimiters.getField());
dSGDosageAdministration.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantity.write(nodeWriter, delimiters);
}
if(iNPPartiesAndInstruction != null && !iNPPartiesAndInstruction.isEmpty()) {
for(INPPartiesAndInstruction iNPPartiesAndInstructionInst : iNPPartiesAndInstruction) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
iNPPartiesAndInstructionInst.write(nodeWriter, delimiters);
}
}
}
public CLIClinicalIntervention getCLIClinicalIntervention() {
return cLIClinicalIntervention;
}
public SegmentGroup15 setCLIClinicalIntervention(CLIClinicalIntervention cLIClinicalIntervention) {
this.cLIClinicalIntervention = cLIClinicalIntervention; return this;
}
public IMDItemDescription getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup15 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public DSGDosageAdministration getDSGDosageAdministration() {
return dSGDosageAdministration;
}
public SegmentGroup15 setDSGDosageAdministration(DSGDosageAdministration dSGDosageAdministration) {
this.dSGDosageAdministration = dSGDosageAdministration; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup15 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup15 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public QTYQuantity getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup15 setQTYQuantity(QTYQuantity qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getINPPartiesAndInstruction() {
return iNPPartiesAndInstruction;
}
public SegmentGroup15 setINPPartiesAndInstruction(List iNPPartiesAndInstruction) {
this.iNPPartiesAndInstruction = iNPPartiesAndInstruction; return this;
}
}