RahulB
RahulB

Reputation: 207

fhir-net-api (STU3) - DocumentReference POST parsing error

Using the fhir-net-api (STU3, ver - 0.93.4.0), when trying to POST a DocumentReference resource, the following error is generated when parsing the resource (body)-

"IndexedElement : is not a correctly formatted Instant"

This is occurring when parsing the value of the "Indexed" attribute, which is of "instant" datatype.

The value being passed is of the form - yyyy-MM-ddTHH:mm:ss+-Offset. For example - 2005-12-24T09:43:41+11:00

Is there a different format to be used when passing values to "instant" datatypes?

Upvotes: 1

Views: 155

Answers (1)

Ewout Kramer
Ewout Kramer

Reputation: 1004

No, your code seems fine. Can I ask you to:

  • Create an issue in the .NET API tracker so I can solve it and you'll be updated when I do.
  • Try the latest (0.93.5-beta6) to see if it got solved already?

Upvotes: 1

Related Questions