Closed rppala3 closed 1 year ago
Please have a look this issue, might it be related to yours https://github.com/nazrulworld/fhir.resources/issues/56
OK, thank you very much. I refactored the previous code like below and it works.
from fhir.resources.bundle import BundleEntryRequest
from fhir.resources.fhirtypes import Code, Uri
request = BundleEntryRequest.construct(
method = Code('POST'),
url = Uri('Task')
)
request.json()
Description
I'm trying to compose a simple BundleEntryRequest object, but I'm facing a validation error. Apparently
request.url
is not set correctly.What I Did
Code
Output