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

Package: Integrated Billing

Routine: IBCNCH


Information

IBCNCH ;ALB/FA - PATIENT POLICY COMMENT HISTORY ;05-MAR-2015

Source Information

Source file <IBCNCH.m>

Entry Points

Name Comments DBIA/ICR reference
EN(DFN,IBIIEN,MODE) ;EP
; Main entry point
; Input: DFN - IEN of the patient
; IBIIEN - IEN of patient policy multiple (^DPT(DFN,.312,IBIIEN)
; MODE - 1 - User is allowed to Add/Edit/Delete/View/Search comments
; 0 - User is allowed to View/Search comments
HDR ;EP
; Build the listman template header information
; Input: DFN - IEN of the patient
; IBPPOL - ^DPT(DFN,.312,PIEN,0) Where PIEN is the IEN of the
; selected patient policy
INIT ;EP
; Initialize the listman template
; Input: DFN - IEN of the patient
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
; Output: ^TMP("IBCNCH",$J) - Body lines to display for specified template
; ^TMP($J,"IBCNCHIX") - Index of displayed comments (see GETCOMS)
ADDCOM
NEXTCOM(DFN,IBIIEN) ; Get the next available Patient Policy Comment IEN for
; the selected Patient and Policy
; Input: DFN - IEN of the selected Patient
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
; DUZ - IEN of the user creating the comment
; Returns: IEN number of newly created Patient Policy Comment
LOCKN(DFN,IBIIEN) ; Lock Adding of comments for a specified patient
; and policy
; Input: DFN - IEN of the Patient a comment will be added for
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
; Returns: 1 - Lock was obtained, 0 otherwise
UNLOCKN(DFN,IBIIEN) ; Unlock Adding of comments for a specified patient
; Input: DFN - IEN of the Patient a comment will be added for
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
DELETE(COMIN)
DELETIT(COMIEN,MULTI,DLTDONE) ; Lock Deletion of this patient policy comment
; COMIEN = comment to be deleted.
; MULTI = 0 - display OK TO DELETE question per normal.
; = 1 - display OK TO DELETE question once for all selected comments.
; DLTDONE = 0 - selection not deleted.
; = 1 - selection deleted.
ASKYN(PROMPT,DEFAULT)
EDIT(COMIN)
EDITCOM(DFN,IBIIEN,COMIEN,FROMEE) ; Edit the selected comment
; Called from EDIT and ADDCOM
; Input: DFN - IEN of the selected Patient
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
; COMIEN - IEN of the comment being edited
; FROMEE - 1 edit from Expand Entry, 0 otherwise
; Optional, defaults to 0
OK2EDIT(DFN,IBIIEN,COMIEN,WHICH) ; Check to see if it's ok to Edit/Delete the
; selected Patient Policy Comment
; Input: DFN - IEN of the selected Patient
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
; COMIEN - IEN of the selected Patient Policy comment
; WHICH - 'Delete' when called from DELETE
; 'Edit' whe called fomr EDIT
; Returns: 1 - OK to edit or delete, -1^Error Message otherwise
LOCKC(DFN,IBIIEN,COMIEN) ; Lock Editing of a selected Patient Policy Comment
; Input: DFN - IEN of the Patient a comment will be added for
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
; COMIEN - IEN of the Patient Policy comment being edited
; Returns: 1 - Lock was obtained, 0 otherwise
UNLOCKC(DFN,IBIIEN,COMIEN) ; Unlock Editing of a selected Patient Policy Comment
; Input: DFN - IEN of the Patient a comment will be added for
; IBIIEN - ^DPT(DFN,.312,IBIIEN,0) Where IBIIEN is the
; multiple IEN of the selected patient policy
; COMIEN - IEN of the Patient Policy comment being edited
HELP ;EP
; Display the listman template help
MULTCOM(FULL,PROMPT,COMCNT,WLIST) ;Allow selection of multiple comments to be deleted
; Select Entry(s) to perform an action upon
; Input: FULL - 1 - full screen mode, 0 otherwise
; PROMPT - Prompt to be displayed to the user
; WLIST - Worklist, the user is selecting from
; ^TMP($J,"IBCNCHIX") - Index of displayed lines of the Comment
; History Worklist
; Output: COMCNT - Comment Number of the selected Comment
; Returns: Select Comment IEN
; Error message if invalid selection
MLTENTRY(PROMPT,START,END) ; select a comment
; Input: PROMPT - Prompt to be displayed to the user
; START - Start comment # that can be selected
; END - Ending comment # that can be selected
; Returns: Selected Comment # or "" if not selected
SELCOM(FULL,PROMPT,COMCNT,WLIST)
DELCOM(DFN,IBIIEN,COMIEN) ; Checks to see if the user was attempting to
; create new Patient Policy comment but didn't enter a comment. If so,
; If so, the new Patient Policy Comment is deleted
; Input: DFN - IEN of the Patient a policy comment is being added for
; IBIIEN - IEN of the Policy a policy comment is being added for
; COMIEN - IEN of the new Policy Comment being added
; Returns: 1 - New Patient Policy Comment was deleted, 0 otherwise
;
SELENTRY(PROMPT,START,END)
EXIT ;EP
; Exit the listman template

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,*7,"Patient is not identified."
  • Line Location: EN+8
Function Call: WRITE
  • Prompt: !!,*7,"Patient Policy is not identified."
  • Line Location: EN+11
Function Call: WRITE
  • Prompt: !!,*7,"Someone else is adding a comment for this patient and policy."
  • Line Location: ADDCOM+20
Function Call: WRITE
  • Prompt: !,"Try again later."
  • Line Location: ADDCOM+21
Function Call: WRITE
  • Prompt: !!,*7,"No Comment was entered. Nothing Filed"
  • Line Location: ADDCOM+34
Function Call: WRITE
  • Prompt: !,*7,">>>> Invalid selection number"
  • Line Location: DELETE+40
Function Call: WRITE
  • Prompt: !!,*7,"Someone is editing or deleting this Patient Policy Comment."
  • Line Location: DELETIT+8
Function Call: WRITE
  • Prompt: !,"Try again later."
  • Line Location: DELETIT+9
Function Call: WRITE
  • Prompt: *7
  • Line Location: DELETIT+18
Function Call: WRITE
  • Prompt: !,$P(XX,"^",IL)
  • Line Location: DELETIT+20
Function Call: WRITE
  • Prompt: !!,*7,"Someone else is editing or deleting this Patient Policy Comment."
  • Line Location: EDITCOM+12
Function Call: WRITE
  • Prompt: !,"Try again later."
  • Line Location: EDITCOM+13
Function Call: WRITE
  • Prompt: !,*7,$P(XX,"^",2)
  • Line Location: EDITCOM+20
Function Call: WRITE
  • Prompt: !!
  • Line Location: HELP+5
Function Call: WRITE
  • Prompt: !,*7,">>>> Only single entry selection is allowed"
  • Line Location: MULTCOM+18
Function Call: WRITE
  • Prompt: !,*7,">>>> No comments to "_X
  • Line Location: MULTCOM+24
Function Call: WRITE
  • Prompt: !,*7,">>>> Only single entry selection is allowed"
  • Line Location: SELCOM+18
Function Call: WRITE
  • Prompt: !,*7,">>>> No comments to "_X
  • Line Location: SELCOM+24
Function Call: WRITE
  • Prompt: !,*7,">>>> Invalid selection number"
  • Line Location: SELCOM+32

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] Classic Fileman Calls,  GET1^DIQ
2.342 GET1^DIQ
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call