Observation Write not allowed

270 views
Skip to first unread message
Assigned to brij...@cerner.com by aaron....@oracle.com

Sean C

unread,
Jan 25, 2021, 6:11:12 PM1/25/21
to Cerner FHIR Developers
Hi,
I'm trying to create an Observation but I keep getting an error:
Http response 422   Body:{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"business-rule","details":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/operation-outcome","code":"MSG_OP_NOT_ALLOWED","display":"operation create not allowed for resource Observation (due to local configuration)"}],"text":"operation create for Observation is not allowed."},"diagnostics":"provider persona is not supported for a vital sign create"}]}

In my authorization, I've passed the required scope with "user/Observation.write" and I have the same setup under "User Scopes" for my app in Cerner Code.

Are there an issues with any of my settings? My x-request-id is:  f8d8d97c-be35-43a7-8644-c5ec48d8b01b

Thanks,
Sean

Aaron McGinn (Cerner)

unread,
Jan 25, 2021, 6:50:13 PM1/25/21
to Cerner FHIR Developers
As mentioned in the error message and in our documentation [1], the provider workflow currently only supports creating laboratory Observations.


-Aaron (Cerner)

Sean C

unread,
Jan 26, 2021, 9:12:59 AM1/26/21
to Cerner FHIR Developers
Thanks Aaron, I thought the error was telling me there was an issue in permission that prevents Observation creates. Do you know if there are plans to allow provider vital-sign writes in the future?

Sean

Sean C

unread,
Jan 26, 2021, 9:30:35 AM1/26/21
to Cerner FHIR Developers
HI Aaron,
What does it also mean with the error:
Http response 500   Body:{"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"exception","details":{"text":"Internal service error from resource store"}}]}

x-request-id: 912204d1-6f3e-4374-94b7-c1d6b7da7ba9

Thank you,
Sean

Brij Shah (Cerner)

unread,
Jan 26, 2021, 2:53:50 PM1/26/21
to Cerner FHIR Developers
Hi Sean,

Can you provide us the request body you're sending in?

Thanks

Sean C

unread,
Jan 27, 2021, 11:03:41 AM1/27/21
to Cerner FHIR Developers
Hi Brij,
I've create another observation with the same error: This is the request body:
{"resourceType":"Observation","status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"laboratory"}]}],"code":{"coding":[{"system":"http://loinc.org","code":"39125-0"}]},"subject":{"reference":"Patient/12463979"},"encounter":{"reference":"Encounter/97703401"},"effectiveDateTime":"2021-01-27T10:58:23-05:00","performer":[{"reference":"Practitioner/607928"}],"valueQuantity":{"value":3.5,"unit":"cm","system":"http://unitsofmeasure.org","code":"cm"}}

This is the response:
Http response 500  Body: {"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"exception","details":{"text":"Internal service error from resource store"}}]}

This is the x-request-id: acc53a74-dad7-461f-bf7c-dc6fbc28e6a1

Thanks,
Sean

Brij Shah (Cerner)

unread,
Jan 27, 2021, 11:12:02 AM1/27/21
to Cerner FHIR Developers
Hi Sean,

Thanks for that information.
It seems like we don't have that LOINC code (39125-0) in our system, I can get that added. 
Are there any other codes you're targeting?

Thanks,
Brij

Sean C

unread,
Jan 27, 2021, 12:50:55 PM1/27/21
to Cerner FHIR Developers
Thank you Brij,
That's good to know, could you add the following LOINC codes?
39127-6
89260-4
39126-8
39125-0
39132-6
39133-4
72300-7
94083-3

As well, do you have an estimated timeline for when the additions will be complete and usable?

Thanks,
Sean

Brij Shah (Cerner)

unread,
Jan 28, 2021, 12:29:42 PM1/28/21
to Cerner FHIR Developers
Hi Sean,

I've logged an internal request to get these codes added. At this point, I can not give any timeline on when this will be available to consume but I'll post back here when it is done.

Thanks,
Brij

Sean C

unread,
Jan 28, 2021, 1:00:51 PM1/28/21
to Cerner FHIR Developers
Thanks for your help Brij.

Sean

Louis Leff

unread,
Jan 29, 2021, 9:44:45 AM1/29/21
to Cerner FHIR Developers


Hi Brij,

As long as you are taking requests our EBMcalc FHIR App could use these LOINC's to write observations:

9264-3
9272-6
9273-4
9274-2
9271-8
9269-2
89547-4
89545-8
89693-6
90660-2
89548-2
90661-0

Best regards and stay safe!

Louis

Aaron McGinn (Cerner)

unread,
Jan 29, 2021, 10:32:17 AM1/29/21
to Cerner FHIR Developers
In general, to avoid adding a bunch of mappings that are only used once in the public sandbox, we typically only map a few of each "type" of mapping (i.e. wound on arm, COVID-19 result, blood pressure). If a use-case is encountered that can't be covered by existing mappings, we can help you find something similar to your exact needs.

Louis, as a code partner, I will reach out to your group to determine your needs.

-Aaron (Cerner)

Louis Leff

unread,
Jan 29, 2021, 12:42:29 PM1/29/21
to Cerner FHIR Developers


Thanks Aaron!

Brij Shah (Cerner)

unread,
Feb 12, 2021, 10:50:48 AM2/12/21
to Cerner FHIR Developers
This work is complete and can be tested now.

Thanks,
Brij

Louis Leff

unread,
Feb 12, 2021, 6:17:31 PM2/12/21
to cerner-fhir...@googlegroups.com

Thanks Brij,

 

We just tried several, and get the 500 server error.

 

X-Request-Id

                9a030281-4c33-46b2-a028-417b80cdafed

For Apache II Score:

 

{"resourceType":"Observation","status":"final","category":[{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/observation-category","code":"laboratory","display":"Laboratory"}],"text":"Laboratory"}],"code":{"coding":[{"system":"http://loinc.org","code":"9264-3","display":"Apache II Score"}],"text":"Apache II Score"},"subject":{"reference":"Patient/12742400"},"effectiveDateTime":"2021-02-12T23:10:48.028Z","valueQuantity":{"value":12,"unit":"score","system":"http://unitsofmeasure.org","code":"score"}}

 

Insights welcome, and have a great, safe weekend!

 

Louis

--
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/RW9ejmvsnAY/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/a98e6fbf-db12-4f2b-a63b-6734a96ecb46n%40googlegroups.com.

Louis Leff

unread,
Feb 16, 2021, 1:27:29 PM2/16/21
to cerner-fhir...@googlegroups.com

Hi Brij,

 

Any follow up on this write issue?

 

Louis

Aaron McGinn (Cerner)

unread,
Feb 16, 2021, 3:01:36 PM2/16/21
to Cerner FHIR Developers
Hey Louis, I reached out to you via uCern for your requests.

-Aaron (Cerner)

Sean C

unread,
Feb 16, 2021, 7:28:51 PM2/16/21
to Cerner FHIR Developers
Hi Brij,
I sent a Observation create with x-request-id: 35f6a21b-2050-41bb-b73b-9cbb11aedbda

The Observation was written and responded with success, however I see this key-value in the returned Observation json and I'm don't know how to interpret it:
 "category":[
      {
         "extension":[
            {
               "valueCode":"unknown",
            }
         ]
      }
   ]
Note that I included a "valueQuantity"  in json sent to create the Observation, but I'm not sure what "data-absent-reason" means.

As well, I also see a repeat of the LOINC system and code (39126-8) in the code.coding object:
   "code":{
      "coding":[
         {
            "code":"704005",
            "display":"Incision/Wound Length",
            "userSelected":true
         },
         {
            "system":"http://loinc.org",
            "code":"39126-8"
         },
         {
            "system":"http://loinc.org",
            "code":"39126-8"
         }
      ],
      "text":"Incision/Wound Length"
   },
Is this expected?

Thanks,
Sean

Brij Shah (Cerner)

unread,
Feb 17, 2021, 12:36:18 PM2/17/21
to Cerner FHIR Developers

Hi Sean,

It is possible that the code you're sending in doesn't have a category mapped in our system. Please refer to our documentation for data absent reason.

Sean C

unread,
Feb 17, 2021, 5:18:36 PM2/17/21
to Cerner FHIR Developers
Hi Brij,
The Observation I sent to be created does not have any Observation.category.extension value set. In the documentation, there is only info for Observation.dataAbsentReason and Observation.component.dataAbsentReason, and the value that I sent with unit "cm" came back without any errors.

Do you have any other information on this? Can this be ignored?

Thanks,
Sean

Sean C

unread,
Feb 18, 2021, 1:54:38 PM2/18/21
to Cerner FHIR Developers
Hi,
I'm testing the LOINC codes, but when I send an Observation with code 89260-4,  I am still getting the following response:
Http response 500   Body:{"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"exception","details":{"text":"Internal service error from resource store"}}]}

Are all the LOINC code above now supported, or will there only be subset available?

x-request-id: 22b047c1-9a46-4c45-a812-a1af7de94fb7

Thanks,
Sean

Brij Shah (Cerner)

unread,
Feb 18, 2021, 2:02:34 PM2/18/21
to Cerner FHIR Developers
Hi Sean,

Apologies for the delay to respond.

The data absent reason response you're seeing it seems to be for "category" field. I believe you should still be able to see "valueQuantity" on the response you provided on POST request.

The duplicate loincs on response is currently a known issue on our server. However, we currently do not have any timeline for when it would be fixed.

The loincs which we currently can not support on our public domains are 89260-4, 39133-4, and 94083-3. The rest of the loincs you provided should work now.

Thanks,
Brij

Sean C

unread,
Feb 18, 2021, 3:26:01 PM2/18/21
to Cerner FHIR Developers
Hi Brij,

Yes the valueQuantity is there and the all the information is as expected, however still I can't see what is the issue with the Observation.category sent, which is :
   "category":[
      {
         "coding":[
            {
               "code":"laboratory"
            }
         ]
      }
   ],
I believe this is the only valid system and code for provider apps and thus I'm not sure why there is a data-absent-reason. Is there a reason why this would not work?

Thanks,
Sean

Brij Shah (Cerner)

unread,
Feb 18, 2021, 3:39:39 PM2/18/21
to Cerner FHIR Developers
The category is mapped against the loinc code you're providing while creating data. It is possible that the public domain does not have those codes mapped. 
You might want to add logic on your end to handle data absent reason for the category as it is possible that you come across this scenario again.

Thanks,
Brij

Sean C

unread,
Feb 18, 2021, 3:51:37 PM2/18/21
to Cerner FHIR Developers
Just want to be sure I understand the situation. The LOINC codes that I provided are now supported in the public sandbox after your team entered them into the system, however them have not been mapped to the category and that I have to be aware that this may occur in the future.

Is this right?

Thanks,
Sean

Brij Shah (Cerner)

unread,
Feb 18, 2021, 3:55:14 PM2/18/21
to Cerner FHIR Developers
That is correct.

Sean C

unread,
Mar 3, 2021, 3:41:08 PM3/3/21
to Cerner FHIR Developers
Hi Brij,
I've tried creating Observations with codes "39126-8", "39125-0", "39127-6", "72300-7" and I am again receiving this error:
Http response 500   Body:{"resourceType":"OperationOutcome","issue":[{"severity":"fatal","code":"exception","details":{"text":"Internal service error from resource store"}}]}

Have these codes been removed again?

Thank you,
Sean

Brij Shah (Cerner)

unread,
Mar 3, 2021, 3:56:03 PM3/3/21
to Cerner FHIR Developers
Hi Sean,

I see that those codes are still in our system. 
Can you share x-request-id you get back on the response header for this failure? Also, if it is possible can you also share the request body JSON you're sending in?

Thanks,
Brij

Sean C

unread,
Mar 4, 2021, 9:48:49 AM3/4/21
to Cerner FHIR Developers
Hi Brij,
It's really strange, since everything is working again today. Did something get reset in the sandbox yesterday afternoon?

I no longer have x-request-ids for those errors, but I will record them if it happens again.

Sean

Brij Shah (Cerner)

unread,
Mar 4, 2021, 10:01:41 AM3/4/21
to Cerner FHIR Developers
Thanks for the feedback.
It could be an intermittent issue if you face failures again do let us know.

Thanks,
Brij

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages