Print Page as PDF
TREATING FACILITY LIST (#391.91): relationship with CIRN PD ICR (2911)

TREATING FACILITY LIST (#391.91): relationship with CIRN PD    ICR (2911)

Name Value
NUMBER 2911
IA # 2911
FILE NUMBER 391.91
GLOBAL ROOT DGCN(391.91,
DATE CREATED 2000/01/13
CUSTODIAL PACKAGE REGISTRATION
CUSTODIAL ISC Albany
USAGE Private
TYPE File
DBIC APPROVAL STATUS APPROVED
NAME TREATING FACILITY LIST (#391.91): relationship with CIRN PD
GENERAL DESCRIPTION
The CIRN PD package would like to use the TREATING
FACILITY (#391.91) file for the following functions:

1) Loop through "B" cross- reference in the TREATING FACILITY (#391.91) file
getting the INSTITUTION (#4) file IEN or the (#.02) INSTITUTION [2P] field.

2) Take each IEN and translate into a HL LOGICAL LINK (#870) file entry

3) Using the known SUBSCRIPTION CONTROL IEN,  call GET^HLSUB, to get the
DESTINATIONS for that IEN.

4) Compare the logical links identified by the entries in the TREATING
FACILITY to the links returned by GET^HLSUB.  If there is not a one-to-one
relationship add an entry to the SUBSCRIPTION CONTROL (#774) file for the
missing entry.  The missing entry is added using $$ACT^HLSUB and UPD^HLSUB.

5) Utilize the "APAT" cross-reference to determine the internal entry number
(ien) of the TREATING FACILITY LIST (TFL) record.  If an ien does not exist,
we add to the TFL file.

6) Utilize the "AINST" cross-reference to check for patients within a given
facility.

7) A direct global read for the DATE LAST TREATED field (#.03 ; node: 0 ;
piece: 3) to determine if the data on file is valid.

8) Write access with FileMan for the following fields: DATE LAST TREATED and
ADT/HL7 EVENT REASON (field: .07 ; node: 0 ; piece: 7).  ADT/HL7 EVENT REASON
is a pointer data type pointing to the ADT/HL7 EVENT REASON (#391.72) file.

At this time we are only concerned about missing subscriptions and not missing
treating facilities.
GLOBAL REFERENCE
GLOBAL REFERENCE FIELD NUMBER GLOBAL DESCRIPTION
DGCN(391.91,
FIELD NUMBER ACCESS FIELD NAME LOCATION
.02 Direct Global Read & w/Fileman INSTITUTION 0;2
.03 Direct Global Read & w/Fileman DATE LAST TREATED 0;3
.07 Write w/Fileman ADT/HL7 EVENT REASON 0;7
.01 Read w/Fileman PATIENT 0;1
DGCN(391.91,'APAT')
This is a M type cross-reference.  It builds the
cross-reference from PATIENT (#.01) and INSTITUTION (#.02) field data.  The
structure is as follows:

^DGCN(391.91,"APAT", PATIENT (#2) file pointer , INSTITUTION (#4) file pointer
, internal entry number)=""
DGCN(391.91,'AINST')
This is a M type cross-reference.  It builds the
cross-reference from PATIENT (#.01) and INSTITUTION (#.02) field data.  The
structure is as follows:

^DGCN(391.91,"AINST", INSTITUTION (#4) file pointer , PATIENT (#2) file
pointer , internal entry number)=""
DGCH(391.91,'C',
x-ref build from INSTITUTION (#.02) and PATIENT (#.01)
fields.
STATUS Active
DURATION Till Otherwise Agreed
ID DGCN(391.91,
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC SUBSCRIBING DETAILS
CLINICAL INFO RESOURCE NETWORK Birmingham
The CIRN package would like to loop through
^DGCN(391.91,"B",#.01,D0) to get the (#.02)INSTITUTION field.

CIRN PD intends to use the "APAT", "AINST" cross-references in some of its
applications.  The use of these cross-references will determine the internal
entry number (ien) of the TREATING FACILITY LIST (TFL) entry.

CIRN PD intends to check the DATE LAST TREATED (#.03) field for data.  A
direct global read is being requested for the DATE LAST TREATED (node: 0 ;
piece: 3) field.

CIRN PD intends to write data to the TFL file for the following fields: DATE
LAST TREATED and ADT/HL7 EVENT REASON (#.07).  Write access with FileMan is
requested.