FHIR Chat · Error Uploading ChargeItem · hapi

Stream: hapi

Topic: Error Uploading ChargeItem


view this post on Zulip Andreas Beckers (May 04 2021 at 10:09):

Hi, I'm new to fhir and hapi. I'm creating ChargeItem for the profile http://fhir.de/StructureDefinition/chargeItem-de-art-abrechnung. I use the docker image hapiproject/hapi to start a server. My problem is, when I add a reference to a practitioner to the requestingOrganisation (requestingOrganization/identifier/assigner), I get an error message, telling me, that a reference to a practitioner is not allowed at this point.
The error happens, when I use the generic client's create method and is responded from the server.
I got no idea, why the server is responding that and I have no idea how I can change it.
Any help welcome

view this post on Zulip James Agnew (May 05 2021 at 17:03):

Hmm, strange.Are you able to replicate this issue on our public server? (hapi.fhir.org)

view this post on Zulip Andreas Beckers (May 06 2021 at 11:11):

Yes, I can reproduce:
Error: HTTP 422 Unprocessable Entity: Invalid reference found at path 'ChargeItem.requestingOrganization.identifier.assigner'. Resource type 'Practitioner' is not valid for this path

view this post on Zulip James Agnew (May 06 2021 at 12:18):

Could you provide a sample minimal example that demonstrates the issue on that server?

view this post on Zulip Andreas Beckers (May 07 2021 at 05:52):

This one for example produces this error:

<ChargeItem xmlns="http://hl7.org/fhir">
   <meta>
      <profile value="http://fhir.de/StructureDefinition/chargeItem-de-art-abrechnung"></profile>
   </meta>
   <identifier>
      <use value="official"></use>
      <system value="W10110"></system>
      <value value="42020-521562-20201005-06211"></value>
   </identifier>
   <status value="billable"></status>
   <requestingOrganization>
     <reference value="Organization/12104" />
     <identifier>
        <assigner>
          <reference value="Practitioner/4752"></reference>
        </assigner>
     </identifier>
   </requestingOrganization>
</ChargeItem>

Last updated: Apr 12 2022 at 19:14 UTC