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

Package: PCE Patient Care Encounter

Routine: PXSPECAUTH


Information

PXSPECAUTH ;ISL/AGP/GSN - Special Authorities APIs and RPCs ;Nov 06, 2025@13:07:01

Source Information

Source file <PXSPECAUTH.m>

Entry Points

Name Comments DBIA/ICR reference
FINDBYNAME(NAME) ; Return the SA file ien from the NAME passed in.
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    FINDBYCODE(CODE) ; Return the SA file ien from the CODE passed in.
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    GETDISPLAYNAME(IEN) ; Return the SA Display name via the SA file ien passed in.
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    GETVALUE(DEF) ; Return the SA JSON field value from the Fileman value passed in.
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    GETCODE(IEN) ;
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    GETZERO(IEN) ; Return the entire 0 node of the SA file via ien.
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    SETARRAY(AR,FULLSTRUCT) ; Return JSON field values for the SAs optionally return the full structure of business rules.
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    GETSADEF(RESULTS,INPUTS) ; Get SAs for a patient per Location and/or Visit
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    GETPATSA(DFN,ATM,LOC,VST,PXARRAY) ;Get the patients SA indicators
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    ISACTIVECODE(CODE) ;
  • ICR #7506
    • Status: Active
    • Usage: Controlled Subscription
    BLDFDA(FDA,IEN,SAS,ISVPOV) ;
    CONVERTTOPCE(RESULTS,SAS) ;
    GETSAFORVISITDET(NODE900,NODE800,VISIT) ;
    GETSAFORVISIT(RESULTS,VISIT) ;
    GETSAFORVPOVDET(NODE900,NODE800,VPOV) ;
    GETSAFORVPOV(RESULTS,VPOV) ;
    SAVALUEFORVISIT(VISIT,CODE) ;
    SETOLD800(RESULT,SAS,ISVPOV) ;
    UPDATEROMVISIT(PXARRAY,VST) ;
    NODETOCODE(J) ;
    SCMAP(J) ;
    SETVALUE(VALUE) ;
    SETNEWSA(IEN,SA,ISVPOV) ;
    SPECAUTHSTRUCT(RESULTS) ;Return valid Special Authorities (SA) rules structure defined in file #820.
    ; Input: None.
    ; Output: RESULTS = JSON elements: {code}:internal abbr,{abbreviation}:external abbr code,{displayName}:Name,{sequence}:display sequence,{default}:Yes/No/Unanswered
    ; {whenValueIs}:value this SA code,{actions}:action to take on a linked SA code,{linkedSpecialAuthorities}:a linked SA code
    SPECAUTHDEF(RESULTS,JSONIN) ;Return Patient Special Authorities (SA) that may be selected via a JSON serialized string. *508
    ; Input: JSONIN = JSON elements: {patientId}:orig DFN, {dateTime}:orig ATM, {location}:orig LOC, {visitIen}:orig VST,
    ; {loadStructure}:true/false value (optional); Load SAs rules structure
    ; Output: RESULTS = JSON elements: {code}: internal abbr,{visible}:true/false,{default}:Yes/No/Unanswered

    Used in RPC

    RPC Name Call Tags
    PXSPECAUTH SPECAUTHSTRUCT SPECAUTHSTRUCT
    PXSPECAUTH SPECAUTHDEF SPECAUTHDEF

    FileMan Files Accessed Via FileMan Db Call

    FileNo Call Tags
    ^PXIND(820 - [#820] GET1^DIQ
    820.01 GET1^DIQ
    820.02 GET1^DIQ
    820.021 GET1^DIQ
    820.022 GET1^DIQ
    Info |  Source |  Entry Points |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call