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

项目:AvoinApotti    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);

    patientProcedure.setCareContext(careContext);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());

    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyr1().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyr1().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyrMain().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyrMain().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:AvoinApotti    文件:IntraOperativeCareRecordImpl.java   
public PatientProcedureLiteVo getProcedureFromSuitableForSurgery(CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if (assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:AvoinApotti    文件:CataractIntraOperativeCareRecordImpl.java   
public ims.core.vo.PatientProcedureLiteVo getProcedureFromSuitableForSurgery(ims.core.admin.vo.CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if(assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);

    patientProcedure.setCareContext(careContext);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());

    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyr1().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyr1().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyrMain().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyrMain().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:openMAXIMS    文件:IntraOperativeCareRecordImpl.java   
public PatientProcedureLiteVo getProcedureFromSuitableForSurgery(CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if (assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:openMAXIMS    文件:CataractIntraOperativeCareRecordImpl.java   
public ims.core.vo.PatientProcedureLiteVo getProcedureFromSuitableForSurgery(ims.core.admin.vo.CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if(assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);

    patientProcedure.setCareContext(careContext);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());

    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyr1().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyr1().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyrMain().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyrMain().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:openMAXIMS    文件:IntraOperativeCareRecordImpl.java   
public PatientProcedureLiteVo getProcedureFromSuitableForSurgery(CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if (assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:openMAXIMS    文件:CataractIntraOperativeCareRecordImpl.java   
public ims.core.vo.PatientProcedureLiteVo getProcedureFromSuitableForSurgery(ims.core.admin.vo.CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if(assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);

    patientProcedure.setCareContext(careContext);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());

    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyr1().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyr1().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyrMain().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyrMain().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:openmaxims-linux    文件:IntraOperativeCareRecordImpl.java   
public PatientProcedureLiteVo getProcedureFromSuitableForSurgery(CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if (assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:openmaxims-linux    文件:CataractIntraOperativeCareRecordImpl.java   
public ims.core.vo.PatientProcedureLiteVo getProcedureFromSuitableForSurgery(ims.core.admin.vo.CareContextRefVo careContext)
{
    if (careContext == null || !careContext.getID_CareContextIsNotNull())
        throw new CodingRuntimeException("A care context must be selected");

    DomainFactory factory = getDomainFactory();

    IMSCriteria assessmentCriteria = new IMSCriteria(SuitableForSurgeryAssessment.class, factory);
    assessmentCriteria.equal("this.careContext.id", careContext.getID_CareContext());

    List<SuitableForSurgeryAssessment> assessments = assessmentCriteria.find();

    if (assessments == null || assessments.size() == 0)
        return null;

    SuitableForSurgeryAssessmentLiteVo assessment = SuitableForSurgeryAssessmentLiteVoAssembler.create(assessments.get(0));

    if(assessment != null && assessment.getProcedureIsNotNull() && assessment.getProcedure().getID_PatientProcedureIsNotNull())
    {
        return PatientProcedureLiteVoAssembler.create((PatientProcedure) factory.getDomainObject(PatientProcedure.class, assessment.getProcedure().getID_PatientProcedure()));
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private SuitableForSurgeryAssessmentLiteVo populateDataFromScreen()
{
    SuitableForSurgeryAssessmentLiteVo assessment = new SuitableForSurgeryAssessmentLiteVo();

    PatientProcedureLiteVo voPatientProcedure = domain.getProcedureLiteVo(form.getGlobalContext().Clinical.getPatientProcedureForIntraOperativeDialog());

    assessment.setCareContext(voPatientProcedure.getCareContext());
    assessment.setAuthoringInformation(form.ccAuthoring().getValue());
    assessment.setProcedure(voPatientProcedure);
    assessment.setSuitableForSurgeryDate(form.dteSuitable().getValue());
    assessment.setSuitableForSurgery(YesNoUnknown.YES);
    assessment.setProcedurePerformed(Boolean.TRUE);

    return assessment;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * 
 * @param procedure
 * @param description
 * @param episodeofCare 
 * @param careContext
 * @param authoringInformation
 * @param sourceOfInformation
 * @return
 */
// WDEV-11545 - added episodeofCare parameter
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, EpisodeOfCareRefVo episodeofCare, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || episodeofCare == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(episodeofCare);   // WDEV - 11545
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    if (form.ctnConclusions().chkPerformed().getValue())//wdev-10274
    {
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PERFORMED);
        patientProcedure.setInfoSource(SourceofInformation.CLINICALCONTACT);
        patientProcedure.setProcDate(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? new PartialDate(form.ccAuthoring().getValue().getAuthoringDateTime().getDate()) : null);
        patientProcedure.setProcTime(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? form.ccAuthoring().getValue().getAuthoringDateTime().getTime() : null);
    }
    else
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);

    patientProcedure.setProcLaterality(form.cmbLaterality().getValue());

    return patientProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private SuitableForSurgeryAssessmentLiteVo populateDataFromScreen()
{
    SuitableForSurgeryAssessmentLiteVo assessment = new SuitableForSurgeryAssessmentLiteVo();

    PatientProcedureLiteVo voPatientProcedure = domain.getProcedureLiteVo(form.getGlobalContext().Clinical.getPatientProcedureForIntraOperativeDialog());

    assessment.setCareContext(voPatientProcedure.getCareContext());
    assessment.setAuthoringInformation(form.ccAuthoring().getValue());
    assessment.setProcedure(voPatientProcedure);
    assessment.setSuitableForSurgeryDate(form.dteSuitable().getValue());
    assessment.setSuitableForSurgery(YesNoUnknown.YES);
    assessment.setProcedurePerformed(Boolean.TRUE);

    return assessment;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 * @param procedure
 * @param description
 * @param episodeofCare 
 * @param careContext
 * @param authoringInformation
 * @param sourceOfInformation
 * @return
 */
// WDEV-11545 - added episodeofCare parameter
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, EpisodeOfCareRefVo episodeofCare, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || episodeofCare == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(episodeofCare);   // WDEV - 11545
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    if (form.ctnConclusions().chkPerformed().getValue())//wdev-10274
    {
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PERFORMED);
        patientProcedure.setInfoSource(SourceofInformation.CLINICALCONTACT);
        patientProcedure.setProcDate(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? new PartialDate(form.ccAuthoring().getValue().getAuthoringDateTime().getDate()) : null);
        patientProcedure.setProcTime(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? form.ccAuthoring().getValue().getAuthoringDateTime().getTime() : null);
    }
    else
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);

    patientProcedure.setProcLaterality(form.cmbLaterality().getValue());

    return patientProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private SuitableForSurgeryAssessmentLiteVo populateDataFromScreen()
{
    SuitableForSurgeryAssessmentLiteVo assessment = new SuitableForSurgeryAssessmentLiteVo();

    PatientProcedureLiteVo voPatientProcedure = domain.getProcedureLiteVo(form.getGlobalContext().Clinical.getPatientProcedureForIntraOperativeDialog());

    assessment.setCareContext(voPatientProcedure.getCareContext());
    assessment.setAuthoringInformation(form.ccAuthoring().getValue());
    assessment.setProcedure(voPatientProcedure);
    assessment.setSuitableForSurgeryDate(form.dteSuitable().getValue());
    assessment.setSuitableForSurgery(YesNoUnknown.YES);
    assessment.setProcedurePerformed(Boolean.TRUE);

    return assessment;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 * @param procedure
 * @param description
 * @param episodeofCare 
 * @param careContext
 * @param authoringInformation
 * @param sourceOfInformation
 * @return
 */
// WDEV-11545 - added episodeofCare parameter
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, EpisodeOfCareRefVo episodeofCare, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || episodeofCare == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(episodeofCare);   // WDEV - 11545
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    if (form.ctnConclusions().chkPerformed().getValue())//wdev-10274
    {
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PERFORMED);
        patientProcedure.setInfoSource(SourceofInformation.CLINICALCONTACT);
        patientProcedure.setProcDate(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? new PartialDate(form.ccAuthoring().getValue().getAuthoringDateTime().getDate()) : null);
        patientProcedure.setProcTime(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? form.ccAuthoring().getValue().getAuthoringDateTime().getTime() : null);
    }
    else
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);

    patientProcedure.setProcLaterality(form.cmbLaterality().getValue());

    return patientProcedure;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * 
 * @param procedure
 * @param description
 * @param episodeofCare 
 * @param careContext
 * @param authoringInformation
 * @param sourceOfInformation
 * @return
 */
// WDEV-11545 - added episodeofCare parameter
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, EpisodeOfCareRefVo episodeofCare, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || episodeofCare == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(episodeofCare);   // WDEV - 11545
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    if (form.ctnConclusions().chkPerformed().getValue())//wdev-10274
    {
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PERFORMED);
        patientProcedure.setInfoSource(SourceofInformation.CLINICALCONTACT);
        patientProcedure.setProcDate(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? new PartialDate(form.ccAuthoring().getValue().getAuthoringDateTime().getDate()) : null);
        patientProcedure.setProcTime(form.ccAuthoring().getValue() != null && form.ccAuthoring().getValue().getAuthoringDateTimeIsNotNull() ? form.ccAuthoring().getValue().getAuthoringDateTime().getTime() : null);
    }
    else
        patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);

    patientProcedure.setProcLaterality(form.cmbLaterality().getValue());

    return patientProcedure;
}
项目:AvoinApotti    文件:ReferralCodingProcedureToSFSAssessmentDialogImpl.java   
public PatientProcedureLiteVo getProcedureLiteVo(PatientProcedureRefVo procRefVo)
{
    DomainFactory factory = getDomainFactory();
    PatientProcedure proc = (PatientProcedure) factory.getDomainObject(PatientProcedure.class, procRefVo.getID_PatientProcedure());
    return (PatientProcedureLiteVoAssembler.create(proc));
}
项目:openMAXIMS    文件:ReferralCodingProcedureToSFSAssessmentDialogImpl.java   
public PatientProcedureLiteVo getProcedureLiteVo(PatientProcedureRefVo procRefVo)
{
    DomainFactory factory = getDomainFactory();
    PatientProcedure proc = (PatientProcedure) factory.getDomainObject(PatientProcedure.class, procRefVo.getID_PatientProcedure());
    return (PatientProcedureLiteVoAssembler.create(proc));
}
项目:openMAXIMS    文件:ReferralCodingProcedureToSFSAssessmentDialogImpl.java   
public PatientProcedureLiteVo getProcedureLiteVo(PatientProcedureRefVo procRefVo)
{
    DomainFactory factory = getDomainFactory();
    PatientProcedure proc = (PatientProcedure) factory.getDomainObject(PatientProcedure.class, procRefVo.getID_PatientProcedure());
    return (PatientProcedureLiteVoAssembler.create(proc));
}