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

org.virtuslab.edi.unedifact.d99a.MEDREQ.SegmentGroup7 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.virtuslab.edi.unedifact.d99a.MEDREQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d99a.common.CAVCharacteristicValue;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d99a.common.CINClinicalInformation;    
import org.virtuslab.edi.unedifact.d99a.common.LANLanguage;    
import org.virtuslab.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.virtuslab.edi.unedifact.d99a.common.FTXFreeText;    
import org.virtuslab.edi.unedifact.d99a.common.RFFReference;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup7 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private CAVCharacteristicValue cAVCharacteristicValue;
    private List cINClinicalInformation;
    private List lANLanguage;
    private List dTMDateTimePeriod;
    private List fTXFreeText;
    private List rFFReference;
    private List segmentGroup8;
    private List segmentGroup11;

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

        if(cAVCharacteristicValue != null) {
            nodeWriter.write("CAV");
            nodeWriter.write(delimiters.getField());
            cAVCharacteristicValue.write(nodeWriter, delimiters);
        }
        if(cINClinicalInformation != null && !cINClinicalInformation.isEmpty()) {
            for(CINClinicalInformation cINClinicalInformationInst : cINClinicalInformation) {
                nodeWriter.write("CIN");
                nodeWriter.write(delimiters.getField());
                cINClinicalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(lANLanguage != null && !lANLanguage.isEmpty()) {
            for(LANLanguage lANLanguageInst : lANLanguage) {
                nodeWriter.write("LAN");
                nodeWriter.write(delimiters.getField());
                lANLanguageInst.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(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public CAVCharacteristicValue getCAVCharacteristicValue() {
        return cAVCharacteristicValue;
    }

    public SegmentGroup7 setCAVCharacteristicValue(CAVCharacteristicValue cAVCharacteristicValue) {
        this.cAVCharacteristicValue = cAVCharacteristicValue;  return this;
    }

    public List getCINClinicalInformation() {
        return cINClinicalInformation;
    }

    public SegmentGroup7 setCINClinicalInformation(List cINClinicalInformation) {
        this.cINClinicalInformation = cINClinicalInformation;  return this;
    }

    public List getLANLanguage() {
        return lANLanguage;
    }

    public SegmentGroup7 setLANLanguage(List lANLanguage) {
        this.lANLanguage = lANLanguage;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup7 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup7 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup7 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

    public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
        this.segmentGroup8 = segmentGroup8;  return this;
    }

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

    public SegmentGroup7 setSegmentGroup11(List segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy