Stream: hapi
Topic: CapabilityStatement Validation Issue
Reece Adamson (Apr 08 2020 at 20:17):
I'm working with a HAPI Server (version 4.2.0) and seeing an error when trying to validate the CapabilityStatement on both it and the public test server.
java -jar org.hl7.fhir.validator.jar hapi_conformance.json -version 4.0.1 FHIR Validation tool Version 4.2.14-SNAPSHOT (Git# 3edfeda13a8b). Built 2020-04-06T10:21:10.485+10:00 (66 hours old) Detected Java version: 1.8.0_222 from /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre on x86_64 (64bit). 3641MB available Arguments: hapi_conformance.json -version 4.0.1 Directories: Current = /Users/radamson/Desktop, Package Cache = /Users/radamson/.fhir/packages .. FHIR Version 4.0, definitions from hl7.fhir.r4.core#4.0.1 .. connect to tx server @ http://tx.fhir.org (v4.0.1) .. validate [hapi_conformance.json] *FAILURE* validating hapi_conformance.json: error:1193 warn:1 info:144 Error @ CapabilityStatement.rest[0].resource[69].profile (line 6266, col73) : URL value "http://hl7.org/fhir/StructureDefinition/ListResource" does not resolve
I couldn't find the ListResource which support is claimed for in the FHIR spec. You can see the resource listed from the browser from the public test server: http://hapi.fhir.org/conformance?serverId=home_r4&pretty=false
This is the CapabilityStatement from the server I am working with: fhir_conformance.json
And here is a copy of the CapabilityStatement from the public HAPI server for convenience in reproducing the validation results: hapi_conformance.json
I should also note that in updating my FHIR Validator jar from 4.2.12
to 4.2.14
I've starting seeing many more errors related to the OperationDefinition URLs. e.g. Error @ CapabilityStatement.rest[0].operation[0].definition (line 12748, col6) : Canonical URLs must be absolute URLs if they are not fragment references (OperationDefinition/-s-mark-all-resources-for-reindexing)
on the public test server CapabilityStatement as well.
I see there is some documentation on creating a custom CapabilityStatement which I am looking at now, but figured I'd raise this on chat since I was seeing the errors on the public server as well.
I appreciate all the hard work on this project and would be happy to provide any further information that may help!
Grahame Grieve (Apr 08 2020 at 20:43):
@James Agnew something is forgetting to look for the actual resource name in the metadata? (@ResourceDef(name="List"
)
Last updated: Apr 12 2022 at 19:14 UTC