Java 类ims.core.vo.lookups.SourceofInformation 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateItemFromRow(PatientProcedureVo item, grdProceduresRow childRow)
{
    if(item == null)
        return;

    item.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    item.setProcDate(childRow.getcolOnset());
    item.setProcedure((ProcedureLiteVo) childRow.getValue());
    item.setNotes(childRow.getcolNotes());
    item.setProcedureDescription(childRow.getcolNotes());
    item.setSpecialty((Specialty) childRow.getParentRow().getValue());
    item.setInfoSource(SourceofInformation.CLINICALCONTACT);
    item.setProcedureStatus(PatientProcedureStatus.PERFORMED);

    if(item.getAuthoringInformation() == null)
    {
        item.setAuthoringInformation(getAuthoringInfo());
    }
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureApptDetailVo populatePatientProcedureFromScreen(ProcedureLiteVo procedure, Boolean isPrimary, CatsReferralForClinicalNotesVo referral)
{
    if(procedure == null)
        return null;

    PatientProcedureApptDetailVo patientProcedure = new PatientProcedureApptDetailVo();
    patientProcedure.setAppointment(form.getGlobalContext().RefMan.getAppointmentForPatientDiagnosisOrProcedures());

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(procedure.getProcedureName());
    patientProcedure.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patientProcedure.setAuthoringInformation(form.ccAuthoringInfo().getValue());
    patientProcedure.setEpisodeOfCare(referral.getCareContext().getEpisodeOfCare());
    patientProcedure.setCareContext(referral.getCareContext());
    patientProcedure.setProcDate(form.pdtPerformed().getValue());
    patientProcedure.setProcedureStatus(OutcomeEnumeration.rdoComplete.equals(form.Outcome().getValue()) ? PatientProcedureStatus.PERFORMED : PatientProcedureStatus.INCOMPLETE);
    patientProcedure.setIncompleteReason(OutcomeEnumeration.rdoIncomplete.equals(form.Outcome().getValue()) ? form.cmbReason().getValue() : null);
    patientProcedure.setIsPrimaryProcedure(isPrimary);

    return patientProcedure;
}
项目:AvoinApotti    文件:Logic.java   
private PatientDiagnosisApptDetailVo populatePatientDiagnoseFromScreen(DiagLiteVo diagnose, Boolean isMain, CatsReferralForClinicalNotesVo referral)
{
    if(diagnose == null)
        return null;

    PatientDiagnosisApptDetailVo patientDiagnose = new PatientDiagnosisApptDetailVo();
    patientDiagnose.setAppointment(form.getGlobalContext().RefMan.getAppointmentForPatientDiagnosisOrProcedures());

    patientDiagnose.setDiagnosis(diagnose);
    patientDiagnose.setDiagnosisDescription(diagnose.getDiagnosisName());
    patientDiagnose.setSourceofInformation(SourceofInformation.CLINICALCONTACT);
    patientDiagnose.setAuthoringInfo(form.ccAuthoringInfo().getValue());
    patientDiagnose.setEpisodeOfCare(referral.getCareContext().getEpisodeOfCare());
    patientDiagnose.setCareContext(referral.getCareContext());
    patientDiagnose.setDiagnosedDate(new PartialDate(new Date()));

    setCsPrimaryDiagnosis(patientDiagnose, isMain);

    return patientDiagnose;
}
项目:AvoinApotti    文件:Logic.java   
private PatientMedicationLiteVoCollection getMedications()
{
    PatientMedicationLiteVoCollection medications = new PatientMedicationLiteVoCollection();

    for(int x = 0; x < form.grdMedication().getRows().size(); x++)
    {
        PatientMedicationLiteVo medication = form.grdMedication().getRows().get(x).getValue();

        medication.setCommencedDate(form.grdMedication().getRows().get(x).getcolDate());
        medication.setFrequency(form.grdMedication().getRows().get(x).getcolFrequency());
        medication.setOtherMedicationText(medication.getMedication() == null ? "" : medication.getMedication().getMedicationName());
        medication.setSourceofInformation(SourceofInformation.CORRESPONDENCE);
        medication.setPatient(form.getGlobalContext().Core.getPatientShort());

        medications.add(medication);            
    }

    return medications;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onGrdCoMorbitiesMutableComboBoxSelected(int column, grdCoMorbitiesRow row, Object value) throws PresentationLogicException 
{
    if(value instanceof DiagLiteVo)
    {
        PatientDiagnosisLiteVo patDiag = new PatientDiagnosisLiteVo();
        patDiag.setIsComorbidity(true);
        patDiag.setDiagnosis((DiagLiteVo) value);
        patDiag.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        patDiag.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare()); //WDEV-15293
        patDiag.setSourceofInformation(SourceofInformation.CORRESPONDENCE);
        patDiag.setDiagnosisDescription(((DiagLiteVo) value).getDiagnosisNameIsNotNull() ? ((DiagLiteVo) value).getDiagnosisName() : "");

        row.setValue(patDiag);
    }

}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目: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   
protected void onCustomControlCodingItemValueChanged() throws PresentationLogicException 
{
    AllergenVo voAllergen = (AllergenVo) form.ctnDetails().customControlCodingItem().getSelectedItem();
    form.ctnDetails().cmbType().setValue(voAllergen != null ? voAllergen.getAllergenType() : null);
    fillReactionCombo();

    if( ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("WST"))
        return;

    if (form.getMode().equals(FormMode.EDIT))
        form.ctnDetails().cmbSource().setEnabled(true);

    if (form.ctnDetails().cmbSource().getValue() != null
        &&form.ctnDetails().cmbSource().getValue().equals(SourceofInformation.PAS))
            form.ctnDetails().cmbSource().setValue(null);

    if (voAllergen != null)
        defaultSourceCombo(voAllergen);
}
项目:AvoinApotti    文件:Logic.java   
private void defaultSourceCombo(AllergenVo voAllergen)
{

    if (form.getMode().equals(FormMode.EDIT))
    {

        if (voAllergen != null
            && voAllergen.getTaxonomyMapIsNotNull()
            && voAllergen.getTaxonomyMap().size() > 0)
        {   
            for ( int i = 0 ; i < voAllergen.getTaxonomyMap().size() ; i++)
            {
                if (voAllergen.getTaxonomyMap().get(i).getTaxonomyCodeIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyCode().equals("ALLE")
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyNameIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyName().getText().equals("PAS"))
                {
                    form.ctnDetails().cmbSource().setEnabled(false);
                    form.ctnDetails().cmbSource().setValue(SourceofInformation.PAS);
                }
            }
        }
    }
}
项目: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;
}
项目:openMAXIMS    文件:Logic.java   
private void populateItemFromRow(PatientProcedureVo item, grdProceduresRow childRow)
{
    if(item == null)
        return;

    item.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    item.setProcDate(childRow.getcolOnset());
    item.setProcedure((ProcedureLiteVo) childRow.getValue());
    item.setNotes(childRow.getcolNotes());
    item.setProcedureDescription(childRow.getcolNotes());
    item.setSpecialty((Specialty) childRow.getParentRow().getValue());
    item.setInfoSource(SourceofInformation.CLINICALCONTACT);
    item.setProcedureStatus(PatientProcedureStatus.PERFORMED);

    if(item.getAuthoringInformation() == null)
    {
        item.setAuthoringInformation(getAuthoringInfo());
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureApptDetailVo populatePatientProcedureFromScreen(ProcedureLiteVo procedure, Boolean isPrimary, CatsReferralForClinicalNotesVo referral)
{
    if(procedure == null)
        return null;

    PatientProcedureApptDetailVo patientProcedure = new PatientProcedureApptDetailVo();
    patientProcedure.setAppointment(form.getGlobalContext().RefMan.getAppointmentForPatientDiagnosisOrProcedures());

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(procedure.getProcedureName());
    patientProcedure.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patientProcedure.setAuthoringInformation(form.ccAuthoringInfo().getValue());
    patientProcedure.setEpisodeOfCare(referral.getCareContext().getEpisodeOfCare());
    patientProcedure.setCareContext(referral.getCareContext());
    patientProcedure.setProcDate(form.pdtPerformed().getValue());
    patientProcedure.setProcedureStatus(OutcomeEnumeration.rdoComplete.equals(form.Outcome().getValue()) ? PatientProcedureStatus.PERFORMED : PatientProcedureStatus.INCOMPLETE);
    patientProcedure.setIncompleteReason(OutcomeEnumeration.rdoIncomplete.equals(form.Outcome().getValue()) ? form.cmbReason().getValue() : null);
    patientProcedure.setIsPrimaryProcedure(isPrimary);

    return patientProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private PatientDiagnosisApptDetailVo populatePatientDiagnoseFromScreen(DiagLiteVo diagnose, Boolean isMain, CatsReferralForClinicalNotesVo referral)
{
    if(diagnose == null)
        return null;

    PatientDiagnosisApptDetailVo patientDiagnose = new PatientDiagnosisApptDetailVo();
    patientDiagnose.setAppointment(form.getGlobalContext().RefMan.getAppointmentForPatientDiagnosisOrProcedures());

    patientDiagnose.setDiagnosis(diagnose);
    patientDiagnose.setDiagnosisDescription(diagnose.getDiagnosisName());
    patientDiagnose.setSourceofInformation(SourceofInformation.CLINICALCONTACT);
    patientDiagnose.setAuthoringInfo(form.ccAuthoringInfo().getValue());
    patientDiagnose.setEpisodeOfCare(referral.getCareContext().getEpisodeOfCare());
    patientDiagnose.setCareContext(referral.getCareContext());
    patientDiagnose.setDiagnosedDate(new PartialDate(new Date()));

    setCsPrimaryDiagnosis(patientDiagnose, isMain);

    return patientDiagnose;
}
项目:openMAXIMS    文件:Logic.java   
private PatientMedicationLiteVoCollection getMedications()
{
    PatientMedicationLiteVoCollection medications = new PatientMedicationLiteVoCollection();

    for(int x = 0; x < form.grdMedication().getRows().size(); x++)
    {
        PatientMedicationLiteVo medication = form.grdMedication().getRows().get(x).getValue();

        medication.setCommencedDate(form.grdMedication().getRows().get(x).getcolDate());
        medication.setFrequency(form.grdMedication().getRows().get(x).getcolFrequency());
        medication.setOtherMedicationText(medication.getMedication() == null ? "" : medication.getMedication().getMedicationName());
        medication.setSourceofInformation(SourceofInformation.CORRESPONDENCE);
        medication.setPatient(form.getGlobalContext().Core.getPatientShort());

        medications.add(medication);            
    }

    return medications;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdCoMorbitiesMutableComboBoxSelected(int column, grdCoMorbitiesRow row, Object value) throws PresentationLogicException 
{
    if(value instanceof DiagLiteVo)
    {
        PatientDiagnosisLiteVo patDiag = new PatientDiagnosisLiteVo();
        patDiag.setIsComorbidity(true);
        patDiag.setDiagnosis((DiagLiteVo) value);
        patDiag.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        patDiag.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare()); //WDEV-15293
        patDiag.setSourceofInformation(SourceofInformation.CORRESPONDENCE);
        patDiag.setDiagnosisDescription(((DiagLiteVo) value).getDiagnosisNameIsNotNull() ? ((DiagLiteVo) value).getDiagnosisName() : "");

        row.setValue(patDiag);
    }

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目: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   
protected void onCustomControlCodingItemValueChanged() throws PresentationLogicException 
{
    AllergenVo voAllergen = (AllergenVo) form.ctnDetails().customControlCodingItem().getSelectedItem();
    form.ctnDetails().cmbType().setValue(voAllergen != null ? voAllergen.getAllergenType() : null);
    fillReactionCombo();

    if( ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("WST"))
        return;

    if (form.getMode().equals(FormMode.EDIT))
        form.ctnDetails().cmbSource().setEnabled(true);

    if (form.ctnDetails().cmbSource().getValue() != null
        &&form.ctnDetails().cmbSource().getValue().equals(SourceofInformation.PAS))
            form.ctnDetails().cmbSource().setValue(null);

    if (voAllergen != null)
        defaultSourceCombo(voAllergen);
}
项目:openMAXIMS    文件:Logic.java   
private void defaultSourceCombo(AllergenVo voAllergen)
{

    if (form.getMode().equals(FormMode.EDIT))
    {

        if (voAllergen != null
            && voAllergen.getTaxonomyMapIsNotNull()
            && voAllergen.getTaxonomyMap().size() > 0)
        {   
            for ( int i = 0 ; i < voAllergen.getTaxonomyMap().size() ; i++)
            {
                if (voAllergen.getTaxonomyMap().get(i).getTaxonomyCodeIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyCode().equals("ALLE")
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyNameIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyName().getText().equals("PAS"))
                {
                    form.ctnDetails().cmbSource().setEnabled(false);
                    form.ctnDetails().cmbSource().setValue(SourceofInformation.PAS);
                }
            }
        }
    }
}
项目: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    文件:IntraOperativeCaseDetailsDialogImpl.java   
@Override
public void saveIntraOpPlannedProcedure(IntraOpPlannedProcedureVo intraOpPlanned, Booking_AppointmentRefVo theatreAppt) throws StaleObjectException
{
    String methodName = "saveIntraOpPlannedProcedure";
    if (intraOpPlanned == null)
        throw new CodingRuntimeException("intraOpPlanned is null in method " + methodName);
    if (!intraOpPlanned.isValidated())
        throw new CodingRuntimeException("intraOpPlanned has not been validated in method " + methodName);
    if (theatreAppt == null)
        throw new CodingRuntimeException("theatreAppt is null in method " + methodName);

    DomainFactory factory = getDomainFactory();
    IntraOpPlannedProcedure doPlannedProc = IntraOpPlannedProcedureVoAssembler.extractIntraOpPlannedProcedure(factory, intraOpPlanned);

    //WDEV-21845
    CareContext careContext = getCareContextFromCatsReferral(theatreAppt);
    doPlannedProc.getPlannedProcedure().setEpisodeOfCare(careContext.getEpisodeOfCare());

    doPlannedProc.getPlannedProcedure().setProcedureDescription(doPlannedProc.getPlannedProcedure().getProcedure().getProcedureName());
    doPlannedProc.getPlannedProcedure().setInfoSource(factory.getLookupInstance(SourceofInformation.CLINICALCONTACT.getID()));

    doPlannedProc.getPlannedProcedure().setIsPrimary(!wasPrimaryProcedureRecordedForAppointment(theatreAppt));

    factory.save(doPlannedProc);
}
项目:openMAXIMS    文件:IntraOperativeCaseDetailsDialogImpl.java   
@Override
public void savePerformedProcedure(PerformedProceduresIntraOpVo performed, Booking_AppointmentRefVo theatreAppt) throws StaleObjectException
{
    String methodName = "savePerformedProcedure";
    if (performed == null)
        throw new CodingRuntimeException("performed is null in method " + methodName);
    if (!performed.isValidated())
        throw new CodingRuntimeException("performed has not been validated in method " + methodName);
    if (theatreAppt == null)
        throw new CodingRuntimeException("theatreAppt is null in method " + methodName);

    DomainFactory factory = getDomainFactory();
    PerformedProceduresIntraO doPerformedProc = PerformedProceduresIntraOpVoAssembler.extractPerformedProceduresIntraO(factory, performed);

    CareContext careContext = getCareContextFromCatsReferral(theatreAppt);
    doPerformedProc.getPerformedProcedure().setEpisodeOfCare(careContext.getEpisodeOfCare());//WDEV-22246

    doPerformedProc.getPerformedProcedure().setProcedureDescription(doPerformedProc.getPerformedProcedure().getProcedure().getProcedureName());
    doPerformedProc.getPerformedProcedure().setInfoSource(factory.getLookupInstance(SourceofInformation.CLINICALCONTACT.getID()));

    factory.save(doPerformedProc);
}
项目:openMAXIMS    文件:Logic.java   
private void populateItemFromRow(PatientProcedureVo item, grdProceduresRow childRow)
{
    if(item == null)
        return;

    item.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    item.setProcDate(childRow.getcolOnset());
    item.setProcedure((ProcedureLiteVo) childRow.getValue());
    item.setNotes(childRow.getcolNotes());
    item.setProcedureDescription(childRow.getcolNotes());
    item.setSpecialty((Specialty) childRow.getParentRow().getValue());
    item.setInfoSource(SourceofInformation.CLINICALCONTACT);
    item.setProcedureStatus(PatientProcedureStatus.PERFORMED);

    if(item.getAuthoringInformation() == null)
    {
        item.setAuthoringInformation(getAuthoringInfo());
    }
}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureApptDetailVo populatePatientProcedureFromScreen(ProcedureLiteVo procedure, Boolean isPrimary, CatsReferralForClinicalNotesVo referral)
{
    if(procedure == null)
        return null;

    PatientProcedureApptDetailVo patientProcedure = new PatientProcedureApptDetailVo();
    patientProcedure.setAppointment(form.getGlobalContext().RefMan.getAppointmentForPatientDiagnosisOrProcedures());

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(procedure.getProcedureName());
    patientProcedure.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patientProcedure.setAuthoringInformation(form.ccAuthoringInfo().getValue());
    patientProcedure.setEpisodeOfCare(referral.getCareContext().getEpisodeOfCare());
    patientProcedure.setCareContext(referral.getCareContext());
    patientProcedure.setProcDate(form.pdtPerformed().getValue());
    patientProcedure.setProcedureStatus(OutcomeEnumeration.rdoComplete.equals(form.Outcome().getValue()) ? PatientProcedureStatus.PERFORMED : PatientProcedureStatus.INCOMPLETE);
    patientProcedure.setIncompleteReason(OutcomeEnumeration.rdoIncomplete.equals(form.Outcome().getValue()) ? form.cmbReason().getValue() : null);
    patientProcedure.setIsPrimaryProcedure(isPrimary);

    return patientProcedure;
}
项目:openMAXIMS    文件:Logic.java   
private PatientDiagnosisApptDetailVo populatePatientDiagnoseFromScreen(DiagLiteVo diagnose, Boolean isMain, CatsReferralForClinicalNotesVo referral)
{
    if(diagnose == null)
        return null;

    PatientDiagnosisApptDetailVo patientDiagnose = new PatientDiagnosisApptDetailVo();
    patientDiagnose.setAppointment(form.getGlobalContext().RefMan.getAppointmentForPatientDiagnosisOrProcedures());

    patientDiagnose.setDiagnosis(diagnose);
    patientDiagnose.setDiagnosisDescription(diagnose.getDiagnosisName());
    patientDiagnose.setSourceofInformation(SourceofInformation.CLINICALCONTACT);
    patientDiagnose.setAuthoringInfo(form.ccAuthoringInfo().getValue());
    patientDiagnose.setEpisodeOfCare(referral.getCareContext().getEpisodeOfCare());
    patientDiagnose.setCareContext(referral.getCareContext());
    patientDiagnose.setDiagnosedDate(new PartialDate(new Date()));

    setCsPrimaryDiagnosis(patientDiagnose, isMain);

    return patientDiagnose;
}
项目:openMAXIMS    文件:Logic.java   
private PatientMedicationLiteVoCollection getMedications()
{
    PatientMedicationLiteVoCollection medications = new PatientMedicationLiteVoCollection();

    for(int x = 0; x < form.grdMedication().getRows().size(); x++)
    {
        PatientMedicationLiteVo medication = form.grdMedication().getRows().get(x).getValue();

        medication.setCommencedDate(form.grdMedication().getRows().get(x).getcolDate());
        medication.setFrequency(form.grdMedication().getRows().get(x).getcolFrequency());
        medication.setOtherMedicationText(medication.getMedication() == null ? "" : medication.getMedication().getMedicationName());
        medication.setSourceofInformation(SourceofInformation.CORRESPONDENCE);
        medication.setPatient(form.getGlobalContext().Core.getPatientShort());

        medications.add(medication);            
    }

    return medications;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onGrdCoMorbitiesMutableComboBoxSelected(int column, grdCoMorbitiesRow row, Object value) throws PresentationLogicException 
{
    if(value instanceof DiagLiteVo)
    {
        PatientDiagnosisLiteVo patDiag = new PatientDiagnosisLiteVo();
        patDiag.setIsComorbidity(true);
        patDiag.setDiagnosis((DiagLiteVo) value);
        patDiag.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        patDiag.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare()); //WDEV-15293
        patDiag.setSourceofInformation(SourceofInformation.CORRESPONDENCE);
        patDiag.setDiagnosisDescription(((DiagLiteVo) value).getDiagnosisNameIsNotNull() ? ((DiagLiteVo) value).getDiagnosisName() : "");

        row.setValue(patDiag);
    }

}
项目:openMAXIMS    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目: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   
protected void onCustomControlCodingItemValueChanged() throws PresentationLogicException 
{
    AllergenVo voAllergen = (AllergenVo) form.ctnDetails().customControlCodingItem().getSelectedItem();
    form.ctnDetails().cmbType().setValue(voAllergen != null ? voAllergen.getAllergenType() : null);
    fillReactionCombo();

    if( ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("WST"))
        return;

    if (form.getMode().equals(FormMode.EDIT))
        form.ctnDetails().cmbSource().setEnabled(true);

    if (form.ctnDetails().cmbSource().getValue() != null
        &&form.ctnDetails().cmbSource().getValue().equals(SourceofInformation.PAS))
            form.ctnDetails().cmbSource().setValue(null);

    if (voAllergen != null)
        defaultSourceCombo(voAllergen);
}
项目:openMAXIMS    文件:Logic.java   
private void defaultSourceCombo(AllergenVo voAllergen)
{

    if (form.getMode().equals(FormMode.EDIT))
    {

        if (voAllergen != null
            && voAllergen.getTaxonomyMapIsNotNull()
            && voAllergen.getTaxonomyMap().size() > 0)
        {   
            for ( int i = 0 ; i < voAllergen.getTaxonomyMap().size() ; i++)
            {
                if (voAllergen.getTaxonomyMap().get(i).getTaxonomyCodeIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyCode().equals("ALLE")
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyNameIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyName().getText().equals("PAS"))
                {
                    form.ctnDetails().cmbSource().setEnabled(false);
                    form.ctnDetails().cmbSource().setValue(SourceofInformation.PAS);
                }
            }
        }
    }
}
项目: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-linux    文件:Logic.java   
private void populateItemFromRow(PatientProcedureVo item, grdProceduresRow childRow)
{
    if(item == null)
        return;

    item.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    item.setProcDate(childRow.getcolOnset());
    item.setProcedure((ProcedureLiteVo) childRow.getValue());
    item.setNotes(childRow.getcolNotes());
    item.setProcedureDescription(childRow.getcolNotes());
    item.setSpecialty((Specialty) childRow.getParentRow().getValue());
    item.setInfoSource(SourceofInformation.CLINICALCONTACT);
    item.setProcedureStatus(PatientProcedureStatus.PERFORMED);

    if(item.getAuthoringInformation() == null)
    {
        item.setAuthoringInformation(getAuthoringInfo());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private PatientProcedureSurgicalOpVo createPatientProcedure(ProcedureLiteVo proc)
{
    PatientProcedureSurgicalOpVo patProc = new PatientProcedureSurgicalOpVo();
    patProc.setProcedure(proc);
    patProc.setAuthoringInformation(getAuthoringInfo());
    patProc.setProcedureDescription(proc.getProcedureName());
    patProc.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    //wdev-11815
    patProc.setEpisodeOfCare(form.getGlobalContext().Core.getCurrentCareContext().getEpisodeOfCare());
    //-----
    patProc.setIncludeInDischargeLetter(true);
    patProc.setInfoSource(SourceofInformation.CLINICALCONTACT);
    patProc.setProcedureStatus(PatientProcedureStatus.PERFORMED);
    return patProc;

}
项目: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   
protected void onCustomControlCodingItemValueChanged() throws PresentationLogicException 
{
    AllergenVo voAllergen = (AllergenVo) form.ctnDetails().customControlCodingItem().getSelectedItem();
    form.ctnDetails().cmbType().setValue(voAllergen != null ? voAllergen.getAllergenType() : null);
    fillReactionCombo();

    if( ! ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("WST"))
        return;

    if (form.getMode().equals(FormMode.EDIT))
        form.ctnDetails().cmbSource().setEnabled(true);

    if (form.ctnDetails().cmbSource().getValue() != null
        &&form.ctnDetails().cmbSource().getValue().equals(SourceofInformation.PAS))
            form.ctnDetails().cmbSource().setValue(null);

    if (voAllergen != null)
        defaultSourceCombo(voAllergen);
}
项目:openmaxims-linux    文件:Logic.java   
private void defaultSourceCombo(AllergenVo voAllergen)
{

    if (form.getMode().equals(FormMode.EDIT))
    {

        if (voAllergen != null
            && voAllergen.getTaxonomyMapIsNotNull()
            && voAllergen.getTaxonomyMap().size() > 0)
        {   
            for ( int i = 0 ; i < voAllergen.getTaxonomyMap().size() ; i++)
            {
                if (voAllergen.getTaxonomyMap().get(i).getTaxonomyCodeIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyCode().equals("ALLE")
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyNameIsNotNull()
                    && voAllergen.getTaxonomyMap().get(i).getTaxonomyName().getText().equals("PAS"))
                {
                    form.ctnDetails().cmbSource().setEnabled(false);
                    form.ctnDetails().cmbSource().setValue(SourceofInformation.PAS);
                }
            }
        }
    }
}
项目: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;
}
项目:AvoinApotti    文件:Logic.java   
private void defaultSourceCombo()
{

    if (form.getMode().equals(FormMode.EDIT))
    {
        if (form.ctnDetails().cmbSource().getValue() != null
                && form.ctnDetails().cmbSource().getValue().equals(SourceofInformation.PAS))
            form.ctnDetails().cmbSource().setValue(null);

        if (form.ctnDetails().cmbAlerts().getValue() != null)
        {
            LookupInstVo inst = LookupHelper.getAlertTypeInstance(domain.getLookupService(), form.ctnDetails().cmbAlerts().getValue().getID());
            LookupInstVo alertMappings = domain.getMappings(inst);

            if (alertMappings != null)
            {
                for ( int i = 0 ; i < alertMappings.getMappings().size() ; i++)
                {
                    if (alertMappings.getMappings().get(i).getExtSystem() != null
                        && alertMappings.getMappings().get(i).getExtSystem().equals("PAS"))
                    {
                        form.ctnDetails().cmbSource().setEnabled(false);
                        form.ctnDetails().cmbSource().setValue(SourceofInformation.PAS);
                    }
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureForAppointmentOutcomeVo populateDataFromScreen(PatientProcedureForAppointmentOutcomeVo patientProcedureForAppointmentOutcome)
{
    if(patientProcedureForAppointmentOutcome == null)
        patientProcedureForAppointmentOutcome = new PatientProcedureForAppointmentOutcomeVo();
    else
        patientProcedureForAppointmentOutcome = (PatientProcedureForAppointmentOutcomeVo) patientProcedureForAppointmentOutcome.clone();

    if(patientProcedureForAppointmentOutcome.getID_PatientProcedure() == null)
    {
        patientProcedureForAppointmentOutcome.setEpisodeOfCare(form.getLocalContext().getCareContext() != null ? form.getLocalContext().getCareContext().getEpisodeOfCare() : null);
        patientProcedureForAppointmentOutcome.setCareContext(form.getLocalContext().getCareContext());      
        patientProcedureForAppointmentOutcome.setInfoSource(SourceofInformation.CLINICALCONTACT);
        patientProcedureForAppointmentOutcome.setProcDate(form.getLocalContext().getAppointmentDate() != null ? form.getLocalContext().getAppointmentDate().toPartialDate() : null);
    }

    if (patientProcedureForAppointmentOutcome.getProcedureStatus()==null)
        patientProcedureForAppointmentOutcome.setProcedureStatus(PatientProcedureStatus.PLANNED);

    IClinicalCodingValue procedureControlValue = form.ccProcedure().getValue();

    if(procedureControlValue != null)
    {
        if(procedureControlValue.getIClinicalCodingValue() instanceof ProcedureLiteVo)
        {
            patientProcedureForAppointmentOutcome.setProcedure((ProcedureLiteVo) procedureControlValue.getIClinicalCodingValue());
        }

        patientProcedureForAppointmentOutcome.setProcedureDescription(procedureControlValue.getIClinicalCodingValueDescription());
    }

    patientProcedureForAppointmentOutcome.setIsPrimary(form.chkPrimary().getValue());
    patientProcedureForAppointmentOutcome.setProcLaterality(form.cmbLaterality().getValue());
    patientProcedureForAppointmentOutcome.setSiteText(form.txtSite().getValue());
    patientProcedureForAppointmentOutcome.setPeformedBy(form.ccPerformedBy().getValue() instanceof HcpLiteVo ? (HcpLiteVo) form.ccPerformedBy().getValue() : null);

    return patientProcedureForAppointmentOutcome;
}