Error sdf-8a while creating fhir Patient profile
# support
v
I am trying to create fhir profiles as specified on this page --> https://www.nrces.in/ndhm/fhir/r4/ I started with
StructureDefinition-Patient.json
in but getting the below error. Do I have to specify the IG as well ? This is a national profile, and is validated. So not sure why I am getting this error. The error text is as following
Copy code
Constraint sdf-8a not met: In any differential, all the elements must start with the StructureDefinition's specified type for non-logical models, or with the same type name for logical models ({"fhirpath":"(%resource.kind = 'logical' or element.first().path.startsWith(%resource.type)) and (element.tail().empty() or element.tail().all(path.startsWith(%resource.differential.element.first().path.replaceMatches('\\\\..*','')&'.')))"}) (StructureDefinition.differential)
I validated that the fhirpath in
differential
is correct and other scenarios
@rahul1 appreciate any help on this. Is profile name or id any issue. I tried to change those with no luck
r
HI @venu_malyala , thank you for your patience. I have looked throught the profile in question an unfortunately it was malformed
The first entry in any differential should just be
id: "Patient"
, as all subsequent
id
s must be extensions of some path before it
v
Hi @rahul1 , thank you for your response. I had the same finding. This is resolved now
r
@venu_malyala - would love to know more about your use case. Are you the author of this IG?
v
Hi Rahul, I'm not the author. This is a national profile for India. There are currently two profiles for document exchange (CCR), and healthcare claims exchange. The implementation though uses these profiles as data objects instead of REST APIs. My interest is to use these profiles and use them as FHIR APIs, in the healthcare platform we are building
132 Views