How to read from Ens.StreamContainer
Hi,
I am receiving a JSON File as Stream container Using
Please find the code below
{
Set tFilename=..Adapter.CreateFilename(##class(%File).GetFilename(pRequest.OriginalFilename),..Filename)
Set tSC=..Adapter.PutStream(tFilename, pRequest.Stream)
Quit tSC
}
Question:How can i extract name,DOB,SSN from the pRequest and save the same values in SQL persistant table?
Please find the JSON Output below
{"name":"PATID1234^5^M11^ADT1^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS","DOB":"19610615","SSN":"ADT1"}
Thanks,
Smythee
Product version: Ensemble 2016.1
$ZV: Cache for Windows (x86-64) 2018.1.1 (Build 312_1_18937U) Fri Apr 26 2019 17:58:36 EDT