-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When registering a Patient with a referenced Condition, 400 error is returned
To Reproduce
Steps to reproduce the behavior:
- POST the following bundle to /registration
{
"resourceType": "Bundle",
"type": "transaction",
"id": "bundle-careplan-example-012",
"entry": [
{
"fullUrl": "Patient/patient-018",
"resource": {
"resourceType": "Patient",
"id": "patient-018",
"identifier": [
{
"system": "http://fhir.nl/fhir/NamingSystem/bsn",
"value": "149908131"
}
],
"name": [
{
"use": "official",
"family": "Jones",
"given": [
"Rita"
]
}
],
"gender": "male",
"birthDate": "2000-01-31"
},
"request": {
"method": "POST",
"url": "Patient/patient-018"
}
},
{
"fullUrl": "Condition/condition-006",
"resource": {
"resourceType": "Condition",
"id": "condition-006",
"subject": {
"reference": "Patient/patient-018"
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "44054006",
"display": "Diabetes mellitus type 2 (disorder)"
}
]
},
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active"
}
]
}
},
"request": {
"method": "POST",
"url": "Condition/condition-006"
}
}
]
}
Result:
{
"resourceType": "Bundle",
"type": "transaction-response",
"entry": [
{
"response": {
"status": "400",
"outcome": {
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "no reference for patient found for condition-006"
}
}
]
}
}
}
]
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels