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

org.milyn.edi.unedifact.d99b.MEDPRE.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.d99b.MEDPRE;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.LineItem;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.ClinicalInformation;    
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d99b.common.PartyIdentification;    
import org.milyn.edi.unedifact.d99b.common.Language;    
import org.milyn.edi.unedifact.d99b.common.FreeText;    
import org.milyn.edi.unedifact.d99b.common.Result;    
import org.milyn.edi.unedifact.d99b.common.ClinicalIntervention;    
import org.milyn.edi.unedifact.d99b.common.CharacteristicClassId;    
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 LineItem lineItem;
    private List clinicalInformation;
    private List dateTimePeriod;
    private List partyIdentification;
    private Language language;
    private List freeText;
    private Result result;
    private List clinicalIntervention;
    private List characteristicClassId;
    private SegmentGroup8 segmentGroup8;

    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(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(partyIdentification != null && !partyIdentification.isEmpty()) {
            for(PartyIdentification partyIdentificationInst : partyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                partyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(language != null) {
            nodeWriter.write("LAN");
            nodeWriter.write(delimiters.getField());
            language.write(nodeWriter, delimiters);
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(result != null) {
            nodeWriter.write("RSL");
            nodeWriter.write(delimiters.getField());
            result.write(nodeWriter, delimiters);
        }
        if(clinicalIntervention != null && !clinicalIntervention.isEmpty()) {
            for(ClinicalIntervention clinicalInterventionInst : clinicalIntervention) {
                nodeWriter.write("CLI");
                nodeWriter.write(delimiters.getField());
                clinicalInterventionInst.write(nodeWriter, delimiters);
            }
        }
        if(characteristicClassId != null && !characteristicClassId.isEmpty()) {
            for(CharacteristicClassId characteristicClassIdInst : characteristicClassId) {
                nodeWriter.write("CCI");
                nodeWriter.write(delimiters.getField());
                characteristicClassIdInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null) {
            segmentGroup8.write(nodeWriter, delimiters);
        }
    }

    public LineItem getLineItem() {
        return lineItem;
    }

    public SegmentGroup7 setLineItem(LineItem lineItem) {
        this.lineItem = lineItem;  return this;
    }

    public List getClinicalInformation() {
        return clinicalInformation;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getPartyIdentification() {
        return partyIdentification;
    }

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

    public Language getLanguage() {
        return language;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public Result getResult() {
        return result;
    }

    public SegmentGroup7 setResult(Result result) {
        this.result = result;  return this;
    }

    public List getClinicalIntervention() {
        return clinicalIntervention;
    }

    public SegmentGroup7 setClinicalIntervention(List clinicalIntervention) {
        this.clinicalIntervention = clinicalIntervention;  return this;
    }

    public List getCharacteristicClassId() {
        return characteristicClassId;
    }

    public SegmentGroup7 setCharacteristicClassId(List characteristicClassId) {
        this.characteristicClassId = characteristicClassId;  return this;
    }

    public SegmentGroup8 getSegmentGroup8() {
        return segmentGroup8;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy