I am building a restful FHIR search API which requires a custom response. This is different from a custom resource. The API must return all Patients as follows:
{
"Patients":[
{
"patientid": "pat1",
"gender": "male",
"birthDate": "1924-10-10",
"deceasedBoolean": true
},
{
"patientid": "pat2",
"gender": "female",
"birthDate": "1957-10-10",
"deceasedBoolean": false
}
]
}
So, thats an object with an array of objects. How can I return this instead of a Bundle?