[MEDITECH NPR Reports / NPR Report Writing / NPR Report Writer / MEDITECH Report / Non-Procedural Report / NPR Reports / MEDITECH Reports] <a href="http://comstock-software.com">MEDITECH Reports</a>MEDITECH NPR Report Writing: Requiring an NPR Select in a Custom Field

Tuesday, May 27, 2008

Requiring an NPR Select in a Custom Field

I've got an NPR report in Client Server with a custom defined field as a SELECT. The field is used to capture a value which determines the format, content & layout of the report. The field is set up on page 2 as:

xx.type IG Enter Report Type of T (TX) or D (DC)

The clinicians want the SELECT to be required. Here's one way to handle this:

- AL START IF{(c.xx.type@tr.12u'="T"'="D") @W.display("Select T or D as Report Type"),H(5);
- AL CLOSE.UP 1}

When the report type SELECTION is T or D, the report runs and returns results.

4 Comments:

At 7:24 AM , Anonymous Anonymous said...

2 alternatives:

1) Use a condition on the select that will always be true

Cx = xx.type EQ Enter Type of T

Cx!'Cx

2) Edit the screen (F9) and add IFE=1

 
At 9:09 PM , Blogger olesharpie said...

Thank you. Good stuff!

 
At 10:54 AM , Anonymous James Dio said...

You can make not required fields required by editing the screen elements (#9 on CS E/E report) REQ=Y and a CH=T,D attribute should give a custom field "choices" and a lookup (so they can only enter valid entries)

 
At 12:38 PM , Blogger olesharpie said...

Great tip James, thank you!

 

Post a Comment

Links to this post:

Create a Link

<< Home

[MEDITECH NPR Reports / NPR Report Writing / NPR Report Writer / MEDITECH Report / Non-Procedural Report / NPR Reports / MEDITECH Reports]