I want to show all resources type list like condition, immunization, patient. How can I find those endpoints? I did not get any end point which gets a list of resource types.
API end point: https://r4.smarthealthit.org
Official documentation: https://www.hl7.org/fhir/http.html#search Thanks in advance
I want a list of all response type by using the above API.
You could ask for the CapabilityStatement with a
GET [base]/metadata
. This will have a .rest component that should list all the resource types the server supports, plus all the interactions, search parameters, operations etc. supported for those resource types. Each resource type that is supported will have its own endpoint[base]/[type]
where you can do searches and retrieve the resources of that type.Edit: on re-reading the question, it looks like you want a list of resources (instances) connected to a patient, instead of a list of resource types. If the server supports the $everything operation, you could do a
GET [base]/Patient/[id]/$everything
to get a Bundle with the Patient plus all the resources linked to that Patient.