SDCCRGAP ;CCRA/LB,PB - Appointment retrieval API;APR 4, 2019
Source file <SDCCRGAP.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
GETAPPT(PATIEN,APPTDT,APPTARY) | ;Gets the appointment details form the database and returns it in an array.
; See parameter descriptions for details of the available nodes. ; PATIEN(I,REQ) - The patient IEN ; APPTDT(I,REQ) - the appointment date/time in vista format. ; Found in the ^DPT(<IEN>,"S",<APPTDT> node. ; APPTARY(O,REQ) - Array of appointment data. |
|
APPTNODE(PATIEN,APPTDT,NODE) | ;For a given patient we will return their appointment node in the ^DPT file.
; PATIEN(I,REQ) - The patient IEN ; APPTDT(I,REQ) - the appointment date/time in vista format. Found in the ^DPT(<IEN>,"S",<APPTDT> node. ; NODE(I,REQ) - node number to pull |
|
APTNODEP(PATIEN,APPTDT,NODE,PIECE) | ;For a given patient we will return a piece of their appointment node in the ^DPT file.
; PATIEN(I,REQ) - The patient IEN ; APPTDT(I,REQ) - the appointment date/time in vista format. Found in the ^DPT(<IEN>,"S",<APPTDT> node. ; NODE(I,REQ) - node number to pull ; PIECE(I,REQ) - piece in the node to return ; DATA(I,OPT) - data node may be passed in to bypass extracting. |
|
CLINNODE(PATIEN,APPTDT,CLINICIEN,NODE,COUNT) | ;For a given patient we will find their clinic node in the ^SC file.
; May need to loop through the overbooks on that time. ; PATIEN(I,REQ) - The patient IEN ; APPTDT(I,REQ) - the appointment date/time in vista format. Found in the ^DPT(<IEN>,"S",<APPTDT> node. ; CLINICIEN(I,REQ) - clinic record IEN to search through ; NODE(I,REQ) - last node for the clinic. 0 node has appointment info. "C" node has check in/out info. ; COUNT(O,OPT) - subscript # of appointment |
|
CLINPROV(CLINIC,ARRAY) | ;Sets an array filled with clinic provider data
; CLINIC (I,REQ) - The Clinic IEN (first piece of DPT 0 node) ; ARRAY (O,REQ) - APPTARY("CLINIC PROVIDER",0) - number of providers on the clinic ; APPTARY("CLINIC PROVIDER",N,"IEN") - Provider IEN ; APPTARY("CLINIC PROVIDER",N,"NAME") - Name of provider |
|
PROVIEN(CLINIC,NODE) | ;Returns the Nth provider ID for a Clinic
; CLINIC (I,REQ) - The Clinic IEN (first piece of DPT 0 node) ; NODE (I,REQ) - The count of the node being examined |
|
CLINGRP(CLINIC) | ;Returns the ID of a Clinic's group
; CLINIC (I,REQ) - The Clinic IEN (first piece of DPT 0 node) |
|
APTSTAT(PATIEN,APPTDT,FULLSTAT) | ;Returns current computed appointment status which
; includes checked in/out which the "S"0;2 node does not. ; PATIEN (I,REQ)- Patient ID as in DPT(PATIEN,"S",APPTDAT ; APPTDT (I,REQ) - Appointment date ; FULLSTAT (I,OPT,DEFAULT:"") - Set to 1 return full STATUS string ; OUTPUT: Appointment current Status values: ; SCHEDULED (Default) ; CHECKED IN ; CHECKED OUT ; CANCELLED ; NO-SHOW ; "" if the appointment does not exist.\ |
FileNo | Call Tags |
---|---|
^VA(200 - [#200] | GET1^DIQ |
^SD(409.67 - [#409.67] | GET1^DIQ |
^SC - [#44] | GET1^DIQ |