org.milyn.edi.unedifact.d06b.MEDREQ.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.MEDREQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.CharacteristicClassId;
import org.milyn.edi.unedifact.d06b.common.Priority;
import org.milyn.edi.unedifact.d06b.common.Quantity;
import org.milyn.edi.unedifact.d06b.common.ClinicalInformation;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import org.milyn.edi.unedifact.d06b.common.TestMethod;
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.HandlingInstructions;
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 ProcessingInformation processingInformation;
private List characteristicClassId;
private List priority;
private Quantity quantity;
private List clinicalInformation;
private List dateTimePeriod;
private List freeText;
private List testMethod;
private List monetaryAmount;
private List reference;
private HandlingInstructions handlingInstructions;
private List segmentGroup16;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(processingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformation.write(nodeWriter, delimiters);
}
if(characteristicClassId != null && !characteristicClassId.isEmpty()) {
for(CharacteristicClassId characteristicClassIdInst : characteristicClassId) {
nodeWriter.write("CCI");
nodeWriter.write(delimiters.getField());
characteristicClassIdInst.write(nodeWriter, delimiters);
}
}
if(priority != null && !priority.isEmpty()) {
for(Priority priorityInst : priority) {
nodeWriter.write("PTY");
nodeWriter.write(delimiters.getField());
priorityInst.write(nodeWriter, delimiters);
}
}
if(quantity != null) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantity.write(nodeWriter, delimiters);
}
if(clinicalInformation != null && !clinicalInformation.isEmpty()) {
for(ClinicalInformation clinicalInformationInst : clinicalInformation) {
nodeWriter.write("CIN");
nodeWriter.write(delimiters.getField());
clinicalInformationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(testMethod != null && !testMethod.isEmpty()) {
for(TestMethod testMethodInst : testMethod) {
nodeWriter.write("TEM");
nodeWriter.write(delimiters.getField());
testMethodInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(handlingInstructions != null) {
nodeWriter.write("HAN");
nodeWriter.write(delimiters.getField());
handlingInstructions.write(nodeWriter, delimiters);
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
}
public ProcessingInformation getProcessingInformation() {
return processingInformation;
}
public SegmentGroup15 setProcessingInformation(ProcessingInformation processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getCharacteristicClassId() {
return characteristicClassId;
}
public SegmentGroup15 setCharacteristicClassId(List characteristicClassId) {
this.characteristicClassId = characteristicClassId; return this;
}
public List getPriority() {
return priority;
}
public SegmentGroup15 setPriority(List priority) {
this.priority = priority; return this;
}
public Quantity getQuantity() {
return quantity;
}
public SegmentGroup15 setQuantity(Quantity quantity) {
this.quantity = quantity; return this;
}
public List getClinicalInformation() {
return clinicalInformation;
}
public SegmentGroup15 setClinicalInformation(List clinicalInformation) {
this.clinicalInformation = clinicalInformation; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup15 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup15 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getTestMethod() {
return testMethod;
}
public SegmentGroup15 setTestMethod(List testMethod) {
this.testMethod = testMethod; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup15 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup15 setReference(List reference) {
this.reference = reference; return this;
}
public HandlingInstructions getHandlingInstructions() {
return handlingInstructions;
}
public SegmentGroup15 setHandlingInstructions(HandlingInstructions handlingInstructions) {
this.handlingInstructions = handlingInstructions; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup15 setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
}