SMART Health Card request

42 views
Skip to first unread message
Assigned to michael...@cerner.com by Fenil....@cerner.com

Francesca Ricci-Tam

unread,
Oct 6, 2021, 5:34:08 PM10/6/21
to Cerner FHIR Developers
Hello,

I'm working on a confidential patient-facing app (currently in development, in the Cerner sandbox) which includes .read scopes for Patient, Immunization, and Observation. I tried to test whether it could fetch a SMART Health Card for Nancy Smart, following the documentation in https://fhir.cerner.com/millennium/r4/foundation/other/health-cards/


with the following headers:

        Accept: 'application/fhir+json',
        Authorization: `Bearer ${our accessToken redacted}`,
        'Content-Type': 'application/fhir+json',

and request body:

{
        resourceType: 'Parameters',
        parameter: [
                        {
                                name: 'credentialType',
                                valueUri: 'https://smarthealth.cards#health-card',
                        },
                        {
                                name: 'credentialType',
                                valueUri: 'https://smarthealth.cards#covid19',
                        },
                        {
                                name: '_since',
                                valueDateTime: '1990-04-01',
                        },
              ],
}

However, it fails with status code 400.
What needs to be corrected in the format?
Thanks,

Francesca Ricci-Tam

Michael Turman

unread,
Oct 7, 2021, 9:23:34 AM10/7/21
to Cerner FHIR Developers
Hi Francesca,

Thanks for reaching out.

I believe the issue is that the body of your request is not properly formatted - the parameter elements are not encapsulated in quotes, only the parameter values.

When I query the same patient, on the same FHIR server, with the below with elements and values in quotes, I get a 200 and the payloads I expect:

{"resourceType": "Parameters", "parameter": [ { "name": "credentialType", "valueUri": "https://smarthealth.cards#health-card" }, { "name": "credentialType", "valueUri": "https://smarthealth.cards#covid19" }, { "name": "_since", "valueDateTime": "1990-04-01" } ] }
Reply all
Reply to author
Forward
0 new messages