Varying API response formats (Ex: AllergyIntolerance)

20 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

Bomi Kim

unread,
Nov 22, 2021, 4:50:31 PM11/22/21
to Cerner FHIR Developers
Good afternoon,

We are beginning to scope out clinical, and noticed the sandbox API response format does not always follow the system, code, display format depicted in the Cerner R4 documentation.

Expected Format (see highlighted section):
{
            "resource": {
                "resourceType": "AllergyIntolerance",
                "id": "12786025",
                "meta": {
                    "versionId": "12786025",
                    "lastUpdated": "2021-11-22T21:35:14Z"
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Allergy Intolerance</b></p><p><b>Patient</b>: PHREESIA, THREE</p><p><b>Allergy</b>: Eggs (edible) (substance)</p><p><b>Verification Status</b>: Confirmed</p><p><b>Clinical Status</b>: Active</p><p><b>Criticality</b>: Low Risk</p><p><b>Category</b>: Food</p></div>"
                },
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
                            "code": "active",
                            "display": "Active"
                        }
                    ],
                    "text": "Active"
                },
                "verificationStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
                            "code": "confirmed",
                            "display": "Confirmed"
                        }
                    ],
                    "text": "Active"
                },
                "type": "allergy",
                "category": [
                    "food"
                ],
                "criticality": "low",
                "code": {
                    "coding": [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "102263004",
                            "display": "Eggs (edible) (substance)"
                        }
                    ],
                    "text": "Egg"
                },
                "patient": {
                    "reference": "Patient/12762018",
                    "display": "PHREESIA, THREE"
                },
                "encounter": {
                    "reference": "Encounter/97960617"
                },
                "recordedDate": "2021-11-22T21:35:14Z",
                "recorder": {
                    "reference": "Practitioner/12762230",
                    "display": "PWPhreesia, MD, Cardio"
                }
          

What we get (missing the system, code, display): 
       {
            "resource": {
                "resourceType": "AllergyIntolerance",
                "id": "12785959",
                "meta": {
                    "versionId": "12785983",
                    "lastUpdated": "2021-11-22T21:24:43Z"
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Allergy Intolerance</b></p><p><b>Patient</b>: PHREESIA, THREE</p><p><b>Allergy</b>: Latex</p><p><b>Verification Status</b>: Confirmed</p><p><b>Clinical Status</b>: Active</p><p><b>Criticality</b>: High Risk</p><p><b>Category</b>: Environment</p><p><b>Reactions</b>: Swelling of left ear structure</p></div>"
                },
                "clinicalStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",
                            "code": "active",
                            "display": "Active"
                        }
                    ],
                    "text": "Active"
                },
                "verificationStatus": {
                    "coding": [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",
                            "code": "confirmed",
                            "display": "Confirmed"
                        }
                    ],
                    "text": "Active"
                },
                "type": "allergy",
                "category": [
                    "environment"
                ],
                "criticality": "high",
                "code": {
                    "text": "Latex"
                },
                "patient": {
                    "reference": "Patient/12762018",
                    "display": "PHREESIA, THREE"
                },
                "encounter": {
                    "reference": "Encounter/97960617"
                },
                "recordedDate": "2021-11-22T21:06:12Z",
                "recorder": {
                    "reference": "Practitioner/12762230",
                    "display": "PWPhreesia, MD, Cardio"
                }

Please refer to our Test Patient named "Three Phreesia" with sandbox MRN 490364676 and FHIR ID 12785993. 

X-Request-Id for reference: 53706bdd-dfcc-4ed6-bdaf-ed02f118391d

Thank you, 
Bomi Kim




Fenil Desani (Cerner)

unread,
Nov 23, 2021, 12:09:41 PM11/23/21
to Cerner FHIR Developers
Hello,

Latex is not mapped in our Sandbox and hence you get the string only instead of a standard code.

Thanks,
Fenil

Bomi Kim

unread,
Nov 23, 2021, 2:42:59 PM11/23/21
to cerner-fhir...@googlegroups.com
Thank you, this makes sense.

Appreciate the quick follow up,
Bomi Kim


On Nov 23, 2021, at 12:09 PM, 'Fenil Desani (Cerner)' via Cerner FHIR Developers <cerner-fhir...@googlegroups.com> wrote:

Hello,
--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/1Tu-KVrGSsc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerner-fhir-developers/7bfe7252-f765-42cd-8f61-5098e55b8f2fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages