/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/beans/PatientMedicationVoBean.java
//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.core.vo.beans;

public class PatientMedicationVoBean extends ims.vo.ValueObjectBean
{
	public PatientMedicationVoBean()
	{
	}
	public PatientMedicationVoBean(ims.core.vo.PatientMedicationVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.medication = vo.getMedication() == null ? null : (ims.core.vo.beans.MedicationLiteVoBean)vo.getMedication().getBean();
		this.othermedicationtext = vo.getOtherMedicationText();
		this.prescribeddoses = vo.getPrescribedDoses() == null ? null : vo.getPrescribedDoses().getBeanCollection();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.frequency = vo.getFrequency() == null ? null : (ims.vo.LookupInstanceBean)vo.getFrequency().getBean();
		this.sourceofinformation = vo.getSourceofInformation() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceofInformation().getBean();
		this.commenceddate = vo.getCommencedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCommencedDate().getBean();
		this.nodayssupply = vo.getNoDaysSupply();
		this.batchno = vo.getBatchNo();
		this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean();
		this.isdiscontinued = vo.getIsDiscontinued();
		this.difficultieswithmed = vo.getDifficultiesWithMed();
		this.supplied = vo.getSupplied() == null ? null : (ims.vo.LookupInstanceBean)vo.getSupplied().getBean();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : (ims.core.vo.beans.ClinicalContactShortVoBean)vo.getClinicalContact().getBean();
		this.inpossession = vo.getInPossession();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.ismedicationonadmission = vo.getIsMedicationonAdmission();
		this.isdischargemedication = vo.getIsDischargeMedication();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.hcpcommenced = vo.getHcpCommenced() == null ? null : (ims.core.vo.beans.HcpBean)vo.getHcpCommenced().getBean();
		this.isintto = vo.getIsInTTO();
		this.isdiscontinuedhcp = vo.getIsDiscontinuedHcp() == null ? null : (ims.core.vo.beans.HcpBean)vo.getIsDiscontinuedHcp().getBean();
		this.isdiscontinueddate = vo.getIsDiscontinuedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getIsDiscontinuedDate().getBean();
		this.isdiscontinuedreason = vo.getIsDiscontinuedReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getIsDiscontinuedReason().getBean();
		this.isdiscontinuedreasontext = vo.getIsDiscontinuedReasonText();
		this.iscopied = vo.getIsCopied();
		this.commencedbytype = vo.getCommencedByType() == null ? null : (ims.vo.LookupInstanceBean)vo.getCommencedByType().getBean();
		this.discontinuedbytype = vo.getDiscontinuedByType() == null ? null : (ims.vo.LookupInstanceBean)vo.getDiscontinuedByType().getBean();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean();
		this.selfmedicating = vo.getSelfMedicating();
		this.recordinginformation = vo.getRecordingInformation() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInformation().getBean();
		this.comment = vo.getComment();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PatientMedicationVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.medication = vo.getMedication() == null ? null : (ims.core.vo.beans.MedicationLiteVoBean)vo.getMedication().getBean(map);
		this.othermedicationtext = vo.getOtherMedicationText();
		this.prescribeddoses = vo.getPrescribedDoses() == null ? null : vo.getPrescribedDoses().getBeanCollection();
		this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
		this.frequency = vo.getFrequency() == null ? null : (ims.vo.LookupInstanceBean)vo.getFrequency().getBean();
		this.sourceofinformation = vo.getSourceofInformation() == null ? null : (ims.vo.LookupInstanceBean)vo.getSourceofInformation().getBean();
		this.commenceddate = vo.getCommencedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getCommencedDate().getBean();
		this.nodayssupply = vo.getNoDaysSupply();
		this.batchno = vo.getBatchNo();
		this.expirydate = vo.getExpiryDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getExpiryDate().getBean();
		this.isdiscontinued = vo.getIsDiscontinued();
		this.difficultieswithmed = vo.getDifficultiesWithMed();
		this.supplied = vo.getSupplied() == null ? null : (ims.vo.LookupInstanceBean)vo.getSupplied().getBean();
		this.clinicalcontact = vo.getClinicalContact() == null ? null : (ims.core.vo.beans.ClinicalContactShortVoBean)vo.getClinicalContact().getBean(map);
		this.inpossession = vo.getInPossession();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.ismedicationonadmission = vo.getIsMedicationonAdmission();
		this.isdischargemedication = vo.getIsDischargeMedication();
		this.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean(vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion());
		this.hcpcommenced = vo.getHcpCommenced() == null ? null : (ims.core.vo.beans.HcpBean)vo.getHcpCommenced().getBean(map);
		this.isintto = vo.getIsInTTO();
		this.isdiscontinuedhcp = vo.getIsDiscontinuedHcp() == null ? null : (ims.core.vo.beans.HcpBean)vo.getIsDiscontinuedHcp().getBean(map);
		this.isdiscontinueddate = vo.getIsDiscontinuedDate() == null ? null : (ims.framework.utils.beans.DateBean)vo.getIsDiscontinuedDate().getBean();
		this.isdiscontinuedreason = vo.getIsDiscontinuedReason() == null ? null : (ims.vo.LookupInstanceBean)vo.getIsDiscontinuedReason().getBean();
		this.isdiscontinuedreasontext = vo.getIsDiscontinuedReasonText();
		this.iscopied = vo.getIsCopied();
		this.commencedbytype = vo.getCommencedByType() == null ? null : (ims.vo.LookupInstanceBean)vo.getCommencedByType().getBean();
		this.discontinuedbytype = vo.getDiscontinuedByType() == null ? null : (ims.vo.LookupInstanceBean)vo.getDiscontinuedByType().getBean();
		this.authoringinformation = vo.getAuthoringInformation() == null ? null : (ims.core.vo.beans.AuthoringInformationVoBean)vo.getAuthoringInformation().getBean(map);
		this.selfmedicating = vo.getSelfMedicating();
		this.recordinginformation = vo.getRecordingInformation() == null ? null : (ims.core.vo.beans.RecordingUserInformationVoBean)vo.getRecordingInformation().getBean(map);
		this.comment = vo.getComment();
	}

	public ims.core.vo.PatientMedicationVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.core.vo.PatientMedicationVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.core.vo.PatientMedicationVo vo = null;
		if(map != null)
			vo = (ims.core.vo.PatientMedicationVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.core.vo.PatientMedicationVo();
			map.addValueObject(this, vo);
			vo.populate(map, this);
		}
		return vo;
	}

	public Integer getId()
	{
		return this.id;
	}
	public void setId(Integer value)
	{
		this.id = value;
	}
	public int getVersion()
	{
		return this.version;
	}
	public void setVersion(int value)
	{
		this.version = value;
	}
	public ims.core.vo.beans.MedicationLiteVoBean getMedication()
	{
		return this.medication;
	}
	public void setMedication(ims.core.vo.beans.MedicationLiteVoBean value)
	{
		this.medication = value;
	}
	public String getOtherMedicationText()
	{
		return this.othermedicationtext;
	}
	public void setOtherMedicationText(String value)
	{
		this.othermedicationtext = value;
	}
	public ims.core.vo.beans.MedicationDoseBean[] getPrescribedDoses()
	{
		return this.prescribeddoses;
	}
	public void setPrescribedDoses(ims.core.vo.beans.MedicationDoseBean[] value)
	{
		this.prescribeddoses = value;
	}
	public ims.vo.RefVoBean getPatient()
	{
		return this.patient;
	}
	public void setPatient(ims.vo.RefVoBean value)
	{
		this.patient = value;
	}
	public ims.vo.LookupInstanceBean getFrequency()
	{
		return this.frequency;
	}
	public void setFrequency(ims.vo.LookupInstanceBean value)
	{
		this.frequency = value;
	}
	public ims.vo.LookupInstanceBean getSourceofInformation()
	{
		return this.sourceofinformation;
	}
	public void setSourceofInformation(ims.vo.LookupInstanceBean value)
	{
		this.sourceofinformation = value;
	}
	public ims.framework.utils.beans.DateBean getCommencedDate()
	{
		return this.commenceddate;
	}
	public void setCommencedDate(ims.framework.utils.beans.DateBean value)
	{
		this.commenceddate = value;
	}
	public Integer getNoDaysSupply()
	{
		return this.nodayssupply;
	}
	public void setNoDaysSupply(Integer value)
	{
		this.nodayssupply = value;
	}
	public String getBatchNo()
	{
		return this.batchno;
	}
	public void setBatchNo(String value)
	{
		this.batchno = value;
	}
	public ims.framework.utils.beans.DateBean getExpiryDate()
	{
		return this.expirydate;
	}
	public void setExpiryDate(ims.framework.utils.beans.DateBean value)
	{
		this.expirydate = value;
	}
	public Boolean getIsDiscontinued()
	{
		return this.isdiscontinued;
	}
	public void setIsDiscontinued(Boolean value)
	{
		this.isdiscontinued = value;
	}
	public String getDifficultiesWithMed()
	{
		return this.difficultieswithmed;
	}
	public void setDifficultiesWithMed(String value)
	{
		this.difficultieswithmed = value;
	}
	public ims.vo.LookupInstanceBean getSupplied()
	{
		return this.supplied;
	}
	public void setSupplied(ims.vo.LookupInstanceBean value)
	{
		this.supplied = value;
	}
	public ims.core.vo.beans.ClinicalContactShortVoBean getClinicalContact()
	{
		return this.clinicalcontact;
	}
	public void setClinicalContact(ims.core.vo.beans.ClinicalContactShortVoBean value)
	{
		this.clinicalcontact = value;
	}
	public Boolean getInPossession()
	{
		return this.inpossession;
	}
	public void setInPossession(Boolean value)
	{
		this.inpossession = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public Boolean getIsMedicationonAdmission()
	{
		return this.ismedicationonadmission;
	}
	public void setIsMedicationonAdmission(Boolean value)
	{
		this.ismedicationonadmission = value;
	}
	public Boolean getIsDischargeMedication()
	{
		return this.isdischargemedication;
	}
	public void setIsDischargeMedication(Boolean value)
	{
		this.isdischargemedication = value;
	}
	public ims.vo.RefVoBean getCareContext()
	{
		return this.carecontext;
	}
	public void setCareContext(ims.vo.RefVoBean value)
	{
		this.carecontext = value;
	}
	public ims.core.vo.beans.HcpBean getHcpCommenced()
	{
		return this.hcpcommenced;
	}
	public void setHcpCommenced(ims.core.vo.beans.HcpBean value)
	{
		this.hcpcommenced = value;
	}
	public Boolean getIsInTTO()
	{
		return this.isintto;
	}
	public void setIsInTTO(Boolean value)
	{
		this.isintto = value;
	}
	public ims.core.vo.beans.HcpBean getIsDiscontinuedHcp()
	{
		return this.isdiscontinuedhcp;
	}
	public void setIsDiscontinuedHcp(ims.core.vo.beans.HcpBean value)
	{
		this.isdiscontinuedhcp = value;
	}
	public ims.framework.utils.beans.DateBean getIsDiscontinuedDate()
	{
		return this.isdiscontinueddate;
	}
	public void setIsDiscontinuedDate(ims.framework.utils.beans.DateBean value)
	{
		this.isdiscontinueddate = value;
	}
	public ims.vo.LookupInstanceBean getIsDiscontinuedReason()
	{
		return this.isdiscontinuedreason;
	}
	public void setIsDiscontinuedReason(ims.vo.LookupInstanceBean value)
	{
		this.isdiscontinuedreason = value;
	}
	public String getIsDiscontinuedReasonText()
	{
		return this.isdiscontinuedreasontext;
	}
	public void setIsDiscontinuedReasonText(String value)
	{
		this.isdiscontinuedreasontext = value;
	}
	public Boolean getIsCopied()
	{
		return this.iscopied;
	}
	public void setIsCopied(Boolean value)
	{
		this.iscopied = value;
	}
	public ims.vo.LookupInstanceBean getCommencedByType()
	{
		return this.commencedbytype;
	}
	public void setCommencedByType(ims.vo.LookupInstanceBean value)
	{
		this.commencedbytype = value;
	}
	public ims.vo.LookupInstanceBean getDiscontinuedByType()
	{
		return this.discontinuedbytype;
	}
	public void setDiscontinuedByType(ims.vo.LookupInstanceBean value)
	{
		this.discontinuedbytype = value;
	}
	public ims.core.vo.beans.AuthoringInformationVoBean getAuthoringInformation()
	{
		return this.authoringinformation;
	}
	public void setAuthoringInformation(ims.core.vo.beans.AuthoringInformationVoBean value)
	{
		this.authoringinformation = value;
	}
	public Boolean getSelfMedicating()
	{
		return this.selfmedicating;
	}
	public void setSelfMedicating(Boolean value)
	{
		this.selfmedicating = value;
	}
	public ims.core.vo.beans.RecordingUserInformationVoBean getRecordingInformation()
	{
		return this.recordinginformation;
	}
	public void setRecordingInformation(ims.core.vo.beans.RecordingUserInformationVoBean value)
	{
		this.recordinginformation = value;
	}
	public String getComment()
	{
		return this.comment;
	}
	public void setComment(String value)
	{
		this.comment = value;
	}

	private Integer id;
	private int version;
	private ims.core.vo.beans.MedicationLiteVoBean medication;
	private String othermedicationtext;
	private ims.core.vo.beans.MedicationDoseBean[] prescribeddoses;
	private ims.vo.RefVoBean patient;
	private ims.vo.LookupInstanceBean frequency;
	private ims.vo.LookupInstanceBean sourceofinformation;
	private ims.framework.utils.beans.DateBean commenceddate;
	private Integer nodayssupply;
	private String batchno;
	private ims.framework.utils.beans.DateBean expirydate;
	private Boolean isdiscontinued;
	private String difficultieswithmed;
	private ims.vo.LookupInstanceBean supplied;
	private ims.core.vo.beans.ClinicalContactShortVoBean clinicalcontact;
	private Boolean inpossession;
	private ims.vo.SysInfoBean sysinfo;
	private Boolean ismedicationonadmission;
	private Boolean isdischargemedication;
	private ims.vo.RefVoBean carecontext;
	private ims.core.vo.beans.HcpBean hcpcommenced;
	private Boolean isintto;
	private ims.core.vo.beans.HcpBean isdiscontinuedhcp;
	private ims.framework.utils.beans.DateBean isdiscontinueddate;
	private ims.vo.LookupInstanceBean isdiscontinuedreason;
	private String isdiscontinuedreasontext;
	private Boolean iscopied;
	private ims.vo.LookupInstanceBean commencedbytype;
	private ims.vo.LookupInstanceBean discontinuedbytype;
	private ims.core.vo.beans.AuthoringInformationVoBean authoringinformation;
	private Boolean selfmedicating;
	private ims.core.vo.beans.RecordingUserInformationVoBean recordinginformation;
	private String comment;
}
