Stream: implementers
Topic: FHIR Id
booma radhakrishnan (Jun 09 2021 at 07:30):
How to fetch the FHIR id of a resource to red the details of a resource to fetch the details.
Lloyd McKenzie (Jun 09 2021 at 12:57):
Can you further explain your question?
Merlyn Albery-Speyer (Jun 09 2021 at 17:11):
Guessing at your question, @booma radhakrishnan: you need to add an authentication header with a bearer token from your oauth2 authorization. The openid token needs to be populated with the fhirUser
, and adjacent to the access token you need the patient
to be set correctly.
If your question is "how am I expected to know that eJW3Cy0gsPSma08Z6jFDVDPI7tUavtRv8uzTVG5MX4PQ3
is the magic id for my Observation?" then you can tackle that by searching by the identifier
field - of the form identifier=
[identifier_system]|[identifier_value]
.
booma radhakrishnan (Jun 10 2021 at 00:46):
Thanks Lloyd / Speyer,
@Lloyd McKenzie When I post the data the FHIR the ID is generated by the FHIR Is that ID can be fetched once post is done.
@Merlyn Albery-Speyer I need to understand more on this Can you please send any samples which i have to follow.
or Documentation.
Lloyd McKenzie (Jun 10 2021 at 14:53):
It sounds like you're talking about 'create', 'read' and perhaps search by _id. Have you read http://hl7.org/fhir/http.html - specifically the 'create' and 'read' portions? You can also experiment with some of the public test servers linked to from the bottom of the FHIR home page.
Vassil Peytchev (Jun 10 2021 at 15:02):
In particular, under create
you will find information about the Location:
HTTP Header:
Location: [base]/[type]/[id]/_history/[vid]
Last updated: Apr 12 2022 at 19:14 UTC