Java 类ims.nursing.vo.PasEventForClinicalAdmissionVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private Object getPASDetails() 
{
    if(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent() == null)
        return null;

    AdmissionDetailForClinicalAdmissionVo admission = domain.getPASAdmissionDetails(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    if(admission != null)
        return admission;

    PasEventForClinicalAdmissionVo pasEvent = domain.getPASEvent(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    return pasEvent;
}
项目:AvoinApotti    文件:Logic.java   
private void populatePASEventDetails(Object pasAdmissionDetails) 
{
    if(pasAdmissionDetails instanceof AdmissionDetailForClinicalAdmissionVo)
    {
        AdmissionDetailForClinicalAdmissionVo admission = (AdmissionDetailForClinicalAdmissionVo) pasAdmissionDetails;

        populatePASEvent(admission.getPasEvent());
        form.txtSource().setValue(admission.getSourceOfAdmissionIsNotNull() ? admission.getSourceOfAdmission().getIItemText() : null);
    }
    else if (pasAdmissionDetails instanceof PasEventForClinicalAdmissionVo)
    {
        populatePASEvent((PasEventForClinicalAdmissionVo) pasAdmissionDetails);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populatePASEvent(PasEventForClinicalAdmissionVo pasAdmissionDetails) 
{
    if(pasAdmissionDetails == null)
        return;

    form.txtDateTime().setValue(pasAdmissionDetails.getEventDateTime() != null ? pasAdmissionDetails.getEventDateTime().toString() : null);
    form.txtConsultant().setValue(pasAdmissionDetails.getConsultantIsNotNull() ? pasAdmissionDetails.getConsultant().getIMosName() : null);
    form.txtWard().setValue(pasAdmissionDetails.getLocationIsNotNull() ? pasAdmissionDetails.getLocation().getName() : null);
}
项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
public PasEventForClinicalAdmissionVo getPASEvent(PASEventRefVo pasEvent)
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    return PasEventForClinicalAdmissionVoAssembler.create((PASEvent) getDomainFactory().getDomainObject(PASEvent.class, pasEvent.getID_PASEvent()));
}
项目:openMAXIMS    文件:Logic.java   
private Object getPASDetails() 
{
    if(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent() == null)
        return null;

    AdmissionDetailForClinicalAdmissionVo admission = domain.getPASAdmissionDetails(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    if(admission != null)
        return admission;

    PasEventForClinicalAdmissionVo pasEvent = domain.getPASEvent(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    return pasEvent;
}
项目:openMAXIMS    文件:Logic.java   
private void populatePASEventDetails(Object pasAdmissionDetails) 
{
    if(pasAdmissionDetails instanceof AdmissionDetailForClinicalAdmissionVo)
    {
        AdmissionDetailForClinicalAdmissionVo admission = (AdmissionDetailForClinicalAdmissionVo) pasAdmissionDetails;

        populatePASEvent(admission.getPasEvent());
        form.txtSource().setValue(admission.getSourceOfAdmissionIsNotNull() ? admission.getSourceOfAdmission().getIItemText() : null);
    }
    else if (pasAdmissionDetails instanceof PasEventForClinicalAdmissionVo)
    {
        populatePASEvent((PasEventForClinicalAdmissionVo) pasAdmissionDetails);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populatePASEvent(PasEventForClinicalAdmissionVo pasAdmissionDetails) 
{
    if(pasAdmissionDetails == null)
        return;

    form.txtDateTime().setValue(pasAdmissionDetails.getEventDateTime() != null ? pasAdmissionDetails.getEventDateTime().toString() : null);
    form.txtConsultant().setValue(pasAdmissionDetails.getConsultantIsNotNull() ? pasAdmissionDetails.getConsultant().getIMosName() : null);
    form.txtWard().setValue(pasAdmissionDetails.getLocationIsNotNull() ? pasAdmissionDetails.getLocation().getName() : null);
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public PasEventForClinicalAdmissionVo getPASEvent(PASEventRefVo pasEvent)
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    return PasEventForClinicalAdmissionVoAssembler.create((PASEvent) getDomainFactory().getDomainObject(PASEvent.class, pasEvent.getID_PASEvent()));
}
项目:openMAXIMS    文件:Logic.java   
private Object getPASDetails() 
{
    if(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent() == null)
        return null;

    AdmissionDetailForClinicalAdmissionVo admission = domain.getPASAdmissionDetails(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    if(admission != null)
        return admission;

    PasEventForClinicalAdmissionVo pasEvent = domain.getPASEvent(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    return pasEvent;
}
项目:openMAXIMS    文件:Logic.java   
private void populatePASEventDetails(Object pasAdmissionDetails) 
{
    if(pasAdmissionDetails instanceof AdmissionDetailForClinicalAdmissionVo)
    {
        AdmissionDetailForClinicalAdmissionVo admission = (AdmissionDetailForClinicalAdmissionVo) pasAdmissionDetails;

        populatePASEvent(admission.getPasEvent());
        form.txtSource().setValue(admission.getSourceOfAdmissionIsNotNull() ? admission.getSourceOfAdmission().getIItemText() : null);
    }
    else if (pasAdmissionDetails instanceof PasEventForClinicalAdmissionVo)
    {
        populatePASEvent((PasEventForClinicalAdmissionVo) pasAdmissionDetails);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populatePASEvent(PasEventForClinicalAdmissionVo pasAdmissionDetails) 
{
    if(pasAdmissionDetails == null)
        return;

    form.txtDateTime().setValue(pasAdmissionDetails.getEventDateTime() != null ? pasAdmissionDetails.getEventDateTime().toString() : null);
    form.txtConsultant().setValue(pasAdmissionDetails.getConsultantIsNotNull() ? pasAdmissionDetails.getConsultant().getIMosName() : null);
    form.txtWard().setValue(pasAdmissionDetails.getLocationIsNotNull() ? pasAdmissionDetails.getLocation().getName() : null);
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public PasEventForClinicalAdmissionVo getPASEvent(PASEventRefVo pasEvent)
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    return PasEventForClinicalAdmissionVoAssembler.create((PASEvent) getDomainFactory().getDomainObject(PASEvent.class, pasEvent.getID_PASEvent()));
}
项目:openmaxims-linux    文件:Logic.java   
private Object getPASDetails() 
{
    if(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent() == null)
        return null;

    AdmissionDetailForClinicalAdmissionVo admission = domain.getPASAdmissionDetails(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    if(admission != null)
        return admission;

    PasEventForClinicalAdmissionVo pasEvent = domain.getPASEvent(form.getGlobalContext().Core.getCurrentCareContext().getPasEvent());

    return pasEvent;
}
项目:openmaxims-linux    文件:Logic.java   
private void populatePASEventDetails(Object pasAdmissionDetails) 
{
    if(pasAdmissionDetails instanceof AdmissionDetailForClinicalAdmissionVo)
    {
        AdmissionDetailForClinicalAdmissionVo admission = (AdmissionDetailForClinicalAdmissionVo) pasAdmissionDetails;

        populatePASEvent(admission.getPasEvent());
        form.txtSource().setValue(admission.getSourceOfAdmissionIsNotNull() ? admission.getSourceOfAdmission().getIItemText() : null);
    }
    else if (pasAdmissionDetails instanceof PasEventForClinicalAdmissionVo)
    {
        populatePASEvent((PasEventForClinicalAdmissionVo) pasAdmissionDetails);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populatePASEvent(PasEventForClinicalAdmissionVo pasAdmissionDetails) 
{
    if(pasAdmissionDetails == null)
        return;

    form.txtDateTime().setValue(pasAdmissionDetails.getEventDateTime() != null ? pasAdmissionDetails.getEventDateTime().toString() : null);
    form.txtConsultant().setValue(pasAdmissionDetails.getConsultantIsNotNull() ? pasAdmissionDetails.getConsultant().getIMosName() : null);
    form.txtWard().setValue(pasAdmissionDetails.getLocationIsNotNull() ? pasAdmissionDetails.getLocation().getName() : null);
}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
public PasEventForClinicalAdmissionVo getPASEvent(PASEventRefVo pasEvent)
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    return PasEventForClinicalAdmissionVoAssembler.create((PASEvent) getDomainFactory().getDomainObject(PASEvent.class, pasEvent.getID_PASEvent()));
}