org.milyn.edi.unedifact.d98a.MEDREQ.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.MEDREQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.CLIClinicalIntervention;
import org.milyn.edi.unedifact.d98a.common.IMDItemDescription;
import org.milyn.edi.unedifact.d98a.common.DSGDosageAdministration;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.FTXFreeText;
import org.milyn.edi.unedifact.d98a.common.QTYQuantity;
import org.milyn.edi.unedifact.d98a.common.INPPartiesAndInstruction;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup14 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 SegmentGroup14 setCLIClinicalIntervention(CLIClinicalIntervention cLIClinicalIntervention) {
this.cLIClinicalIntervention = cLIClinicalIntervention; return this;
}
public IMDItemDescription getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup14 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public DSGDosageAdministration getDSGDosageAdministration() {
return dSGDosageAdministration;
}
public SegmentGroup14 setDSGDosageAdministration(DSGDosageAdministration dSGDosageAdministration) {
this.dSGDosageAdministration = dSGDosageAdministration; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup14 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup14 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public QTYQuantity getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup14 setQTYQuantity(QTYQuantity qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getINPPartiesAndInstruction() {
return iNPPartiesAndInstruction;
}
public SegmentGroup14 setINPPartiesAndInstruction(List iNPPartiesAndInstruction) {
this.iNPPartiesAndInstruction = iNPPartiesAndInstruction; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy