fundamentals of npr report...
TRANSCRIPT
Fundamentals of NPR Report Writing
Copyright NPR Training & Technology Inc
Top 10 Most Popular LAB Tests Report
Specifications
List of the top 10 resulted reports
Display the test’s in descending order
Select by collection date range
Data Definitions
Create Report
General Section / Page 1
CS: tests
CS: number.x
Sort Select / Page 2
Sort Select / Page 2
Picture / Page 3
Add
Regions
Add Fields & Headings
Create field xx.test.cnt
Enter Line Check on TK1 Line
Enter MV Line Attribute
Add Line Attribute to Limit List Display
Enter Footnote
File Report Untranslated
Select Enter/Edit Macro
Enter Macro Code
Client Server:
Use /R.MV
Client Server:
Use /R.V[1]
Internal Slash Variable
Internal slash variable subscripts use the field number as a subscript. In this case it is field 1.
Client Server:
Use /R.MV
Client Server:
Use /R.V[1]
Set Sort for Array
The value of CNT is subtracted from 999999 and then concatenated to the test print number.
This is used to sort the tests first by the highest number and then by print
number.
Client Server:
Use /R.MV
Client Server:
Use /R.V[1]
Create MV Array
Test name is assigned to array.
Subscript
1 “TR” = Region on report
2 Variable SRT contains sort value
3 2nd field in report
Client Server:
Use /R.MV
Client Server:
Use /R.V[1]
Create MV Array
Number of tests is assigned to array.
Subscript
1 “TR” = Region on report
2 Variable SRT contains sort value
3 4th field in report
Client Server:
Use /R.MV
Client Server:
Use /R.V[1]
File & Translate Macro
Enter/Edit Report
File & Translate Report
CS: tests
CS: number.x
Report Translation Issues
� Macros are incorporated at translation.
� An edited macro will be incorporated when
� Report is filed and translated
� Translated from Process Report Screen
� Macros WILL NOT be incorporated
� If you do not retranslate after a macro edit!
Sample Output
How many
test’s are there?
Before you call Meditech and tell them their system can’t count for beans ask you’re self this question:
What have I asked the computer to do?
Rules - Printing Multiples
� 1st reference to the child data field will print the first entry from the child segment.
� 2nd reference will print the second.
� 3rd reference will print the third.
� 4th, 5th, etc….
� Last reference will print all remaining entries from the child segment
Rules – Our Report
� 1st reference to the child data field will print the first entry from the child segment.
� Last reference will print all remaining entries from the child segment
Enter/Edit Report
Review Line Attribute
1st reference to the child data field will print the first entry from the child segment.
Last reference will print all remaining entries from the child segment
Modify Line Check
Sample Output
Specifications Change
� User likes the report but wants to be able to control the number of test’s that displays.
� Also wants test’s print number to display
Enter/Edit Report
Insert New Select
Insert
Add Select
Add Field: xx.max
Will this Work?????
Will this Work?????
1st reference to the child data field will print the first entry from the child segment.
Last reference will print all remaining entries from the child segment
New Line Attribute
Add Field
Sample Output ����
Sample Output ����
Number column has test name but
it’s rounded to 4 decimal places!!!
Enter/Edit Macro’s
Macro: MV Array
Test name is assigned to array.
Subscript
1 “TR” = Region on report
2 Variable SRT contains sort value
3 2nd field in report
Client Server:
Use /R.MV
Client Server:
Use /R.V[1]
Macro: MV Array
Test name is assigned to array.
Subscript
1 “TR” = Region on report
2 Variable SRT contains sort value
3 2nd field in report
MV Arrays
overwrite field
VAL’s.
We are writing the
test’s name to field
number 2
New Macro Code
Retranslate Report & Run
Sample Output ☺☺☺☺
Enter/Edit Report
General Section / Page 1
CS: tests
CS: number.x
This report contains an MV Array. If you edit any fields on the report please make sure to check and adjust the MV Array.