Stream: implementers
Topic: CapabilityStatemen -HAPI - profiles not matching annotations
Tobias Cervin (Nov 26 2019 at 14:46):
Can't seem to become friends with CapabilityStatement in our HAPI fhir-server/facade. Even though our Providers and Models have custom profile-urls and look like this:
@RegisterProfileClass(profile = CUSTOM_PROFILE_URL, model = EHMMedicationRequest.class) @ResourceProviderQualifier(MedicationRequestResourceProvider.class) public class MedicationRequestResourceProvider extends AbstractValidatingProvider<EHMMedicationRequest> implements IFhirResourceProvider<MedicationRequest> { ... } @ResourceDef(name="MedicationRequest", profile=CUSTOM_PROFILE_URL) public class EHMMedicationRequest extends MedicationRequest { ... }
The "GET [base]/metadata?mode=full" returns:
{ "type": "MedicationRequest", "profile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest", ... }
I have tried debugging at the start of the application and found that RuntimeSourceDefinition has the correct custom myResourceProfile. Anyone else wrestled with this?
Grahame Grieve (Nov 26 2019 at 14:57):
sounds like a Question for #hapi
Tobias Cervin (Nov 27 2019 at 06:53):
sounds like a Question for #hapi
Ah, perfect. Haven't noticed that stream :slight_smile:. Thanks
Last updated: Apr 12 2022 at 19:14 UTC