コード例 #1
0
  private PlanOfCareActionsVoCollection populateDataFromScreen() {
    PlanOfCareActionsVoCollection voColl =
        form.getGlobalContext().getPlanOfCareActionsReview().getActions();

    for (int x = 0; x < form.grdActionReview().getRows().size(); x++) {
      PlanOfCareActionsVo rowValue = form.grdActionReview().getRows().get(x).getValue();
      String actionReview = form.grdActionReview().getRows().get(x).getColReview();

      if (rowValue != null && actionReview != null && actionReview.length() > 0) {
        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(
            form.customAuthoring().getValue().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());

        rowValue.setAuthoringInformation(voAuthoringInformation);
        rowValue.setReview(actionReview);
        //				POCNoting ReviewingHCP ReviewingDateTime
        rowValue.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
        rowValue.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

        voColl.add(rowValue);
      }
    }

    return voColl;
  }
コード例 #2
0
  private PlanOfCareNotingVo populateDataFromScreenForNoting(
      PlanOfCareActionsVoCollection recordColl) {
    PlanOfCareNotingVo pocNoting = form.getGlobalContext().getPlanOfCareActionsReview();
    //		POCNoting CareContext
    pocNoting.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
    voAuthoringInformation.setAuthoringDateTime(
        form.customAuthoring().getValue().getAuthoringDateTime());
    voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());
    pocNoting.setAuthoringInformation(voAuthoringInformation);

    // POCNoting ReviewingHCP ReviewingDateTime
    pocNoting.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
    pocNoting.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

    pocNoting.setActionStatus(PlanOfCareActionStatus.ACTIVE);

    pocNoting.setActions(recordColl);

    return pocNoting;
  }
コード例 #3
0
  private void populateCustomControls() {
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();

    if (voItem.getAuthoringInformationIsNotNull()) {
      AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
      voAuthoringInformation.setAuthoringDateTime(
          voItem.getAuthoringInformation().getAuthoringDateTime());
      voAuthoringInformation.setAuthoringHcp(voItem.getAuthoringInformation().getAuthoringHcp());
      form.customAuthoring().setValue(voAuthoringInformation);
    }

    if (voItem.getReviewingDateTimeIsNotNull() && voItem.getReviewingHCPIsNotNull()) {
      AuthoringInformationVo voReviewingInformation = new AuthoringInformationVo();
      voReviewingInformation.setAuthoringDateTime(voItem.getReviewingDateTime());
      voReviewingInformation.setAuthoringHcp(voItem.getReviewingHCP());
      form.customReviewing().setValue(voReviewingInformation);
    } else {
      form.customReviewing().initializeComponent();
    }
    form.setcustomAuthoringEnabled(false);
    form.setcustomReviewingEnabled(false);
  }