Java 类ims.core.vo.PatientPastMedicalHistoryVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);
    clearScreen();
    updateMenuItems();

    if(setUpBlankPMHChecklistGrid() == false)
    {
        form.btnNew().setVisible(false);
        form.btnUpdate().setVisible(false);
        return;
    }

    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        PatientPMHChecklistVo voPatientPMHChecklist = domain.getPatientPMHChecklist(form.getGlobalContext().Core.getCurrentCareContext());
        PatientPastMedicalHistoryVo voPMH = domain.getPastMedicalHistory(form.getGlobalContext().Core.getPatientShort());
        form.getLocalContext().setPastMedicalHistory(voPMH);

        if(voPatientPMHChecklist != null)
        {
            form.getLocalContext().setvoPatientPMHChecklist(voPatientPMHChecklist);
            form.btnNew().setVisible(false);
            form.btnUpdate().setVisible(true);
            populateScreenFromData();
        }
        else
        {
            form.btnNew().setVisible(true);
            form.btnUpdate().setVisible(false);
            displayPastMedicalHistory();
        }
    }
}
项目:AvoinApotti    文件:PastMedicalHistoryImpl.java   
/**
* PMH for a Patient
*/
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    PastMedicalHistory domPmh = PastMedicalHistory.getPastMedicalHistoryFromPatient(factory,patient.getID_Patient());


    PatientPastMedicalHistoryVo voPatientPastHistory = PatientPastMedicalHistoryVoAssembler.create(domPmh);
    if (voPatientPastHistory != null && voPatientPastHistory.getDiagnosisIsNotNull())
        voPatientPastHistory.getDiagnosis().sort(SortOrder.ASCENDING);
    if (voPatientPastHistory != null && voPatientPastHistory.getProcedureIsNotNull())
        voPatientPastHistory.getProcedure().sort(SortOrder.ASCENDING);
    return voPatientPastHistory;
}
项目:AvoinApotti    文件:PastMedicalHistoryImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo voPMH) throws StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voPMH.isValidated())
        throw new DomainRuntimeException("PMH has not been validated");

    DomainFactory factory = getDomainFactory();
    PastMedicalHistory doPMH = PatientPastMedicalHistoryVoAssembler.extractPastMedicalHistory(factory, voPMH);

    factory.save(doPMH);

    return PatientPastMedicalHistoryVoAssembler.create(doPMH);
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);
    clearScreen();
    updateMenuItems();

    if(setUpBlankPMHChecklistGrid() == false)
    {
        form.btnNew().setVisible(false);
        form.btnUpdate().setVisible(false);
        return;
    }

    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        PatientPMHChecklistVo voPatientPMHChecklist = domain.getPatientPMHChecklist(form.getGlobalContext().Core.getCurrentCareContext());
        PatientPastMedicalHistoryVo voPMH = domain.getPastMedicalHistory(form.getGlobalContext().Core.getPatientShort());
        form.getLocalContext().setPastMedicalHistory(voPMH);

        if(voPatientPMHChecklist != null)
        {
            form.getLocalContext().setvoPatientPMHChecklist(voPatientPMHChecklist);
            form.btnNew().setVisible(false);
            form.btnUpdate().setVisible(true);
            populateScreenFromData();
        }
        else
        {
            form.btnNew().setVisible(true);
            form.btnUpdate().setVisible(false);
            displayPastMedicalHistory();
        }
    }
}
项目:openMAXIMS    文件:PastMedicalHistoryImpl.java   
/**
* PMH for a Patient
*/
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    PastMedicalHistory domPmh = PastMedicalHistory.getPastMedicalHistoryFromPatient(factory,patient.getID_Patient());


    PatientPastMedicalHistoryVo voPatientPastHistory = PatientPastMedicalHistoryVoAssembler.create(domPmh);
    if (voPatientPastHistory != null && voPatientPastHistory.getDiagnosisIsNotNull())
        voPatientPastHistory.getDiagnosis().sort(SortOrder.ASCENDING);
    if (voPatientPastHistory != null && voPatientPastHistory.getProcedureIsNotNull())
        voPatientPastHistory.getProcedure().sort(SortOrder.ASCENDING);
    return voPatientPastHistory;
}
项目:openMAXIMS    文件:PastMedicalHistoryImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo voPMH) throws StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voPMH.isValidated())
        throw new DomainRuntimeException("PMH has not been validated");

    DomainFactory factory = getDomainFactory();
    PastMedicalHistory doPMH = PatientPastMedicalHistoryVoAssembler.extractPastMedicalHistory(factory, voPMH);

    factory.save(doPMH);

    return PatientPastMedicalHistoryVoAssembler.create(doPMH);
}
项目:openMAXIMS    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);
    clearScreen();
    updateMenuItems();

    if(setUpBlankPMHChecklistGrid() == false)
    {
        form.btnNew().setVisible(false);
        form.btnUpdate().setVisible(false);
        return;
    }

    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        PatientPMHChecklistVo voPatientPMHChecklist = domain.getPatientPMHChecklist(form.getGlobalContext().Core.getCurrentCareContext());
        PatientPastMedicalHistoryVo voPMH = domain.getPastMedicalHistory(form.getGlobalContext().Core.getPatientShort());
        form.getLocalContext().setPastMedicalHistory(voPMH);

        if(voPatientPMHChecklist != null)
        {
            form.getLocalContext().setvoPatientPMHChecklist(voPatientPMHChecklist);
            form.btnNew().setVisible(false);
            form.btnUpdate().setVisible(true);
            populateScreenFromData();
        }
        else
        {
            form.btnNew().setVisible(true);
            form.btnUpdate().setVisible(false);
            displayPastMedicalHistory();
        }
    }
}
项目:openMAXIMS    文件:PastMedicalHistoryImpl.java   
/**
* PMH for a Patient
*/
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    PastMedicalHistory domPmh = PastMedicalHistory.getPastMedicalHistoryFromPatient(factory,patient.getID_Patient());


    PatientPastMedicalHistoryVo voPatientPastHistory = PatientPastMedicalHistoryVoAssembler.create(domPmh);
    if (voPatientPastHistory != null && voPatientPastHistory.getDiagnosisIsNotNull())
        voPatientPastHistory.getDiagnosis().sort(SortOrder.ASCENDING);
    if (voPatientPastHistory != null && voPatientPastHistory.getProcedureIsNotNull())
        voPatientPastHistory.getProcedure().sort(SortOrder.ASCENDING);
    return voPatientPastHistory;
}
项目:openMAXIMS    文件:PastMedicalHistoryImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo voPMH) throws StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voPMH.isValidated())
        throw new DomainRuntimeException("PMH has not been validated");

    DomainFactory factory = getDomainFactory();
    PastMedicalHistory doPMH = PatientPastMedicalHistoryVoAssembler.extractPastMedicalHistory(factory, voPMH);

    factory.save(doPMH);

    return PatientPastMedicalHistoryVoAssembler.create(doPMH);
}
项目:openmaxims-linux    文件:Logic.java   
private void open() 
{
    form.setMode(FormMode.VIEW);
    clearScreen();
    updateMenuItems();

    if(setUpBlankPMHChecklistGrid() == false)
    {
        form.btnNew().setVisible(false);
        form.btnUpdate().setVisible(false);
        return;
    }

    if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull())
    {
        PatientPMHChecklistVo voPatientPMHChecklist = domain.getPatientPMHChecklist(form.getGlobalContext().Core.getCurrentCareContext());
        PatientPastMedicalHistoryVo voPMH = domain.getPastMedicalHistory(form.getGlobalContext().Core.getPatientShort());
        form.getLocalContext().setPastMedicalHistory(voPMH);

        if(voPatientPMHChecklist != null)
        {
            form.getLocalContext().setvoPatientPMHChecklist(voPatientPMHChecklist);
            form.btnNew().setVisible(false);
            form.btnUpdate().setVisible(true);
            populateScreenFromData();
        }
        else
        {
            form.btnNew().setVisible(true);
            form.btnUpdate().setVisible(false);
            displayPastMedicalHistory();
        }
    }
}
项目:openmaxims-linux    文件:PastMedicalHistoryImpl.java   
/**
* PMH for a Patient
*/
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientRefVo patient)
{
    DomainFactory factory = getDomainFactory();

    PastMedicalHistory domPmh = PastMedicalHistory.getPastMedicalHistoryFromPatient(factory,patient.getID_Patient());


    PatientPastMedicalHistoryVo voPatientPastHistory = PatientPastMedicalHistoryVoAssembler.create(domPmh);
    if (voPatientPastHistory != null && voPatientPastHistory.getDiagnosisIsNotNull())
        voPatientPastHistory.getDiagnosis().sort(SortOrder.ASCENDING);
    if (voPatientPastHistory != null && voPatientPastHistory.getProcedureIsNotNull())
        voPatientPastHistory.getProcedure().sort(SortOrder.ASCENDING);
    return voPatientPastHistory;
}
项目:openmaxims-linux    文件:PastMedicalHistoryImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo voPMH) throws StaleObjectException, UniqueKeyViolationException
{
    // Ensure the value object has been validated
    if (!voPMH.isValidated())
        throw new DomainRuntimeException("PMH has not been validated");

    DomainFactory factory = getDomainFactory();
    PastMedicalHistory doPMH = PatientPastMedicalHistoryVoAssembler.extractPastMedicalHistory(factory, voPMH);

    factory.save(doPMH);

    return PatientPastMedicalHistoryVoAssembler.create(doPMH);
}
项目:AvoinApotti    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientShort patient)
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.getPastMedicalHistory(patient);
}
项目:AvoinApotti    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo pmh) throws StaleObjectException,UniqueKeyViolationException
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.savePMH(pmh);
}
项目:AvoinApotti    文件:SurgicalOperationsImpl.java   
public ims.core.vo.PatientPastMedicalHistoryVo savePatientPMHRecord(ims.core.vo.PatientPastMedicalHistoryVo voPMH, ims.core.patient.vo.PatientRefVo patient) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.savePMH(voPMH);
}
项目:AvoinApotti    文件:SurgicalOperationsImpl.java   
private PatientPastMedicalHistoryVo pmhCreated(PatientRefVo voPatient)
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.getPastMedicalHistory(voPatient);
}
项目:openMAXIMS    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientShort patient)
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.getPastMedicalHistory(patient);
}
项目:openMAXIMS    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo pmh) throws StaleObjectException,UniqueKeyViolationException
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.savePMH(pmh);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public ims.core.vo.PatientPastMedicalHistoryVo savePatientPMHRecord(ims.core.vo.PatientPastMedicalHistoryVo voPMH, ims.core.patient.vo.PatientRefVo patient) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.savePMH(voPMH);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
private PatientPastMedicalHistoryVo pmhCreated(PatientRefVo voPatient)
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.getPastMedicalHistory(voPatient);
}
项目:openMAXIMS    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientShort patient)
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.getPastMedicalHistory(patient);
}
项目:openMAXIMS    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo pmh) throws StaleObjectException,UniqueKeyViolationException
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.savePMH(pmh);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
public ims.core.vo.PatientPastMedicalHistoryVo savePatientPMHRecord(ims.core.vo.PatientPastMedicalHistoryVo voPMH, ims.core.patient.vo.PatientRefVo patient) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.savePMH(voPMH);
}
项目:openMAXIMS    文件:SurgicalOperationsImpl.java   
private PatientPastMedicalHistoryVo pmhCreated(PatientRefVo voPatient)
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.getPastMedicalHistory(voPatient);
}
项目:openmaxims-linux    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo getPastMedicalHistory(PatientShort patient)
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.getPastMedicalHistory(patient);
}
项目:openmaxims-linux    文件:PMHCheckListImpl.java   
public PatientPastMedicalHistoryVo savePMH(PatientPastMedicalHistoryVo pmh) throws StaleObjectException,UniqueKeyViolationException
{
    PastMedicalHistory impl = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class); 
    return impl.savePMH(pmh);
}
项目:openmaxims-linux    文件:SurgicalOperationsImpl.java   
public ims.core.vo.PatientPastMedicalHistoryVo savePatientPMHRecord(ims.core.vo.PatientPastMedicalHistoryVo voPMH, ims.core.patient.vo.PatientRefVo patient) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.savePMH(voPMH);
}
项目:openmaxims-linux    文件:SurgicalOperationsImpl.java   
private PatientPastMedicalHistoryVo pmhCreated(PatientRefVo voPatient)
{
    PastMedicalHistory pmhRec = (PastMedicalHistory)getDomainImpl(PastMedicalHistoryImpl.class);
    return pmhRec.getPastMedicalHistory(voPatient);
}