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 |  Used in HL7 Interface |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: DGPFHLT1

Package: Registration

Routine: DGPFHLT1


Information

DGPFHLT1 ;SHRPE/YMG - PRF HL7 QBP/RSP PROCESSING ; 05/02/18

Source Information

Source file <DGPFHLT1.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; entry point
; DATAARY array has the following structure:
; DATAARY("ACTIVE") = 1 if PRF flag is active, 0 otherwise
; DATAARY("REVBY") = name of the person reviewing the request
; DATAARY("REVDUZ") = DUZ of the person reviewing the request
; DATAARY("REVDTM") = Date/time of the review
; DATAARY("REVRES") = Result of the review
; "A" for approval
; "D" for denial/rejection
; DATAARY("REVCMT") = review comment/reason
; DATAARY("DFN") = patient DFN
; DATAARY("FLAG") = PRF flag ien in file 26.15
; DATAARY("ICN") = patient ICN
; DATAARY("MSGID") = HL7 message Id
; DATAARY("QOK") = flag for QAK segment in RSP^K11 message
; 1 if patient + PRF flag data has been found and retrieved
; 0 otherwise
; DATAARY("REQBY") = requester name
; DATAARY("REQDTM") = request date/time
; DATAARY("REQCMT") = request comment/reason
; DATAARY("REQID") = query id
; DATAARY("SENDTO") = file 4 ien of facility we're sending HL7 message to
; DATAARY("SFIEN") = ien of sending facility in file 4
; DATAARY("SFNAME") = formatted name of sending facility
; DATAARY("ORIGOWN")= file 4 ien of flag's original owner
CHK() ; Check data in incoming message
; Called from EN tag, relies on (and sets) some variables defined in there
; Returns "" if there are no problems, or error message otherwise
UPDLOG(DATA) ; file a log entry
; DATA - Array of values to file (see tag EN)
; Returns "" if there are no problems, or error message otherwise
;
UPDASGN(AFLG,DGIEN,DATA,DGPFA) ; update PRF assignment and assignment history
; AFLG - 1 if flag needs to be reactivated, 0 otherwise
; DGIEN - ien of PRF assignment record
; DATA - Array of values to work with (see tag EN)
; DGPFA - PRF assignment array
; Returns "" if there are no problems, or error message otherwise
NORESP(DFN,FLAG,STATUS) ; set status of entries in file 26.22 to "NO RESPONSE"
; DFN - patient DFN
; FLAG - flag ien in file 26.15
; STATUS - current status of entries that should be flipped to "NO RESPONSE" (internal code)

Used in HL7 Interface

HL7 Protocol Name Call Tags
DGPF PRF QBP/Q11 EVENT EN
DGPF PRF RSP/K11 SUBSC EN
DGPF PRF QBP/Q11 SUBSC EN
DGPF PRF RSP/K11 EVENT EN

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^VA(200 - [#200] FIND1^DIC
^DGPF(26.15 - [#26.15] FIND1^DIC
Info |  Source |  Entry Points |  Used in HL7 Interface |  FileMan Files Accessed Via FileMan Db Call