org.milyn.edi.unedifact.d98a.MEDRPT.SegmentGroup16 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.MEDRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.LineItem;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import org.milyn.edi.unedifact.d98a.common.Result;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.CharacteristicClassId;
import org.milyn.edi.unedifact.d98a.common.ClinicalInformation;
import org.milyn.edi.unedifact.d98a.common.SequenceDetails;
import org.milyn.edi.unedifact.d98a.common.Status;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.EquipmentDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup16 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private LineItem lineItem;
private GeneralIndicator generalIndicator;
private Result result;
private List characteristicClassId;
private List clinicalInformation;
private SequenceDetails sequenceDetails;
private Status status;
private List dateTimePeriod;
private List freeText;
private List monetaryAmount;
private List reference;
private List equipmentDetails;
private List segmentGroup17;
private List segmentGroup18;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lineItem != null) {
nodeWriter.write("LIN");
nodeWriter.write(delimiters.getField());
lineItem.write(nodeWriter, delimiters);
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.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(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.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(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(equipmentDetails != null && !equipmentDetails.isEmpty()) {
for(EquipmentDetails equipmentDetailsInst : equipmentDetails) {
nodeWriter.write("EQD");
nodeWriter.write(delimiters.getField());
equipmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
}
public LineItem getLineItem() {
return lineItem;
}
public SegmentGroup16 setLineItem(LineItem lineItem) {
this.lineItem = lineItem; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup16 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public Result getResult() {
return result;
}
public SegmentGroup16 setResult(Result result) {
this.result = result; return this;
}
public List getCharacteristicClassId() {
return characteristicClassId;
}
public SegmentGroup16 setCharacteristicClassId(List characteristicClassId) {
this.characteristicClassId = characteristicClassId; return this;
}
public List getClinicalInformation() {
return clinicalInformation;
}
public SegmentGroup16 setClinicalInformation(List clinicalInformation) {
this.clinicalInformation = clinicalInformation; return this;
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public SegmentGroup16 setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
public Status getStatus() {
return status;
}
public SegmentGroup16 setStatus(Status status) {
this.status = status; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup16 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup16 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup16 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup16 setReference(List reference) {
this.reference = reference; return this;
}
public List getEquipmentDetails() {
return equipmentDetails;
}
public SegmentGroup16 setEquipmentDetails(List equipmentDetails) {
this.equipmentDetails = equipmentDetails; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup16 setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup16 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy