Hello richie,
Thank you for taking time to respond to my question.
To answer your questions,
1. here is the JSON response. I copied and paste the XML. Apologies for the confusion.
{
"code" : null,
"message" : null,
"status" : "Success",
"data" : {
"providerType" : "Medical",
"providerNumber" : "AAAAAAAA",
"providerName" : "NAME",
"registrations" : [
{
"dateOn" : "30/10/1995",
"dateOff" : "",
"state" : "NSW",
"status" : "PracticeActiveOpen",
"bulkPayIndicator" : "NoBulkPayment"
}
],
"specialityCodes" : [
{
"code" : 33,
"dateOn" : "01/07/1997",
"dateOff" : ""
},
{
"code" : 104,
"dateOn" : "02/01/1987",
"dateOff" : ""
}
],
"supplements" : [
{
"hospitalType" : "",
"hospitalClass" : 0,
"coPay" : "P",
"contractInd" : true,
"groupBenefitCode" : "",
"dateOn" : "23/02/1998",
"dateOff" : ""
},
{
"hospitalType" : "",
"hospitalClass" : 0,
"coPay" : "P",
"contractInd" : true,
"groupBenefitCode" : "",
"dateOn" : "23/02/1998",
"dateOff" : "23/02/1998"
},
{
"hospitalType" : "",
"hospitalClass" : 0,
"coPay" : "P",
"contractInd" : true,
"groupBenefitCode" : "",
"dateOn" : "23/02/1998",
"dateOff" : "23/02/1998"
},
{
"hospitalType" : "",
"hospitalClass" : 0,
"coPay" : "P",
"contractInd" : true,
"groupBenefitCode" : "",
"dateOn" : "23/02/1998",
"dateOff" : "23/02/1998"
}
]
}
}
2. I am currently trying to validate the value from the JSON response versus the Database values that we have.
3. Thirdly. I "think" what you are asking for is that certain attributes/tags may have different values depending on certain conditions....is that right? - Yes, this is correct.