Hi all,
we have running a DSTU2 based client server system with mongoDB.
Now, we have to find a way to identify resource references in a generic way to implement a mechanism to be able to remove a resource from mongoDB like referential integrity cascading on sql databases.
In order to formulate my question in more detail, some example:
Patient A has a AllergyIntolerance B.
If you want to remove the Patient A, you have to remove the AllergyIntolerance B before, otherwise the Patient reference in B is invalid. Basically it is possible on nosql, because there are no constraint mechanisms.
Provides HAPI any abilities to determine this on generic way to identify references, like B.getAllReferences ->
List<IdDT>
Has anyone done this before?
Cheers,
Alex