useFhirCapabilities
Return a Query for a capabilities request.
import { useFhirCapabilities } from "@bonfhir/query/r4b";
import { FhirQueryLoader } from "@bonfhir/react/r4b";
export default function MyComponent() {
const capabilitiesQuery = useFhirCapabilities();
const normativeCapabilitiesQuery = useFhirCapabilities("normative");
return (
<FhirQueryLoader query={capabilitiesQuery}>
{(result) => result.title}
</FhirQueryLoader>
);
}