WANT the MEDITECH Reports BLOG via EMAIL?

Your email:

About MEDITECH Reports

MEDITECH Reports is an online reference for NPR Report Writing and not affiliated with MEDITECH, Inc @ http://meditech.com. To learn more about NPR report development using the Meditech Report Writer read more here.

View John Sharpe's profile on LinkedInI'm your host, John Sharpe, a MEDITECH Report Writing Consultant in Spokane, WA. More about me.


Email John

Follow Comstock Software on Twitter 

Sign up for the MEDITECH Reports Blog; details to attend MEDITECH workshops are sent out 1 week in advance to all MEDITECH Report blog subscribers.

These MEDITECH Workshops are sponsored by Donna Carroll at the MEDITECH Community Bulletin

MEDITECH NPR & RW RESOURCES:

Ascii Table: For NPR Report Writer
Loop Builder: For NPR Macros
Key Codes: For CDS Attributes
List Builder: For NPR Macros
MT Report Names: For NPR Reports
MT Structure Viewer: For Physicals
Strings: Format & Sort

MEDITECH Reports

Current Articles | RSS Feed RSS Feed

Choosing the Correct NPR Segment


A friend from Providence Healthcare Toronto recently wanted to know how to tell the difference between parent & child segments when reading MEDITECH Data Definitions.

Let’s consider 3 common Radiology Order fields from Client Server 5.6:

- accession.number $(R)RO[ro]ASN|0
- cc doc $(R)RO[ro]CD[cd]|0
- order status $(R)RO[ro]|2

So ... how can we determine if these 3 fields are in the same segment? It comes down to subscripts. Subscripts are the values that live between the pairs of brackets ([ro] for example). If there is one set of brackets, and the subscripts are the same, then we can assume that the segment is the same. Applying that rule to the definitions above, we can ascertain that accession.number and status are in the same segment...

- accession.number $(R)RO[ro]ASN|0
- status $(R)RO[ro]|2

... because they only have 1 set of brackets and subscript(s) are the same.

The cc doctor is in the child segment because both physical addresses have the same base address in common: $(R)RO[ro]; yet the address has another set of brackets (subscript) which define the child segment.

- cc doc $(R)RO[ro]CD[cd]|0

So ... why isn't accession.number ($(R)RO[ro]ASN) in a separate segment than status ($(R)RO[ro])? These two structures share the same physical address and subscripts. The only difference is the constant. I think of a constant as a way to keep the base file clean; without using more subscripts. This makes the data easier to access in the NPR Report Writer.

Your emailed questions and responses to this post will be rolled back in to this post to make this information more digestible.


Comments

Currently, there are no comments. Be the first to post one!
Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics

Receive email when someone replies.