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

项目:AvoinApotti    文件:Logic.java   
/**
 * Populate the Details panel for a given ICciFull
 * @param ICciFull
 * @return void
 */
private void populateInstanceControls(ICciFull cci)
{
    clearInstanceControls();

    if (cci == null)
        return;

    form.txtName().setValue(cci.getIGenericItemInfoName());
    form.cmbAlgType().setValue(cci.getCciAllergenType());
    form.cmbTreatInterventionType().setValue(cci.getCciTreatmentInterventionType()); //WDEV-17125
    form.intProcDuration().setValue(cci.getCciProcedureDuration());
    form.intTCILag().setValue(cci.getCciTCILagTime()); //WDEV-12918
    form.intLOS().setValue(cci.getCciProcedureLOS());

    // WDEV-17934
    form.cmbSurgeonCat().setValue(cci.getSurgeonCategory());
    form.cmbAnaesthetistCat().setValue(cci.getAnaesthetistCategory());
    form.cmbHospitalCat().setValue(cci.getHospitalCategory());

    form.chkIsActive().setValue(cci.getIGenericItemInfoIsActive() != null? cci.getIGenericItemInfoIsActive().booleanValue() : false);
    populateTaxonomyMappings(cci.getCciMappings());
    populateKeywords(cci.getCciKeywords());
    //WDEV-11921 - Start
    if (cci instanceof MedicationFullVo)
    {
        MedicationFullVo med = (MedicationFullVo) cci;
        form.chkControlledDrug().setValue(med.getIsControlledDrugIsNotNull() && med.getIsControlledDrug());
        populateFRU(med.getForms());

        form.lyrDetails().tabDefaultValues().cmbFrequency().setValue(med.getFrequencyDefault());//  WDEV-13584
        form.lyrDetails().tabDefaultValues().intDays().setValue(med.getNoOfDaysSupplyDefault());//  WDEV-13584
    }
    //WDEV-11921 - End
    /*WDEV-11921
    //WDEV-11836 - starts here

    form.chkControlledDrug().setValue(cci.getIIsControlledDrug());

    populateUnitsGrid(cci.getUnits());
    populateFormsGrid(cci.getForms());
    populateRoutesGrid(cci.getRoutes());
    //WDEV-11836 - ends here
     * WDEV-11921
     */

    // for the moment, hotlists are only available for procedure, problem and diagnosis
    if ( cci instanceof DiagnosisVo 
            || cci instanceof ProblemConfigVo 
            || cci instanceof ProcedureVo
            || cci instanceof MedicationFullVo//WDEV-11921
            || cci instanceof CancerImagingEventVo
            || cci instanceof PresentingComplaintVo
            || cci instanceof TreatmentInterventionVo)//WDEV-17060          
        populateHotlists(cci.getIGenericItemInfoID());

    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Updates the given ICciFull interface with values from the data onscreen
 * @param ICciFull
 * @return ICciFull
 */
private ICciFull populateInstanceData(ICciFull selectedItem) 
{       
    if (selectedItem==null)
        selectedItem=form.getLocalContext().getSelectedItem();

    selectedItem.setIGenericItemName(form.txtName().getValue());
    selectedItem.setCciAllergenType(form.cmbAlgType().getValue());
    selectedItem.setCciTreatmentInterventionType(form.cmbTreatInterventionType().getValue());//WDEV-17125
    selectedItem.setCciProcedureDuration(form.intProcDuration().getValue());
    selectedItem.setCciTCILagTime(form.intTCILag().getValue()); //WDEV-12918
    selectedItem.setCciProcedureLOS(form.intLOS().getValue());

    // WDEV-17934
    selectedItem.setSurgeonCategory(form.cmbSurgeonCat().getValue());
    selectedItem.setAnaesthetistCategory(form.cmbAnaesthetistCat().getValue());
    selectedItem.setHospitalCategory(form.cmbHospitalCat().getValue());

    selectedItem.setIGenericItemIsActive(Boolean.valueOf(form.chkIsActive().getValue()));
    selectedItem.setCciMappings(getMappings());
    selectedItem.setCciKeywords(getKeywords());

    //WDEV-11921 start
    if (selectedItem instanceof MedicationFullVo)
    {
        MedicationFullVo med = (MedicationFullVo) selectedItem;
        med.setIsControlledDrug(form.chkControlledDrug().getValue());
        med.setForms(populateFRUDataFromScreen());

        med.setFrequencyDefault(form.lyrDetails().tabDefaultValues().cmbFrequency().getValue());//  WDEV-13584
        med.setNoOfDaysSupplyDefault(form.lyrDetails().tabDefaultValues().intDays().getValue());//  WDEV-13584
        return med;
    }
    //WDEV-11921-end
    //WDEV-11836 - starts here

    /*WDEV-11921
    selectedItem.setUnits(getUnitsFromGrid());
    selectedItem.setForms(getFormsFromGrid());
    selectedItem.setRoutes(getRoutesFromGrid());
    //WDEV-11836 - ends here
     * WDEV-11921
     */

    return selectedItem;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Updates the given ICciFull interface with values from the data onscreen
 * @param ICciFull
 * @return ICciFull
 */
private ICciFull populateInstanceData(ICciFull selectedItem) 
{       
    if (selectedItem==null)
        selectedItem=form.getLocalContext().getSelectedItem();

    selectedItem.setIGenericItemName(form.txtName().getValue());
    selectedItem.setCciAllergenType(form.cmbAlgType().getValue());
    selectedItem.setCciTreatmentInterventionType(form.cmbTreatInterventionType().getValue());//WDEV-17125
    selectedItem.setCciProcedureDuration(form.intProcDuration().getValue());
    selectedItem.setCciTCILagTime(form.intTCILag().getValue()); //WDEV-12918
    selectedItem.setCciProcedureLOS(form.intLOS().getValue());

    //wdev-19500
    selectedItem.setCciProcedureOutpatientOnly(form.chkOutpatientOnly().getValue());

    //WDEV-20629
    selectedItem.setCciProcedureMedicalWL(form.chkMedicalWL().getValue());
    // WDEV-17934
    selectedItem.setSurgeonCategory(form.cmbSurgeonCat().getValue());
    selectedItem.setAnaesthetistCategory(form.cmbAnaesthetistCat().getValue());
    selectedItem.setHospitalCategory(form.cmbHospitalCat().getValue());

    //WDEV-20252
    selectedItem.setCciProcedureBilateralListingApplicable(Boolean.valueOf(form.chkProcBilateralListing().getValue()));
    selectedItem.setCciProcedureGenderSpecific(form.cmbProcGenderSpecific().getValue());
    selectedItem.setCciProcedureDefaultAnaestheticType(form.cmbProcDefaultAnaesthType().getValue());
    selectedItem.setCciProcedureIsLateralityApplicable(Boolean.valueOf(form.chkProcLaterality().getValue()));
    //WDEV-20252 --- ends here

    selectedItem.setIGenericItemIsActive(Boolean.valueOf(form.chkIsActive().getValue()));
    if(selectedItem instanceof ProcedureVo)
    {
        selectedItem.setCciMappings(getMappings(true));
        ProcedureVo pro = (ProcedureVo)selectedItem;
        pro.setIsEndoscopy(form.chkEndoscopy().getValue());
    }
    else
    {
        selectedItem.setCciMappings(getMappings(false));
    }
    selectedItem.setCciKeywords(getKeywords());

    selectedItem.setCciProcedureEndoscopyType(form.cmbEndoscopyType().getValue());//WDEV-20252

    //WDEV-11921 start
    if (selectedItem instanceof MedicationFullVo)
    {
        MedicationFullVo med = (MedicationFullVo) selectedItem;
        med.setIsControlledDrug(form.chkControlledDrug().getValue());
        med.setForms(populateFRUDataFromScreen());

        med.setFrequencyDefault(form.lyrDetails().tabDefaultValues().cmbFrequency().getValue());//  WDEV-13584
        med.setNoOfDaysSupplyDefault(form.lyrDetails().tabDefaultValues().intDays().getValue());//  WDEV-13584
        return med;
    }
    //WDEV-11921-end
    //WDEV-11836 - starts here

    /*WDEV-11921
    selectedItem.setUnits(getUnitsFromGrid());
    selectedItem.setForms(getFormsFromGrid());
    selectedItem.setRoutes(getRoutesFromGrid());
    //WDEV-11836 - ends here
     * WDEV-11921
     */

    return selectedItem;
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Populate the Details panel for a given ICciFull
 * @param ICciFull
 * @return void
 */
private void populateInstanceControls(ICciFull cci)
{
    clearInstanceControls();

    if (cci == null)
        return;

    form.txtName().setValue(cci.getIGenericItemInfoName());
    form.cmbAlgType().setValue(cci.getCciAllergenType());
    form.cmbTreatInterventionType().setValue(cci.getCciTreatmentInterventionType()); //WDEV-17125
    form.intProcDuration().setValue(cci.getCciProcedureDuration());
    form.intTCILag().setValue(cci.getCciTCILagTime()); //WDEV-12918
    form.intLOS().setValue(cci.getCciProcedureLOS());

    // WDEV-17934
    form.cmbSurgeonCat().setValue(cci.getSurgeonCategory());
    form.cmbAnaesthetistCat().setValue(cci.getAnaesthetistCategory());
    form.cmbHospitalCat().setValue(cci.getHospitalCategory());

    form.chkIsActive().setValue(cci.getIGenericItemInfoIsActive() != null? cci.getIGenericItemInfoIsActive().booleanValue() : false);
    populateTaxonomyMappings(cci.getCciMappings());
    populateKeywords(cci.getCciKeywords());
    //WDEV-11921 - Start
    if (cci instanceof MedicationFullVo)
    {
        MedicationFullVo med = (MedicationFullVo) cci;
        form.chkControlledDrug().setValue(med.getIsControlledDrugIsNotNull() && med.getIsControlledDrug());
        populateFRU(med.getForms());

        form.lyrDetails().tabDefaultValues().cmbFrequency().setValue(med.getFrequencyDefault());//  WDEV-13584
        form.lyrDetails().tabDefaultValues().intDays().setValue(med.getNoOfDaysSupplyDefault());//  WDEV-13584
    }
    //WDEV-11921 - End
    /*WDEV-11921
    //WDEV-11836 - starts here

    form.chkControlledDrug().setValue(cci.getIIsControlledDrug());

    populateUnitsGrid(cci.getUnits());
    populateFormsGrid(cci.getForms());
    populateRoutesGrid(cci.getRoutes());
    //WDEV-11836 - ends here
     * WDEV-11921
     */

    // for the moment, hotlists are only available for procedure, problem and diagnosis
    if ( cci instanceof DiagnosisVo 
            || cci instanceof ProblemConfigVo 
            || cci instanceof ProcedureVo
            || cci instanceof MedicationFullVo//WDEV-11921
            || cci instanceof CancerImagingEventVo
            || cci instanceof PresentingComplaintVo
            || cci instanceof TreatmentInterventionVo)//WDEV-17060          
        populateHotlists(cci.getIGenericItemInfoID());

    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Updates the given ICciFull interface with values from the data onscreen
 * @param ICciFull
 * @return ICciFull
 */
private ICciFull populateInstanceData(ICciFull selectedItem) 
{       
    if (selectedItem==null)
        selectedItem=form.getLocalContext().getSelectedItem();

    selectedItem.setIGenericItemName(form.txtName().getValue());
    selectedItem.setCciAllergenType(form.cmbAlgType().getValue());
    selectedItem.setCciTreatmentInterventionType(form.cmbTreatInterventionType().getValue());//WDEV-17125
    selectedItem.setCciProcedureDuration(form.intProcDuration().getValue());
    selectedItem.setCciTCILagTime(form.intTCILag().getValue()); //WDEV-12918
    selectedItem.setCciProcedureLOS(form.intLOS().getValue());

    // WDEV-17934
    selectedItem.setSurgeonCategory(form.cmbSurgeonCat().getValue());
    selectedItem.setAnaesthetistCategory(form.cmbAnaesthetistCat().getValue());
    selectedItem.setHospitalCategory(form.cmbHospitalCat().getValue());

    selectedItem.setIGenericItemIsActive(Boolean.valueOf(form.chkIsActive().getValue()));
    selectedItem.setCciMappings(getMappings());
    selectedItem.setCciKeywords(getKeywords());

    //WDEV-11921 start
    if (selectedItem instanceof MedicationFullVo)
    {
        MedicationFullVo med = (MedicationFullVo) selectedItem;
        med.setIsControlledDrug(form.chkControlledDrug().getValue());
        med.setForms(populateFRUDataFromScreen());

        med.setFrequencyDefault(form.lyrDetails().tabDefaultValues().cmbFrequency().getValue());//  WDEV-13584
        med.setNoOfDaysSupplyDefault(form.lyrDetails().tabDefaultValues().intDays().getValue());//  WDEV-13584
        return med;
    }
    //WDEV-11921-end
    //WDEV-11836 - starts here

    /*WDEV-11921
    selectedItem.setUnits(getUnitsFromGrid());
    selectedItem.setForms(getFormsFromGrid());
    selectedItem.setRoutes(getRoutesFromGrid());
    //WDEV-11836 - ends here
     * WDEV-11921
     */

    return selectedItem;
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Populate the Details panel for a given ICciFull
 * @param ICciFull
 * @return void
 */
private void populateInstanceControls(ICciFull cci)
{
    clearInstanceControls();

    if (cci == null)
        return;

    form.txtName().setValue(cci.getIGenericItemInfoName());
    form.cmbAlgType().setValue(cci.getCciAllergenType());
    form.cmbTreatInterventionType().setValue(cci.getCciTreatmentInterventionType()); //WDEV-17125
    form.intProcDuration().setValue(cci.getCciProcedureDuration());
    form.intTCILag().setValue(cci.getCciTCILagTime()); //WDEV-12918
    form.intLOS().setValue(cci.getCciProcedureLOS());

    // WDEV-17934
    form.cmbSurgeonCat().setValue(cci.getSurgeonCategory());
    form.cmbAnaesthetistCat().setValue(cci.getAnaesthetistCategory());
    form.cmbHospitalCat().setValue(cci.getHospitalCategory());

    form.chkIsActive().setValue(cci.getIGenericItemInfoIsActive() != null? cci.getIGenericItemInfoIsActive().booleanValue() : false);
    populateTaxonomyMappings(cci.getCciMappings());
    populateKeywords(cci.getCciKeywords());
    //WDEV-11921 - Start
    if (cci instanceof MedicationFullVo)
    {
        MedicationFullVo med = (MedicationFullVo) cci;
        form.chkControlledDrug().setValue(med.getIsControlledDrugIsNotNull() && med.getIsControlledDrug());
        populateFRU(med.getForms());

        form.lyrDetails().tabDefaultValues().cmbFrequency().setValue(med.getFrequencyDefault());//  WDEV-13584
        form.lyrDetails().tabDefaultValues().intDays().setValue(med.getNoOfDaysSupplyDefault());//  WDEV-13584
    }
    //WDEV-11921 - End
    /*WDEV-11921
    //WDEV-11836 - starts here

    form.chkControlledDrug().setValue(cci.getIIsControlledDrug());

    populateUnitsGrid(cci.getUnits());
    populateFormsGrid(cci.getForms());
    populateRoutesGrid(cci.getRoutes());
    //WDEV-11836 - ends here
     * WDEV-11921
     */

    // for the moment, hotlists are only available for procedure, problem and diagnosis
    if ( cci instanceof DiagnosisVo 
            || cci instanceof ProblemConfigVo 
            || cci instanceof ProcedureVo
            || cci instanceof MedicationFullVo//WDEV-11921
            || cci instanceof CancerImagingEventVo
            || cci instanceof PresentingComplaintVo
            || cci instanceof TreatmentInterventionVo)//WDEV-17060          
        populateHotlists(cci.getIGenericItemInfoID());

    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Updates the given ICciFull interface with values from the data onscreen
 * @param ICciFull
 * @return ICciFull
 */
private ICciFull populateInstanceData(ICciFull selectedItem) 
{       
    if (selectedItem==null)
        selectedItem=form.getLocalContext().getSelectedItem();

    selectedItem.setIGenericItemName(form.txtName().getValue());
    selectedItem.setCciAllergenType(form.cmbAlgType().getValue());
    selectedItem.setCciTreatmentInterventionType(form.cmbTreatInterventionType().getValue());//WDEV-17125
    selectedItem.setCciProcedureDuration(form.intProcDuration().getValue());
    selectedItem.setCciTCILagTime(form.intTCILag().getValue()); //WDEV-12918
    selectedItem.setCciProcedureLOS(form.intLOS().getValue());

    // WDEV-17934
    selectedItem.setSurgeonCategory(form.cmbSurgeonCat().getValue());
    selectedItem.setAnaesthetistCategory(form.cmbAnaesthetistCat().getValue());
    selectedItem.setHospitalCategory(form.cmbHospitalCat().getValue());

    selectedItem.setIGenericItemIsActive(Boolean.valueOf(form.chkIsActive().getValue()));
    selectedItem.setCciMappings(getMappings());
    selectedItem.setCciKeywords(getKeywords());

    //WDEV-11921 start
    if (selectedItem instanceof MedicationFullVo)
    {
        MedicationFullVo med = (MedicationFullVo) selectedItem;
        med.setIsControlledDrug(form.chkControlledDrug().getValue());
        med.setForms(populateFRUDataFromScreen());

        med.setFrequencyDefault(form.lyrDetails().tabDefaultValues().cmbFrequency().getValue());//  WDEV-13584
        med.setNoOfDaysSupplyDefault(form.lyrDetails().tabDefaultValues().intDays().getValue());//  WDEV-13584
        return med;
    }
    //WDEV-11921-end
    //WDEV-11836 - starts here

    /*WDEV-11921
    selectedItem.setUnits(getUnitsFromGrid());
    selectedItem.setForms(getFormsFromGrid());
    selectedItem.setRoutes(getRoutesFromGrid());
    //WDEV-11836 - ends here
     * WDEV-11921
     */

    return selectedItem;
}