NURAPI ;HCIOFO/FT,AL-APIs ;8/14/02 08:43
Source file <NURAPI.m>
Package | Total | Caller Graph |
---|---|---|
General Medical Record - Vitals | 3 | GMVRPCM GMVUTL2 GMVUTL8 |
Name | Comments | DBIA/ICR reference |
---|---|---|
PTLIST(LOC,ARRAY) | ; Returns a list of all (active and inactive) patients
; for a nursing location in the array specified. ; input: LOC - (Required) NURS LOCATION file (#211.4) ien ; input: ARRAY - (Required) Name of array to return entries in ; output: ARRAY - Subscripted by sequential number with DFN in first ; piece and patient name in second piece. ; example: ARRAY(#)=DFN^patient name |
|
FINDNLOC(LOC) | ; This function returns the NURS LOCATION file (#211.4) ien
; and the ien of the location (File 44, Field .01). ; input: LOC - (Required) Name of the Nursing location (as it appears ; in File 44). ; The name should begin with the characters 'NUR '. ; If not, 'NUR<space>' will be appended to the beginning ; of LOC. If LOC is undefined, then returns -1. ; output: File 211.4 ien^File 44 ien |
|
MASWARDS(LOC,ARRAY) | ; Returns the MAS wards associated with this Nursing
; location in the array specified. The .01 field of the MAS WARD ; multiple of the NURS LOCATION file points to the WARD LOCATION ; file (#42). ; input: LOC - (Required) NURS LOCATION file (#211.4) ien ; input: ARRAY - (Required) Name of array to return entries in ; output: ARRAY subscripted by the MAS WARD value. ; example: ARRAY($P(^NURSF(211.4,LOC,3,D1,0),U,1))="" ; If LOC is null or not found, then ARRAY(1)=-1 |
|
PTCHK(LOC) | ; This function returns a value that indicates if any patients
; (active or inactive) are associated with the Nursing location ; identified. ; input: LOC - (Required) NURS LOCATION file (#211.4) ien ; output: 0 - no patients associated with this location ; 1 - yes, patients are associated with this location ; -1 - (minus 1) LOC is undefined or not found |
|
APTLIST(LOC,ARRAY) | ; Returns a list of active patients for a nursing
; location in the array specified. ; input: LOC - (Required) NURS LOCATION file (#211.4) ien ; input: ARRAY - (Required) Name of the array to return entries in ; output: ARRAY - Subscripted by sequential number with DFN in first ; piece and patient name in second piece. ; example: ARRAY(#)=DFN^patient name |
|
ACTLOCS(ARRAY) | ; Returns all active nursing locations from the NURS LOCATION
; file (#211.4) in the array specified. FILE 211.4 points to HOSPITAL ; LOCATION file (#44). ; input: ARRAY - (Required) The name of the array to store the entries ; output: ARRAY(sequence #)=File 211.4 ien^File 44 name (for 211.4 ien) |
|
APTCHK(LOC) | ; This function returns a value that indicates if active
; patients are associated with the Nursing location identified. ; input: LOC - (Required) NURS LOCATION file (#211.4) ien ; output: 0 - no active patients associated with this location ; 1 - yes, active patients are associated with this location ; -1 - (minus 1) LOC is undefined or not found |
|
FileNo | Call Tags |
---|---|
^NURSF(211.4 - [#211.4] | FIND^DIC, LIST^DIC |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DPT - [#2] | PTLIST+16, APTLIST+16 |
^NURSF(211.4 - [#211.4] | PTCHK+8, APTCHK+7, PTLIST+12, APTLIST+12, MASWARDS+10, MASWARDS+12, MASWARDS+14 |
^NURSF(214 - [#214] | PTCHK+9, APTCHK+8, PTLIST+15, APTLIST+15 |
^TMP("DILIST" | ACTLOCS+8, ACTLOCS+10, ACTLOCS+11, ACTLOCS+12, ACTLOCS+17! |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ARRAY | ACTLOCS~, PTLIST~, APTLIST~, MASWARDS~ |
ARRAY( | ACTLOCS+15*, PTLIST+19*, APTLIST+19*, MASWARDS+14* |
ARRAY(0 | MASWARDS+16 |
ARRAY(1 | ACTLOCS+8*, PTLIST+12*, PTLIST+21*, APTLIST+12*, APTLIST+21*, MASWARDS+10*, MASWARDS+16* |
DFN | PTLIST+13~, PTLIST+14*, PTLIST+15*, PTLIST+16, PTLIST+19, APTLIST+13~, APTLIST+14*, APTLIST+15*, APTLIST+16, APTLIST+19 |
GMVD1 | MASWARDS+11~, MASWARDS+13*, MASWARDS+14* |
LOC | PTCHK~, PTCHK+8, PTCHK+9, APTCHK~, APTCHK+7, APTCHK+8, PTLIST~, PTLIST+12, PTLIST+15, APTLIST~ , APTLIST+12, APTLIST+15, FINDNLOC~, FINDNLOC+12, FINDNLOC+14*, FINDNLOC+15, FINDNLOC+19*, FINDNLOC+20, MASWARDS~, MASWARDS+10 , MASWARDS+12, MASWARDS+14 |
NURCNT | ACTLOCS+6~, ACTLOCS+9*, ACTLOCS+14*, ACTLOCS+15, PTLIST+13~, PTLIST+14*, PTLIST+18*, PTLIST+19, PTLIST+21, APTLIST+13~ , APTLIST+14*, APTLIST+18*, APTLIST+19, APTLIST+21 |
NURI | ACTLOCS+6~, ACTLOCS+9*, ACTLOCS+10*, ACTLOCS+11, ACTLOCS+12 |
NURIEN | ACTLOCS+6~, ACTLOCS+12*, ACTLOCS+13, ACTLOCS+15 |
NURNAME | ACTLOCS+6~, ACTLOCS+11*, ACTLOCS+15 |
NUROUT | FINDNLOC+13~ |
NUROUT("DILIST" | FINDNLOC+16, FINDNLOC+18 |
NUROUT(1 | FINDNLOC+16*, FINDNLOC+17 |
NURVHLOC | FINDNLOC+13~, FINDNLOC+18*, FINDNLOC+19 |
NURWARD | FINDNLOC+13~, FINDNLOC+18*, FINDNLOC+19 |
PATNAME | PTLIST+13~, PTLIST+16*, PTLIST+17, PTLIST+19, APTLIST+13~, APTLIST+16*, APTLIST+17, APTLIST+19 |
U | ACTLOCS+8, ACTLOCS+11, ACTLOCS+12, ACTLOCS+15, PTLIST+19, APTLIST+19, MASWARDS+14 |