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

项目:AvoinApotti    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void recordBrowserValueChanged()
{
    clearInstanceControls();
    populateGridAction(null);
    form.getLocalContext().setlocalContextForRie(null);//WDEV-13846 
    ClinicalAdmissionVo clinicalAdmission=null;//WDEV-13846 
    if (form.recbrAdmissions().getValue() != null)
    {
        //WDEV-13846 
        if (engine.isRIEMode())
        {
            clinicalAdmission =domain.getClinicalAdmissionById(form.recbrAdmissions().getValue());
        }
        else
        {
            clinicalAdmission = domain.getClinicalAdmission(form.recbrAdmissions().getValue().getCareContext());    
        }

        if ((form.recbrAdmissions().getValue() instanceof ClinicalAdmissionListVo) && form.getGlobalContext().Core.getCurrentCareContext().equals(form.recbrAdmissions().getValue().getCareContext()))
        {
            form.getLocalContext().setlocalContextForRie(clinicalAdmission);
        }

        openClinicalAdmission(clinicalAdmission);
    }       
    updateControlsState();
}
项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
/**
* get clinical admission
*/
public ims.nursing.vo.ClinicalAdmissionVo getClinicalAdmission(ims.core.admin.vo.CareContextRefVo careContextRefvo)
{
    if(careContextRefvo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefvo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from ClinicalAdmission ca where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ca.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(careContextRefvo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
/**
* saveClinicalAdmission
*/
public ims.nursing.vo.ClinicalAdmissionVo saveClinicalAdmission(ims.nursing.vo.ClinicalAdmissionVo clinAdmVo) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException,ims.domain.exceptions.UniqueKeyViolationException
{
    if(clinAdmVo == null)
        throw new CodingRuntimeException("ClinicalAdmissionVo is null");

    if(!clinAdmVo.isValidated())
        throw new CodingRuntimeException("ClinicalAdmissionVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission  doCA = ClinicalAdmissionVoAssembler.extractClinicalAdmission(factory, clinAdmVo);

    factory.save(doCA);
    return ClinicalAdmissionVoAssembler.create(doCA);
}
项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getPreviousClinicalAdmission(Integer patientId)
{
    if(patientId == null)
        return null;

    if(patientId != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" select c1_1 from ClinicalAdmission as c1_1 left join c1_1.careContext as c2_1 left join c2_1.episodeOfCare as e1_1 left join e1_1.careSpell as c3_1 left join c3_1.patient as p1_1    where(c3_1.patient.id = :PID) order by c1_1.authoringInformation.authoringDateTime desc "); 


        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

            markers.add("PID");
        values.add(patientId);


        //List list = factory.find(hql.toString(), markers,values,1);
        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getClinicalAdmissionById(ClinicalAdmissionRefVo clinicalAdmissionId)
{
    if (clinicalAdmissionId == null || clinicalAdmissionId.getID_ClinicalAdmission()== null)
    {
        throw new CodingRuntimeException("Cannot get ClinicalAdmissionRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission domainClinicalAdmission = (ClinicalAdmission) factory.getDomainObject(ClinicalAdmission.class, clinicalAdmissionId.getID_ClinicalAdmission());

    return ClinicalAdmissionVoAssembler.create(domainClinicalAdmission);
}
项目:openMAXIMS    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void recordBrowserValueChanged()
{
    clearInstanceControls();
    populateGridAction(null);
    form.getLocalContext().setlocalContextForRie(null);//WDEV-13846 
    ClinicalAdmissionVo clinicalAdmission=null;//WDEV-13846 
    if (form.recbrAdmissions().getValue() != null)
    {
        //WDEV-13846 
        if (engine.isRIEMode())
        {
            clinicalAdmission =domain.getClinicalAdmissionById(form.recbrAdmissions().getValue());
        }
        else
        {
            clinicalAdmission = domain.getClinicalAdmission(form.recbrAdmissions().getValue().getCareContext());    
        }

        if ((form.recbrAdmissions().getValue() instanceof ClinicalAdmissionListVo) && form.getGlobalContext().Core.getCurrentCareContext().equals(form.recbrAdmissions().getValue().getCareContext()))
        {
            form.getLocalContext().setlocalContextForRie(clinicalAdmission);
        }

        openClinicalAdmission(clinicalAdmission);
    }       
    updateControlsState();
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
/**
* get clinical admission
*/
public ims.nursing.vo.ClinicalAdmissionVo getClinicalAdmission(ims.core.admin.vo.CareContextRefVo careContextRefvo)
{
    if(careContextRefvo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefvo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from ClinicalAdmission ca where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ca.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(careContextRefvo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
/**
* saveClinicalAdmission
*/
public ims.nursing.vo.ClinicalAdmissionVo saveClinicalAdmission(ims.nursing.vo.ClinicalAdmissionVo clinAdmVo) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException,ims.domain.exceptions.UniqueKeyViolationException
{
    if(clinAdmVo == null)
        throw new CodingRuntimeException("ClinicalAdmissionVo is null");

    if(!clinAdmVo.isValidated())
        throw new CodingRuntimeException("ClinicalAdmissionVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission  doCA = ClinicalAdmissionVoAssembler.extractClinicalAdmission(factory, clinAdmVo);

    factory.save(doCA);
    return ClinicalAdmissionVoAssembler.create(doCA);
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getPreviousClinicalAdmission(Integer patientId)
{
    if(patientId == null)
        return null;

    if(patientId != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" select c1_1 from ClinicalAdmission as c1_1 left join c1_1.careContext as c2_1 left join c2_1.episodeOfCare as e1_1 left join e1_1.careSpell as c3_1 left join c3_1.patient as p1_1    where(c3_1.patient.id = :PID) order by c1_1.authoringInformation.authoringDateTime desc "); 


        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

            markers.add("PID");
        values.add(patientId);


        //List list = factory.find(hql.toString(), markers,values,1);
        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getClinicalAdmissionById(ClinicalAdmissionRefVo clinicalAdmissionId)
{
    if (clinicalAdmissionId == null || clinicalAdmissionId.getID_ClinicalAdmission()== null)
    {
        throw new CodingRuntimeException("Cannot get ClinicalAdmissionRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission domainClinicalAdmission = (ClinicalAdmission) factory.getDomainObject(ClinicalAdmission.class, clinicalAdmissionId.getID_ClinicalAdmission());

    return ClinicalAdmissionVoAssembler.create(domainClinicalAdmission);
}
项目:openMAXIMS    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void recordBrowserValueChanged()
{
    clearInstanceControls();
    populateGridAction(null);
    form.getLocalContext().setlocalContextForRie(null);//WDEV-13846 
    ClinicalAdmissionVo clinicalAdmission=null;//WDEV-13846 
    if (form.recbrAdmissions().getValue() != null)
    {
        //WDEV-13846 
        if (engine.isRIEMode())
        {
            clinicalAdmission =domain.getClinicalAdmissionById(form.recbrAdmissions().getValue());
        }
        else
        {
            clinicalAdmission = domain.getClinicalAdmission(form.recbrAdmissions().getValue().getCareContext());    
        }

        if ((form.recbrAdmissions().getValue() instanceof ClinicalAdmissionListVo) && form.getGlobalContext().Core.getCurrentCareContext().equals(form.recbrAdmissions().getValue().getCareContext()))
        {
            form.getLocalContext().setlocalContextForRie(clinicalAdmission);
        }

        openClinicalAdmission(clinicalAdmission);
    }       
    updateControlsState();
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
/**
* get clinical admission
*/
public ims.nursing.vo.ClinicalAdmissionVo getClinicalAdmission(ims.core.admin.vo.CareContextRefVo careContextRefvo)
{
    if(careContextRefvo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefvo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from ClinicalAdmission ca where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ca.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(careContextRefvo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
/**
* saveClinicalAdmission
*/
public ims.nursing.vo.ClinicalAdmissionVo saveClinicalAdmission(ims.nursing.vo.ClinicalAdmissionVo clinAdmVo) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException,ims.domain.exceptions.UniqueKeyViolationException
{
    if(clinAdmVo == null)
        throw new CodingRuntimeException("ClinicalAdmissionVo is null");

    if(!clinAdmVo.isValidated())
        throw new CodingRuntimeException("ClinicalAdmissionVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission  doCA = ClinicalAdmissionVoAssembler.extractClinicalAdmission(factory, clinAdmVo);

    factory.save(doCA);
    return ClinicalAdmissionVoAssembler.create(doCA);
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getPreviousClinicalAdmission(Integer patientId)
{
    if(patientId == null)
        return null;

    if(patientId != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" select c1_1 from ClinicalAdmission as c1_1 left join c1_1.careContext as c2_1 left join c2_1.episodeOfCare as e1_1 left join e1_1.careSpell as c3_1 left join c3_1.patient as p1_1    where(c3_1.patient.id = :PID) order by c1_1.authoringInformation.authoringDateTime desc "); 


        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

            markers.add("PID");
        values.add(patientId);


        //List list = factory.find(hql.toString(), markers,values,1);
        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getClinicalAdmissionById(ClinicalAdmissionRefVo clinicalAdmissionId)
{
    if (clinicalAdmissionId == null || clinicalAdmissionId.getID_ClinicalAdmission()== null)
    {
        throw new CodingRuntimeException("Cannot get ClinicalAdmissionRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission domainClinicalAdmission = (ClinicalAdmission) factory.getDomainObject(ClinicalAdmission.class, clinicalAdmissionId.getID_ClinicalAdmission());

    return ClinicalAdmissionVoAssembler.create(domainClinicalAdmission);
}
项目:openmaxims-linux    文件:Logic.java   
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo)
{
    AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist();
    for(int j = 0; j< admColl.size();j++)
    {
        if(itemLookup.equals(admColl.get(j).getChecklistItem()))
        {
            return admColl.get(j);
        }

    }
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void recordBrowserValueChanged()
{
    clearInstanceControls();
    populateGridAction(null);
    form.getLocalContext().setlocalContextForRie(null);//WDEV-13846 
    ClinicalAdmissionVo clinicalAdmission=null;//WDEV-13846 
    if (form.recbrAdmissions().getValue() != null)
    {
        //WDEV-13846 
        if (engine.isRIEMode())
        {
            clinicalAdmission =domain.getClinicalAdmissionById(form.recbrAdmissions().getValue());
        }
        else
        {
            clinicalAdmission = domain.getClinicalAdmission(form.recbrAdmissions().getValue().getCareContext());    
        }

        if ((form.recbrAdmissions().getValue() instanceof ClinicalAdmissionListVo) && form.getGlobalContext().Core.getCurrentCareContext().equals(form.recbrAdmissions().getValue().getCareContext()))
        {
            form.getLocalContext().setlocalContextForRie(clinicalAdmission);
        }

        openClinicalAdmission(clinicalAdmission);
    }       
    updateControlsState();
}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
/**
* get clinical admission
*/
public ims.nursing.vo.ClinicalAdmissionVo getClinicalAdmission(ims.core.admin.vo.CareContextRefVo careContextRefvo)
{
    if(careContextRefvo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if(careContextRefvo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from ClinicalAdmission ca where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ca.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(careContextRefvo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
/**
* saveClinicalAdmission
*/
public ims.nursing.vo.ClinicalAdmissionVo saveClinicalAdmission(ims.nursing.vo.ClinicalAdmissionVo clinAdmVo) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException,ims.domain.exceptions.UniqueKeyViolationException
{
    if(clinAdmVo == null)
        throw new CodingRuntimeException("ClinicalAdmissionVo is null");

    if(!clinAdmVo.isValidated())
        throw new CodingRuntimeException("ClinicalAdmissionVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission  doCA = ClinicalAdmissionVoAssembler.extractClinicalAdmission(factory, clinAdmVo);

    factory.save(doCA);
    return ClinicalAdmissionVoAssembler.create(doCA);
}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getPreviousClinicalAdmission(Integer patientId)
{
    if(patientId == null)
        return null;

    if(patientId != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" select c1_1 from ClinicalAdmission as c1_1 left join c1_1.careContext as c2_1 left join c2_1.episodeOfCare as e1_1 left join e1_1.careSpell as c3_1 left join c3_1.patient as p1_1    where(c3_1.patient.id = :PID) order by c1_1.authoringInformation.authoringDateTime desc "); 


        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

            markers.add("PID");
        values.add(patientId);


        //List list = factory.find(hql.toString(), markers,values,1);
        List list = factory.find(hql.toString(), markers,values);
        if(list != null && list.size() > 0)
        { 
            ClinicalAdmissionVoCollection voColl = ClinicalAdmissionVoAssembler.createClinicalAdmissionVoCollectionFromClinicalAdmission(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;

}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
public ClinicalAdmissionVo getClinicalAdmissionById(ClinicalAdmissionRefVo clinicalAdmissionId)
{
    if (clinicalAdmissionId == null || clinicalAdmissionId.getID_ClinicalAdmission()== null)
    {
        throw new CodingRuntimeException("Cannot get ClinicalAdmissionRefVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();
    ClinicalAdmission domainClinicalAdmission = (ClinicalAdmission) factory.getDomainObject(ClinicalAdmission.class, clinicalAdmissionId.getID_ClinicalAdmission());

    return ClinicalAdmissionVoAssembler.create(domainClinicalAdmission);
}
项目:AvoinApotti    文件:Logic.java   
private void checkForPreviousAdmission() 
{
    ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
    form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);
}
项目:AvoinApotti    文件:Logic.java   
private void openClinicalAdmission(ClinicalAdmissionVo voCA) 
{
    //ClinicalAdmissionVo clinAdmVo = null;

    //wdev-13846
    if (voCA==null)
        return;

    CareContextShortVo voCCShort = domain.getCareContextShort(voCA.getCareContext());
    /*if (voCA == null)
    {
        clinAdmVo = domain.getClinicalAdmission(form.getGlobalContext().Core.getCurrentCareContext());
        voCCShort = form.getGlobalContext().Core.getCurrentCareContext();
        ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
        form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);

        CarePlanCollection carePlColl = domain.getCareplans(voCCShort);
        form.getLocalContext().setisOpenCarePlan(iterateCarePlanCollection(carePlColl));
        form.getLocalContext().setAllowEditing(false);
    }
    else
    {
        clinAdmVo = voCA;
        voCCShort = domain.getCareContextShort(voCA.getCareContext());
        form.getLocalContext().setpreviousClinicalAdmission(null);
        form.getLocalContext().setAllowEditing(true);
    }*/

    //form.getLocalContext().setAllowEditing(true);
    //form.recbrAdmissions().setValue((ClinicalAdmissionListVo)clinAdmVo);

    AdmissionDetailVo admdetVo = null;
    if(voCCShort.getPasEvent() != null)
       admdetVo = domain.getAdmissionDetail(voCCShort.getPasEvent().getID_PASEvent());

    //form.getLocalContext().setclinicalAdmission(clinAdmVo);
    form.getLocalContext().setadmissionDetail(admdetVo);

    populateScreenFromData(voCA, admdetVo, voCCShort);

    form.setMode(FormMode.VIEW);
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(ClinicalAdmissionVo clinAdmVo,AdmissionDetailVo admdetVo, CareContextShortVo voCCShort )
{
    clearInstanceControls();

    if(voCCShort.getPasEvent() != null)
    {
        form.txtDateTime().setValue(voCCShort.getPasEvent().getEventDateTimeIsNotNull() ? voCCShort.getPasEvent().getEventDateTime().toString() : "");

        if(voCCShort.getPasEvent().getConsultantIsNotNull() && voCCShort.getPasEvent().getConsultant().getMosIsNotNull())
            form.txtConsultant().setValue(voCCShort.getPasEvent().getConsultant().getMos().getIMosName());
        else
            form.txtConsultant().setValue("");

        form.txtWard().setValue(voCCShort.getPasEvent().getLocationIsNotNull() ? voCCShort.getPasEvent().getLocation().getIItemText(): "");

        if(admdetVo != null && admdetVo.getSourceOfAdmissionIsNotNull())
            form.txtSource().setValue(admdetVo.getSourceOfAdmission().getIItemText());
        else
            form.txtSource().setValue("");

        //form.getLocalContext().setAllowEditing(true);
    }
    /*else if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
        && form.getGlobalContext().Core.getCurrentCareContext().equals(voCCShort)
        && voCCShort.getPasEvent() == null)
    {
        engine.showMessage("Patient is not a current inpatient");
        if(ConfigFlag.GEN.RELEASE_MODE.getValue() == true)
            form.getLocalContext().setAllowRecording(false);
        else
            form.getLocalContext().setAllowRecording(true);
    }*/
    if(clinAdmVo != null)
    {
        form.ccAdmittingNurse().setValue(clinAdmVo.getAdmittingNurse());
        form.txtClientsUnderstanding().setValue(clinAdmVo.getClientUnderstanding());
        form.txtSocialCircumstance().setValue(clinAdmVo.getSocialCircumstance());
        form.ccConfirmedBy().setValue(clinAdmVo.getConfirmedBy());
        form.dtimConfirmed().setValue(clinAdmVo.getConfirmedDateTime());
        form.ccDischarged().setValue(clinAdmVo.getDischargedBy());
        form.dtimDischarged().setValue(clinAdmVo.getDischargedDateTime());
    }
    populateGridAction(clinAdmVo);
}
项目:openMAXIMS    文件:Logic.java   
private void checkForPreviousAdmission() 
{
    ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
    form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);
}
项目:openMAXIMS    文件:Logic.java   
private void openClinicalAdmission(ClinicalAdmissionVo voCA) 
{
    //ClinicalAdmissionVo clinAdmVo = null;

    //wdev-13846
    if (voCA==null)
        return;

    CareContextShortVo voCCShort = domain.getCareContextShort(voCA.getCareContext());
    /*if (voCA == null)
    {
        clinAdmVo = domain.getClinicalAdmission(form.getGlobalContext().Core.getCurrentCareContext());
        voCCShort = form.getGlobalContext().Core.getCurrentCareContext();
        ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
        form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);

        CarePlanCollection carePlColl = domain.getCareplans(voCCShort);
        form.getLocalContext().setisOpenCarePlan(iterateCarePlanCollection(carePlColl));
        form.getLocalContext().setAllowEditing(false);
    }
    else
    {
        clinAdmVo = voCA;
        voCCShort = domain.getCareContextShort(voCA.getCareContext());
        form.getLocalContext().setpreviousClinicalAdmission(null);
        form.getLocalContext().setAllowEditing(true);
    }*/

    //form.getLocalContext().setAllowEditing(true);
    //form.recbrAdmissions().setValue((ClinicalAdmissionListVo)clinAdmVo);

    AdmissionDetailVo admdetVo = null;
    if(voCCShort.getPasEvent() != null)
       admdetVo = domain.getAdmissionDetail(voCCShort.getPasEvent().getID_PASEvent());

    //form.getLocalContext().setclinicalAdmission(clinAdmVo);
    form.getLocalContext().setadmissionDetail(admdetVo);

    populateScreenFromData(voCA, admdetVo, voCCShort);

    form.setMode(FormMode.VIEW);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ClinicalAdmissionVo clinAdmVo,AdmissionDetailVo admdetVo, CareContextShortVo voCCShort )
{
    clearInstanceControls();

    if(voCCShort.getPasEvent() != null)
    {
        form.txtDateTime().setValue(voCCShort.getPasEvent().getEventDateTimeIsNotNull() ? voCCShort.getPasEvent().getEventDateTime().toString() : "");

        if(voCCShort.getPasEvent().getConsultantIsNotNull() && voCCShort.getPasEvent().getConsultant().getMosIsNotNull())
            form.txtConsultant().setValue(voCCShort.getPasEvent().getConsultant().getMos().getIMosName());
        else
            form.txtConsultant().setValue("");

        form.txtWard().setValue(voCCShort.getPasEvent().getLocationIsNotNull() ? voCCShort.getPasEvent().getLocation().getIItemText(): "");

        if(admdetVo != null && admdetVo.getSourceOfAdmissionIsNotNull())
            form.txtSource().setValue(admdetVo.getSourceOfAdmission().getIItemText());
        else
            form.txtSource().setValue("");

        //form.getLocalContext().setAllowEditing(true);
    }
    /*else if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
        && form.getGlobalContext().Core.getCurrentCareContext().equals(voCCShort)
        && voCCShort.getPasEvent() == null)
    {
        engine.showMessage("Patient is not a current inpatient");
        if(ConfigFlag.GEN.RELEASE_MODE.getValue() == true)
            form.getLocalContext().setAllowRecording(false);
        else
            form.getLocalContext().setAllowRecording(true);
    }*/
    if(clinAdmVo != null)
    {
        form.ccAdmittingNurse().setValue(clinAdmVo.getAdmittingNurse());
        form.txtClientsUnderstanding().setValue(clinAdmVo.getClientUnderstanding());
        form.txtSocialCircumstance().setValue(clinAdmVo.getSocialCircumstance());
        form.ccConfirmedBy().setValue(clinAdmVo.getConfirmedBy());
        form.dtimConfirmed().setValue(clinAdmVo.getConfirmedDateTime());
        form.ccDischarged().setValue(clinAdmVo.getDischargedBy());
        form.dtimDischarged().setValue(clinAdmVo.getDischargedDateTime());
    }
    populateGridAction(clinAdmVo);
}
项目:openMAXIMS    文件:Logic.java   
private void checkForPreviousAdmission() 
{
    ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
    form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);
}
项目:openMAXIMS    文件:Logic.java   
private void openClinicalAdmission(ClinicalAdmissionVo voCA) 
{
    //ClinicalAdmissionVo clinAdmVo = null;

    //wdev-13846
    if (voCA==null)
        return;

    CareContextShortVo voCCShort = domain.getCareContextShort(voCA.getCareContext());
    /*if (voCA == null)
    {
        clinAdmVo = domain.getClinicalAdmission(form.getGlobalContext().Core.getCurrentCareContext());
        voCCShort = form.getGlobalContext().Core.getCurrentCareContext();
        ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
        form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);

        CarePlanCollection carePlColl = domain.getCareplans(voCCShort);
        form.getLocalContext().setisOpenCarePlan(iterateCarePlanCollection(carePlColl));
        form.getLocalContext().setAllowEditing(false);
    }
    else
    {
        clinAdmVo = voCA;
        voCCShort = domain.getCareContextShort(voCA.getCareContext());
        form.getLocalContext().setpreviousClinicalAdmission(null);
        form.getLocalContext().setAllowEditing(true);
    }*/

    //form.getLocalContext().setAllowEditing(true);
    //form.recbrAdmissions().setValue((ClinicalAdmissionListVo)clinAdmVo);

    AdmissionDetailVo admdetVo = null;
    if(voCCShort.getPasEvent() != null)
       admdetVo = domain.getAdmissionDetail(voCCShort.getPasEvent().getID_PASEvent());

    //form.getLocalContext().setclinicalAdmission(clinAdmVo);
    form.getLocalContext().setadmissionDetail(admdetVo);

    populateScreenFromData(voCA, admdetVo, voCCShort);

    form.setMode(FormMode.VIEW);
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ClinicalAdmissionVo clinAdmVo,AdmissionDetailVo admdetVo, CareContextShortVo voCCShort )
{
    clearInstanceControls();

    if(voCCShort.getPasEvent() != null)
    {
        form.txtDateTime().setValue(voCCShort.getPasEvent().getEventDateTimeIsNotNull() ? voCCShort.getPasEvent().getEventDateTime().toString() : "");

        if(voCCShort.getPasEvent().getConsultantIsNotNull() && voCCShort.getPasEvent().getConsultant().getMosIsNotNull())
            form.txtConsultant().setValue(voCCShort.getPasEvent().getConsultant().getMos().getIMosName());
        else
            form.txtConsultant().setValue("");

        form.txtWard().setValue(voCCShort.getPasEvent().getLocationIsNotNull() ? voCCShort.getPasEvent().getLocation().getIItemText(): "");

        if(admdetVo != null && admdetVo.getSourceOfAdmissionIsNotNull())
            form.txtSource().setValue(admdetVo.getSourceOfAdmission().getIItemText());
        else
            form.txtSource().setValue("");

        //form.getLocalContext().setAllowEditing(true);
    }
    /*else if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
        && form.getGlobalContext().Core.getCurrentCareContext().equals(voCCShort)
        && voCCShort.getPasEvent() == null)
    {
        engine.showMessage("Patient is not a current inpatient");
        if(ConfigFlag.GEN.RELEASE_MODE.getValue() == true)
            form.getLocalContext().setAllowRecording(false);
        else
            form.getLocalContext().setAllowRecording(true);
    }*/
    if(clinAdmVo != null)
    {
        form.ccAdmittingNurse().setValue(clinAdmVo.getAdmittingNurse());
        form.txtClientsUnderstanding().setValue(clinAdmVo.getClientUnderstanding());
        form.txtSocialCircumstance().setValue(clinAdmVo.getSocialCircumstance());
        form.ccConfirmedBy().setValue(clinAdmVo.getConfirmedBy());
        form.dtimConfirmed().setValue(clinAdmVo.getConfirmedDateTime());
        form.ccDischarged().setValue(clinAdmVo.getDischargedBy());
        form.dtimDischarged().setValue(clinAdmVo.getDischargedDateTime());
    }
    populateGridAction(clinAdmVo);
}
项目:openmaxims-linux    文件:Logic.java   
private void checkForPreviousAdmission() 
{
    ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
    form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);
}
项目:openmaxims-linux    文件:Logic.java   
private void openClinicalAdmission(ClinicalAdmissionVo voCA) 
{
    //ClinicalAdmissionVo clinAdmVo = null;

    //wdev-13846
    if (voCA==null)
        return;

    CareContextShortVo voCCShort = domain.getCareContextShort(voCA.getCareContext());
    /*if (voCA == null)
    {
        clinAdmVo = domain.getClinicalAdmission(form.getGlobalContext().Core.getCurrentCareContext());
        voCCShort = form.getGlobalContext().Core.getCurrentCareContext();
        ClinicalAdmissionVo clinAdmPreviousVo = domain.getPreviousClinicalAdmission(form.getGlobalContext().Core.getPatientShort().getID_Patient());
        form.getLocalContext().setpreviousClinicalAdmission(clinAdmPreviousVo);

        CarePlanCollection carePlColl = domain.getCareplans(voCCShort);
        form.getLocalContext().setisOpenCarePlan(iterateCarePlanCollection(carePlColl));
        form.getLocalContext().setAllowEditing(false);
    }
    else
    {
        clinAdmVo = voCA;
        voCCShort = domain.getCareContextShort(voCA.getCareContext());
        form.getLocalContext().setpreviousClinicalAdmission(null);
        form.getLocalContext().setAllowEditing(true);
    }*/

    //form.getLocalContext().setAllowEditing(true);
    //form.recbrAdmissions().setValue((ClinicalAdmissionListVo)clinAdmVo);

    AdmissionDetailVo admdetVo = null;
    if(voCCShort.getPasEvent() != null)
       admdetVo = domain.getAdmissionDetail(voCCShort.getPasEvent().getID_PASEvent());

    //form.getLocalContext().setclinicalAdmission(clinAdmVo);
    form.getLocalContext().setadmissionDetail(admdetVo);

    populateScreenFromData(voCA, admdetVo, voCCShort);

    form.setMode(FormMode.VIEW);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(ClinicalAdmissionVo clinAdmVo,AdmissionDetailVo admdetVo, CareContextShortVo voCCShort )
{
    clearInstanceControls();

    if(voCCShort.getPasEvent() != null)
    {
        form.txtDateTime().setValue(voCCShort.getPasEvent().getEventDateTimeIsNotNull() ? voCCShort.getPasEvent().getEventDateTime().toString() : "");

        if(voCCShort.getPasEvent().getConsultantIsNotNull() && voCCShort.getPasEvent().getConsultant().getMosIsNotNull())
            form.txtConsultant().setValue(voCCShort.getPasEvent().getConsultant().getMos().getIMosName());
        else
            form.txtConsultant().setValue("");

        form.txtWard().setValue(voCCShort.getPasEvent().getLocationIsNotNull() ? voCCShort.getPasEvent().getLocation().getIItemText(): "");

        if(admdetVo != null && admdetVo.getSourceOfAdmissionIsNotNull())
            form.txtSource().setValue(admdetVo.getSourceOfAdmission().getIItemText());
        else
            form.txtSource().setValue("");

        //form.getLocalContext().setAllowEditing(true);
    }
    /*else if (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()
        && form.getGlobalContext().Core.getCurrentCareContext().equals(voCCShort)
        && voCCShort.getPasEvent() == null)
    {
        engine.showMessage("Patient is not a current inpatient");
        if(ConfigFlag.GEN.RELEASE_MODE.getValue() == true)
            form.getLocalContext().setAllowRecording(false);
        else
            form.getLocalContext().setAllowRecording(true);
    }*/
    if(clinAdmVo != null)
    {
        form.ccAdmittingNurse().setValue(clinAdmVo.getAdmittingNurse());
        form.txtClientsUnderstanding().setValue(clinAdmVo.getClientUnderstanding());
        form.txtSocialCircumstance().setValue(clinAdmVo.getSocialCircumstance());
        form.ccConfirmedBy().setValue(clinAdmVo.getConfirmedBy());
        form.dtimConfirmed().setValue(clinAdmVo.getConfirmedDateTime());
        form.ccDischarged().setValue(clinAdmVo.getDischargedBy());
        form.dtimDischarged().setValue(clinAdmVo.getDischargedDateTime());
    }
    populateGridAction(clinAdmVo);
}