Stream: hapi
Topic: Local References
Inês Silva (Jul 10 2018 at 08:54):
Hello, I'm using the HAPI implementation of a FHIR server (hapi-fhir-jpaserver-example).
In daoConfig() i've set EnforceReferentialIntegrityOnWrite to false, which means "resources will be permitted to be created or updated even if they contain references to local resources that do not exist."
This is true when I use local references like "reference": "Organization/abdc1234", but not when I use "reference": "Organization/1234" (only numbers). In this case an exception is thrown "Resource Organization/1234 not found, specified in path: MessageHeader.sender"
It is supposed to be like these? I am missing some FHIR rule here?
Thanks!
Inês Silva (Jul 10 2018 at 17:09):
I understand now, that I cannot create resources with forced numerical ids, and I believe the error I described above is because of this rule.
But, if I use ResourceServerIdStrategy as UUID I do not understand why I still can't use forced numerical ids.
Can someone give some ligths?
Last updated: Apr 12 2022 at 19:14 UTC