FHIR Chat · validations with contained resource · implementers

Stream: implementers

Topic: validations with contained resource


view this post on Zulip Ravindra Kondiparthi (Jan 26 2021 at 23:54):

Hello,

I am trying to validate(using HAPI FHIR validator) a FHIR resource with contained reference against a custom profile and i am seeing below error

SingleValidationMessage[col=3745,row=1,locationString=ExplanationOfBenefit.provider,message=Unable to find matching profile for #organization1 among choices: http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization, http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Practitioner,severity=error.

Thoughts??

any help is appreciated.

Thanks
Ravi

view this post on Zulip Patrick Werner (Jan 27 2021 at 12:31):

Does your instance have a populated meta.profile?

view this post on Zulip Lloyd McKenzie (Jan 27 2021 at 15:17):

It sounds like you're trying to validate something against a profile that mandates that the target be either a C4BB-Organization or C4BB-Practitioner. If that's the constraint of the base profile, you must comply with one of the two targets - otherwise you're not conformant against that base profile.

view this post on Zulip Ravindra Kondiparthi (Jan 27 2021 at 16:27):

Yes i do have meta.profile.
and my contained resource is conformant with C4BB-Organization. my observation is that validator is not able to interpret contained resource reference properly.

Thanks
Ravi

view this post on Zulip Ravindra Kondiparthi (Jan 27 2021 at 17:36):

OK i have an update. This error message is very misleading as soon i got my resource conformant with profile, error went away. It would be nice to have a clear message.

Thanks for the feedback!!

--Ravi

view this post on Zulip Grahame Grieve (Feb 02 2021 at 21:55):

ok the message will be better in future versions


Last updated: Apr 12 2022 at 19:14 UTC