Techie Tuesday: Using MEDITECH to Save Time

Are you spending hours creating custom reports?  This Techie Tuesday post continues  the series: How to Turn the 5 Things You Hate About NPR Report Writing into the 5 Things You Love. Here’s a list of available MEDITECH programs that might save you some time.

PREEXISTING PROGRAMS

Z Fields/Programs

Every MIS system contains Z DPM. This DPM was created by MEDITECH to store common programs and data fields which can be accessed by any custom report.

Zfields

FUNCTION DESCRIPTION ARGUMENTS EXAMPLE
Z.date.julian
(A)
Converts a date in internal form to julian form A = Date in YYYYMMDD format Z.date.julian (20030420) = 03110
Z.date.out
(A)
Converts internal dates into external formats A = Date in YYYYMMDD format Z.date.out (20030420) =04/20/03
Z.date.sub
(A,B)
Subtracts second date from the first date and returns the number of days between the two A = Later date in internal format
B = Earlier date in internal format
Z.date.sub (20030420,20030402) = 18
Z.date.text
(A,B,C)
Formats a date in text format A = date in internal or external format
B = format indicator (M,N,n,D,d,Y,y)
Capital letter means long form; lower case letter means abbreviated form
C = “I” to print month with initial capital only; “A” to print month with all caps
Z.date.text
(20130420,”M D,Y”,”I”)
= April 20, 2013
(20130420,”M d,y”,”A”)
= APRIL 20, 13
(20130420,”m D, Y”,”I”)
= Apr 20, 2013
(20130420,”Dmy”,”A”)
= 20APR97
(20130420,”N/D/y”,””)
= 04/20/13
Z.name.inversion
(A)
Takes A as <lastname,rest> and returns A = Name in <lastname,rest of name> format Z.name.inversion (“SMITH,BOB JR”) = “BOB SMITH JR”
Z.zero.fill
(A,B,C)
Used to zero fill a number A = Number to zero fill
B = length of resulting field
C = Number of implied decimal points
Z.zero.fill
(123.56,7,2)
= 0012356
(123.56,7,0)
= 0000124
(-123.56,7,2)
= -012356

Standard Programs

Syntax: MIS.SCREEN.print(A,B,C,D)

Description: Print entire CDS with prompts and responses

Arguments:

A=mnemonic of screen

B=^@Root(segment)

C=Strip blank lines

D=Left Margin

Example: Regular ADM CDS

%MIS.SCREEN.print(@cd.screen,^@Root(customer.defined.queries),1,0)

 

Syntax: LAB.L.SPEC.result.lines(A,B,C,D)

Description: Prints lab results

Arguments:

A=specimen urn

B=LIS Report Format

C=Confidential Check

D=Queued Range of tests to print (Default = ALL)

Other Programs:

LAB.B.SPEC.result.lines, LAB.M.SPEC.result.lines, LAB.P.SPEC.result.lines

 

Syntax: PHA.MAR.allergies(A,B,C,D,E,F)

Description: Builds an array of patient allergies

Arguments:

A=Patient

B=Max line length

C=Structure for allergies (Default = ^MV[“AL”])

D=Field number in MV for allergies

E=Structure for ADR’s (Default = /MV[“AD”])

F=Field number for ADRs

 

Syntax: BAR.PAT.get.status.date(A)

Description: Returns the status date from BAR

Arguments:

A=patient urn from BAR (account)

 

Syntax: BAR.PAT.get.adm.pt.status(A)

Description: Returns the patient status from Admissions

Arguments:

A=patient urn from BAR (account)

 

Syntax: BAR.PAT.necessity.check(A,B,C,D)

Description: Performs a medical necessity check for the specified procedure code and diagnosis code

Arguments:

A=Requirement

B=Procedure Mnemonic

C=Diagnosis Code

D=Service Date

Jenny Blue

Jenny Blue

CEO at IPeople
Jenny Blue is co-founder and CEO of Interface People, LP and Consultant People, LP, which operate in a total of 48 US States, England, Ireland, Canada, and South Africa. In her role, Mrs. Blue provides leadership and vision to the company with the ultimate goal of improving patient care through technology. With over 16 years of experience in the programming and healthcare industries, her strong background provides solid direction to all departments, and sets the pace for outstanding innovation as IPeople continues to address the growing challenges and objectives in healthcare.
Jenny Blue

Latest posts by Jenny Blue (see all)

2 Comments

  1. See here said:

    Usually, I don’t leave a comment, but you’re writing is great.

    August 1, 2015
    Reply
  2. Click Here said:

    The length of your post was perfect.

    August 13, 2015
    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *