Forum Discussion
giselle_rayner
9 years agoNew Contributor
This is great! Thank you so so much. I have been banging my head over here.
2 Questions.
- What is the significance of Accept-Encoding? Do I need this in all subsequent calls?
- If I wanted to send multiple patients (Liz Smith, John Snow, Barry White, etc) in the call how could I do this? Would you suggest creating a data file and then read from that in the post call?
nganapathiraju
9 years agoFormer Employee
Please refer to Accept-Encoding details here
If you want multiple patients sent - I am assuming in one single call, you just have to make an array. Hoping that the REST POST will accept the format.
[
{
"FirstName": "Liz",
"LastName": "Smith"
},
{
"FirstName": "John",
"LastName": "Snow"
},
{
"FirstName": "Barry",
"LastName": "White"
}
]
You can read from a data source such as a table and use the Group By N to collect them into an array like the above. There are other ways of doing this as well but you can try the above method first.
If this is not what you want, let me know.