org.milyn.edi.unedifact.d06b.MEDRPT.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.MEDRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.Status;
import org.milyn.edi.unedifact.d06b.common.SequenceDetails;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.Result;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.CharacteristicClassId;
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.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Status status;
private SequenceDetails sequenceDetails;
private ProcessingInformation processingInformation;
private Result result;
private List characteristicClassId;
private List clinicalInformation;
private List dateTimePeriod;
private List freeText;
private List reference;
private List segmentGroup10;
private List segmentGroup11;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.write(nodeWriter, delimiters);
}
if(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
if(processingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformation.write(nodeWriter, delimiters);
}
if(result != null) {
nodeWriter.write("RSL");
nodeWriter.write(delimiters.getField());
result.write(nodeWriter, delimiters);
}
if(characteristicClassId != null && !characteristicClassId.isEmpty()) {
for(CharacteristicClassId characteristicClassIdInst : characteristicClassId) {
nodeWriter.write("CCI");
nodeWriter.write(delimiters.getField());
characteristicClassIdInst.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(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
}
public Status getStatus() {
return status;
}
public SegmentGroup9 setStatus(Status status) {
this.status = status; return this;
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public SegmentGroup9 setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
public ProcessingInformation getProcessingInformation() {
return processingInformation;
}
public SegmentGroup9 setProcessingInformation(ProcessingInformation processingInformation) {
this.processingInformation = processingInformation; return this;
}
public Result getResult() {
return result;
}
public SegmentGroup9 setResult(Result result) {
this.result = result; return this;
}
public List getCharacteristicClassId() {
return characteristicClassId;
}
public SegmentGroup9 setCharacteristicClassId(List characteristicClassId) {
this.characteristicClassId = characteristicClassId; return this;
}
public List getClinicalInformation() {
return clinicalInformation;
}
public SegmentGroup9 setClinicalInformation(List clinicalInformation) {
this.clinicalInformation = clinicalInformation; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup9 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup9 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup9 setReference(List reference) {
this.reference = reference; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup9 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
}