Hi,
How can read this Json file with Jsonpaser ?. Anybody can help me ?
{
"Remittance": {
"Header": {
"SenderID": "AAAAA",
"ReceiverID": "BBBBBB",
"TransactionDate": "02/08/2022 01:33",
"RecordCount": 2,
"DispositionFlag": "PRODUCTION",
"PayerID": "RRRRRR"
},
"Claim": [
{
"ID": "11111111",
"IDPayer": "33333",
"ProviderID": "4444",
"DenialCode": "",
"PaymentReference": "555555555555",
"DateSettlement": "29/07/2022 00:00",
"Encounter": {
"FacilityID": "555555"
},
"Activity": [
{
"ID": "1111",
"Start": "14/05/2022 19:34",
"Type": "8",
"Code": "9.01",
"Quantity": 1,
"Net": 0,
"List": 0,
"Clinician": "XXXXXXX",
"Gross": 0,
"PatientShare": 0,
"ActivityPenalty": "",
"PaymentAmount": 0
},
{
"ID": "22222",
"Start": "14/05/2022 19:34",
"Type": "3",
"Code": "6666",
"Quantity": 1,
"Net": 6.6,
"List": 6.6,
"Clinician": "XXXXXX",
"Gross": 6.6,
"PatientShare": 0,
"ActivityPenalty": "",
"PaymentAmount": 6.6
},
{
"ID": "33333",
"Start": "14/05/2022 19:34",
"Type": "3",
"Code": "7777777",
"Quantity": 1,
"Net": 7.7,
"List": 7.7,
"Clinician": "XXXXXX",
"Gross": 7.7,
"PatientShare": 0,
"ActivityPenalty": "",
"PaymentAmount": 7.7
},
{
"ID": "444444",
"Start": "14/05/2022 19:34",
"Type": "3",
"Code": "8888888",
"Quantity": 1,
"Net": 16.5,
"List": 16.5,
"Clinician": "XXXXXXX",
"Gross": 16.5,
"PatientShare": 0,
"ActivityPenalty": "",
"PaymentAmount": 16.5
}
]
},
{
"ID": "222222222222",
"IDPayer": "3333333",
"ProviderID": "444444",
"DenialCode": "",
"PaymentReference": "555555555555555",
"DateSettlement": "29/07/2022 00:00",
"Encounter": {
"FacilityID": "7666"
},
"Activity": [
{
"ID": "55555555",
"Start": "24/05/2022 00:00",
"Type": "8",
"Code": "9999999",
"Quantity": 1,
"Net": 28,
"List": 28,
"Clinician": "XXXXXX",
"Gross": 35,
"PatientShare": 7,
"ActivityPenalty": "",
"PaymentAmount": 28
}
]
}
]
}
}
I am very poor in Json.
Sir, How can take Activity ?
When I am giving like this ll_activity = lnv_JsonParser.GetItemArray (ll_Remittance, "Activity"), coming -1.
Get the Handle of the Claim entry , e.g.
ll_claimitem = lnv_JsonParser.GetChildItem(ll_claim, ll_index)
Then access the Activity-Array
ll_activity = lnv_JsonParser.GetItemArray (ll_claimitem, "Activity")
After that you can run through the array like in example with the Claim-Array.