FHIR Chat · Profile resolving · implementers

Stream: implementers

Topic: Profile resolving


view this post on Zulip Thomas (Sep 12 2019 at 14:05):

Hi !

I'm quite new on FHIR databases and I'm trying to create a custom patient profile.
So..
1) I've created my own structureDefinition of my custom patient and uploaded it to the FHIR server.
2) In my custom patient, I add into meta.profile the canonical URL of the structureDefinition defined at step 1
3) I post this custom patient to this FHIR version.
4) Then I got this OperationOutCome :
"issue": [
{
"severity": "warning",
"code": "processing",
"diagnostics": "StructureDefinition reference \"StructureDefinition/customPatient\" could not be resolved",
"location": [
"Patient.meta.profile[0]"
]
}
I've tried to inject :
1) the full canonical URL of the profile
2) the relative canonical URL of the profile

But I still got the same error message..

FHIR web server : HAPI

Any ideas ?

Thanks =)

view this post on Zulip Lloyd McKenzie (Sep 12 2019 at 14:13):

If you're using a canonical URL, the URL always has to be absolute - it can't be a relative URL.

view this post on Zulip Thomas (Sep 12 2019 at 14:21):

Hi Lloyd and thanks for your answer,

I've tried to use the full canonical URL of my StructureDefinition but I still got the same error.

If I understand correctly, the canonical URL is just unique identifier and can be whatever we want :
Example : http://fakeUrl/fhir/StructureDefinition/customPatient

I'm wondering how HAPI FHIR resolve theses profile references..

Regards

view this post on Zulip Grahame Grieve (Sep 12 2019 at 14:22):

sounds like a question for the #hapi stream

view this post on Zulip Thomas (Sep 12 2019 at 14:25):

sounds like a question for the #hapi stream

Thanks, Ill move it there.


Last updated: Apr 12 2022 at 19:14 UTC