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

org.milyn.edi.unedifact.d99b.MEDPRE.SegmentGroup16 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.SequenceDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.DosageAdministration;    
import org.milyn.edi.unedifact.d99b.common.Quantity;    
import org.milyn.edi.unedifact.d99b.common.PartiesAndInstruction;    
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d99b.common.FreeText;    
import org.milyn.edi.unedifact.d99b.common.SchedulingConditions;    
import org.milyn.edi.unedifact.d99b.common.ClinicalInformation;    
import org.milyn.edi.unedifact.d99b.common.PackageIdentification;    
import org.milyn.edi.unedifact.d99b.common.Language;    
import org.milyn.edi.unedifact.d99b.common.AttachedEquipment;    
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 SequenceDetails sequenceDetails;
    private List dosageAdministration;
    private List quantity;
    private List partiesAndInstruction;
    private List dateTimePeriod;
    private List freeText;
    private List schedulingConditions;
    private List clinicalInformation;
    private List packageIdentification;
    private Language language;
    private List attachedEquipment;

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

        if(sequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sequenceDetails.write(nodeWriter, delimiters);
        }
        if(dosageAdministration != null && !dosageAdministration.isEmpty()) {
            for(DosageAdministration dosageAdministrationInst : dosageAdministration) {
                nodeWriter.write("DSG");
                nodeWriter.write(delimiters.getField());
                dosageAdministrationInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(partiesAndInstruction != null && !partiesAndInstruction.isEmpty()) {
            for(PartiesAndInstruction partiesAndInstructionInst : partiesAndInstruction) {
                nodeWriter.write("INP");
                nodeWriter.write(delimiters.getField());
                partiesAndInstructionInst.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(schedulingConditions != null && !schedulingConditions.isEmpty()) {
            for(SchedulingConditions schedulingConditionsInst : schedulingConditions) {
                nodeWriter.write("SCC");
                nodeWriter.write(delimiters.getField());
                schedulingConditionsInst.write(nodeWriter, delimiters);
            }
        }
        if(clinicalInformation != null && !clinicalInformation.isEmpty()) {
            for(ClinicalInformation clinicalInformationInst : clinicalInformation) {
                nodeWriter.write("CIN");
                nodeWriter.write(delimiters.getField());
                clinicalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(packageIdentification != null && !packageIdentification.isEmpty()) {
            for(PackageIdentification packageIdentificationInst : packageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                packageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(language != null) {
            nodeWriter.write("LAN");
            nodeWriter.write(delimiters.getField());
            language.write(nodeWriter, delimiters);
        }
        if(attachedEquipment != null && !attachedEquipment.isEmpty()) {
            for(AttachedEquipment attachedEquipmentInst : attachedEquipment) {
                nodeWriter.write("EQA");
                nodeWriter.write(delimiters.getField());
                attachedEquipmentInst.write(nodeWriter, delimiters);
            }
        }
    }

    public SequenceDetails getSequenceDetails() {
        return sequenceDetails;
    }

    public SegmentGroup16 setSequenceDetails(SequenceDetails sequenceDetails) {
        this.sequenceDetails = sequenceDetails;  return this;
    }

    public List getDosageAdministration() {
        return dosageAdministration;
    }

    public SegmentGroup16 setDosageAdministration(List dosageAdministration) {
        this.dosageAdministration = dosageAdministration;  return this;
    }

    public List getQuantity() {
        return quantity;
    }

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

    public List getPartiesAndInstruction() {
        return partiesAndInstruction;
    }

    public SegmentGroup16 setPartiesAndInstruction(List partiesAndInstruction) {
        this.partiesAndInstruction = partiesAndInstruction;  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 getSchedulingConditions() {
        return schedulingConditions;
    }

    public SegmentGroup16 setSchedulingConditions(List schedulingConditions) {
        this.schedulingConditions = schedulingConditions;  return this;
    }

    public List getClinicalInformation() {
        return clinicalInformation;
    }

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

    public List getPackageIdentification() {
        return packageIdentification;
    }

    public SegmentGroup16 setPackageIdentification(List packageIdentification) {
        this.packageIdentification = packageIdentification;  return this;
    }

    public Language getLanguage() {
        return language;
    }

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

    public List getAttachedEquipment() {
        return attachedEquipment;
    }

    public SegmentGroup16 setAttachedEquipment(List attachedEquipment) {
        this.attachedEquipment = attachedEquipment;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy