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: DGPPSYCH

Package: Registration

Routine: DGPPSYCH


Information

DGPPSYCH ;LIB/MKN,JAM - PRESUMPTIVE PSYCHOSIS SCREEN 7 ;08/01/2019

Source Information

Source file <DGPPSYCH.m>

Entry Points

Name Comments DBIA/ICR reference
YN(DFN) ; DG*5.3*1082; NOTE: This API is now obsolete. Patch DG*5.3*1082 removed the call to this tag from the input template DG LOAD EDIT SCREEN 7
YN1 ;
PT(DFN,DGCAT,DGCHGDT) ;
; DG*5.3*1082; Update Patient (#2) file field #.5601 and PRESUMPTIVE PSYCHOSIS CATEGORY CHANGES (#33.1) file
; Inputs: DFN - patient
; DGCAT - category
; DGCHGDT - (Optional) The date the Category changed
; Output: Status - 0 (Error), 1 (Success)
CH(DFN,DGCHGDT) ;
; DG*5.3*1082; This code was originally trigger logic for PRESUMCPTIVE PSYCHOSIS CATEGORY field (#.5601) of the PATIENT file (#2)
; That trigger was removed by the patch and this logic modified and called by tag PT above. Parameter DGCHGDT added.
; Additional changes made to add error handling and return success/fail flag
SET(DGIEN331,DGCAT) ;
; Inputs: DGIEN331 - IEN for the entry in the PRESUMPTIVE PSYCHOSIS CATEGORY CHANGES (#33.1) file for this patient
; DGCAT - PRESUMPTIVE PSYCHOSIS CATEGORY (#.5061) field of PATIENT (#2) file (may be NULL)
; Returns: 0 if error, 1 if successful
EXISTS(DGIEN331,DGCAT) ;
; Check if DGCAT is already the last entry in the CATEGORY CHANGES multiple (#33.12) of the PRESUMPTIVE PSYCHOSIS CATEGORY CHANGES (#33.1) file
GETDATA331(DFN,DGVAFPSY) ; Get Data

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] GET1^DIQ
33.12 GET1^DIQ
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call