FHIR Chat · restful create client · implementers

Stream: implementers

Topic: restful create client


view this post on Zulip Matthias Gloeggler (Mar 04 2019 at 10:13):

Hallo,
i need some examples for DSTU3.
how to create an new patient
how to update an exicting patient
IBaseBundle instead of Bundle

i can only find examples for DSTU2.
but our Exampleserver i hav to use is DSTU3.

M.

view this post on Zulip Morten Ernebjerg (Mar 04 2019 at 10:45):

Hi Matthias. Do you mean example resources or rather example code for carrying out the operations? For resource examples, you can always look in the "Examples" tab at the top of the corresponding resource documentation page, e.g. for STU3 Patient they are here: http://hl7.org/fhir/STU3/patient-examples.html . If you mean code examples, which client are you using?

view this post on Zulip Matthias Gloeggler (Mar 04 2019 at 11:16):

Hi Morten,
i need example code for carrying out the operations.
i am using IGenericClient.

thanks...
M.

view this post on Zulip Morten Ernebjerg (Mar 04 2019 at 12:59):

Sounds like you're using the HAPI client. Did you check out the documentation of the client here: http://hapifhir.io/doc_rest_client.html ? I see that the code samples still formulate things in terms of STU2, but I reckon they should work when the needed STU3 substitutions have been made. E.g. the STU3 Resource classes are under org.hl7.fhir.dstu3.model.* and the STU3 context is fetched with FhirContext.forDstu3().

I looked around in the HAPI GitHub repo for some explicit STU3 client examples and didn't find much, but this is one example: https://github.com/jamesagnew/hapi-fhir/blob/master/examples/src/main/java/example/Copier.java

view this post on Zulip Matthias Gloeggler (Mar 04 2019 at 13:49):

Okay thanks a lot for your help.


Last updated: Apr 12 2022 at 19:14 UTC