400 Bad request Patient Create with R4

73 views
Skip to first unread message

Shankar Ganesh Jayaraman

unread,
Jan 4, 2020, 10:34:24 AM1/4/20
to Cerner FHIR Developers
Hi,

While I try to create a Patient with R4 I am getting 400 Bad request error.

x-request-id →0d82878f17a2b80f6e48b2b36c3f2481

Body

{
 
"resourceType": "Patient",
 
"identifier": [
   
{
     
"assigner": {
       
"reference": "Organization/619848"
     
}
   
},
   
{
     
"type": {
       
"coding": [
         
{
           
"system": "http://hl7.org/fhir/v2/0203",
           
"code": "SB"
         
}
       
]
     
},
     
"system": "http://hl7.org/fhir/sid/us-ssn",
     
"value": "123456789"
   
}
 
],
 
"name": [
   
{
     
"use": "official",
     
"family": "Jayaraman",
     
"given": [
       
"Shankar", "Ganesh"
     
]
   
}
 
],
 
"telecom": [
   
{
     
"system": "phone",
     
"value": "(555) 675 5745",
     
"use": "home"
   
},
   
{
     
"system": "phone",
     
"value": "(415) 675 5745",
     
"use": "office"
   
},
   
{
     
"system": "email",
     
"value": "te...@test.com",
     
"use": "home"
   
}
 
],
 
"gender": "female",
 
"address": [
   
{
     
"use":"home",
     
"line": [
       
"Street name, number, direction & P.O. Box etc."
     
],
     
"city": "Name of city, town etc.",
     
"state": "Sub-unit of country (abbreviations ok)",
     
"postalCode": "Postal/ZIP code for area"
   
}
 
],
 
"contact": [
   
{
     
"relationship": [
       
{
         
"coding": [
           
{
             
"system": "http://hl7.org/fhir/ValueSet/v2-0131",
             
"code": "C"
           
}
         
]
       
}
     
],
     
"name": {
       
"family": "Last Name contact",
       
"given": [
         
"First name contact"
       
]
     
},
     
"telecom": [
       
{
         
"system": "phone",
         
"value": "(111) 675 5745"
       
}
     
]
   
}
 
],
 
"generalPractitioner": [
   
{
     
"reference": "Practitioner/605925"
   
}
 
]
}


Error Response:

{
   
"resourceType": "OperationOutcome",
   
"issue": [
       
{
           
"severity": "error",
           
"code": "invalid",
           
"details": {
               
"text": "Invalid request"
           
}
       
}
   
]
}

Benjamin Eichhorn (Cerner)

unread,
Jan 6, 2020, 9:15:10 AM1/6/20
to Cerner FHIR Developers
Hi Shankar,

The Practitioner you are using (605925) is not effective. If you use a different Practitioner ID, that will likely work.

Thanks,
Ben (Cerner)
Reply all
Reply to author
Forward
0 new messages