Error 422

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

Don Hamilton

unread,
Jun 9, 2021, 8:47:32 PM6/9/21
to Cerner FHIR Developers
Can you explain why I'm getting this error?

'x-request-id': 'ea4e61dd-55e6-4f82-a017-f0d6397015ba'
body: {"resourceType":"Appointment","status":"booked","slot":[{"reference":"Slot/4047611-25442717-63463441-120"}],"participant":[{"actor":{"reference":"Patient/12724067"},"status":"accepted"}]}

Thanks

Fenil Desani (Cerner)

unread,
Jun 10, 2021, 3:48:28 PM6/10/21
to Cerner FHIR Developers
Hello,

Please try with patientID: 12724066

Don Hamilton

unread,
Jun 10, 2021, 7:32:35 PM6/10/21
to cerner-fhir...@googlegroups.com
That patient did not work either, still getting a 422 error.

'x-request-id': 'aebff7ea-b4c6-4f34-ac98-9518f5d4737a'
{"resourceType":"Appointment","status":"booked","slot":[{"reference":"Slot/4047611-25442717-63463441-120"}],"participant":[{"actor":{"reference":"Patient/12724066"},"status":"accepted"}]}

--
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/HdgANXeiw0E/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/efb81f27-c651-44fd-9f11-8137c756a719n%40googlegroups.com.

Fenil Desani (Cerner)

unread,
Jun 11, 2021, 9:04:55 AM6/11/21
to Cerner FHIR Developers
That slot is no more free. please try with another Slot.

Don Hamilton

unread,
Jun 12, 2021, 6:04:01 PM6/12/21
to cerner-fhir...@googlegroups.com
Thank you that seemed to be the issue. How can I tell the slot is booked or not avaliable? 

Fenil Desani (Cerner)

unread,
Jun 14, 2021, 9:18:56 AM6/14/21
to Cerner FHIR Developers
You can lookup Slot, just prior to booking Appointment to see if the slot is free or busy.

Don Hamilton

unread,
Jun 15, 2021, 8:04:14 PM6/15/21
to cerner-fhir...@googlegroups.com
Fenil I'm not sure that's the case. You can see below it says it's free, but I still get a 422 error response. Any other ideas?

'x-request-id': '05cb0fa8-97cc-42da-a357-8f72202a5bcc'
Body: {"resourceType":"Appointment","status":"booked","slot":[{"reference":"Slot/4047611-32216061-63492653-120"}],"participant":[{"actor":{"reference":"Patient/12724066"},"status":"accepted"}]}
Slot: {"resource":{"resourceType":"Slot","id":"4047611-32216061-63492653-120","meta":{"versionId":"3423v8v7219v283","lastUpdated":"2020-05-22T07:10:44Z"},"text":{"status":"generated","div":""},"extension":[{"valueReference":{"reference":"Location/32216061"},"url":"https://fhir-ehr.cerner.com/r4/StructureDefinition/scheduling-location"}],"serviceType":[{"coding":[{"system":"https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/14249","code":"4047611","display":"Surgery Rapid","userSelected":true},{"system":"http://snomed.info/sct","code":"394576009","display":"Accident & emergency (qualifier value)"}],"text":"Surgery Rapid"}],"schedule":{"reference":"Schedule/4047611-32216061-63492653-120"},"status":"free","start":"2021-06-21T07:00:00Z","end":"2021-06-21T07:30:00Z"}}

Reply all
Reply to author
Forward
0 new messages