Stream: hapi
Topic: Profile resolving
Thomas (Sep 12 2019 at 14:26):
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 =)
Patrick Werner (Sep 12 2019 at 14:28):
you have to use the full canonical url
Patrick Werner (Sep 12 2019 at 14:28):
What is your profile uri?
Thomas (Sep 12 2019 at 14:31):
Hi Patrick,
As requested, this is the header of the definition of my custom patient :
<StructureDefinition xmlns="http://hl7.org/fhir">
<url value="http://development.org/fhir/StructureDefinition/CustomPatient"/>
<name value="PmsPatient"/>
<status value="draft"/>
<fhirVersion value="4.0.0"/>
<kind value="resource"/>
<abstract value="false"/>
<type value="Patient"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/>
<derivation value="constraint"/>
Patrick Werner (Sep 12 2019 at 14:33):
looks good, your error above "StructureDefinition/customPatient
differs from your profile url, have you tried it with the complete URL. The resolving is case-sensitive!
Thomas (Sep 12 2019 at 15:25):
looks good, your error above
"StructureDefinition/customPatient
differs from your profile url, have you tried it with the complete URL. The resolving is case-sensitive!
Right now, I can store my custom patient.
But it seems that the validation doesn't work.
I'll create another topic for it.
Thanks again =)
Last updated: Apr 12 2022 at 19:14 UTC