Print Page as PDF
Decode/Encode JSON ICR (6411)

Decode/Encode JSON    ICR (6411)

Name Value
NUMBER 6411
IA # 6411
DATE CREATED 2016/05/24
CUSTODIAL PACKAGE VIRTUAL PATIENT RECORD
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE VPRJSON
NAME Decode/Encode JSON
GENERAL DESCRIPTION
This is a utility for decoding and encoding JSON.
STATUS Active
KEYWORDS
  • JSON
  • Decode
  • Encode
DURATION Till Otherwise Agreed
ID VPRJSON
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
ENCODE(VVROOT,VVJSON,VVERR)
This API is used for converting a local or global
array (M structure) into a JSON object.

Examples:

D ENCODE^VPRJSON("^GLO(99,2)","^TMP($J)")

D ENCODE^VPRJSON("LOCALVAR","MYJSON","LOCALERR")
VARIABLES TYPE VARIABLES DESCRIPTION
VVROOT Input
Closed array reference for M representation of
object.
VVJSON Both
Destination variable for the string array formatted
as JSON.
VVERR Both
Contains error messages, defaults to
^TMP("VPRJERR",$J).
DECODE(VVJSON,VVROOT,VVERR)
This API is used for converting a JSON object into a
local or global array (M structure).

Examples:

D DECODE^VPRJSON("MYJSON","LOCALVAR","LOCALERR")

D DECODE^VPRJSON("^MYJSON(1)","^GLO(99)","^TMP($J)")
VARIABLES TYPE VARIABLES DESCRIPTION
VVJSON Input
String/array containing serialized JSON object.
VVROOT Both
Closed array reference for M representation of
object.
VVERR Both
Contains error messages, defaults to
^TMP("VPRJERR",$J).
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE SUBSCRIBING DETAILS
PCE PATIENT CARE ENCOUNTER
MENTAL HEALTH
LIGHTHOUSE
Added 10/4/21, effective with LHS*1.0*1 that is being
created to support an IB initiative associated with the Advanced Medical Cost
Management Solutions (AMCMS) and WellHive. WellHive is a commercial insurance
validation/verification system that will be IOC tested at VISN8 at the time of
the subscription.
DATE ACTIVATED 2016/07/28