Fhir Server resource url Care Connect vs Standard

#1

Hi,

can anyone suggest what should be the URL format for a Patient Resource? following I found has the version in it? does the version baseDstu3 mandatory in the URL?

http://hapi.fhir.org/baseDstu3/Patient/1684180/_history/1?_pretty=true

thanks
Tharma

(Rik Smithies) #2

Hi Tharma, the history part (version) is not mandatory.

This is fine:
http://hapi.fhir.org/baseDstu3/Patient/1684180

You do need the baseDstu3 part, because that is part of the URL of this server.

Other examples could be
http://exampleserverpath.org/Patient/1684180
or
http://exampleserverpath.org/a/b/c/Patient/1684180

Everything before “Patient” is just the server name, which can be anything.

Suggest you read this: Http - FHIR v4.0.0

Rik

1 Like
(Kev Mayfield) #3

As per Riks comment. I’ve tended to use url’s like http:/xyz.com/…/STU3/Patient/{id}