Last change
on this file since 1288 was 628, checked in by George Lilly, 15 years ago |
initial load of FOIAVistA 6/30/08 version
|
File size:
867 bytes
|
Line | |
---|
1 | RGRSMSH ;ALB/RJS-REGISTRATION MESSAGE PARSER FOR CIRN ;03/8/96
|
---|
2 | ;;1.0;CLINICAL INFO RESOURCE NETWORK;**4,8**;30 Apr 99
|
---|
3 | EN() ;
|
---|
4 | ;This function call returns information from the MSH and EVN segments
|
---|
5 | ;
|
---|
6 | ; Output:
|
---|
7 | ; date received^event date from EVN segment^sending facility
|
---|
8 | ; (station # -or- station#~domain)
|
---|
9 | ;
|
---|
10 | N RGRSMSH,RGC,RGRSEVN,RECDATE,EVDATE,%,INSTNUM
|
---|
11 | S RGC=$E(HL("ECH"))
|
---|
12 | S RGRSMSH=$$SEG1^RGRSUTIL("MSH",1,"MSH")
|
---|
13 | S RGRSEVN=$$SEG1^RGRSUTIL("EVN",1,"EVN")
|
---|
14 | ;;S INSTNUM=$P(RGRSMSH,HL("FS"),4)
|
---|
15 | ;; ^ changed 11/20/98 by cmc - MSH segment read into 2 array entries
|
---|
16 | ;; need to use new supported variable HL("SFN")
|
---|
17 | D NOW^%DTC
|
---|
18 | S (RECDATE)=$G(%)
|
---|
19 | S EVDATE=$P(RGRSEVN,HL("FS"),3)
|
---|
20 | S EVDATE=$$FMDATE^HLFNC(EVDATE)
|
---|
21 | ;
|
---|
22 | ; HL("SFN") expected in one of the following formats:
|
---|
23 | ; station # -or- station #~domain
|
---|
24 | ;
|
---|
25 | Q $G(RECDATE)_"^"_$G(EVDATE)_"^"_$G(HL("SFN"))
|
---|
Note:
See
TracBrowser
for help on using the repository browser.