Stream: hapi
Topic: HAPI's automatic CapabilityStatement generation
Mohannad Hussain (Sep 11 2020 at 16:24):
Sorry in advance for the naive question!
I am using HAPI as a FHIR server reading from our existing application model. According the documentation here: https://hapifhir.io/hapi-fhir/docs/server_plain/introduction.html#capabilities, it sounds like HAPI would automatically generate the CapabilityStatement for me, but I am not clear on whether I need to take any steps for that to happen (E.g. maven action) of if that happens auto-magically when the server starts-up?!?
If I try to hit http://myhost/fhir-api/r4/CapabilityStatement, I get the following error:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Unknown resource type 'CapabilityStatement' - Server knows how to handle: [Practitioner, StructureDefinition, Organization, Patient, ImagingStudy, DiagnosticReport, OperationDefinition, ServiceRequest]"
}
]
}
Any thoughts?
Again, sorry for the total newbie question here!
Ian Bacher (Sep 11 2020 at 16:41):
Try http://myhost/fhir-api/r4/metadata. This is where the CapabilityStatement is usually returned from.
Mohannad Hussain (Sep 11 2020 at 17:23):
Voila! Thanks so much @Ian Bacher
Last updated: Apr 12 2022 at 19:14 UTC