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

org.milyn.edi.unedifact.d02a.MEDREQ.SegmentGroup7 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.d02a.MEDREQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.CharacteristicValue;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.ClinicalInformation;    
import org.milyn.edi.unedifact.d02a.common.Language;    
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d02a.common.FreeText;    
import org.milyn.edi.unedifact.d02a.common.Reference;    
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 CharacteristicValue characteristicValue;
    private List clinicalInformation;
    private List language;
    private List dateTimePeriod;
    private List freeText;
    private List reference;
    private List segmentGroup8;
    private List segmentGroup11;

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

        if(characteristicValue != null) {
            nodeWriter.write("CAV");
            nodeWriter.write(delimiters.getField());
            characteristicValue.write(nodeWriter, delimiters);
        }
        if(clinicalInformation != null && !clinicalInformation.isEmpty()) {
            for(ClinicalInformation clinicalInformationInst : clinicalInformation) {
                nodeWriter.write("CIN");
                nodeWriter.write(delimiters.getField());
                clinicalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(language != null && !language.isEmpty()) {
            for(Language languageInst : language) {
                nodeWriter.write("LAN");
                nodeWriter.write(delimiters.getField());
                languageInst.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(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 CharacteristicValue getCharacteristicValue() {
        return characteristicValue;
    }

    public SegmentGroup7 setCharacteristicValue(CharacteristicValue characteristicValue) {
        this.characteristicValue = characteristicValue;  return this;
    }

    public List getClinicalInformation() {
        return clinicalInformation;
    }

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

    public List getLanguage() {
        return language;
    }

    public SegmentGroup7 setLanguage(List language) {
        this.language = language;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getReference() {
        return reference;
    }

    public SegmentGroup7 setReference(List reference) {
        this.reference = reference;  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