Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls
Print Page as PDF
Routine: PSJHL2

Package: Inpatient Medications

Routine: PSJHL2


Information

PSJHL2 ;BIR/RLW-PATIENT ID AND VISIT SEGMENTS ; 9/24/12 3:17pm

Source Information

Source file <PSJHL2.m>

Entry Points

Name Comments DBIA/ICR reference
EN1(PSJHLDFN,PSOC,PSJORDER,PSREASON) ; start here
; passed in are PSJHLDFN (patient ien)
; PSJORDER* (order_file (N,P,V, etc))
; PSOC* (order control code - NW for new order, OK to return filler number to OE/RR, OC for order canceled, SC for status change)
; PSREASON* (text reason)
; *=optional, only required if an order segment is also to be generated
START ;
INIT ; initialize HL7 variables, set master file identification segment
; PSJHLMTN = message type - ORR for messages sent as a response to an OE/RR event; ORM for "unsolicited" messages.
PID ; get patient data, format PID SEGMENT
PV1 ; get patient visit information, format PV1 segment
ORC ; order control segment
DISPLAY ; just for testing
UNDO ;Undo Renew if Pending Renewal is dc'd
A
D
I
N
U
P
DE
E
H
R
RE
DR
O

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !
  • Line Location: DISPLAY+1
Function Call: WRITE
  • Prompt: FIELD(NEXT)_"|"
  • Line Location: DISPLAY+1
Info |  Source |  Entry Points |  Interaction Calls