Extensions for primitive type 'code' cannot be uploaded individually. #3244
Labels
Bug
Bug bug bug.
Feedback-Discussion
Discussion is needed.
Specification
An issue referring or related to the FHIR Specification
Describe the bug
Extensions should be uploadable without their corresponding 'origin' attributes.
Example 1:
POSTing the resource of Example 1 produces the following OperationOutcome issue:
Response 1:
This problem appears to only affect attributes of the type 'code'.
FHIR Version?
R4
Data provider?
CosmosDB
To Reproduce
Steps to reproduce the behavior:
Expected behavior
POSTing the patient resource from Example 1 should not lead to an error, but should create the resource successfully instead.
Resources containing only extension attributes of types other than 'code' (e.g. 'date') produce the expected behaviour already:
Example 2:
Uploading resources with extensions for 'code' type attributes already works, when the 'origin' attribute is also present.
Example 3:
Example 1 should produce the same response as Examples 2 and 3 (e.g. a valid resource is created on the server),
as "The extensions may appear in place of the value of the primitive datatype." [1].
Actual behavior
POSTing the patient resource from Example 1 to the azure FHIR server leads to a HTTP 400 Bad Request server response.
Additional Information regarding the error can be found in the response body:
[1] https://www.hl7.org/fhir/extensibility.html#primitives
AB#102748
The text was updated successfully, but these errors were encountered: