Java 类ims.emergency.vo.domain.TriageProtocolAssessmentVoAssembler 实例源码

项目:AvoinApotti    文件:TriageProtocolAssessmentImpl.java   
public TriageProtocolAssessmentVo getTriageProtocolAssessment(TriageProtocolAssessmentRefVo triageProtocol)
{
    if (triageProtocol == null || triageProtocol.getID_TriageProtocolAssessment() == null)
        return null;

    return TriageProtocolAssessmentVoAssembler.create((TriageProtocolAssessment) getDomainFactory().getDomainObject(TriageProtocolAssessment.class, triageProtocol.getID_TriageProtocolAssessment()));
}
项目:AvoinApotti    文件:TriageProtocolAssessmentImpl.java   
public void saveTriageWithAssessment(TriageForTriageProtocolAssessmentVo triage, TriageProtocolAssessmentVo triageProtocol) throws StaleObjectException
{
    if (triage == null)
        throw new CodingRuntimeException("Triage record to save is null.");

    if (!triage.isValidated())
        throw new CodingRuntimeException("Triage record is not validated.");

    if (triage.getCurrentTriageAssessmentIsNotNull())
    {
        if (Boolean.TRUE.equals(triage.getCurrentTriageAssessment().getIsMain()) && triage.getCurrentTriagePathway() == null)
        {
            PatientRefVo patient = triage.getCurrentTriageAssessment().getPatient();
            CareContextRefVo careContext = triage.getCurrentTriageAssessment().getAttendance();
            HcpLiteVo hcp = triage.getCurrentTriageAssessment().getAssessmentNurse();

            triage.setCurrentTriagePathway(createSavePatientICP(triage.getCurrentTriageAssessment().getPatientProblem().getProblem(), patient, careContext, hcp));
        }
    }

    Triage domainTriage = TriageForTriageProtocolAssessmentVoAssembler.extractTriage(getDomainFactory(), triage);

    if (triageProtocol != null)
    {
        TriageProtocolAssessment domainTriageProtocol = TriageProtocolAssessmentVoAssembler.extractTriageProtocolAssessment(getDomainFactory(), triageProtocol);

        getDomainFactory().save(domainTriageProtocol);
    }

    getDomainFactory().save(domainTriage);
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public TriageProtocolAssessmentVo getTriageProtocolAssessment(TriageProtocolAssessmentRefVo triageProtocol)
{
    if (triageProtocol == null || triageProtocol.getID_TriageProtocolAssessment() == null)
        return null;

    return TriageProtocolAssessmentVoAssembler.create((TriageProtocolAssessment) getDomainFactory().getDomainObject(TriageProtocolAssessment.class, triageProtocol.getID_TriageProtocolAssessment()));
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public void saveTriageWithAssessment(TriageForTriageProtocolAssessmentVo triage, TriageProtocolAssessmentVo triageProtocol) throws StaleObjectException
{
    if (triage == null)
        throw new CodingRuntimeException("Triage record to save is null.");

    if (!triage.isValidated())
        throw new CodingRuntimeException("Triage record is not validated.");

    if (triage.getCurrentTriageAssessmentIsNotNull())
    {
        if (Boolean.TRUE.equals(triage.getCurrentTriageAssessment().getIsMain()) && triage.getCurrentTriagePathway() == null)
        {
            PatientRefVo patient = triage.getCurrentTriageAssessment().getPatient();
            CareContextRefVo careContext = triage.getCurrentTriageAssessment().getAttendance();
            HcpLiteVo hcp = triage.getCurrentTriageAssessment().getAssessmentNurse();

            triage.setCurrentTriagePathway(createSavePatientICP(triage.getCurrentTriageAssessment().getPatientProblem().getProblem(), patient, careContext, hcp));
        }
    }

    Triage domainTriage = TriageForTriageProtocolAssessmentVoAssembler.extractTriage(getDomainFactory(), triage);

    if (triageProtocol != null)
    {
        TriageProtocolAssessment domainTriageProtocol = TriageProtocolAssessmentVoAssembler.extractTriageProtocolAssessment(getDomainFactory(), triageProtocol);

        getDomainFactory().save(domainTriageProtocol);
    }

    getDomainFactory().save(domainTriage);
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public TriageProtocolAssessmentVo getTriageProtocolAssessment(TriageProtocolAssessmentRefVo triageProtocol)
{
    if (triageProtocol == null || triageProtocol.getID_TriageProtocolAssessment() == null)
        return null;

    return TriageProtocolAssessmentVoAssembler.create((TriageProtocolAssessment) getDomainFactory().getDomainObject(TriageProtocolAssessment.class, triageProtocol.getID_TriageProtocolAssessment()));
}
项目:openMAXIMS    文件:TriageProtocolAssessmentImpl.java   
public void saveTriageWithAssessment(TriageForTriageProtocolAssessmentVo triage, TriageProtocolAssessmentVo triageProtocol) throws StaleObjectException
{
    if (triage == null)
        throw new CodingRuntimeException("Triage record to save is null.");

    if (!triage.isValidated())
        throw new CodingRuntimeException("Triage record is not validated.");

    if (triage.getCurrentTriageAssessmentIsNotNull())
    {
        if (Boolean.TRUE.equals(triage.getCurrentTriageAssessment().getIsMain()) && triage.getCurrentTriagePathway() == null)
        {
            PatientRefVo patient = triage.getCurrentTriageAssessment().getPatient();
            CareContextRefVo careContext = triage.getCurrentTriageAssessment().getAttendance();
            HcpLiteVo hcp = triage.getCurrentTriageAssessment().getAssessmentNurse();

            triage.setCurrentTriagePathway(createSavePatientICP(triage.getCurrentTriageAssessment().getPatientProblem().getProblem(), patient, careContext, hcp));
        }
    }

    Triage domainTriage = TriageForTriageProtocolAssessmentVoAssembler.extractTriage(getDomainFactory(), triage);

    if (triageProtocol != null)
    {
        TriageProtocolAssessment domainTriageProtocol = TriageProtocolAssessmentVoAssembler.extractTriageProtocolAssessment(getDomainFactory(), triageProtocol);

        getDomainFactory().save(domainTriageProtocol);
    }

    getDomainFactory().save(domainTriage);
}
项目:openmaxims-linux    文件:TriageProtocolAssessmentImpl.java   
public TriageProtocolAssessmentVo getTriageProtocolAssessment(TriageProtocolAssessmentRefVo triageProtocol)
{
    if (triageProtocol == null || triageProtocol.getID_TriageProtocolAssessment() == null)
        return null;

    return TriageProtocolAssessmentVoAssembler.create((TriageProtocolAssessment) getDomainFactory().getDomainObject(TriageProtocolAssessment.class, triageProtocol.getID_TriageProtocolAssessment()));
}
项目:openmaxims-linux    文件:TriageProtocolAssessmentImpl.java   
public void saveTriageWithAssessment(TriageForTriageProtocolAssessmentVo triage, TriageProtocolAssessmentVo triageProtocol) throws StaleObjectException
{
    if (triage == null)
        throw new CodingRuntimeException("Triage record to save is null.");

    if (!triage.isValidated())
        throw new CodingRuntimeException("Triage record is not validated.");

    if (triage.getCurrentTriageAssessmentIsNotNull())
    {
        if (Boolean.TRUE.equals(triage.getCurrentTriageAssessment().getIsMain()) && triage.getCurrentTriagePathway() == null)
        {
            PatientRefVo patient = triage.getCurrentTriageAssessment().getPatient();
            CareContextRefVo careContext = triage.getCurrentTriageAssessment().getAttendance();
            HcpLiteVo hcp = triage.getCurrentTriageAssessment().getAssessmentNurse();

            triage.setCurrentTriagePathway(createSavePatientICP(triage.getCurrentTriageAssessment().getPatientProblem().getProblem(), patient, careContext, hcp));
        }
    }

    Triage domainTriage = TriageForTriageProtocolAssessmentVoAssembler.extractTriage(getDomainFactory(), triage);

    if (triageProtocol != null)
    {
        TriageProtocolAssessment domainTriageProtocol = TriageProtocolAssessmentVoAssembler.extractTriageProtocolAssessment(getDomainFactory(), triageProtocol);

        getDomainFactory().save(domainTriageProtocol);
    }

    getDomainFactory().save(domainTriage);
}