PXSPECAUTH ;ISL/AGP/GSN - Special Authorities APIs and RPCs ;Nov 06, 2025@13:07:01
Source file <PXSPECAUTH.m>
| Name | Comments | DBIA/ICR reference |
|---|---|---|
| FINDBYNAME(NAME) | ; Return the SA file ien from the NAME passed in.
|
|
| FINDBYCODE(CODE) | ; Return the SA file ien from the CODE passed in.
|
|
| GETDISPLAYNAME(IEN) | ; Return the SA Display name via the SA file ien passed in.
|
|
| GETVALUE(DEF) | ; Return the SA JSON field value from the Fileman value passed in.
|
|
| GETCODE(IEN) | ;
|
|
| GETZERO(IEN) | ; Return the entire 0 node of the SA file via ien.
|
|
| SETARRAY(AR,FULLSTRUCT) | ; Return JSON field values for the SAs optionally return the full structure of business rules.
|
|
| GETSADEF(RESULTS,INPUTS) | ; Get SAs for a patient per Location and/or Visit
|
|
| GETPATSA(DFN,ATM,LOC,VST,PXARRAY) | ;Get the patients SA indicators
|
|
| ISACTIVECODE(CODE) | ;
|
|
| 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 |
| RPC Name | Call Tags |
|---|---|
| PXSPECAUTH SPECAUTHSTRUCT | SPECAUTHSTRUCT |
| PXSPECAUTH SPECAUTHDEF | SPECAUTHDEF |