All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d05a.MEDRUC.SegmentGroup15 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d05a.MEDRUC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.ClinicalIntervention;    
import org.milyn.edi.unedifact.d05a.common.ProcessingInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.ItemDescription;    
import org.milyn.edi.unedifact.d05a.common.ClinicalInformation;    
import org.milyn.edi.unedifact.d05a.common.PartyIdentification;    
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.Reference;    
import org.milyn.edi.unedifact.d05a.common.FreeText;    
import org.milyn.edi.unedifact.d05a.common.Quantity;    
import org.milyn.edi.unedifact.d05a.common.PercentageDetails;    
import org.milyn.edi.unedifact.d05a.common.Package;    
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 ClinicalIntervention clinicalIntervention;
    private ProcessingInformation processingInformation;
    private List itemDescription;
    private List clinicalInformation;
    private List partyIdentification;
    private List dateTimePeriod;
    private List reference;
    private List freeText;
    private List quantity;
    private List percentageDetails;
    private List _package;
    private List segmentGroup16;
    private List segmentGroup17;
    private List segmentGroup18;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(clinicalIntervention != null) {
            nodeWriter.write("CLI");
            nodeWriter.write(delimiters.getField());
            clinicalIntervention.write(nodeWriter, delimiters);
        }
        if(processingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            processingInformation.write(nodeWriter, delimiters);
        }
        if(itemDescription != null && !itemDescription.isEmpty()) {
            for(ItemDescription itemDescriptionInst : itemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                itemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(clinicalInformation != null && !clinicalInformation.isEmpty()) {
            for(ClinicalInformation clinicalInformationInst : clinicalInformation) {
                nodeWriter.write("CIN");
                nodeWriter.write(delimiters.getField());
                clinicalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(partyIdentification != null && !partyIdentification.isEmpty()) {
            for(PartyIdentification partyIdentificationInst : partyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                partyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(percentageDetails != null && !percentageDetails.isEmpty()) {
            for(PercentageDetails percentageDetailsInst : percentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                percentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(_package != null && !_package.isEmpty()) {
            for(Package _packageInst : _package) {
                nodeWriter.write("PAC");
                nodeWriter.write(delimiters.getField());
                _packageInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
            for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
                segmentGroup16Inst.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 ClinicalIntervention getClinicalIntervention() {
        return clinicalIntervention;
    }

    public SegmentGroup15 setClinicalIntervention(ClinicalIntervention clinicalIntervention) {
        this.clinicalIntervention = clinicalIntervention;  return this;
    }

    public ProcessingInformation getProcessingInformation() {
        return processingInformation;
    }

    public SegmentGroup15 setProcessingInformation(ProcessingInformation processingInformation) {
        this.processingInformation = processingInformation;  return this;
    }

    public List getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup15 setItemDescription(List itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getClinicalInformation() {
        return clinicalInformation;
    }

    public SegmentGroup15 setClinicalInformation(List clinicalInformation) {
        this.clinicalInformation = clinicalInformation;  return this;
    }

    public List getPartyIdentification() {
        return partyIdentification;
    }

    public SegmentGroup15 setPartyIdentification(List partyIdentification) {
        this.partyIdentification = partyIdentification;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup15 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getReference() {
        return reference;
    }

    public SegmentGroup15 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup15 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getQuantity() {
        return quantity;
    }

    public SegmentGroup15 setQuantity(List quantity) {
        this.quantity = quantity;  return this;
    }

    public List getPercentageDetails() {
        return percentageDetails;
    }

    public SegmentGroup15 setPercentageDetails(List percentageDetails) {
        this.percentageDetails = percentageDetails;  return this;
    }

    public List get_package() {
        return _package;
    }

    public SegmentGroup15 set_package(List _package) {
        this._package = _package;  return this;
    }

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup15 setSegmentGroup16(List segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup15 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup15 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy