Precision Healthcare Solutions
CLINICAL OFFICE MPAGE SUITE DEVELOPER REPORTS DESIGNER shopping_cart mail
SALES CONTACT US
TutorialsWorkflow Component1. Getting Started2. Data Retrieval3. Tabbed Menu4. Building Reusable Parts5. Information Tab6. Relationship Tab7. Provider Relationship Tab8. Final StepsFull Page MPage1. Getting Started2. User Prompts3. Custom Script - Part 14. Add a Table5. Click to View Details6. Custom Script - Part 27. Add Remaining Details8. Bonus - Deploy to DA2Third Party IntegrationExcelJS

Appointments by Resource Tutorial - Deploy to DA2

Organizer levels can easily be modified to run in DA2 and the Reporting Portal with a few small CCL changes.

  1. Open DiscernVisualDeveloper and load your custom CCL script (1trn_appt_by_res.prg).
  2. From the Tools menu, select Prompt Builder. Click the OK button when prompted for the program name.
  3. When the prompt builder appears, leave everything as is and click the save button.
  4. At the beginning of your custom code section, add the following code block.
    ; ------------------------------------------------------------------------------------------------
    ;								BEGIN YOUR CUSTOM CODE HERE
    ; ------------------------------------------------------------------------------------------------
    
    ; Define the custom record structure you wish to have sent back in the JSON to the MPage. The name
    ; of the record structure can be anything you want but you must make sure it matches the structure
    ; name used in the add_custom_output subroutine at the bottom of this script.
    
    ; Allow running from DA2/Reporting Portal
    if (validate(patient_source) = 0)
        execute 1co5_mpage_redirect:group1 ^MINE^,^organizer-appointments-by-resource^
        go to end_program
    endif
    
    
    free record rCustom
    record rCustom (
    	1 error                    = vc
    )
    
    The patient_source record structure only exists when running from an MPage (or 1co5_mpage_test). When the code block is triggered, a redirect script is run to open the MPage in the Discern output viewer.

    If your MPage is not hosted on the Cerner WebSphere server, replace "organizaer-appointments-by-resource" with the URL containing your deployed code.

  5. Launch DA2 and add your CCL script as you would any CCL report to a folder of your choosing.
  6. Run the report. You will see a prompt appear for the output destination. Unfortunately, this cannot be removed and the only action is to click the Execute button.

All MPages developed with Clinical Office: MPage Developer are built to run on Microsoft Edge. Internet Explorer has not been supported for several years and has been dropped from Angular since version 13.

DiscernVisualDeveloper outputs to Internet Explorer make it impossible to run modern MPages. PowerChart, DA2, discernoutputviewertester.exe, and Reporting Portal all run Microsoft Edge.

It is assumed that one day Cerner will update DiscernVisualDeveloper to use Edge, but there is no guarantee.

<< Prev: 7. Add Remaining Details
Next: Third Party Integration >>
Copyright © 2026 Precision Healthcare Solutions