Note that it's likely that if we first PUT the referenced Practitioner, that we'll get another similar error for the referenced Organization.
This raises an issue about resource dependencies, and means we will need to be very, very intentional about the order in which we try to recreate a patient record in the SDS. It may be the case that certain resources are referenced that we can't read due to scoping issues. Or there could potentially be something ugly like a cyclical dependency, where A references B and B references A, which would necessitate having both resources and writing them both at the same time in a Bundle using the contained construct.
trying to PUT a foreign Patient resource, I got it to get through the interceptors, but the PUT still fails due to a referenced Practitioner resource:
this is the Patient resource whose PUT generated the error above:
Note that it's likely that if we first PUT the referenced Practitioner, that we'll get another similar error for the referenced Organization.
This raises an issue about resource dependencies, and means we will need to be very, very intentional about the order in which we try to recreate a patient record in the SDS. It may be the case that certain resources are referenced that we can't read due to scoping issues. Or there could potentially be something ugly like a cyclical dependency, where A references B and B references A, which would necessitate having both resources and writing them both at the same time in a Bundle using the contained construct.
This could get very complicated.