PXSPECAUTH SPECAUTHDEF (5172)    REMOTE PROCEDURE (8994)

Name Value
NAME PXSPECAUTH SPECAUTHDEF
TAG SPECAUTHDEF
ROUTINE PXSPECAUTH
RETURN VALUE TYPE ARRAY
DESCRIPTION
Returns and array of JSON specifications for a patient. Optionally can 
also return all Special Authorities (SA) business rules.
INPUT PARAMETER
  • JSONIN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    JSON input elements string with the following elements:
    }
     
    Example:
    {
        "dateTime": 3240516.1215,
        "loadStructure": true,
        "location": 62,
        "patientId": 100620,
        "visitIen": 7249
    
RETURN PARAMETER DESCRIPTION
JSON literal returned
            "visible": true
                     "actions": [
                         "SetUnanswered",
                         "Disable"
                     ],
                     "linkedSpecialAuthorities": [
                         "AO",
                         "EC",
                         "IR"
                     ],
                     "whenValueIs": "Yes"
        },
                 },
                 {
                     "actions": [
                         "Enable"
                     ],
                     "linkedSpecialAuthorities": [
                         "AO",
                         "EC",
                         "IR"
                     ],
        {
                     "whenValueIs": "No"
                 },
                 {
                     "actions": [
                         "Enable"
                     ],
                     "linkedSpecialAuthorities": [
                         "AO",
                         "EC",
                         "IR"
            "code": "SC",
                     ],
                     "whenValueIs": "Unanswered"
                 }
             ]
         }
            "default": "Unanswered",
            "visible": false
        },
        {
            "code": "CV",
            "default": "Unanswered",
 
            "visible": false
        },
        {
            "code": "AO",
            "default": "Unanswered",
            "visible": false
        },
        {
            "code": "IR",
            "default": "Unanswered",
Example for a specific patient:
            "visible": false
        },
        {
            "code": "EC",
            "default": "Unanswered",
            "visible": false
        },
        {
            "code": "SHAD",
            "default": "Unanswered",
 
            "visible": true
        },
        {
            "code": "MST",
            "default": "Unanswered",
            "visible": false
        },
        {
            "code": "HNC",
            "default": "Unanswered",
{
            "visible": false
        }
    ],
    "success": true
}
 
 
 
Example if the Structure input element is true:  
 
    "specialAuthority": [
  (See RPC PXSPECAUTH PXSPECAUTHSTRUCT for full example)
 
 {
     "specialAuthorityTypes": [
         {
             "abbreviation": "ASC",
             "code": "ASC",
             "default": "Unanswered",
             "disabled": false,
             "displayName": "Acute Suicidal Crisis",
        {
             "id": 9,
             "package": [
                 {
                     "excluded": false,
                     "name": "PROBLEM LIST"
                 }
             ],
             "sequence": 5
         },
         {
            "code": "ASC",
             "abbreviation": "SC",
             "code": "SC",
             "default": "Unanswered",
             "description": "Service-Connected (SC):\r\nVeterans are 
 eligible for medical care for treatment of service-connected\r\n(SC) 
 conditions without incurring copayment charges or claims 
against\r\ntheir 
 insurance.  See 'Help' for additional information.\r\n",
             "disabled": false,
             "displayName": "Service &Connected Condition",
            "default": "Yes",
             "id": 1,
             "package": [
                 {
                     "excluded": false,
                     "name": "ORDER ENTRY\/RESULTS REPORTING"
                 }
             ],
             "sequence": 10,
             "valueChangeActions": [
                 {