Search code examples
hl7-fhir

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?


Solution

  • 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?