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 |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: NURAPI

Package: Nursing Service

Routine: NURAPI


Information

NURAPI ;HCIOFO/FT,AL-APIs ;8/14/02 08:43

Source Information

Source file <NURAPI.m>

Entry Points

Name Comments DBIA/ICR reference
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)
  • ICR #3227
    • Status: Active
    • Usage: Private
    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
  • ICR #3227
    • Status: Active
    • Usage: Private
    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
  • ICR #3227
    • Status: Active
    • Usage: Private
    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
  • ICR #3227
    • Status: Active
    • Usage: Private
    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
  • ICR #3227
    • Status: Active
    • Usage: Private
    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
  • ICR #3227
    • Status: Active
    • Usage: Private
    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
  • ICR #3227
    • Status: Active
    • Usage: Private

    FileMan Files Accessed Via FileMan Db Call

    FileNo Call Tags
    ^NURSF(211.4 - [#211.4] FIND^DIC,  LIST^DIC
    Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call